Use OpenCode with the LLM gateway
OpenCode can use OpenAI-compatible providers from
~/.config/opencode/opencode.json.
Add the gateway as a provider and keep using OpenCode while it chooses the right model for each coding request.
82 models routed through the gateway over the last 30 days.
Why use OpenCode with the gateway
Coding assistants mix simple edits, long-context search, and hard reasoning. The gateway lets OpenCode keep one stable model name while routing those requests across your providers, subscription plans, local models, and fallbacks.
- Use one manifest/auto model in OpenCode
- Route easy edits to cheaper models and hard changes to stronger ones
- Fallback across providers when quota or rate limits hit
- Track token usage, cost, model choice, and failures in one dashboard
- Keep the OpenCode workflow unchanged
- Self-host the gateway or use Manifest Cloud
Setup in 60 seconds
Add the gateway as an OpenAI-compatible provider in your global
opencode.json config and set the default
model to manifest/auto.
Add this block to ~/.config/opencode/opencode.json.
{
"$schema": "https://opencode.ai/config.json",
"provider": {
"manifest": {
"npm": "@ai-sdk/openai-compatible",
"name": "Manifest",
"options": {
"baseURL": "https://api.manifest.build/v1",
"apiKey": "mnfst_YOUR_KEY"
},
"models": {
"auto": {
"name": "Manifest Auto"
}
}
}
},
"model": "manifest/auto"
}
https://api.manifest.build/v1
mnfst_YOUR_KEY
manifest/auto
OpenCode tokens processed by the gateway
Models in use
# Model |
Auth type | Tokens / last 30 days |
|---|---|---|
1.Deepseek Flash | Subscription | 3.0 B |
2.Openrouter Free | API Key | 308 M |
3.Deepseek V4.1 Flash | Subscription | 293 M |
4.Grok 4.6 | Subscription | 242 M |
5.Glm 5.3 Flash | Subscription | 132 M |
6.X Preview F Free | API Key | 95 M |
7.Minimax M3 | Subscription | 58 M |
8.Glm 5.3 | Subscription | 39 M |
9.Gemini Flash Lite Latest | API Key | 39 M |
10.Glm 5.1 | Subscription | 27 M |
11.Glm 5.3 | API Key | 27 M |
12.Deepseek V4 Pro | API Key | 25 M |
13.Nemotron 3 Ultra 550b A55b | API Key | 22 M |
14.Kilo Auto Free | API Key | 14 M |
15.Nex N2.5 Pro | API Key | 7 M |
16.Mimo V2.5 | Subscription | 7 M |
17.Qwen3.8 Max | Subscription | 4 M |
18.Big Pickle | API Key | 2 M |
19.Gpt 5.5 | Subscription | 2 M |
20.Gemini Flash Latest | API Key | 2 M |
21.Laguna Xs 2.1 | API Key | 1 M |
22.Deepseek V4 Flash Free | API Key | 1 M |
23.Kimi K3 | Subscription | 1 M |
24.Mimo V2.5 Free | API Key | 1 M |
25.Gemini 3.5 Flash Lite | API Key | 915 K |
26.Deepseek V4 Flash | API Key | 822 K |
27.Gpt 5.6 Luna | Subscription | 729 K |
28.Gemini 3.7 Flash | API Key | 674 K |
29.Nemotron 3 Nano Omni 30b A3b Reasoning | API Key | 638 K |
30.Gpt 5.6 Luna | Subscription | 571 K |
31.Deepseek V4 Flash:0731 | Subscription | 523 K |
32.Glm 5.2 | Subscription | 321 K |
33.Union Alpha | API Key | 317 K |
34.Qwen3.8 27B | API Key | 312 K |
35.Gemini 3.6 Flash | API Key | 164 K |
36.Gemini 3.5 Flash | API Key | 64 K |
37.Glm 4.5 Air | Subscription | 21 K |
38.Deepseek V4 Pro 0813 | API Key | 17 K |
39.Deepseek V4 Flash | Subscription | 9 K |
40.Hy3 Free | API Key | 9 K |
41.Gemma4:31b | Subscription | 7 K |
42.Deepseek V4 Pro | Subscription | 7 K |
43.Gpt 5.6 Sol | Subscription | 2 K |
44.Ling 3.0 Flash Fin | API Key | 473 |
45.Nemotron 3 Ultra | Subscription | 458 |
46.Nemotron 3 Nano:30b | Subscription | 410 |
47.Gpt Oss:120b | Subscription | 403 |
48.Gpt Oss:20b | Subscription | 394 |
49.Gemini 3.8 Flash | API Key | 372 |
50.Deepseek V4 Flash 0731 | API Key | 323 |
51.Dots 3 Note Preview | API Key | 309 |
52.Lfm 2.5 2.6b | API Key | 188 |
53.North Mini Code | API Key | 160 |
54.Qwen3.8 27b | API Key | 146 |
55.Nemotron 3 Super | Subscription | 128 |
56.Nemotron 3 Nano Omni 30b A3b Reasoning | API Key | 123 |
57.Ling 3.0 Flash Sante | API Key | 115 |
58.Ling 3.0 Flash Vl | API Key | 109 |
59.Nemotron 3 Super 120b A12b | API Key | 98 |
60.Nemotron 3.5 Lightning | API Key | 76 |
61.Ministral 8b 2512 | API Key | 48 |
62.Gemini 3.5 Transcribe | API Key | 42 |
63.Nex N2.5 Mini | API Key | 36 |
64.Gemini 2.5 Flash | API Key | 34 |
65.Gemma 4 26b A4b It | API Key | 30 |
66.Gemini 3 Flash Preview | API Key | 30 |
67.Gpt 4o | API Key | 26 |
68.Gemma 4 31b It | API Key | 22 |
69.Gemini 3.1 Flash Lite | API Key | 22 |
70.Gemini 3.1 Flash Lite Preview | API Key | 22 |
71.Gemini 2.5 Flash Lite | API Key | 16 |
72.Codestral 2508 | API Key | 10 |
73.Ministral 14b 2512 | API Key | 10 |
74.Ministral 3b 2512 | API Key | 10 |
75.Codestral Latest | API Key | 5 |
76.Ministral 14b Latest | API Key | 5 |
77.Ministral 3b Latest | API Key | 5 |
78.Ministral 8b Latest | API Key | 5 |
79.Mistral Code Fim Latest | API Key | 5 |
80.Mistral Code Latest | API Key | 5 |
81.Voxtral Small 2507 | API Key | 5 |
82.Voxtral Small Latest | API Key | 5 |