Use Mimxo AI with OpenCode
OpenCode supports any OpenAI-compatible provider. Add Mimxo AI once and switch between Claude, GPT, Gemini, DeepSeek and Qwen from the model picker.
1. Create a key
Sign up at mimxo.com, top up from $1 and create a key under API Keys. Export it: export MIMXO_API_KEY=sk-...
2. Add the provider
Add this to opencode.json (project) or ~/.config/opencode/opencode.json (global):
{
"$schema": "https://opencode.ai/config.json",
"provider": {
"mimxo": {
"npm": "@ai-sdk/openai-compatible",
"name": "Mimxo AI",
"options": {
"baseURL": "https://mimxo.com/v1",
"apiKey": "{env:MIMXO_API_KEY}"
},
"models": {
"claude-sonnet-5": { "name": "Claude Sonnet 5" },
"claude-opus-5": { "name": "Claude Opus 5" },
"gpt-6.1-sol": { "name": "GPT-6.1 Sol" },
"gemini-3.1-pro-preview": { "name": "Gemini 3.1 Pro" },
"deepseek-v4.1-flash": { "name": "DeepSeek V4.1 Flash" },
"qwen3.7-max": { "name": "Qwen 3.7 Max" }
}
}
},
"model": "mimxo/claude-sonnet-5"
}3. Pick a model
Restart OpenCode and choose mimxo/… in the model list. Any model ID from the model list works.
Recommended models
| Model | Provider | Input / 1M | Output / 1M | Cache read / 1M | List input / output |
|---|---|---|---|---|---|
qwen3.7-max | Alibaba Qwen | $0.4425 | $1.327 | $0.0885 | $1.475 / $4.425 |
claude-opus-5 | Anthropic | $1.5 | $7.5 | $0.15 | $5 / $25 |
claude-sonnet-5 | Anthropic | $0.6 | $3 | $0.06 | $2 / $10 |
deepseek-v4.1-flash | DeepSeek | $0.009 | $0.15 | $0.00769 | $0.03 / $0.5 |
gemini-3.1-pro-preview | $0.6 | $3.6 | $0.06 | $2 / $12 | |
kimi-k2.7-code | Moonshot Kimi | $0.2014 | $1.005 | $0.054 | $0.6712 / $3.35 |
gpt-6.1-sol | OpenAI | $0.6 | $3 | $0.03 | $2 / $10 |
glm-5.3 | Zhipu GLM | $0.42 | $1.32 | $0.042 | $1.4 / $4.4 |
Prices in USD per 1M tokens, read live from /api/pricing. "List" is the reference list price; Mimxo AI bills the first columns.
FAQ
Does tool calling work in OpenCode?
Yes. Mimxo AI passes OpenAI tool calls through to the upstream model.
Which model should I use for coding?
claude-sonnet-5 or gpt-6.1-sol for daily coding, claude-opus-5 for hard tasks, deepseek-v4.1-flash or qwen3.7-flash for cheap background work.
How much does it cost?
Mimxo AI bills every model at 0.3× list price per 1M tokens. Top-ups start at $1.
Other tools: Claude Code · OpenAI Codex CLI · Cursor · OpenClaw · Aider · Cline / Roo Code