Set up OpenCode with Claude, GPT and DeepSeek in two minutes
Download one opencode.json with your key filled in and get every model in OpenCode's model picker — here's what the file contains and how to customise it.
OpenCode is an open-source terminal coding agent that works with any OpenAI- or Anthropic-compatible provider. With Apixo you can give it every model through a single config file.
The two-minute path
- Open Dashboard → Setup → OpenCode and click Download opencode.json — your key is already inside.
- Save it as
~/.config/opencode/opencode.json(oropencode.jsonin a project). - Run
opencodeand pick a model with/models.
That's it. The rest of this post explains what's in the file.
What the file looks like
The config defines up to three providers, one per wire format, all pointing to the same base URL and key:
{
"$schema": "https://opencode.ai/config.json",
"model": "apixo/gpt-6-luna",
"provider": {
"apixo": {
"npm": "@ai-sdk/openai",
"options": { "baseURL": "https://YOUR-BASE-URL/v1", "apiKey": "sk-your-key" },
"models": { "gpt-6-luna": { "name": "GPT-6 Luna" } }
},
"apixo-claude": {
"npm": "@ai-sdk/anthropic",
"options": { "baseURL": "https://YOUR-BASE-URL/v1", "apiKey": "sk-your-key" },
"models": { "claude-sonnet-5": { "name": "Claude Sonnet 5" } }
},
"apixo-other": {
"npm": "@ai-sdk/openai-compatible",
"options": { "baseURL": "https://YOUR-BASE-URL/v1", "apiKey": "sk-your-key" },
"models": { "deepseek-v4.1-flash": { "name": "DeepSeek V4.1 Flash" } }
}
}
}Why three? Each AI SDK package speaks one dialect best: GPT models through OpenAI's own package, Claude through Anthropic's, and open models through the generic OpenAI-compatible one. You get native features — reasoning effort, thinking, caching — for each family.
Customising
- Default model: change the top-level
"model"toprovider/model-id. - Reasoning effort: the downloaded file includes variants (
low,medium,high…) for models that support them. - Fewer models: delete entries you don't use to keep the picker short.
Keep your key safe
opencode.json contains your key. Don't commit it to a public repository — add it to .gitignore, or keep the config in ~/.config/opencode/ instead of your project. If a key leaks, rotate it from the dashboard in one click.
One key for Claude, GPT, GLM, DeepSeek and more. Pay per token with crypto.
Get your API key