Skip to main content

LLM Providers

IaC Code supports multiple model provider backends. Provider selection can come from CLI options, environment variables, or configuration files. Precedence is:

CLI arguments > environment variables > configuration files

Cloud Providers

Provider valuePurpose
DashScopeAlibaba Cloud DashScope (Bailian) compatible endpoint
DashScope Token PlanAlibaba Cloud DashScope Token Plan endpoint
OpenAIOpenAI models
AnthropicAnthropic models
DeepSeekDeepSeek models
GeminiGoogle Gemini models
Azure OpenAIAzure OpenAI Service
ModelScopeModelScope inference endpoint

China-region Providers

Provider valuePurpose
Kimi CNKimi (Moonshot AI) China endpoint
MiniMax CNMiniMax China endpoint
ZhiPu CNZhiPu AI (GLM) China endpoint
Volcengine CNVolcengine (ByteDance) China endpoint
SiliconFlow CNSiliconFlow China endpoint

International Providers

Provider valuePurpose
Kimi IntlKimi (Moonshot AI) international endpoint
MiniMax IntlMiniMax international endpoint
ZhiPu IntlZhiPu AI (GLM) international endpoint
SiliconFlow IntlSiliconFlow international endpoint

CodingPlan Providers

Provider valuePurpose
Aliyun CodingPlanAlibaba Cloud CodingPlan endpoint
Aliyun CodingPlan IntlAlibaba Cloud CodingPlan international endpoint
ZhiPu CN CodingPlanZhiPu AI CodingPlan China endpoint
ZhiPu Intl CodingPlanZhiPu AI CodingPlan international endpoint
Volcengine CodingPlanVolcengine CodingPlan endpoint

Compatible / Custom Endpoints

Provider valuePurpose
OpenAPI CompatibleAny OpenAI-compatible API endpoint
Anthropic CompatibleAny Anthropic-compatible API endpoint
OpenRouterOpenRouter aggregation gateway

Local Providers

Provider valuePurpose
OllamaOllama local model server
LM StudioLM Studio local model server

LLM Environment Variables

VariableDescription
IAC_CODE_PROVIDERModel provider name (case-insensitive). See tables above for valid values
IAC_CODE_MODELModel name
IAC_CODE_BASE_URLAPI endpoint for OpenAPI Compatible and Anthropic Compatible only; ignored for other providers
IAC_CODE_API_KEYProvider API key