ReferencePreview
Environment variables & provider keys
Every env var the IDE's model router, desktop shell, and BYOK vault actually read.
AI
Preview — early access. This list is generated from the same model router registry the Models tab reads — see it there for live status.
Overview
Model access, the desktop shell, and the local-Claude brain are all configured through environment variables (or their vault-stored equivalents) rather than hardcoded settings. This page is the reference list.
How it works
Provider keys are set once — either in the BYOK vault (which writes them into the workspace's env at unlock) or directly in the environment for a self-hosted deployment. Per-model overrides let you point a router slot at a different underlying model id without code changes.
Reference — provider keys
| Env var | Provider | Notes |
|---|---|---|
ANTHROPIC_API_KEY | Anthropic | Powers Haiku, Sonnet, Opus, Fable |
XAI_API_KEY | xAI | Grok 4 |
MOONSHOT_API_KEY | Moonshot | Kimi K2 |
DASHSCOPE_API_KEY | Alibaba DashScope | Cloud Qwen |
GEMINI_API_KEY | Gemini Flash / Flash-Lite | |
OPENAI_API_KEY | OpenAI | GPT-4o mini |
MISTRAL_API_KEY | Mistral | Codestral |
COHERE_API_KEY | Cohere | Command R |
DEEPSEEK_API_KEY | DeepSeek | DeepSeek Chat |
GROQ_API_KEY | Groq | Free-tier hosted Llama |
CEREBRAS_API_KEY | Cerebras | Free-tier hosted Llama |
TOGETHER_API_KEY | Together | Hosted Qwen Coder |
FIREWORKS_API_KEY | Fireworks | Hosted Llama |
OPENROUTER_API_KEY | OpenRouter | Free-tier aggregator lane |
CREYTIX_MODELS_BASE_URL | Creytix Model Server (local) | Keyless — defaults to http://127.0.0.1:11500/v1 |
Reference — router & desktop
| Env var | Purpose |
|---|---|
IDE_AGENT_MODEL | Fallback model id when no explicit model or "auto" is requested |
IDE_<MODEL>_MODEL (e.g. IDE_SONNET_MODEL, IDE_KIMI_MODEL, IDE_QWEN_CLOUD_MODEL) | Per-model override of the exact provider-side model id the router calls |
CREYTIX_IDE_BRAIN | api (default), local-claude, or auto — selects the local-Claude CLI brain instead of the Anthropic API |
CREYTIX_CLAUDE_BIN | Explicit path to the claude CLI, if it's not discoverable on PATH |
CREYTIX_DESKTOP | Set to 1 by the desktop shell to open the IDE without the web login (bound to 127.0.0.1 only) |
CREYTIX_IDE_URL | Overrides which URL the desktop Electron shell points at |
CREYTIX_UPDATE_FEED_URL | Overrides the desktop app's auto-update feed host, without a rebuild |
Limits & honest scope
- This list reflects what the model router and desktop shell actually read today — see the Models tab for live, per-model key status rather than assuming a key here means a model is fully working.
- Some vars (
CREYTIX_DESKTOP,CREYTIX_IDE_BRAIN=local-claude) are hard-blocked on hosted/Vercel deploys and only apply to a local desktop server. - BYOK vault entries are the recommended way to set provider keys in the hosted product; raw env vars are the self-hosted/desktop path.