Skip to main content

Environment Variables

IaC Code reads configuration from CLI arguments, environment variables, and configuration files. The precedence is:

CLI arguments > environment variables > configuration files

Environment variables are useful for CI/CD pipelines, containers, and one-off overrides without editing configuration files.

LLM Configuration

VariableDescription
IAC_CODE_PROVIDERModel provider name (case-insensitive): Anthropic, OpenAI, DashScope, DashScopeTokenPlan, DeepSeek, OpenAPICompatible
IAC_CODE_MODELModel name
IAC_CODE_BASE_URLAPI endpoint for OpenAPICompatible only; ignored for other providers
IAC_CODE_API_KEYProvider API key; overrides the active provider's key in .credentials.yml

See LLM Providers for provider details.

Alibaba Cloud Credentials

VariableDescription
ALIBABA_CLOUD_ACCESS_KEY_IDAccessKey ID
ALIBABA_CLOUD_ACCESS_KEY_SECRETAccessKey Secret
ALIBABA_CLOUD_SECURITY_TOKENSTS token; switches the credential mode to STS when set
ALIBABA_CLOUD_REGION_IDDefault region

See Alibaba Cloud Credentials for more details.

Telemetry

VariableDescription
IAC_CODE_DISABLE_NONESSENTIAL_TRAFFICSet to 1 / true / yes / on to disable non-essential telemetry traffic
DISABLE_TELEMETRYSet to 1 / true / yes / on to disable all telemetry
IAC_CODE_TELEMETRY_ENDPOINTBase OTLP endpoint; individual signal endpoints default to this value
IAC_CODE_TELEMETRY_TRACES_ENDPOINTOverride endpoint for traces
IAC_CODE_TELEMETRY_METRICS_ENDPOINTOverride endpoint for metrics
IAC_CODE_TELEMETRY_LOGS_ENDPOINTOverride endpoint for logs
IAC_CODE_TELEMETRY_HEADERSCustom OTLP headers (JSON or key=value format)

Other

VariableDescription
IAC_CODE_ENVDeployment environment label (default: production)
IAC_CODE_TENANT_IDTenant identifier for telemetry; auto-prefixed with iac_tenant_ if not already
OTEL_EXPORTER_OTLP_ENDPOINTStandard OpenTelemetry endpoint; when set, enables OTLP export
OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENTCapture GenAI message/tool content on spans: SPAN_ONLY, EVENT_ONLY, SPAN_AND_EVENT