Provider Setup
import { Tabs, TabItem, Steps } from ‘@astrojs/starlight/components’;
Decodie needs an API key from an LLM provider to power its analysis, explanation, and Q&A features. You can use any of the supported providers — pick whichever you prefer.
Get an API key
Section titled “Get an API key”Default model: `claude-sonnet-4-6`Default model: `gpt-4o`Default model: `gemini-2.0-flash`
:::noteNew Google API keys may take a few minutes for quota to activate. If you get a quota error immediately after creating a key, wait a few minutes and try again.:::Default model: `mistral-large-latest`
:::tipMistral offers a generous free tier (1 billion tokens/month, no credit card required), making it a great option for trying Decodie.:::Default model: `grok-3-mini`Default model: `deepseek-chat`Configure your key
Section titled “Configure your key”VS Code Extension and Local UI
Section titled “VS Code Extension and Local UI”Create a .decodie/.env file in your project root:
mkdir -p .decodieecho 'ANTHROPIC_API_KEY=sk-ant-api03-your-key-here' > .decodie/.envReplace ANTHROPIC_API_KEY with the variable for your provider:
| Provider | Environment variable |
|---|---|
| Anthropic | ANTHROPIC_API_KEY |
| OpenAI | OPENAI_API_KEY |
GOOGLE_GENERATIVE_AI_API_KEY | |
| Mistral | MISTRAL_API_KEY |
| xAI | XAI_API_KEY |
| DeepSeek | DEEPSEEK_API_KEY |
Override the default model
Section titled “Override the default model”Each provider has a sensible default model. To use a different model, set the LLM_MODEL variable:
ANTHROPIC_API_KEY=sk-ant-api03-your-key-hereLLM_MODEL=claude-opus-4-6In VS Code, you can also set this via the decodie.model setting.
Provider auto-detection
Section titled “Provider auto-detection”Decodie automatically detects which provider to use based on which API key is present. If you have multiple keys in your .env file, the first match wins in this order:
- Anthropic
- OpenAI
- Mistral
- xAI
- DeepSeek
Backwards compatibility
Section titled “Backwards compatibility”If you previously used CLAUDE_API_KEY, it still works and is treated as an Anthropic key. CLAUDE_CODE_OAUTH_TOKEN is no longer supported.