OpenCode Zen vs one key for every model

OpenCode Zen sells its tested models at list, from $20. The same ids run here under list, from $10. Both are a few lines in opencode.json; here are both, with the prices side by side.

Checked 2026-10-19

·All guides·Models

What OpenCode Zen is

OpenCode Zen is OpenCode's own paid gateway: a curated set of models the OpenCode team has tested and benchmarked for coding agents, sold pay as you go at the developer's list price. You add a $20 balance (plus a $1.23 card processing fee), it auto-reloads $20 when you drop under $5, and you select models as opencode/<model-id> after /connect. Models are hosted in the US and EU under zero-retention terms with listed exceptions. Read 2026-10-19 from opencode.ai; the docs now call it OpenCode Console.

A key from here is the other kind of provider: one base URL for 492 chat models and 116 image, video, speech and 3D models, priced under the developer's list, from $10 with no auto-reload unless you turn it on. Both are a few lines in opencode.json. The rest of this page puts the two side by side, then gives the setup.

How expensive is OpenCode Zen? Zen vs this key, per million tokens

ModelZen inputHere inputZen outputHere outputZen cachedHere cached
Claude Sonnet 5.5$2.00$1.20$10.00$3.00$0.20$0.075
Claude Opus 5.5$4.00$2.80$20.00$10.00$0.20$0.15
Claude Haiku 5.5$0.10$0.06$0.50$0.15$0.01$0.01
GPT-6.1 Sol$2.00$0.60$10.00$3.00$0.20$0.06
Gemini 3.1 Pro Preview$2.00$1.20$12.00$7.20$0.20$0.12
DeepSeek V4 Pro 0813$1.74$0.792$3.48$1.188$0.145$0.0625
Kimi K3$3.00$0.90$15.00$4.50$0.30$0.12

USD per million tokens. Zen: its Console pricing table at opencode.ai, read 2026-10-19; the tiers shown are the base context tiers (Zen bills GPT 6.1 Sol and Gemini 3.1 Pro at double past 272K and 200K tokens). Here: live from GET /v1/catalog. Zen's gemini-3.1-pro and deepseek-v4-pro are gemini-3.1-pro-preview and deepseek-v4-pro-0813 here.

Zen's rates are the developers' list prices, by design: OpenCode says it sells at cost and passes price drops along, with only card fees on top. An hour of agent work on Claude Sonnet 5.5, modelled as 3M input tokens with 80% cache reads and 150k output tokens, is $3.18 at Zen's rates and $1.35 here. The Claude Code pricing post works the same hour into days and months.

Is OpenCode Zen a good deal?

OpenCode ZenThis key
Price basisdeveloper's list, zero markupunder the developer's list, per model
To start$20 + $1.23 card fee$20
Reloadauto $20 under $5 (can be changed or off)manual, or auto top-up if you set it
Modelsa tested coding list: Claude, GPT, Gemini, Grok, DeepSeek, Kimi, GLM, Qwen, MiniMax, free models492 chat models plus 116 image, video, speech and 3D models on the same key
Formatsper-vendor endpoints under opencode.ai/inferenceOpenAI, Anthropic and Gemini formats on one base URL
Receiptsconsole billingsigned receipts and statements, verifiable at /statements/verify
Price lockfollows the developer30 days from each top-up
Model checkbenchmarked by OpenCodecalled once a day, public at /proof

Zen column from opencode.ai/zen and its Console docs, read 2026-10-19.

Zen is a good deal if what you want is OpenCode's testing and nothing cheaper than list. If you want the same ids for less, or one key that also makes images and video, the block below is the alternative. The two can coexist: OpenCode lets you keep several providers and pick per session.

Where the settings are

opencode.json in the project root, or ~/.config/opencode/opencode.json for every project. OpenCode merges the two; the project file wins on keys that clash.

Keys saved with /connect live in ~/.local/share/opencode/auth.json.

The provider block

OpenCode only takes an OpenAI-compatible base URL for a custom provider, so use the @ai-sdk/openai-compatible package. Every id under models shows up in the /models picker. Any id on the Models page works, Claude included.

opencode.json
{
  "$schema": "https://opencode.ai/config.json",
  "provider": {
    "uplinkswitch": {
      "npm": "@ai-sdk/openai-compatible",
      "name": "UplinkSwitch",
      "options": {
        "baseURL": "https://api.uplinkswitch.com/v1",
        "apiKey": "{env:UPLINKSWITCH_API_KEY}",
        "headers": {
          "HTTP-Referer": "https://uplinkswitch.ai",
          "X-Title": "OpenCode"
        }
      },
      "models": {
        "claude-sonnet-5-5": { "name": "Claude Sonnet 5.5" },
        "claude-opus-5-5": { "name": "Claude Opus 5.5" },
        "gpt-6.1-sol": { "name": "GPT-6.1 Sol" },
        "gemini-3.1-pro-preview": { "name": "Gemini 3.1 Pro" },
        "deepseek-v4-pro-0813": { "name": "DeepSeek V4 Pro" },
        "kimi-k3": { "name": "Kimi K3" }
      }
    }
  },
  "model": "uplinkswitch/claude-sonnet-5-5",
  "small_model": "uplinkswitch/claude-haiku-5-5"
}

model and small_model take provider/model. Each model entry can also carry limit.context and limit.output (tokens in, tokens out) if you want OpenCode to budget context for it. options.headers goes out with every request; the gateway records X-Title as the client app against each request in its log, so the usage shows under OpenCode in the console.

The key

{env:UPLINKSWITCH_API_KEY} reads the variable at start. An unset variable becomes an empty string, so export it before you run OpenCode:

shell
export UPLINKSWITCH_API_KEY="sk-uplink-live-..."
opencode

Or skip options.apiKey and store the key with /connect: scroll to Other, enter the provider id uplinkswitch, paste the key. The id must match the key you used under provider.

The V2 providers block, read 2026-11-27

OpenCode's provider docs now show a V2 shape: a providers map (plural) with package, env and settings.baseURL, and the published schema at opencode.ai/config.json still lists the older provider key used above, marked deprecated. We checked every key in this block for the two abliterated ids against that schema by hand, not in a running OpenCode, so treat it as the documented form rather than a tested one. The context limits are the catalog's windows; GLM 5.3 Abliterated publishes no maximum output, so its 32000 is our own setting.

opencode.jsonc
{
  "$schema": "https://opencode.ai/config.json",
  "providers": {
    "uplinkswitch": {
      "name": "UplinkSwitch",
      "env": ["UPLINKSWITCH_API_KEY"],
      "package": "@opencode/ai/providers/openai-compatible",
      "settings": { "baseURL": "https://api.uplinkswitch.com/v1" },
      "models": {
        "glm-5.3-abliterated": {
          "name": "GLM 5.3 Abliterated",
          "capabilities": { "tools": true },
          "limit": { "context": 131072, "output": 32000 }
        },
        "deepseek-v4.1-flash-1017-abliterated": {
          "name": "DeepSeek V4.1 Flash Abliterated",
          "capabilities": { "tools": true },
          "limit": { "context": 1000000, "output": 128000 }
        }
      }
    }
  },
  "model": "uplinkswitch/deepseek-v4.1-flash-1017-abliterated"
}

What we did measure is the route underneath. The same model ids sent as a growing /chat/completions conversation, the OpenAI-compatible format the package is named for, read the prompt back from the cache on every turn after the first: 97.9% of prompt tokens on GLM 5.3 Abliterated, 99.2% on DeepSeek V4.1 Flash Abliterated. Kilo Code's CLI, whose config takes the older block shape, ran against both ids the same day and edited files on both; the Kilo Code guide has that run.

Tool calling on both ids went through 840 test requests that day across every route that serves them. The cases (auto choice, two calls in one turn, strict nested schema, tool result turn, streaming, Anthropic format) passed on all routes but for one dropped connection; forced choice on GLM failed on some routes, and the gateway now sends that request again to another route. Nothing beyond those cases was tested.

ModelPriced at20-turn session
GLM-5.3 Abliteratedthis API$0.7023
DeepSeek V4.1 Flash 1017 Abliteratedthis API$0.1505
Claude Sonnet 5.5developer list$0.2028
Claude Opus 5.5developer list$0.4056

A 20-turn agent session at live prices, using the token counts of one Claude Code run on GLM 5.3 Abliterated (2026-11-27); the Claude rows are at Anthropic's list price.

The Zen block, for comparison

Zen needs no provider block: run /connect, choose the OpenCode pay-as-you-go provider, paste the key from the OpenCode console, and name models as opencode/<id>.

opencode.json (Zen)
{
  "$schema": "https://opencode.ai/config.json",
  "model": "opencode/claude-sonnet-5-5",
  "small_model": "opencode/claude-haiku-5-5"
}
// after /connect -> OpenCode (pay as you go) and the key from opencode.ai/auth

Keep both and switch with /models; OpenCode remembers the last pick per project.

Check it

Confirm the key before you open the TUI:

shell
curl https://api.uplinkswitch.com/v1/models \
  -H "Authorization: Bearer $UPLINKSWITCH_API_KEY" \
  -H "HTTP-Referer: https://uplinkswitch.ai" \
  -H "X-Title: OpenCode"

Then run opencode and /models. UplinkSwitch and the ids you listed appear in the picker. opencode auth list shows the stored credential if you used /connect. The first request shows in our console within seconds, with its token counts and price.

Good to know

  • @ai-sdk/openai-compatible calls /v1/chat/completions. OpenCode reserves @ai-sdk/openai for /v1/responses; use the compatible package here.
  • Only the ids you list are offered. Add a new one to models when the Models page gains it.
  • small_model handles light work such as titles. Leave it out and OpenCode picks a cheaper model from the provider if it finds one, otherwise the main model. Zen does the same with Haiku, Nano or Flash, which is why those show in a Zen usage history.
  • blacklist and whitelist on the provider hide or keep ids in /models, by the same ids.
  • Cached input bills at the cache-read price on the model page by itself; there is no switch to set.

The same key in other agents

Claude Code takes two environment variables; Cline, Kilo Code and Zoo Code (the fork that replaced Roo Code) take the base URL and key in a settings panel; OpenClaw reads a provider block much like OpenCode's. One balance serves all of them, and a key per tool keeps the spend apart in the console.

Questions

Zen sells OpenCode's tested models at the developer's list price ("zero markups"), plus the card fee of 4.4% + $0.30 a top-up, from a $20 opening balance (opencode.ai, read 2026-10-19). Its value is the curation and the testing, not the price: every model in it costs what the developer charges. The same ids here are priced under list, from $10, as the table above shows, and the setup is one provider block.

Per million tokens, Zen's own table lists Claude Sonnet 5.5 at $2.00 in and $10.00 out, Claude Opus 5.5 at $4.00 and $20.00, GPT 6.1 Sol at $2.00 and $10.00, Gemini 3.1 Pro at $2.00 and $12.00, DeepSeek V4 Pro at $1.74 and $3.48 and Kimi K3 at $3.00 and $15.00 (read 2026-10-19). An hour of agent work on Sonnet 5.5 as modelled above is $3.18 at Zen's rates and $1.35 here.

Zen (now called OpenCode Console in the docs) is pay as you go: a $20 balance, per-request billing at list, auto-reload of $20 when the balance drops under $5. Go is OpenCode's subscription with included usage. Both use the same OpenCode API key and the same opencode/<model-id> ids (read 2026-10-19); OpenCode's docs say Go suits heavy continuous use and Zen variable use.

OpenCode does not rank them; it says each model and provider pair in Zen was tested and benchmarked for coding agents. The ids are the familiar ones, Claude Sonnet and Opus, GPT 6.1 Sol, Gemini 3.1 Pro, DeepSeek V4 Pro, Kimi K3, GLM 5.3, so the choice is the same as anywhere: a flagship for planning and hard edits, a cheaper model as small_model for titles and summaries. The same ids run here at the prices in the table.

Zen's endpoints sit under opencode.ai/inference, one path per vendor format, and the key comes from the OpenCode console after /connect; the docs list the endpoint per model (read 2026-10-19). Here the base URL is https://api.uplinkswitch.com/v1 for every model, the key comes from our console, and OpenCode reaches it through the @ai-sdk/openai-compatible provider block on this page.

Yes. OpenCode is free and open source, and Zen is one optional provider among 75+. Any OpenAI-compatible endpoint works through the block on this page; so do your own Anthropic, OpenAI or Google keys. OpenCode merges the global and project config, so the provider can live in your dotfiles.

Yes, a changing list of free and stealth models (GLM-5.3-Flash Free, DeepSeek V4.1 Flash Free, Nemotron free endpoints and others, read 2026-10-19), some of which may use your prompts to improve the model during the free period per OpenCode's privacy notes. This key has no free tier: every model bills per token from prepaid credit.

Every chat model on the list, Claude included: list the ids you want under models and they appear in /models. Tool calling, streaming and caching work through the compatible package; cached input bills at the cache-read price on the model page by itself.
Join on Telegram
Help