Skip to content

Environment Variables

Provider API Keys

Set these environment variables to authenticate with LLM providers. Crush will automatically detect them and show the corresponding providers in the model picker.

VariableProvider
HYPER_API_KEYCharm Hyper
ANTHROPIC_API_KEYAnthropic
OPENAI_API_KEYOpenAI
VERCEL_API_KEYVercel AI Gateway
GEMINI_API_KEYGoogle Gemini
SYNTHETIC_API_KEYSynthetic
ZAI_API_KEYZ.ai
MINIMAX_API_KEYMiniMax
HF_TOKENHugging Face Inference
CEREBRAS_API_KEYCerebras
OPENROUTER_API_KEYOpenRouter
IONET_API_KEYio.net
ALIBABA_SINGAPORE_API_KEYAlibaba (Singapore)
GROQ_API_KEYGroq
AVIAN_API_KEYAvian
OPENCODE_API_KEYOpenCode Zen & Go
VERTEXAI_PROJECTGoogle Cloud VertexAI (Gemini)
VERTEXAI_LOCATIONGoogle Cloud VertexAI (Gemini)
AWS_ACCESS_KEY_IDAmazon Bedrock (Claude)
AWS_SECRET_ACCESS_KEYAmazon Bedrock (Claude)
AWS_REGIONAmazon Bedrock (Claude)
AWS_PROFILEAmazon Bedrock (Custom Profile)
AWS_BEARER_TOKEN_BEDROCKAmazon Bedrock
AZURE_OPENAI_API_ENDPOINTAzure OpenAI models
AZURE_OPENAI_API_KEYAzure OpenAI models (optional when using Entra ID)
AZURE_OPENAI_API_VERSIONAzure OpenAI models

Crush Configuration

VariableDescription
CRUSH_GLOBAL_CONFIGOverride the global config file location (default: ~/.config/crush/crush.json)
CRUSH_GLOBAL_DATAOverride the ephemeral data directory (default: ~/.local/share/crush/)
CRUSH_DISABLE_METRICSSet to 1 to opt out of usage metrics collection
CRUSH_DISABLE_PROVIDER_AUTO_UPDATESet to 1 to disable automatic provider updates from Catwalk

Privacy

VariableDescription
DO_NOT_TRACKSet to 1 to opt out of metrics collection (industry standard)