The reporter, on 0.1.7 with the public key, saw only Big Pickle, Space Bunny Free and Muse Spark 1.3 Free: the three models the plugin knows offline. Two causes: - DOCS pointed at packages/web/src/content/docs/zen.mdx, which OpenCode removed on 2026-10-12 (anomalyco/opencode#54761, "replace old Zen and Go pages with V2 console docs"). It answers 404, so every discovery since was partial. The endpoint table now lives in services/www/src/docs/content/console/models.mdx; parseProtocolDocs reads its rows as they are. - A listed model the catalog (models.opencode.ai) didn't describe and the docs didn't name was left out. When the catalog can't be read, that is every listed model but the three in bootstrapProvider, which is the reporter's list exactly. bootstrapProtocols is now a snapshot of the console docs' free rows (2026-10-15), used under whatever the docs say, and bootstrapProvider gains the catalog's metadata for Cat Jam, Step 5 Preview, LongCat 2.5 Preview, MiMo-V2.6-Flash and Nemotron 3.5 Lightning Free. Not changed, on purpose: jev-1.13-free is a SystemOne decision model (docs: endpoint /v1/systemone, no AI SDK package), which can't answer a chat, so it stays out as SystemOne models always have. exo-free is "deprecated" in the catalog and not in Zen's /models list now. Tests (no network; the fixture server): "listed free models are offered when the catalog and the docs can't be read" (catalog 503, docs 404, listing big-pickle, step-5-preview-free, cat-jam-free, jev-1.13-free, paid -> the three free chat models only) and "reads the console docs' endpoint table, and Jev stays out as SystemOne" (literal rows from the new page). Both fail on 0.1.7's models.mjs/provider.mjs (2 fail, 170 pass) and pass with the change; bun test: 172 pass. bun scripts/check.mjs ok. Real use (live Zen, public key, this checkout): discovery now lists big-pickle cat-jam-free longcat-2.5-preview-free mimo-v2.6-flash-free muse-spark-1.3-contributor-free nemotron-3.5-lightning-free space-bunny-free step-5-preview-free, not fallen back (0.1.7: the same eight with the docs 404 marking it partial). A request to cat-jam-free through the plugin's fetch streamed 200; step-5-preview-free answered Zen's own 429 "Upstream request failed: Endpoint is unavailable." twice. The reporter's catalog failure itself wasn't reproduced from here.
OpenCode Zen Free
OpenCode Zen's free models in magpie and OpenCode. Provider id:
opencode-zen-free.
Since 2026-10-13 Zen's free tier answers 403 FreeTierError ("can only be used from within OpenCode") to a request that isn't OpenCode's. From 0.1.6 the plugin sends a free-model request with exactly the headers OpenCode 1.19.0 sends to Zen, and a session id of OpenCode's own form. Older versions (0.1.1 on npm before it) get the 403: update the plugin.
Install
magpie plugin add @magpie-community/opencode-zen-free-auth
magpie plugin login opencode-zen-free
Sign in
Enter public in the key field. No personal API key is needed.
The credential is kept in OpenCode's auth.json or magpie's
plugin-auth.json.
Models
The plugin discovers Zen's current free models, including their context
windows and reasoning levels. Use opencode-zen-free/<model>, for example
opencode-zen-free/big-pickle.
Retired models and SystemOne models are excluded. The list is asked again each time the host lists models (magpie does this on start and every hour): a model Zen no longer gives free leaves it, and a new free one joins it. When Zen's list can't be read, the last list is kept. A request for a model that isn't free now gets a 404 naming the free ones; one made free since the last list is served after the list is asked again (at most once a minute). Availability and rate limits are set by Zen; the plugin has no remaining-quota data.
Requests
Requests go to https://opencode.ai/inference/v1 using each model's native
Chat Completions, Responses or Anthropic Messages API. Streaming and
ordinary JSON replies are supported.
The agent's tools are preserved. Zen's models often call OpenCode's own
tool names; such a call is given the agent's tool whose name differs only
in case (bash to Bash), or else only in case and _/- (todowrite
to todo_write, webfetch to web_fetch), when exactly one does. A
call with no such tool (or with no name) is left out of the reply, and
the reply's text says which name was left out; a turn whose every call
was left out ends as an ordinary answer. Tools run in the agent.
Zen's free tier only answers a request that carries tools, so a request
is sent with the five core OpenCode tools the agent doesn't declare
itself (bash, edit, glob, grep, read), described as not
available. A call of one of them the agent doesn't have is left out like
any other.
Now and then Zen closes a streamed Chat Completions reply before its
[DONE]. When the reply has said something and no tool call of it is
unfinished, it ends there as an ordinary answer, and its text says it was
cut short; asking again goes on. A reply cut short with a tool call
unfinished, with nothing said, or collapsed for a client that doesn't
stream fails with an error naming the reply's id and how much of it came.
An Anthropic Messages or Responses reply cut short fails too: magpie
tells it from a whole one and, where the model can, goes on with it.