No. magpie writes it into Claude Code’s settings.json. If CLAUDE_CODE_USE_BEDROCK, CLAUDE_CODE_USE_VERTEX or another cloud switch is set in your shell’s environment, Claude Code sends its requests to that cloud and not to magpie; magpie tells you so, and you take it out of your shell profile.
DeepSeek in Claude Code, Codex, Gemini CLI and OpenCode
+
DeepSeek serves an OpenAI-compatible API and an Anthropic-compatible one. Add your key to magpie once, and Claude Code, Codex, Gemini CLI, OpenCode and every other agent you connect can use DeepSeek’s models through magpie’s gateway at 127.0.0.1:3425.
Add the providerIn magpie’s Providers tab, press + Add provider, pick DeepSeek, paste the key and save. magpie asks DeepSeek which models it serves, such as deepseek-v4-pro and deepseek-v4-flash.
+
Pick it for an agentIn the Agents tab, click the model on the agent’s row and choose a DeepSeek model.
+
+
Terminal
magpie provider add deepseek sk-…
+magpie models # every model, as provider/model
+
Model ids in magpie are provider/model, so DeepSeek’s are deepseek/…. Adding the preset again adds a second DeepSeek provider for another key; to spread requests over several keys, add them all to the one provider instead.
Pick the model on an agent’s row in the Agents tab, or from a terminal. Each guide says what magpie writes in that agent’s config and how to switch back.
+
Terminal
magpie claude deepseek/deepseek-v4-pro
+magpie codex deepseek/deepseek-v4-pro
+magpie gemini model deepseek/deepseek-v4-flash
+magpie opencode deepseek/deepseek-v4-pro
+
+
Claude Code speaks Anthropic Messages, and so does DeepSeek’s Anthropic endpoint, so its requests are passed on as they are. Every tier (opus, sonnet, haiku) runs on the model you pick unless you give one its own. Models in Claude Code.
+
Codex speaks only OpenAI Responses. DeepSeek serves the Responses API itself, so Codex’s requests are passed on as they are. The model shows in Codex’s /model with its reasoning efforts. Models in Codex.
+
Gemini CLI speaks Gemini’s API. magpie points it at its gateway and translates. Models in Gemini CLI.
+
OpenCode gets the model in opencode.json, with its reasoning variants and cost. Models in OpenCode.
Thinking on tool turns. DeepSeek’s Anthropic endpoint wants a thinking block on every assistant turn that calls a tool, and on turns that only answer tool results. When an agent’s history has none, magpie adds one, and turns a Claude redacted_thinking block into one. So a routing group can fall back from Claude to DeepSeek in the middle of a conversation.
+
Effort. DeepSeek thinks at three levels, low, high and max, set in output_config.effort, and ignores budget_tokens. A token budget an agent sends is fitted to one of the three.
+
Prompt cache. With several keys, magpie keeps a conversation on the same DeepSeek key for an hour after its last turn, so the next turn reads its prompt from DeepSeek’s cache instead of sending it uncached to another key.
+
Images. magpie uploads each image an agent sends to DeepSeek’s API once and names it by its file id on later turns. magpie provider set deepseek image-files=off sends images inline on every turn instead.
The DeepSeek row shows your balance, read from DeepSeek: the total, what was granted and what you topped up. The Usage tab counts tokens, cache hits and cost for each agent and model that went through magpie.
Add your DeepSeek API key in magpie (Providers, Add provider, DeepSeek), then pick a DeepSeek model such as deepseek-v4-pro on Claude Code’s row, or run magpie claude deepseek/deepseek-v4-pro. magpie writes Claude Code’s settings.json and passes its requests to DeepSeek’s Anthropic endpoint, https://api.deepseek.com/anthropic.
+
Can Codex use DeepSeek?
+
Yes. DeepSeek serves the OpenAI Responses API that Codex speaks, so magpie passes Codex’s requests on as they are. Pick the model on Codex’s row or run magpie codex deepseek/deepseek-v4-pro; it shows in Codex’s /model list.
+
Do I need to set ANTHROPIC_BASE_URL to DeepSeek myself?
+
No. magpie points Claude Code at its own gateway at 127.0.0.1:3425 and keeps your DeepSeek key itself. Picking one of Claude Code’s own models again puts back what you had.
+
Can I switch between Claude and DeepSeek in one conversation?
+
Yes. DeepSeek’s Anthropic endpoint wants a thinking block on tool-calling turns, and a conversation that started on Claude doesn’t have one it can read. magpie adds it, so a routing group can fall back from Claude to DeepSeek mid-conversation.
+
Which reasoning effort does DeepSeek take?
+
DeepSeek thinks at three levels, low, high and max, set in output_config.effort, and ignores budget_tokens. magpie fits the level or token budget an agent asks for to one of those three.
+
Can I use several DeepSeek keys?
+
Yes. Add them all to the DeepSeek provider and tick each one. magpie spreads requests over them, keeps a conversation on one key so its prompt cache is reused, and moves on when a key runs out of balance.
Yes, through a gateway that serves the Gemini API. magpie runs one on your computer and points Gemini CLI at it, so any model of a provider you add works: DeepSeek, Kimi, GLM, Qwen, MiniMax, or a Claude, ChatGPT or Copilot subscription.
GLM Coding Plan in Claude Code, Codex, Gemini CLI and OpenCode
+
Zhipu’s GLM models come from two places, Zhipu GLM at open.bigmodel.cn and Z.ai at api.z.ai, and each has two plans: pay as you go and the GLM Coding Plan. Add a key to magpie with its plan, and Claude Code, Codex, Gemini CLI, OpenCode and your other agents can use GLM through magpie’s gateway at 127.0.0.1:3425.
Add the provider and pick the planIn Providers, press + Add provider, pick Zhipu GLM or Z.ai, choose the plan your key is for (Pay as you go or Coding Plan), paste the key and save.
+
Pick it for an agentIn the Agents tab, choose a GLM model such as glm-5.3 on the agent’s row.
+
+
Terminal
magpie provider add zhipu sk-… plan=coding # GLM Coding Plan (open.bigmodel.cn)
+magpie provider add zai sk-… plan=coding # GLM Coding Plan (z.ai)
+magpie provider add zhipu sk-… plan=api # pay as you go
+
Pick the plan your key is for. A Coding Plan key has its own endpoints. Sent to the pay-as-you-go one, it is told it has no balance (429, code 1113). If that happens, magpie tries the Coding Plan endpoint, and when the key is served there it moves the provider to the plan’s endpoints. When both refuse, the error says what each said and what to change.
Both plans share the Anthropic endpoint, which bills the Coding Plan when the account has one. Each key on the provider says which plan it is for, so one provider can hold a pay-as-you-go key and a Coding Plan key, and each key’s requests, model list and windows are its own plan’s.
Pick the model on an agent’s row in the Agents tab, or from a terminal. Each guide says what magpie writes in that agent’s config and how to switch back.
+
Terminal
magpie claude zhipu/glm-5.3
+magpie codex zhipu/glm-5.3
+magpie gemini model zhipu/glm-5.3
+magpie opencode zhipu/glm-5.3
+
+
Claude Code speaks Anthropic Messages, and so does GLM’s Anthropic endpoint, so its requests are passed on as they are. Every tier (opus, sonnet, haiku) runs on the model you pick unless you give one its own. Models in Claude Code.
+
Codex speaks only OpenAI Responses. The Coding Plan serves the Responses API itself, so Codex’s requests are passed on as they are; on pay as you go, magpie translates them to Chat Completions. The model shows in Codex’s /model with its reasoning efforts. Models in Codex.
+
Gemini CLI speaks Gemini’s API. magpie points it at its gateway and translates. Models in Gemini CLI.
+
OpenCode gets the model in opencode.json, with its reasoning variants and cost. Models in OpenCode.
GLM-5.3 always thinks. It turns away a request that switches thinking off. magpie asks again with thinking left on, so the agent gets an answer rather than the error.
+
Effort. GLM-5.2 and GLM-5.3 take their reasoning level in output_config.effort, and magpie puts the agent’s level there.
Add Zhipu GLM (open.bigmodel.cn) or Z.ai (api.z.ai) in magpie, choose Coding Plan as the key’s plan, then pick a GLM model such as glm-5.3 on Claude Code’s row, or run magpie claude zhipu/glm-5.3. Claude Code’s requests go to the Anthropic endpoint, which bills the Coding Plan when the account has one.
+
Can Codex use GLM?
+
Yes. The GLM Coding Plan serves the OpenAI Responses API Codex speaks, so magpie passes Codex’s requests on as they are. On pay as you go, magpie translates Codex’s requests to Chat Completions. Run magpie codex zhipu/glm-5.3 or pick it on Codex’s row.
+
Why does my GLM Coding Plan key say insufficient balance (1113)?
+
A Coding Plan key sent to the pay-as-you-go endpoint, https://open.bigmodel.cn/api/paas/v4, is answered with 429 code 1113. magpie tries the Coding Plan endpoint, https://open.bigmodel.cn/api/coding/paas/v4, and when the key is served there it moves the provider to the plan’s endpoints. Choosing Coding Plan when you add the key avoids it.
+
Can I have a Coding Plan key and a pay-as-you-go key together?
+
Yes. Each key on a Zhipu GLM or Z.ai provider says which plan it is for. Its requests go to that plan’s endpoints, and its model list and usage windows are that plan’s.
+
Zhipu GLM or Z.ai: which preset do I pick?
+
The one that issued your key: Zhipu GLM for a key from open.bigmodel.cn, Z.ai for a key from z.ai.
+
Does GLM-5.3 work with thinking turned off?
+
GLM-5.3 always thinks and turns away a request that switches thinking off. magpie asks again with thinking left on, so the agent gets an answer.
キーに合ったプランを選んでください。Coding Plan のキーには専用のエンドポイントがあり、従量課金のエンドポイントに送ると残高がないと返されます(429、コード 1113)。そのとき magpie は Coding Plan のエンドポイントで試し直し、使えればプロバイダをプランのエンドポイントに切り替えます。両方に断られたときは、それぞれの返答と直すべき点をエラーに書きます。
Anthropic エンドポイントは両プラン共通で、アカウントに Coding Plan があればそのプランで課金されます。プロバイダのキーはそれぞれ自分のプランを持つので、1 つのプロバイダに従量課金と Coding Plan のキーを並べられ、キーごとのリクエスト・モデル一覧・ウィンドウはそのプランのものになります。
Kimi K2 と Kimi Code を Claude Code・Codex・Gemini CLI・OpenCode で使う
+
Moonshot AI の Kimi には、従量課金の Kimi API と Kimi Code メンバーシップの 2 つがあり、それぞれグローバル版と中国版のエンドポイントがあります。magpie には 4 つすべてのプリセットがあります。キーを一度追加すれば、Claude Code、Codex、Gemini CLI、OpenCode などが magpie のゲートウェイ 127.0.0.1:3425 を通して Kimi のモデルを使えます。
diff --git a/site/public/docs/kimi.html b/site/public/docs/kimi.html
new file mode 100644
index 000000000..3c442bc79
--- /dev/null
+++ b/site/public/docs/kimi.html
@@ -0,0 +1,278 @@
+
+
+
+
+
+Kimi K2 and Kimi Code in Claude Code, Codex, Gemini CLI and OpenCode · magpie
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Docs · Provider
+
Kimi K2 and Kimi Code in Claude Code, Codex, Gemini CLI and OpenCode
+
Kimi, from Moonshot AI, comes two ways: the Kimi API, paid as you go, and the Kimi Code membership, each with a global and a China endpoint. magpie has a preset for each of the four. Add a key once, and Claude Code, Codex, Gemini CLI, OpenCode and your other agents can use Kimi’s models through magpie’s gateway at 127.0.0.1:3425.
Get a keyFor the Kimi API, from the Kimi platform’s API keys page; for Kimi Code, from the Kimi Code console. The table below links each.
+
Add the providerIn Providers, press + Add provider and pick the preset that issued your key: Kimi, Kimi (China), Kimi Code or Kimi Code (China). Paste the key and save. magpie asks Kimi which models it serves.
+
Pick it for an agentIn the Agents tab, choose a Kimi model on the agent’s row: kimi-k2.6 on the API, say, or kimi-for-coding on Kimi Code.
+
+
Terminal
magpie provider add moonshot sk-… # Kimi API (platform.kimi.ai)
+magpie provider add moonshot-cn sk-… # Kimi API, China (platform.kimi.com)
+magpie provider add kimi-code sk-… # Kimi Code membership
+magpie provider add kimi-code-cn sk-… # Kimi Code membership, China
+
Model ids are provider/model: moonshot/kimi-k2.6, kimi-code/kimi-for-coding. The models listed are the ones Kimi serves your key at the time.
Pick the model on an agent’s row in the Agents tab, or from a terminal. Each guide says what magpie writes in that agent’s config and how to switch back.
+
Terminal
magpie claude moonshot/kimi-k2.6
+magpie codex moonshot/kimi-k2.6
+magpie gemini model moonshot/kimi-k2.6
+magpie opencode kimi-code/kimi-for-coding
+
+
Claude Code speaks Anthropic Messages, and so does Kimi’s Anthropic endpoint, so its requests are passed on as they are. Every tier (opus, sonnet, haiku) runs on the model you pick unless you give one its own. Models in Claude Code.
+
Codex speaks only OpenAI Responses. Kimi serves Chat Completions and Anthropic Messages but not Responses, so magpie translates each request and the reply, streaming and tool calls included. The model shows in Codex’s /model with its reasoning efforts. Models in Codex.
+
Gemini CLI speaks Gemini’s API. magpie points it at its gateway and translates. Models in Gemini CLI.
+
OpenCode gets the model in opencode.json, with its reasoning variants and cost. Models in OpenCode.
Some Kimi models always think: Kimi Code (China)’s K3.1 turns away a request that switches thinking off. When an agent asks for it off and the model refuses, magpie asks again with thinking left on, so the agent gets an answer rather than the error.
Kimi API. The row shows your balance: in ¥ for Kimi (China), in $ for Kimi.
+
Kimi Code. The row shows the membership’s windows, read from Kimi: the weekly allowance, shorter windows such as five hours, the monthly allowance and a booster pack’s balance.
+
Cost. Kimi Code’s models are listed at $0, so magpie’s Usage tab prices their calls at the Kimi API’s price for the same model.
+
Web search. A Kimi Code key searches the web through the membership’s own search endpoint, and magpie gives that search to Kimi Code models that can’t search by themselves.
Add your Kimi key in magpie, then pick a Kimi model such as kimi-k2.6 on Codex’s row, or run magpie codex moonshot/kimi-k2.6. Kimi serves Chat Completions and Anthropic Messages but not the Responses API Codex speaks, so magpie translates each request and the reply, streaming and tool calls included.
+
Can I use my Kimi Code membership in Claude Code or Codex?
+
Yes. Add the Kimi Code preset (or Kimi Code (China)) with a key from the Kimi Code console. magpie sends requests to the membership’s own endpoints, https://api.kimi.ai/coding for Anthropic Messages and https://api.kimi.ai/coding/v1 for Chat Completions, and shows the membership’s usage windows.
+
Kimi or Kimi (China): which preset do I pick?
+
The one that issued your key. A key from platform.kimi.ai goes with Kimi (api.moonshot.ai); one from platform.kimi.com goes with Kimi (China) (api.moonshot.cn). Kimi Code has the same two: kimi.ai and kimi.com.
+
Why does Kimi Code show a cost when the membership is prepaid?
+
Kimi Code’s model list prices its models at $0, so magpie prices each call at the Kimi API’s price for the same model. The figure shows what the work would have cost on the API; it isn’t charged.
+
Can Kimi Code search the web for my agent?
+
Yes. A Kimi Code key searches the web through the membership’s own search endpoint, so a Kimi Code model that can’t search by itself is given magpie’s search on your plan.
Add DeepSeek with your API key in magpie, then pick a DeepSeek model on OpenCode’s row in the Agents tab, or run magpie opencode deepseek/deepseek-v4-pro. magpie adds a magpie provider to opencode.json and sets the model.
diff --git a/site/public/docs/zh/claude-code-models.html b/site/public/docs/zh/claude-code-models.html
index 6cd367229..9aff86b4b 100644
--- a/site/public/docs/zh/claude-code-models.html
+++ b/site/public/docs/zh/claude-code-models.html
@@ -251,6 +251,8 @@ magpie claude codex/gpt-5.5
Kimi K2 和 Kimi Code 套餐接入 Claude Code、Codex、Gemini CLI 和 OpenCode
+
月之暗面的 Kimi 有两种用法:按量付费的 Kimi API,和 Kimi Code 会员套餐,各有国际版和国内版接口。magpie 给这四种都做了预设。添加一次 Key,Claude Code、Codex、Gemini CLI、OpenCode 和其他工具就都能通过 magpie 的本地网关 127.0.0.1:3425 用上 Kimi 的模型。
diff --git a/site/public/llms.txt b/site/public/llms.txt
index d0ebefba8..766a9b281 100644
--- a/site/public/llms.txt
+++ b/site/public/llms.txt
@@ -43,6 +43,9 @@ DeepSeek, Kimi (Moonshot), GLM (Zhipu), Qwen, MiniMax, Anthropic (Claude), OpenA
- [Local models in Claude Code and Codex](https://usemagpie.ai/docs/local-models): run Claude Code and Codex on Ollama, LM Studio, oMLX, MLX-Serve, vLLM or llama.cpp; default addresses, which API each server speaks, context window and masking.
- [Models in OpenCode](https://usemagpie.ai/docs/opencode-models): run OpenCode on DeepSeek, Kimi, GLM, Qwen or a Claude, ChatGPT or Copilot subscription; what magpie writes in opencode.json, reasoning variants and cost, and how to switch back.
- [magpie vs CC Switch vs Claude Code Router](https://usemagpie.ai/docs/alternatives): a fair comparison of the three: agents, config rewrite or local proxy, protocol translation, subscription sign-ins, routing and failover, GUI and CLI, platforms and license, and which one fits.
+- [DeepSeek in every agent](https://usemagpie.ai/docs/deepseek): use DeepSeek V4 in Claude Code, Codex, Gemini CLI and OpenCode; the API key, endpoints, thinking on tool turns, reasoning effort, prompt cache and balance.
+- [Kimi K2 and Kimi Code in every agent](https://usemagpie.ai/docs/kimi): Kimi API or Kimi Code membership keys, global and China endpoints, in Claude Code, Codex, Gemini CLI and OpenCode; usage windows and web search.
+- [GLM Coding Plan in every agent](https://usemagpie.ai/docs/glm): Zhipu GLM and Z.ai, pay as you go or Coding Plan, each plan's endpoints, the 1113 "insufficient balance" fix, thinking and plan windows.
- [Intent routing](https://usemagpie.ai/docs/intent): how a turn is routed by what the user asks for.
- [Privacy masking](https://usemagpie.ai/docs/masking): what is masked before a request leaves the computer and how values come back.
- [Library](https://usemagpie.ai/docs/library): instructions, MCP servers, skills, hooks and subagents for each agent.
diff --git a/site/public/sitemap.xml b/site/public/sitemap.xml
index cab0a629e..7bff4fc56 100644
--- a/site/public/sitemap.xml
+++ b/site/public/sitemap.xml
@@ -23,6 +23,9 @@
https://usemagpie.ai/docs/local-modelshttps://usemagpie.ai/docs/opencode-modelshttps://usemagpie.ai/docs/alternatives
+https://usemagpie.ai/docs/deepseek
+https://usemagpie.ai/docs/kimi
+https://usemagpie.ai/docs/glmhttps://usemagpie.ai/docs/zh/claude-code-modelshttps://usemagpie.ai/docs/zh/codex-modelshttps://usemagpie.ai/docs/zh/contributors
@@ -42,6 +45,9 @@
https://usemagpie.ai/docs/zh/local-modelshttps://usemagpie.ai/docs/zh/opencode-modelshttps://usemagpie.ai/docs/zh/alternatives
+https://usemagpie.ai/docs/zh/deepseek
+https://usemagpie.ai/docs/zh/kimi
+https://usemagpie.ai/docs/zh/glmhttps://usemagpie.ai/docs/ja/claude-code-modelshttps://usemagpie.ai/docs/ja/codex-modelshttps://usemagpie.ai/docs/ja/contributors
@@ -60,4 +66,7 @@
https://usemagpie.ai/docs/ja/local-modelshttps://usemagpie.ai/docs/ja/opencode-modelshttps://usemagpie.ai/docs/ja/alternatives
+https://usemagpie.ai/docs/ja/deepseek
+https://usemagpie.ai/docs/ja/kimi
+https://usemagpie.ai/docs/ja/glm