Skip to content

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.

1. Go to [console.anthropic.com/settings/keys](https://console.anthropic.com/settings/keys) 2. Sign up or log in 3. Click **Create Key** 4. Copy the key (starts with `sk-ant-api03-`)
Default model: `claude-sonnet-4-6`
1. Go to [platform.openai.com/api-keys](https://platform.openai.com/api-keys) 2. Sign up or log in 3. Click **Create new secret key** 4. Copy the key (starts with `sk-`)
Default model: `gpt-4o`
1. Go to [aistudio.google.com/apikey](https://aistudio.google.com/apikey) 2. Sign in with your Google account 3. Click **Create API key** 4. Copy the key
Default model: `gemini-2.0-flash`
:::note
New 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.
:::
1. Go to [console.mistral.ai/api-keys](https://console.mistral.ai/api-keys) 2. Sign up or log in 3. Click **Create new key** 4. Copy the key
Default model: `mistral-large-latest`
:::tip
Mistral offers a generous free tier (1 billion tokens/month, no credit card required), making it a great option for trying Decodie.
:::
1. Go to [console.x.ai](https://console.x.ai) 2. Sign up or log in 3. Create an API key 4. Copy the key (starts with `xai-`)
Default model: `grok-3-mini`
1. Go to [platform.deepseek.com/api_keys](https://platform.deepseek.com/api_keys) 2. Sign up or log in 3. Create an API key 4. Copy the key
Default model: `deepseek-chat`

Create a .decodie/.env file in your project root:

Terminal window
mkdir -p .decodie
echo 'ANTHROPIC_API_KEY=sk-ant-api03-your-key-here' > .decodie/.env

Replace ANTHROPIC_API_KEY with the variable for your provider:

ProviderEnvironment variable
AnthropicANTHROPIC_API_KEY
OpenAIOPENAI_API_KEY
GoogleGOOGLE_GENERATIVE_AI_API_KEY
MistralMISTRAL_API_KEY
xAIXAI_API_KEY
DeepSeekDEEPSEEK_API_KEY

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-here
LLM_MODEL=claude-opus-4-6

In VS Code, you can also set this via the decodie.model setting.

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:

  1. Anthropic
  2. OpenAI
  3. Google
  4. Mistral
  5. xAI
  6. DeepSeek

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.