GuidesHosting choices

OpenCode Zen: pay-as-you-go models, prices and API keys

OpenCode Zen, now OpenCode Console: credit and the 4.6% + $0.31 fee, model prices, the API key in OpenCode, Claude Code or Codex, data retention, and Go.

November 22, 2026The Everpod team
The short answer

OpenCode Zen is OpenCode’s pay-as-you-go model gateway, now named OpenCode Console on OpenCode’s site and docs. You sign in at opencode.ai/console, buy credit ($10, $50, $100 or any amount, plus a 4.6% + $0.31 card fee per purchase), copy an API key, and in OpenCode run /connect, pick the OpenCode pay-as-you-go provider and paste the key. Each request is charged per token at the listed price, for example Claude Sonnet 5.5 at $2 in and $10 out per million tokens, Kimi K3 at $3 and $15, DeepSeek V4.1 Flash at $0.12 and $0.48 (as of November 22, 2026). Models are named opencode/<model-id>. The same key works in Claude Code, Codex and other agents through OpenCode’s opencode.ai/inference endpoints. OpenCode Go is the other offer: a $10 monthly subscription with usage limits instead of a balance.

Zen and Console are the same thing

OpenCode launched the gateway as Zen. As of November 22, 2026, the page at opencode.ai/docs/zen is titled “Console models” and never says Zen, and opencode.ai/zen opens “Models | OpenCode Console”. The old name survives in places: the release notes for OpenCode 2.3.2 (November 18) still list “Zen” among the providers. Whichever name you meet, it is a prepaid balance, an API key, and a catalogue of models OpenCode has tested, which its docs say are sold at cost, with nothing added beyond the card fee.

It is optional. OpenCode runs with any provider, a ChatGPT plan, a local model or its own free models; how those compare on price is in what OpenCode costs.

How the billing works

From the billing docs:

The billing page says nothing about credit expiring or being refunded.

Models and prices

A selection from the full table, per million tokens, as listed on November 22, 2026. Where a row has two prices by context length, the first is up to the threshold.

ModelModel IDInputOutputCached read
Claude Fable 5.2
claude-fable-5-2$8.00$40.00$0.20
Claude Opus 5.5
claude-opus-5-5$4.00$20.00$0.20
Claude Sonnet 5.5
claude-sonnet-5-5$2.00$10.00$0.10
Claude Haiku 5.5 (up to 100K)
claude-haiku-5-5$0.10$0.50$0.01
GPT 6.2 Astra (up to 272K)
gpt-6.2-astra$8.00$40.00$0.40
GPT 6.2 Sol (up to 272K; $4 / $15 above)
gpt-6.2-sol$2.00$10.00$0.10
Gemini 4 Argon (50% off)
gemini-4-argon$2.00$10.00$0.10
Grok 4.7 (up to 200K)
grok-4.7$2.00$6.00$0.50
Qwen3.8 Max
qwen3.8-max$2.00$6.00$0.25
Kimi K3
kimi-k3$3.00$15.00$0.30
GLM 5.3 (60% off)
glm-5.3$0.56$1.76$0.104
MiniMax M3
minimax-m3$0.30$1.20$0.06
DeepSeek V4.1 Flash (60% off)
deepseek-v4.1-flash$0.12$0.48$0.0024

The discounts are marked as such on OpenCode’s table, with the full price struck through, so expect them to end. Older models stay listed for a while (Claude Opus 4.5 through 5, GPT 5 through 5.6, the Gemini 3.x Flash line) and the top of the range is GPT 5.5 Pro at $30 in and $180 out. The catalogue also holds image models, embedding models, and Jev and the “Decision” models, which return a typed answer such as yes or no rather than text; none of these are chat models. Retired models get a date in the docs’ deprecation table (LongCat 2.5 Free went on November 22, GLM 5.2 on November 19).

To read the arithmetic: a session that sends 2 million input tokens and gets 200,000 back on Sonnet 5.5 costs $4 plus $2, $6, before any cache discount; the same on DeepSeek V4.1 Flash at today’s discount is about $0.34. That is arithmetic on the listed prices, not a measure of what a typical session uses. The full current list, with each model’s metadata, comes from the models endpoint, which the docs call with no key:

curl https://opencode.ai/inference/v1/models
Copied

The free models in the table (Big Pickle, DeepSeek V4.1 Flash Free, the Nemotron endpoints and others) are covered, with their catches, in OpenCode’s models guide. Set OPENCODE_DISABLE_FREE_MODELS=1 to hide them from the model list.

Getting a key and using it in OpenCode

  1. Sign in at opencode.ai/console, add a card and credit.
  2. Create a personal API key and copy it straight away; it is shown only once. Keys look like oc_sk_..., and usage on a key counts toward its member’s budget.
  3. In OpenCode, run /connect, choose the OpenCode pay-as-you-go provider, and paste the key.
  4. Run /models and pick one. Console models appear as opencode/<model-id>; Go models as opencode-go/<model-id>.

To make one the default, set it in your config, as in the docs’ own example:

{
  "$schema": "https://opencode.ai/config.json",
  "model": "opencode/gpt-6.1-sol"
}
Copied

Which file that goes in, and which file wins when a project and your home directory both set a model, is in OpenCode’s config guide. If a new key is refused with “Invalid credential”, or a paid model answers “Insufficient account funds” when you meant to use Go, see the invalid-credential fixes.

Using the key in Claude Code, Codex and other agents

The docs say plainly that “Console works with coding agents other than OpenCode.” Each model is served on its maker’s native API (Anthropic Messages for Claude, OpenAI Responses for GPT and Grok, Gemini’s own API, OpenAI-style chat completions for Kimi, GLM, DeepSeek and MiniMax), and the gateway translates, so any text model also works through the other formats. One exception: “Free-tier chat models are only available from within OpenCode.”

Claude Code, from OpenCode’s Claude Code page:

export ANTHROPIC_BASE_URL="https://opencode.ai/inference/anthropic"
export ANTHROPIC_AUTH_TOKEN="oc_sk_..."
claude --model claude-sonnet-5-5
Copied

Leave /v1/messages off the base URL; Claude Code adds it. To make it permanent, put the same variables in ~/.claude/settings.json, and set ANTHROPIC_DEFAULT_OPUS_MODEL, ANTHROPIC_DEFAULT_SONNET_MODEL and ANTHROPIC_DEFAULT_HAIKU_MODEL to Console model IDs so /model and background tasks use them; any model in the table works, GPT and Gemini included. /status shows whether the base URL and token took. This bills your Console balance per token; it has nothing to do with a Claude subscription.

Codex, from the Codex page, in ~/.codex/config.toml:

model = "gpt-6.1-sol"
model_provider = "opencode"

[model_providers.opencode]
name = "OpenCode Console"
base_url = "https://opencode.ai/inference/openai/v1"
env_key = "OPENCODE_API_KEY"
wire_api = "responses"
Copied

Then export OPENCODE_API_KEY="oc_sk_..." before running codex, and codex --model claude-sonnet-5-5 switches model for one run.

OpenCode also has setup pages for Hermes, Pi and Raycast, and a setup command that writes the config for you, for example npx @opencode/console setup codex or npx @opencode/console setup claude-code. For anything else that speaks one of these APIs, the endpoints table gives each model’s URL and the AI SDK package to call it with.

Agents that support MCP can also manage the workspace itself through the Console MCP server at https://opencode.ai/console/mcp, signing in through the browser rather than with a key, for example:

claude mcp add --transport http --scope user opencode-console https://opencode.ai/console/mcp
Copied

Where your prompts go

The docs say “All our models are hosted in the US and EU”, and that providers generally keep nothing and do not train on what you send. The exceptions are listed by provider, and they are the ones most people pick:

So the paid Console models carry the same retention as calling the provider directly, and the free ones are for work you would not mind being read.

Zen or Go

OpenCode Go is a subscription rather than a balance: $10 a month, or $40 for Go Plus, for a lineup of 31 mostly open-weight models on the Go page as of November 22. The paid models share one monthly dollar allowance, of which 20% can be used in any five hours and half in a week (the week resets Monday 00:00 UTC). It suits steady daily use of the open models; Console suits occasional use, the frontier models, or a team that wants per-member budgets. The two live in the same workspace: Go can be paid from Console credit, and with Extra Usage on, use past a Go limit is paid from the balance. For other agents Go has its own base URLs under https://opencode.ai/inference/go. Go’s limits per model and what counts against them are in the OpenCode Go guide.

Run OpenCode on an always-on developer pod.

A developer pod is a permanent cloud computer (VPS), set up and secured for you, with your pick of Claude Code, Codex, OpenCode, Pi, Hermes and OpenClaw installed. Run more agents at once than your laptop can hold, and keep them working when it’s closed. From $24 a month, built in about ten minutes.