Skip to content

Environment Variables

VariableDescription
ZAI_API_KEYz.ai API key (default provider)
ANTHROPIC_API_KEYAnthropic API key (alternative provider)
OPENAI_API_KEYOpenAI API key (alternative provider)
VariableDescription
SANDCODE_CONFIG_DIROverride config directory (default: ~/.sandcode)
SANDCODE_MODELOverride model selection
SANDCODE_PROVIDEROverride provider
VariableDescription
SANDCODE_METRICS_ENDPOINTCustom telemetry endpoint (all built-in telemetry is disabled by default)
SANDCODE_DISABLE_TELEMETRYSet to true to explicitly disable (already disabled)
VariableDescription
SANDCODE_DEVEnable development mode
SANDCODE_DEBUGEnable debug logging
VariableDescription
NO_COLORDisable colored output
FORCE_COLORForce colored output
TERMTerminal type (affects theme selection)