/docs/openchamber says how magpie runs OpenChamber, the desktop, web and
VS Code front end for OpenCode, on magpie's models: its profile in
$OPENCHAMBER_DATA_DIR (~/.config/openchamber), preferences.json and the
settings.json copy older builds read; the order a new session's model is
picked in (project defaultModel, profile defaultModel, the agent's,
OpenCode's model), so magpie sets the profile's; a project's own default
named; defaultVariant cleared on a new model; the small model
(smallModelUseDefault false + smallModelOverride, else OpenCode's
small_model); magpie's provider in the OpenCode config, a user's own
gateway provider reused, OpenCode 2's words, the provider taken out once
unused; new sessions taking the change; switching back. Each claim is
from internal/agent/openchamber.go (its header, Notice, the model and
small fields, tidy) and openCodeRef in agents.go. Linked from each
language's OpenCode page; in the sitemap, llms.txt and llms-full.txt.
Run: the three pages' JSON-LD parsed with node; llms-full.mjs rebuilt;
node --test site/*.test.mjs on the WSL box (magpie-desktop, wsl-run):
115 pass, 0 fail.
Not tried: OpenChamber itself on magpie for this page; it names only
what magpie's source says.
/docs/stepfun says how to use StepFun (阶跃星辰) in Claude Code, Codex,
Gemini CLI and OpenCode through magpie: the China (stepfun-cn,
api.stepfun.com) and international (stepfun, api.stepfun.ai) sites as
separate accounts; the Step Plan at /step_plan/v1 and /step_plan, its
key refused at pay as you go's; no Responses, so Codex's requests are
converted; the plan catalogs' models; the balance from /v1/accounts in
yuan or dollars, and the 5-hour and weekly windows told only to a
platform sign-in brought over by the bookmarklet and paste. From
internal/provider/presets.go (stepfun, stepfun-cn), stepfun_plan.go's
header, balance.go and the bundled catalog.
/docs/longcat says the same for Meituan's LongCat: one host,
api.longcat.chat, for longcat.chat's and longcat.ai's accounts; Chat
Completions and Responses under /openai/v1, Anthropic under
/anthropic; the key as a Bearer (x-api-key alone is missing_api_key),
which magpie's default of both headers covers; the list at
/openai/v1/models. From presets.go (longcat), longcat_test.go and
authheader.go.
Both linked from each language's "By provider" line after Xiaomi MiMo
(33 pages), in the sitemap, llms.txt and llms-full.txt.
Run: the six pages' JSON-LD parsed with node; llms-full.mjs rebuilt;
node --test site/*.test.mjs on the WSL box (magpie-desktop, wsl-run):
115 pass, 0 fail.
Not tried: a StepFun or LongCat key on magpie for these pages; they
name only what magpie's source says.
/docs/huaweicloud says how to use Huawei Cloud ModelArts MaaS's Token
Plan (personal accounts, 西南-贵阳一) and pay as you go in Claude Code,
Codex, Gemini CLI and OpenCode through magpie: /plan/v2 and
/plan/anthropic, where alone the plan's quota is spent, beside
/openai/v1 and /anthropic; no Responses, so Codex's requests are
converted; the plan's models before the list is fetched (glm-5.3,
glm-5.1, kimi-k2.6, deepseek-v4.1-flash, deepseek-v4-flash), lowercase
as its OpenClaw page has them. From internal/provider/presets.go
(huaweicloud) and huaweicloud_test.go.
/docs/xiaomi-mimo says the same for Xiaomi MiMo's platform: a tp- key
spent only at its region's host (token-plan-cn, -sgp, -ams) and pay as
you go at api.xiaomimimo.com, each with Chat, Responses and Anthropic;
each region's catalog; the plans' $0 prices kept out of pricing
(membershipCatalogs, #1873); the MiMo app subscription served by
@magpie-community/opencode-mimo-auth, not this provider. From
presets.go (xiaomi), internal/provider/models.go and the bundled
catalog.
Both linked from each language's "By provider" line after ModelScope
(33 pages), in the sitemap, llms.txt and llms-full.txt.
Run: the six pages' JSON-LD parsed with node; llms-full.mjs rebuilt;
node --test site/*.test.mjs on the WSL box (magpie-desktop, wsl-run):
115 pass, 0 fail.
Not tried: a Huawei Cloud or MiMo key on magpie for these pages; they
name only what magpie's source says.
/docs/siliconflow says how to use SiliconFlow (硅基流动) in Claude
Code, Codex, Gemini CLI and OpenCode through magpie: the China and
Global sites as separate accounts with a site per key; Chat Completions
only, so Claude Code's and Codex's requests are converted; model names
with their maker, as models.dev's siliconflow catalog has them; the
balance query retired on 2026-08-14, so the card points to the
console. From internal/provider/presets.go (siliconflow), balance.go
(readSiliconFlow, siliconFlowGone) and the bundled catalog.
/docs/modelscope says the same for ModelScope (魔搭) API-Inference: a
ModelScope access token as the key, not DashScope; Chat Completions
and Responses at api-inference.modelscope.cn/v1; a hand-added entry
there taken as ModelScope; its async image tasks drawn one at a time.
From presets.go (modelscope), nvidia_modelscope_test.go and
internal/gateway/draw_modelscope.go's header.
Both linked from each language's "By provider" line after Baidu
Qianfan (33 pages), in the sitemap, llms.txt and llms-full.txt.
Run: the six pages' JSON-LD parsed with node; llms-full.mjs rebuilt;
node --test site/*.test.mjs on the WSL box (magpie-desktop, wsl-run):
115 pass, 0 fail.
Not tried: a SiliconFlow key or ModelScope token on magpie for these
pages; they name only what magpie's source says.
/docs/tencent-cloud says how to use Tencent Cloud's TokenHub in Claude
Code, Codex, Gemini CLI and OpenCode through magpie: the Token Plan
(个人版 and 企业版, one set of endpoints under /plan, the key telling
the plan) and pay as you go (/v1, China and Global), and the enterprise
plan in Singapore; a plan per key; the plans' models given by magpie
since models.dev names only their Hy ones; the move from
api.lkeap.cloud.tencent.com; the enterprise quota read with the
account's SecretId and SecretKey onto the Usage page, the personal plan
having no API for it. From internal/provider/presets.go (tencent-cloud
and its comment) and tencent_usage.go's header and test.
/docs/baidu-qianfan says the same for Baidu Qianfan: Token Plan
Personal and Enterprise at /v2/tokenplan/{personal,team} and
/anthropic/tokenplan/{personal,team}, pay as you go at /v2 with its
list at /v2/models, the plans' /models being 404; the models magpie
gives, deepseek-v4-flash, deepseek-v3.2 and glm-5 the enterprise plan's
alone; qianfan-code-latest as the console's pick. From presets.go's
baidu-qianfan preset and comment.
Both linked from each language's "By provider" line after Volcengine
Ark (33 pages), in the sitemap, llms.txt and llms-full.txt.
Run: the six pages' JSON-LD parsed with node; llms-full.mjs rebuilt;
node --test site/*.test.mjs on the WSL box (magpie-desktop, wsl-run):
115 pass, 0 fail.
Not tried: a Tencent Cloud or Qianfan key on magpie for these pages;
they name only what magpie's source says.
/docs/volcengine says how to use Volcengine Ark (火山方舟) in Claude
Code, Codex, Gemini CLI and OpenCode through magpie: the Coding Plan,
Agent Plan and pay-as-you-go endpoints, and that a plan's quota is spent
only at its own (/api/coding/v3 and /api/coding, /api/plan/v3 and
/api/plan) while /api/v3 bills apart; a plan per key; the plans' models
from Ark's docs, since their /models doesn't list them, and which take
images; Claude Code on the plans' Anthropic endpoints and Codex on their
Responses; Ark running web_search itself and the include values it
refuses being left out; the Agent Plan's Seedream and Seedance through
Ark's async tasks; the 5-hour, weekly and monthly windows read with the
account's AccessKey ID and Secret. Each claim is from
internal/provider/presets.go (the volcengine preset, arkPlanModels,
arkPlanImages), volcengine_usage.go's header, and internal/gateway's
search_ark.go, draw_volcengine.go and video.go.
Linked from each language's "By provider" line beside GLM (claude-code,
codex, gemini-cli and opencode model pages and the provider pages); in
the sitemap, llms.txt and llms-full.txt.
Run: the three pages' JSON-LD parsed with node; llms-full.mjs rebuilt;
node --test site/*.test.mjs on the WSL box (magpie-desktop, wsl-run):
115 pass, 0 fail.
Not tried: an Ark key on magpie for this page; it names only what
magpie's source says.
/docs/openclaw says how magpie runs OpenClaw on magpie's models: the
magpie provider it adds to openclaw.json (the gateway's /v1, OpenAI chat
completions, a key of OpenClaw's own, one entry per model), the
magpie/<provider>/<model> refs, the primary model set with fallbacks
kept, magpie/* added to a non-empty allow list, 128K for an unknown
context, no restart but /model default for a chat that already has a
model, what is left alone (other providers, the user's own keys, a
per-agent model, $include, a JSON5 file), where the file is found
(OPENCLAW_CONFIG_PATH, _STATE_DIR, _PROFILE, _HOME) and
`magpie openclaw default`. Each claim is from internal/agent/openclaw.go
and the CLI's usage text. Linked from each language's OpenCode models
page; in the sitemap, llms.txt and llms-full.txt.
Run: the three pages' JSON-LD parsed with node; llms-full.mjs rebuilt;
mote: node --test worker.test.mjs install.test.mjs: 71 pass, 0 fail.
Not tried: OpenClaw itself on magpie for this page; it names only what
magpie's source says.
Each docs page in en, zh and ja (98 pages, contributors left out) gets
a schema.org BreadcrumbList: magpie (the language's home page) > Docs
(that language's start page) > the page's h1. Search results can then
show the path instead of a bare URL. The eleven pages that had no JSON-LD
at all (docker, remote, intent, plugins, import, integrate, library,
mcp-router, masking, start, privacy) also get a TechArticle built from
their h1, meta description and canonical URL, like the other pages.
zh pages' inLanguage is zh-CN everywhere, as the older pages had it.
Existing JSON-LD is only appended to (the diff has no deletions besides
the inLanguage fix).
Run: every docs page's JSON-LD parsed with node (98 with a
BreadcrumbList); mote: node --test worker.test.mjs install.test.mjs:
71 pass, 0 fail.
Not tried: Google's Rich Results Test on the deployed pages.
New /docs/anthropic and /docs/openai in en, zh and ja: adding the key,
endpoints, model list, each agent's route (pass-through or translated),
what magpie does for the vendor (Anthropic cache marks and thinking,
OpenAI prompt_cache_key, Responses vs Chat, priority tier), reasoning,
web search, cost, several keys, troubleshooting and a JSON-LD FAQ.
Every claim was checked against internal/provider, internal/gateway and
internal/catalog. The "By provider" line on 30 pages, sitemap.xml (99
URLs), llms.txt and the rebuilt llms-full.txt link them.
Run (wsl-run, magpie-desktop; mote refused ssh at the time):
node --test worker.test.mjs install.test.mjs: 71 pass, 0 fail. Each new
page's JSON-LD parsed with node.
Not tried: the pages in a real browser beyond the deployed 200 check.
For an OpenCode 2 magpie wrote OpenCode 1's opencode.json: its provider
under `provider`, the small model as `small_model`, and `reasoning: true`
on models that reason. OpenCode 2 converts the first two in memory, but
it doesn't read `reasoning` and logged a WARN for each such model on
every load ("configuration normalization diagnostic ... omitted
unsupported legacy setting", reproduced with a real OpenCode 2.2.6).
Now the OpenCode that reads the file decides its words (openCodeTwo in
opencode_v2.go: the opencode on PATH, or a WSL distro's probed version,
now asked for opencode too). For 2.x magpie writes `providers.magpie` in
OpenCode 2's shape (openCodeNative), `agents.title.model`, and no
`reasoning`. A file written for OpenCode 1 moves over on the next sync:
openCodeFromV1 ports migrateStandardProvider (v2.2.6) so the user's keys
in magpie's provider (headers, timeout, setCacheKey, their own variants,
limit.output) go along; an empty `provider` is dropped; a small_model
that isn't magpie's stays. OpenCode 1, or an unknown version, gets the
same output as before. OpenChamber writes the same file and takes the
same decision, so the two syncs don't undo each other. mimocode, DevEco
Code and Air keep OpenCode 1's words.
Run:
- gofmt; go vet ./internal/agent for darwin, linux (-tags nogui) and
windows (mote): clean.
- go test -count=1 ./internal/agent on mote: ok, at the rebased head.
- win-run go test -run 'OpenCode|OpenChamber|WSL' ./internal/agent: ok.
- Real binaries on mote, sandbox HOMEs, `opencode debug config
--print-logs`: the file magpie now writes for OpenCode 2 loads in
OpenCode 2.2.6 with no WARN/ERROR, and resolves (model, agents,
providers) exactly as 2.2.6 resolves the OpenCode 1 file it replaces;
the OpenCode 1 file loads in 1.19.5 with no WARN, small_model and
reasoning intact. The old file in 2.2.6 still shows the reasoning WARN.
Broken by hand:
- openCodeTwo always false: TestOpenCode2WritesItsOwnWords,
TestOpenCode2MovesAnOpenCode1File, TestOpenChamberAndOpenCode2AgreeOnWords
and TestOpenCodeTwo red.
- moveProvider not carrying the v1 block over: the move test red on the
user's timeout.
- moveSmall off: the move test red on agents.title.model.
Not tried: a real OpenCode 1 desktop app reading a file written for an
OpenCode 2 CLI on PATH (it would see no magpie provider; 1.19.5 logs
`providers` as not representable); Air's bundled OpenCode version; a real
WSL distro with OpenCode 2.
/docs/mistral and /docs/ollama (with zh/ and ja/) answer "how do I use
Mistral / Ollama in Claude Code, Codex, Gemini CLI and OpenCode".
Facts come from the source: the mistral, ollama and ollama-cloud
presets in internal/provider/presets.go, chattidy.go (thinking parts,
#483, #494), mistral_plan.go, ollama_usage.go, local_address.go,
gateway/ollama.go, and the usage text of internal/cli/providers_cli.go
and model_cli.go for every CLI example (provider add, fallback, models
+id, model price, model efforts).
Every docs page with a "By provider" line now lists both, in one order;
sitemap.xml, llms.txt and llms-full.txt (rebuilt) carry them.
Run on mote: node --test worker.test.mjs install.test.mjs (fail 0);
JSON-LD of the six pages parsed. Deployed (e33573b9) and every new URL
answers 200.
Not tried: the CLI examples against a live magpie (read from the
source's usage text instead).
New docs pages /docs/gemini and /docs/grok (with zh/ and ja/), each
linked from every "By provider" line (the four agent guides, OpenRouter
and Copilot in all three languages), sitemap.xml and llms.txt;
llms-full.txt rebuilt.
Gemini facts and their sources:
- preset "google", AI Studio keys, models.dev google catalog
(internal/provider/presets.go); Chat and native Gemini endpoints,
only Gemini clients on the native API (provider/gemini_api.go).
- thinking_config with include_thoughts, Gemini 2 budgets, xhigh/max
sent as high (gateway/chat.go aiStudioThinking); a refused level is
retried at the nearest one, a refused thinking_config falls back to
reasoning_effort (gateway.go geminiRefusedLevel, refusesThinkingConfig).
- thought signatures kept 90 days and returned only to their provider
(gemini_sigstore.go sigKeep, gemini_signature.go); tool schema clean-up
(gemini_schema.go); search only without function tools (search.go
geminiKeySearches); per-minute 429s as rate limits (routing.go).
- Vertex AI preset and options (provider/vertex.go, cli/providers_cli.go).
- Code Assist and Antigravity worded as docs/subscriptions.
Grok facts and their sources:
- xai preset: Chat and Responses at api.x.ai/v1, Messages at api.x.ai
(presets.go); Claude Code, Codex, OpenCode go as they are, Gemini CLI
translated to Chat (provider.go Speaks, gateway.go usable).
- fixes for xAI: xai_body.go, grok_schema.go (#2317), object_root.go
(#1271), lone tool_choice (#378), additional_tools (#350),
grok_integral.go (#1431), custom_tool.go.
- effort fitting (decide.go fitFor), search (search.go), cache stickiness
(affinity.go cacheWorth/cacheCold), errors (gateway.go tooLongRe,
fallback.go shapeRefused). Grok Build's ~/.grok/config.toml (agent/grok.go).
- The Grok subscription and its community plugin are left out on purpose.
Run: mote-run `node --test worker.test.mjs install.test.mjs` in site/,
71 pass; JSON-LD of all six pages parsed with node on mote. Deployed
(version f785815d) and curl-checked: all six pages 200, sitemap lists them.
Not tried: no real Gemini or xAI request was made for this page; header
names, vendor terms, free-tier numbers and xAI's own rate limits are left
out because the source doesn't state them.
Two provider guides beside DeepSeek, Kimi, GLM, Qwen and MiniMax, at
/docs/{,zh/,ja/}{openrouter,copilot}, linked from each agent guide's
"By provider" line, from each other, the sitemap and llms.txt
(llms-full.txt rebuilt).
Facts come from source. OpenRouter: the preset's Chat and Anthropic
bases in presets.go, the relay path that sends Claude Code's requests
as they are, Messages for Claude models (MessagesFirst) so cache_control
survives, skipOpenRouterAnthropic for the model list, readOpenRouter's
credits, MaxRPM on free models and openRouterSharedPool, creditRest.
Copilot: device sign-in and the three read-only login sources
(copilot_accounts.go, copilot_cli.go), GHE.com hosts, /models and
copilot_refused.go, copilot_auto.go's pick and fallback, the plan names
(copilot_accounts.go: Free, Pro, Pro+, Max, Education, Business,
Enterprise), copilotSubscriptionUsage's windows, cacheWritesAlike.
Header names, GitHub's terms and env variables are left out.
Run: mote-run sh -c 'cd site && node --test worker.test.mjs
install.test.mjs': 71 pass, 0 fail. JSON-LD of the six pages parses.
Deployed (1a513b7d); the six pages answer with their titles.
Not tried: a real OpenRouter key or Copilot seat through the pages'
commands.
Two more provider guides beside DeepSeek, Kimi and GLM, at
/docs/{,zh/,ja/}{qwen,minimax}, linked from each agent guide's
"By provider" line, the sitemap and llms.txt.
Facts come from source: the six Qwen presets (qwen, qwen-cn,
qwen-token-plan, bailian-token-plan, qwencloud, qwencloud-token-plan)
and their endpoints and key kinds in presets.go, alibabaPlanModels,
dashScope()'s non-streaming rule in gateway.go, alwaysThinks and
effortInOutputConfig in anthropic.go, MiniMax's inline <think> in
chat.go, readMiniMaxPlan's windows in planquota.go, and the Qwen Code
and MiniMax Code agents in internal/agent.
Run: mote-run sh -c 'cd site && node --test worker.test.mjs
install.test.mjs': 69 pass, 0 fail. JSON-LD of the six pages parses.
Not tried: a real Qwen or MiniMax key through the pages' commands.
One page per provider, in English, Chinese and Japanese. Each covers adding
the provider (the presets and plan= on the CLI), the endpoints magpie uses
for each plan (from internal/provider/presets.go), how Claude Code, Codex,
Gemini CLI and OpenCode reach it (linking the agent guides), the provider's
thinking rules from internal/gateway (DeepSeek's thinking on tool turns,
low/high/max effort and one-hour key affinity; GLM-5.3 and Kimi Code
(China) K3.1 refusing thinking off; GLM's output_config.effort), the Zhipu
1113 retry on the Coding Plan endpoint, balances and plan windows
(balance.go, planquota.go), and an FAQ with FAQPage JSON-LD. The four agent
guides get a "By provider" line in each language; sitemap.xml and llms.txt
list the new pages.
Model ids are only ones in presets.go or catalog testdata. Generated by
provgen.py in the seo scratch folder, from claude-code-models' layout.
Run: mote-run node --test worker.test.mjs install.test.mjs, 69/69 pass.
Tag balance of each article checked by script. Not tried: a browser
render of the pages.
New docs page in three languages: a summary of each tool, a table
(agents, how it switches, protocol translation, subscription sign-ins,
routing and failover, GUI and CLI, platforms, license), which one fits,
and an FAQ with FAQPage JSON-LD. Linked after "Models in OpenCode" in
every docs page's nav and footer, in sitemap.xml and llms.txt.
CC Switch and CCR facts come only from their own READMEs (fetched raw,
Nov 2026); each column is dated. Cells their README doesn't cover say
"not stated": CCR subscription sign-ins, CCR macOS signing, CC Switch
CLI. magpie facts from its source and llms.txt.
Run: mote-run site tests (worker.test.mjs install.test.mjs), 69 of 69
pass. Generator: magpie-wt/seo-scratch/altgen.py.
New docs/opencode-models in English, Chinese and Japanese: DeepSeek, Kimi, GLM, Qwen and Claude/ChatGPT/Copilot sign-ins in OpenCode, what magpie writes in opencode.json (internal/agent/agents.go openCodeLike, magpieProviderJSONAt), small_model, reasoning variants, cost, magpie visible, magpie opencode default. Linked from every docs page's nav and footer, sitemap.xml and llms.txt.
Run: mote-run sh -c 'cd site && node --test worker.test.mjs install.test.mjs': 69 pass, 0 fail.
Not tried: a real OpenCode run against the page's steps.