Crush reads provider credentials and behavior settings from environment variables.
API Keys
Provider credentials are picked up automatically from these environment variables:
| Environment Variable | Provider |
|---|---|
HYPER_API_KEY | Charm Hyper |
ANTHROPIC_API_KEY | Anthropic |
OPENAI_API_KEY | OpenAI |
VERCEL_API_KEY | Vercel AI Gateway |
GEMINI_API_KEY | Google Gemini |
ZAI_API_KEY | Z.ai |
MINIMAX_API_KEY | MiniMax |
SYNTHETIC_API_KEY | Synthetic |
HF_TOKEN | Hugging Face Inference |
CEREBRAS_API_KEY | Cerebras |
OPENROUTER_API_KEY | OpenRouter |
IONET_API_KEY | io.net |
ALIBABA_SINGAPORE_API_KEY | Alibaba (Singapore) |
ALIBABA_US_API_KEY | Alibaba (United States) |
GROQ_API_KEY | Groq |
AVIAN_API_KEY | Avian |
OPENCODE_API_KEY | OpenCode Zen & Go |
VERTEXAI_PROJECT | Google Cloud VertexAI (Gemini) |
VERTEXAI_LOCATION | Google Cloud VertexAI (Gemini) |
AWS_ACCESS_KEY_ID | Amazon Bedrock (Claude) |
AWS_SECRET_ACCESS_KEY | Amazon Bedrock (Claude) |
AWS_REGION | Amazon Bedrock (Claude) |
AWS_PROFILE | Amazon Bedrock (Custom Profile) |
AWS_BEARER_TOKEN_BEDROCK | Amazon Bedrock |
AZURE_OPENAI_API_ENDPOINT | Azure OpenAI models |
AZURE_OPENAI_API_KEY | Azure OpenAI models (optional when using Entra ID) |
AZURE_OPENAI_API_VERSION | Azure OpenAI models |
MOONSHOT_API_KEY | Moonshot |
XAI_API_KEY | xAI |
Configuration & Behavior
| Variable | Description |
|---|---|
CRUSH_GLOBAL_CONFIG | Override the global config location |
CRUSH_GLOBAL_DATA | Override the global data location |
CRUSH_DATA_DIR | Override the per-project .crush directory |
CRUSH_SKILLS_DIR | Additional skills directory |
CRUSH_DISABLE_METRICS | Set to 1 to opt out of metrics |
DO_NOT_TRACK | Set to 1 to opt out of metrics (convention) |
CRUSH_DISABLE_PROVIDER_AUTO_UPDATE | Set to 1 to disable provider auto-updates |
CATWALK_URL | Override the Catwalk provider catalog URL |
Hooks
Hooks receive a separate set of CRUSH_* variables — see Input & Output.
Read this post in your terminal with glow:glow -p https://crush.charm.land/reference/environment-variables.md
