From 25eec8f6cbdb7566ee683c31ed9f8651d5cda10d Mon Sep 17 00:00:00 2001 From: yetone Date: Mon, 9 Nov 2026 11:31:50 +0800 Subject: [PATCH] site: provider pages for DeepSeek, Kimi and GLM (docs/deepseek, kimi, glm; zh, ja) 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. --- site/public/docs/claude-code-models.html | 2 + site/public/docs/codex-models.html | 2 + site/public/docs/deepseek.html | 284 +++++++++++++++++++ site/public/docs/gemini-cli-models.html | 2 + site/public/docs/glm.html | 288 ++++++++++++++++++++ site/public/docs/ja/claude-code-models.html | 2 + site/public/docs/ja/codex-models.html | 2 + site/public/docs/ja/deepseek.html | 284 +++++++++++++++++++ site/public/docs/ja/gemini-cli-models.html | 2 + site/public/docs/ja/glm.html | 288 ++++++++++++++++++++ site/public/docs/ja/kimi.html | 278 +++++++++++++++++++ site/public/docs/ja/opencode-models.html | 2 + site/public/docs/kimi.html | 278 +++++++++++++++++++ site/public/docs/opencode-models.html | 2 + site/public/docs/zh/claude-code-models.html | 2 + site/public/docs/zh/codex-models.html | 2 + site/public/docs/zh/deepseek.html | 284 +++++++++++++++++++ site/public/docs/zh/gemini-cli-models.html | 2 + site/public/docs/zh/glm.html | 288 ++++++++++++++++++++ site/public/docs/zh/kimi.html | 278 +++++++++++++++++++ site/public/docs/zh/opencode-models.html | 2 + site/public/llms.txt | 3 + site/public/sitemap.xml | 9 + 23 files changed, 2586 insertions(+) create mode 100644 site/public/docs/deepseek.html create mode 100644 site/public/docs/glm.html create mode 100644 site/public/docs/ja/deepseek.html create mode 100644 site/public/docs/ja/glm.html create mode 100644 site/public/docs/ja/kimi.html create mode 100644 site/public/docs/kimi.html create mode 100644 site/public/docs/zh/deepseek.html create mode 100644 site/public/docs/zh/glm.html create mode 100644 site/public/docs/zh/kimi.html diff --git a/site/public/docs/claude-code-models.html b/site/public/docs/claude-code-models.html index e471deca0..e027e6b23 100644 --- a/site/public/docs/claude-code-models.html +++ b/site/public/docs/claude-code-models.html @@ -251,6 +251,8 @@ magpie claude codex/gpt-5.5

The routing modes are in Get started.

+

By provider: DeepSeek · Kimi and Kimi Code · GLM Coding Plan

+

FAQ

Do I set ANTHROPIC_BASE_URL myself?

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.

diff --git a/site/public/docs/codex-models.html b/site/public/docs/codex-models.html index e8460bca7..794722163 100644 --- a/site/public/docs/codex-models.html +++ b/site/public/docs/codex-models.html @@ -251,6 +251,8 @@ magpie codex claude/…

The routing modes are in Get started.

+

By provider: DeepSeek · Kimi and Kimi Code · GLM Coding Plan

+

FAQ

Do I write [model_providers] myself?

No. magpie writes Codex’s config.toml when you pick a model. You don’t export OPENAI_BASE_URL either.

diff --git a/site/public/docs/deepseek.html b/site/public/docs/deepseek.html new file mode 100644 index 000000000..bcf4115f5 --- /dev/null +++ b/site/public/docs/deepseek.html @@ -0,0 +1,284 @@ + + + + + +DeepSeek in Claude Code, Codex, Gemini CLI and OpenCode · magpie + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + +
+

Docs · Provider

+

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 DeepSeek

+
    +
  1. Get an API keyCreate one at platform.deepseek.com/api_keys.
  2. +
  3. 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.
  4. +
  5. Pick it for an agentIn the Agents tab, click the model on the agent’s row and choose a DeepSeek model.
  6. +
+
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.

+ +

Endpoints

+

DeepSeek has one plan, pay as you go, and magpie uses these endpoints for it:

+
+ + + +
APIBase URL
OpenAI Chat Completions and Responseshttps://api.deepseek.com/v1
Anthropic Messageshttps://api.deepseek.com/anthropic
+ +

In each agent

+

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, effort and the prompt cache

+
    +
  • 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.
  • +
+ +

Balance and usage

+

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.

+ +

FAQ

+

How do I use DeepSeek in Claude Code?

+

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.

+ +

Every agent: Models in Claude Code, Models in Codex, Models in Gemini CLI, Models in OpenCode. Ask on Discord if you get stuck.

+
+
+ + + + + + + diff --git a/site/public/docs/gemini-cli-models.html b/site/public/docs/gemini-cli-models.html index 5b481afab..5d265628b 100644 --- a/site/public/docs/gemini-cli-models.html +++ b/site/public/docs/gemini-cli-models.html @@ -235,6 +235,8 @@ magpie gemini model codex/gpt-5.5

The routing modes and rules are in Get started.

+

By provider: DeepSeek · Kimi and Kimi Code · GLM Coding Plan

+

FAQ

Can Gemini CLI use models that aren’t Gemini?

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.

diff --git a/site/public/docs/glm.html b/site/public/docs/glm.html new file mode 100644 index 000000000..5de492c6d --- /dev/null +++ b/site/public/docs/glm.html @@ -0,0 +1,288 @@ + + + + + +GLM Coding Plan in Claude Code, Codex, Gemini CLI and OpenCode · magpie + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + +
+

Docs · Provider

+

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 GLM

+
    +
  1. Get a keyFrom open.bigmodel.cn for Zhipu GLM, or z.ai for Z.ai.
  2. +
  3. 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.
  4. +
  5. Pick it for an agentIn the Agents tab, choose a GLM model such as glm-5.3 on the agent’s row.
  6. +
+
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.
+ +

Plans and endpoints

+
+ + + + + +
PresetPlanOpenAI Chat CompletionsOpenAI ResponsesAnthropic Messages
Zhipu GLMPay as you gohttps://open.bigmodel.cn/api/paas/v4—https://open.bigmodel.cn/api/anthropic
Zhipu GLMCoding Planhttps://open.bigmodel.cn/api/coding/paas/v4https://open.bigmodel.cn/api/v1https://open.bigmodel.cn/api/anthropic
Z.aiPay as you gohttps://api.z.ai/api/paas/v4—https://api.z.ai/api/anthropic
Z.aiCoding Planhttps://api.z.ai/api/coding/paas/v4https://api.z.ai/api/v1https://api.z.ai/api/anthropic
+

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.

+ +

In each agent

+

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.
  • +
+ +

Thinking and effort

+
    +
  • 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.
  • +
+ +

Usage windows and search

+
    +
  • Coding Plan windows. The row shows the plan’s windows, read from Zhipu or Z.ai: the hourly and weekly allowances, and the month’s MCP tool calls.
  • +
  • Web search. With a Coding Plan key and no searcher chosen in Settings, magpie searches the web for GLM models through the plan’s own search service.
  • +
+ +

FAQ

+

How do I use the GLM Coding Plan in Claude Code?

+

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.

+ +

Every agent: Models in Claude Code, Models in Codex, Models in Gemini CLI, Models in OpenCode. Ask on Discord if you get stuck.

+
+
+ + + + + + + diff --git a/site/public/docs/ja/claude-code-models.html b/site/public/docs/ja/claude-code-models.html index 34a4ce97f..b3f1f6d7d 100644 --- a/site/public/docs/ja/claude-code-models.html +++ b/site/public/docs/ja/claude-code-models.html @@ -251,6 +251,8 @@ magpie claude codex/gpt-5.5

ルーティングモードははじめにで説明しています。

+

プロバイダ別:DeepSeek · Kimi と Kimi Code · GLM Coding Plan

+

よくある質問

ANTHROPIC_BASE_URL は自分で設定しますか?

いいえ。magpie が Claude Code の settings.json に書き込みます。シェルの環境変数に CLAUDE_CODE_USE_BEDROCK、CLAUDE_CODE_USE_VERTEX などのクラウドの切り替えが設定されていると、Claude Code は magpie ではなくそのクラウドにリクエストを送ります。その場合は magpie が知らせるので、シェルのプロファイルから取り除いてください。

diff --git a/site/public/docs/ja/codex-models.html b/site/public/docs/ja/codex-models.html index e798101e8..bd9f8dbf5 100644 --- a/site/public/docs/ja/codex-models.html +++ b/site/public/docs/ja/codex-models.html @@ -251,6 +251,8 @@ magpie codex claude/…

ルーティングモードははじめにで説明しています。

+

プロバイダ別:DeepSeek · Kimi と Kimi Code · GLM Coding Plan

+

よくある質問

[model_providers] は自分で書きますか?

いいえ。モデルを選ぶと magpie が Codex の config.toml を書きます。OPENAI_BASE_URL を export する必要もありません。

diff --git a/site/public/docs/ja/deepseek.html b/site/public/docs/ja/deepseek.html new file mode 100644 index 000000000..4436f2f79 --- /dev/null +++ b/site/public/docs/ja/deepseek.html @@ -0,0 +1,284 @@ + + + + + +DeepSeek を Claude Code・Codex・Gemini CLI・OpenCode で使う · magpie + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + +
+

ドキュメント · プロバイダ

+

DeepSeek を Claude Code・Codex・Gemini CLI・OpenCode で使う

+

DeepSeek は OpenAI 互換と Anthropic 互換の両方の API を提供しています。magpie にキーを一度追加すれば、Claude Code、Codex、Gemini CLI、OpenCode、ほかに接続したツールのすべてが、magpie のゲートウェイ 127.0.0.1:3425 を通して DeepSeek のモデルを使えます。

+ +

DeepSeek を追加する

+
    +
  1. API キーを取得platform.deepseek.com/api_keys で作成します。
  2. +
  3. プロバイダを追加magpie の プロバイダ タブで + プロバイダを追加 を押し、DeepSeek を選んでキーを貼り付け、保存します。magpie が DeepSeek に提供モデル(deepseek-v4-pro、deepseek-v4-flash など)を問い合わせます。
  4. +
  5. ツールで選ぶエージェント タブで、ツールの行のモデルをクリックして DeepSeek のモデルを選びます。
  6. +
+
ターミナル
magpie provider add deepseek sk-…
+magpie models        # すべてのモデル(provider/model 形式)
+

magpie のモデル ID は provider/model 形式で、DeepSeek のものは deepseek/… です。プリセットをもう一度追加すると、別のキー用に 2 つ目の DeepSeek プロバイダができます。複数のキーにリクエストを振り分けたいときは、1 つのプロバイダにまとめて追加します。

+ +

エンドポイント

+

DeepSeek のプランは従量課金だけで、magpie が使うエンドポイントは次のとおりです。

+
+ + + +
APIベース URL
OpenAI Chat Completions と Responseshttps://api.deepseek.com/v1
Anthropic Messageshttps://api.deepseek.com/anthropic
+ +

ツールごとの使い方

+

エージェント タブで各ツールの行のモデルをクリックして選ぶか、ターミナルで選びます。各ガイドに、magpie がそのツールの設定に何を書くか、どう元に戻すかがあります。

+
ターミナル
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 は Anthropic Messages を話し、DeepSeek の Anthropic エンドポイントも同じなので、リクエストはそのまま渡されます。opus・sonnet・haiku の各ティアは、個別に指定しない限り選んだモデルで動きます。Claude Code で他のモデル。
  • +
  • Codex が話すのは OpenAI Responses だけです。DeepSeek は Responses API を自分で提供しているので、Codex のリクエストはそのまま渡されます。モデルは推論レベル付きで Codex の /model に並びます。Codex で他のモデル。
  • +
  • Gemini CLI は Gemini の API を話します。magpie がゲートウェイに向けて変換します。Gemini CLI で他のモデル。
  • +
  • OpenCode には、magpie が opencode.json にモデルを推論バリアントと価格つきで書きます。OpenCode で他のモデル。
  • +
+ +

思考・推論レベル・キャッシュ

+
    +
  • ツールのターンの思考ブロック。DeepSeek の Anthropic エンドポイントは、ツールを呼ぶアシスタントのターンと、ツールの結果だけを返すターンのすべてに思考ブロックを求めます。履歴にないときは magpie が補い、Claude の redacted_thinking も使える思考ブロックに変えます。そのためルーティンググループは会話の途中で Claude から DeepSeek に切り替えられます。
  • +
  • 推論レベル。DeepSeek は low・high・max の 3 段階で考え、output_config.effort で指定し、budget_tokens は見ません。ツールが送るトークン予算はこの 3 つのどれかに合わせられます。
  • +
  • キャッシュ。キーが複数あるとき、magpie は会話の最後のターンから 1 時間は同じ DeepSeek キーに留めます。次のターンは DeepSeek のキャッシュから読まれ、キャッシュなしで別のキーに送り直されることはありません。
  • +
  • 画像。ツールが DeepSeek の API に送る画像は、magpie が一度だけアップロードし、以降のターンではファイル ID で指します。magpie provider set deepseek image-files=off にすると毎ターンインラインで送ります。
  • +
+ +

残高と使用量

+

DeepSeek の行には DeepSeek から読んだ残高(合計、付与分、チャージ分)が表示されます。使用量 タブでは、magpie を通ったトークン、キャッシュヒット、費用をツールとモデルごとに数えます。

+ +

よくある質問

+

DeepSeek を Claude Code で使うには?

+

magpie に DeepSeek の API キーを追加し(プロバイダ → プロバイダを追加 → DeepSeek)、Claude Code の行で deepseek-v4-pro などの DeepSeek モデルを選ぶか、magpie claude deepseek/deepseek-v4-pro を実行します。magpie が Claude Code の settings.json を書き、リクエストを DeepSeek の Anthropic エンドポイント https://api.deepseek.com/anthropic に渡します。

+

Codex で DeepSeek は使えますか?

+

使えます。DeepSeek は Codex が話す OpenAI Responses API を自分で提供しているので、magpie は Codex のリクエストをそのまま渡します。Codex の行でモデルを選ぶか magpie codex deepseek/deepseek-v4-pro を実行すると、Codex の /model に並びます。

+

ANTHROPIC_BASE_URL を自分で DeepSeek に向ける必要は?

+

ありません。magpie が Claude Code をローカルゲートウェイ 127.0.0.1:3425 に向け、DeepSeek のキーは magpie が持ちます。Claude Code 自身のモデルを選び直せば元の設定に戻ります。

+

1 つの会話で Claude と DeepSeek を切り替えられますか?

+

できます。DeepSeek の Anthropic エンドポイントはツールを呼ぶターンに思考ブロックを求めますが、Claude で始めた会話にはそれが読める形でありません。magpie が補うので、ルーティンググループは会話の途中で Claude から DeepSeek にフォールバックできます。

+

DeepSeek の推論レベルは?

+

low・high・max の 3 段階で、output_config.effort で指定し、budget_tokens は見ません。ツールが求めるレベルやトークン予算は、magpie がこの 3 つのどれかに合わせます。

+

DeepSeek のキーを複数使えますか?

+

使えます。すべて DeepSeek プロバイダに追加してチェックを入れてください。magpie はリクエストをキーに振り分け、キャッシュを生かすために 1 つの会話は同じキーに留め、残高が尽きたキーは次へ回します。

+ +

ツールごとのガイド:Claude Code で他のモデル、Codex で他のモデル、Gemini CLI で他のモデル、OpenCode で他のモデル。困ったときは Discord で質問してください。

+
+
+ + + + + + + diff --git a/site/public/docs/ja/gemini-cli-models.html b/site/public/docs/ja/gemini-cli-models.html index 1929504b3..32cf29fc0 100644 --- a/site/public/docs/ja/gemini-cli-models.html +++ b/site/public/docs/ja/gemini-cli-models.html @@ -235,6 +235,8 @@ magpie gemini model codex/gpt-5.5

ルーティングモードとルールははじめにで説明しています。

+

プロバイダ別:DeepSeek · Kimi と Kimi Code · GLM Coding Plan

+

よくある質問

Gemini CLI で Gemini 以外のモデルを使えますか?

はい。Gemini API を提供するゲートウェイを通せば使えます。magpie はそれをあなたのコンピューターで動かし、Gemini CLI をそこへ向けるので、追加したプロバイダのどのモデルでも動きます:DeepSeek、Kimi、GLM、Qwen、MiniMax、あるいは Claude、ChatGPT、Copilot のサブスクリプション。

diff --git a/site/public/docs/ja/glm.html b/site/public/docs/ja/glm.html new file mode 100644 index 000000000..f029fb911 --- /dev/null +++ b/site/public/docs/ja/glm.html @@ -0,0 +1,288 @@ + + + + + +GLM Coding Plan を Claude Code・Codex・Gemini CLI・OpenCode で使う · magpie + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + +
+

ドキュメント · プロバイダ

+

GLM Coding Plan を Claude Code・Codex・Gemini CLI・OpenCode で使う

+

Zhipu の GLM モデルは、open.bigmodel.cn の Zhipu GLM と api.z.ai の Z.ai の 2 か所から使え、どちらにも従量課金と GLM Coding Plan の 2 つのプランがあります。magpie にキーをプランつきで追加すれば、Claude Code、Codex、Gemini CLI、OpenCode などが magpie のゲートウェイ 127.0.0.1:3425 を通して GLM を使えます。

+ +

GLM を追加する

+
    +
  1. キーを取得Zhipu GLM は open.bigmodel.cn、Z.ai は z.ai で取得します。
  2. +
  3. プロバイダを追加してプランを選ぶプロバイダ で + プロバイダを追加 を押し、Zhipu GLM か Z.ai を選び、キーのプラン(従量課金 か Coding Plan)を選んでキーを貼り付け、保存します。
  4. +
  5. ツールで選ぶエージェント タブで、ツールの行の glm-5.3 などの GLM モデルを選びます。
  6. +
+
ターミナル
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      # 従量課金
+
キーに合ったプランを選んでください。Coding Plan のキーには専用のエンドポイントがあり、従量課金のエンドポイントに送ると残高がないと返されます(429、コード 1113)。そのとき magpie は Coding Plan のエンドポイントで試し直し、使えればプロバイダをプランのエンドポイントに切り替えます。両方に断られたときは、それぞれの返答と直すべき点をエラーに書きます。
+ +

プランとエンドポイント

+
+ + + + + +
プリセットプランOpenAI Chat CompletionsOpenAI ResponsesAnthropic Messages
Zhipu GLM従量課金https://open.bigmodel.cn/api/paas/v4—https://open.bigmodel.cn/api/anthropic
Zhipu GLMCoding Planhttps://open.bigmodel.cn/api/coding/paas/v4https://open.bigmodel.cn/api/v1https://open.bigmodel.cn/api/anthropic
Z.ai従量課金https://api.z.ai/api/paas/v4—https://api.z.ai/api/anthropic
Z.aiCoding Planhttps://api.z.ai/api/coding/paas/v4https://api.z.ai/api/v1https://api.z.ai/api/anthropic
+

Anthropic エンドポイントは両プラン共通で、アカウントに Coding Plan があればそのプランで課金されます。プロバイダのキーはそれぞれ自分のプランを持つので、1 つのプロバイダに従量課金と Coding Plan のキーを並べられ、キーごとのリクエスト・モデル一覧・ウィンドウはそのプランのものになります。

+ +

ツールごとの使い方

+

エージェント タブで各ツールの行のモデルをクリックして選ぶか、ターミナルで選びます。各ガイドに、magpie がそのツールの設定に何を書くか、どう元に戻すかがあります。

+
ターミナル
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 は Anthropic Messages を話し、GLM の Anthropic エンドポイントも同じなので、リクエストはそのまま渡されます。opus・sonnet・haiku の各ティアは、個別に指定しない限り選んだモデルで動きます。Claude Code で他のモデル。
  • +
  • Codex が話すのは OpenAI Responses だけです。Coding Plan は Responses API を自分で提供しているので Codex のリクエストはそのまま渡され、従量課金では magpie が Chat Completions に変換します。モデルは推論レベル付きで Codex の /model に並びます。Codex で他のモデル。
  • +
  • Gemini CLI は Gemini の API を話します。magpie がゲートウェイに向けて変換します。Gemini CLI で他のモデル。
  • +
  • OpenCode には、magpie が opencode.json にモデルを推論バリアントと価格つきで書きます。OpenCode で他のモデル。
  • +
+ +

思考と推論レベル

+
    +
  • GLM-5.3 は常に思考します。思考をオフにするリクエストは断られます。magpie は思考をオンのまま聞き直すので、ツールにはエラーではなく返答が届きます。
  • +
  • 推論レベル。GLM-5.2 と GLM-5.3 は推論レベルを output_config.effort で受け取り、magpie はツールが求めるレベルをそこに入れます。
  • +
+ +

使用量ウィンドウと検索

+
    +
  • Coding Plan のウィンドウ。Zhipu や Z.ai から読んだプランのウィンドウ(時間単位と週単位の枠、今月の MCP ツール呼び出し回数)が行に表示されます。
  • +
  • ウェブ検索。Coding Plan のキーがあり、設定で検索サービスを指定していないとき、magpie はプラン専用の検索サービスで GLM モデルのためにウェブを検索します。
  • +
+ +

よくある質問

+

GLM Coding Plan を Claude Code で使うには?

+

magpie に Zhipu GLM(open.bigmodel.cn)か Z.ai(api.z.ai)を追加し、キーのプランに Coding Plan を選んでから、Claude Code の行で glm-5.3 などの GLM モデルを選ぶか、magpie claude zhipu/glm-5.3 を実行します。Claude Code のリクエストは Anthropic エンドポイントに送られ、アカウントに Coding Plan があればそのプランで課金されます。

+

Codex で GLM は使えますか?

+

使えます。GLM Coding Plan は Codex が話す OpenAI Responses API を提供しているので、magpie はそのまま渡します。従量課金では、magpie が Codex のリクエストを Chat Completions に変換します。magpie codex zhipu/glm-5.3 を実行するか、Codex の行で選んでください。

+

Coding Plan のキーで「残高不足」(1113)が出るのはなぜ?

+

Coding Plan のキーを従量課金のエンドポイント https://open.bigmodel.cn/api/paas/v4 に送ると、429・コード 1113 が返ります。magpie は Coding Plan のエンドポイント https://open.bigmodel.cn/api/coding/paas/v4 で試し直し、使えればプロバイダをプランのエンドポイントに切り替えます。キーを追加するときに Coding Plan を選べば起きません。

+

Coding Plan と従量課金のキーを一緒に使えますか?

+

使えます。Zhipu GLM や Z.ai のプロバイダでは、キーごとにどのプラン用かを指定できます。リクエストはそのプランのエンドポイントに送られ、モデル一覧と使用量ウィンドウもそのプランのものになります。

+

Zhipu GLM と Z.ai のどちらを選べば?

+

キーを発行したほうです。open.bigmodel.cn のキーなら Zhipu GLM、z.ai のキーなら Z.ai です。

+

GLM-5.3 は思考をオフにできますか?

+

GLM-5.3 は常に思考し、思考をオフにするリクエストを受け付けません。magpie は思考をオンのまま聞き直すので、ツールには返答が届きます。

+ +

ツールごとのガイド:Claude Code で他のモデル、Codex で他のモデル、Gemini CLI で他のモデル、OpenCode で他のモデル。困ったときは Discord で質問してください。

+
+
+ + + + + + + diff --git a/site/public/docs/ja/kimi.html b/site/public/docs/ja/kimi.html new file mode 100644 index 000000000..840c61f72 --- /dev/null +++ b/site/public/docs/ja/kimi.html @@ -0,0 +1,278 @@ + + + + + +Kimi K2 と Kimi Code を Claude Code・Codex・Gemini CLI・OpenCode で使う · magpie + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + +
+

ドキュメント · プロバイダ

+

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 のモデルを使えます。

+ +

Kimi を追加する

+
    +
  1. キーを取得Kimi API は Kimi プラットフォームの API キーページ、Kimi Code は Kimi Code コンソールで取得します。下の表にそれぞれのリンクがあります。
  2. +
  3. プロバイダを追加プロバイダ で + プロバイダを追加 を押し、キーを発行したプリセット(Kimi、Kimi(中国)、Kimi Code、Kimi Code(中国))を選んでキーを貼り付け、保存します。magpie が Kimi に提供モデルを問い合わせます。
  4. +
  5. ツールで選ぶエージェント タブでツールの行の Kimi モデルを選びます。API なら kimi-k2.6、Kimi Code なら kimi-for-coding などです。
  6. +
+
ターミナル
magpie provider add moonshot sk-…        # Kimi API(platform.kimi.ai)
+magpie provider add moonshot-cn sk-…     # Kimi API 中国版(platform.kimi.com)
+magpie provider add kimi-code sk-…       # Kimi Code メンバーシップ
+magpie provider add kimi-code-cn sk-…    # Kimi Code メンバーシップ、中国版
+

モデル ID は provider/model 形式で、moonshot/kimi-k2.6、kimi-code/kimi-for-coding のようになります。並ぶのは、そのとき Kimi があなたのキーに提供しているモデルです。

+ +

プランとエンドポイント

+
+ + + + + +
プリセットプランOpenAI Chat CompletionsAnthropic Messagesキーの取得先
KimiKimi API 従量課金https://api.moonshot.ai/v1https://api.moonshot.ai/anthropicplatform.kimi.ai
Kimi (中国)Kimi API 従量課金https://api.moonshot.cn/v1https://api.moonshot.cn/anthropicplatform.kimi.com
Kimi CodeKimi Code メンバーシップhttps://api.kimi.ai/coding/v1https://api.kimi.ai/codingkimi.ai/code/console
Kimi Code (中国)Kimi Code メンバーシップhttps://api.kimi.com/coding/v1https://api.kimi.com/codingkimi.com/code/console
+

キーは発行元のプランと地域のエンドポイントでしか使えないので、キーの取得先に合うプリセットを選んでください。

+ +

ツールごとの使い方

+

エージェント タブで各ツールの行のモデルをクリックして選ぶか、ターミナルで選びます。各ガイドに、magpie がそのツールの設定に何を書くか、どう元に戻すかがあります。

+
ターミナル
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 は Anthropic Messages を話し、Kimi の Anthropic エンドポイントも同じなので、リクエストはそのまま渡されます。opus・sonnet・haiku の各ティアは、個別に指定しない限り選んだモデルで動きます。Claude Code で他のモデル。
  • +
  • Codex が話すのは OpenAI Responses だけです。Kimi は Chat Completions と Anthropic Messages を提供し、Responses は提供していないので、magpie がリクエストと返答を変換します。ストリーミングとツール呼び出しもそのままです。モデルは推論レベル付きで Codex の /model に並びます。Codex で他のモデル。
  • +
  • Gemini CLI は Gemini の API を話します。magpie がゲートウェイに向けて変換します。Gemini CLI で他のモデル。
  • +
  • OpenCode には、magpie が opencode.json にモデルを推論バリアントと価格つきで書きます。OpenCode で他のモデル。
  • +
+ +

思考

+

常に思考する Kimi モデルもあります。Kimi Code(中国)の K3.1 は思考をオフにするリクエストを受け付けません。ツールがオフを求めてモデルが断ったとき、magpie は思考をオンのまま聞き直すので、ツールにはエラーではなく返答が届きます。

+ +

残高・使用量ウィンドウ・検索

+
    +
  • Kimi API。行に残高が表示されます。Kimi(中国)は人民元、Kimi はドルです。
  • +
  • Kimi Code。Kimi から読んだメンバーシップのウィンドウ(週の枠、5 時間などの短いウィンドウ、月の枠、ブースターパックの残高)が行に表示されます。
  • +
  • 費用。Kimi Code のモデルは $0 と記載されているので、magpie の 使用量 タブは同じモデルの Kimi API 価格で計算します。
  • +
  • ウェブ検索。Kimi Code のキーはメンバーシップ専用の検索エンドポイントで検索でき、magpie は自分では検索できない Kimi Code モデルにそれを渡します。
  • +
+ +

よくある質問

+

Kimi K2 を Codex で使うには?

+

magpie に Kimi のキーを追加し、Codex の行で kimi-k2.6 などの Kimi モデルを選ぶか、magpie codex moonshot/kimi-k2.6 を実行します。Kimi は Codex が話す Responses API を提供していないので、magpie がリクエストと返答を変換します。ストリーミングとツール呼び出しもそのままです。

+

Kimi Code のメンバーシップを Claude Code や Codex で使えますか?

+

使えます。Kimi Code(または Kimi Code(中国))のプリセットに Kimi Code コンソールのキーを追加します。magpie はメンバーシップ専用のエンドポイントにリクエストを送り、使用量ウィンドウを表示します。

+

Kimi と Kimi(中国)のどちらを選べば?

+

キーを発行したほうです。platform.kimi.ai のキーは Kimi(api.moonshot.ai)、platform.kimi.com のキーは Kimi(中国)(api.moonshot.cn)。Kimi Code も kimi.ai と kimi.com の 2 つに分かれます。

+

Kimi Code は定額なのに、なぜ費用が表示されますか?

+

Kimi Code のモデル一覧は価格を $0 としているので、magpie は同じモデルの Kimi API 価格で各呼び出しを計算します。API で同じ作業をした場合の額で、請求はされません。

+

Kimi Code でウェブ検索できますか?

+

できます。Kimi Code のキーはメンバーシップ専用の検索エンドポイントで検索でき、magpie は自分では検索できない Kimi Code モデルにその検索を渡します。

+ +

ツールごとのガイド:Claude Code で他のモデル、Codex で他のモデル、Gemini CLI で他のモデル、OpenCode で他のモデル。困ったときは Discord で質問してください。

+
+
+ + + + + + + diff --git a/site/public/docs/ja/opencode-models.html b/site/public/docs/ja/opencode-models.html index ff8468045..c3da26e6a 100644 --- a/site/public/docs/ja/opencode-models.html +++ b/site/public/docs/ja/opencode-models.html @@ -239,6 +239,8 @@ magpie visible opencode all # すべてに戻す
ターミナル
magpie opencode default

magpie を使う前の model と small_model が戻り、magpie プロバイダがファイルから取り除かれます。

+

プロバイダ別:DeepSeek · Kimi と Kimi Code · GLM Coding Plan

+

よくある質問

OpenCode で DeepSeek を使うには?

magpie に API キーで DeepSeek を追加し、エージェントタブで OpenCode の行に DeepSeek のモデルを選ぶか、magpie opencode deepseek/deepseek-v4-pro を実行します。magpie が opencode.json に magpie プロバイダを追加し、モデルを設定します。

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.

+ +

Add Kimi

+
    +
  1. 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.
  2. +
  3. 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.
  4. +
  5. 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.
  6. +
+
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.

+ +

Plans and endpoints

+
+ + + + + +
PresetPlanOpenAI Chat CompletionsAnthropic MessagesKey from
KimiKimi API, pay as you gohttps://api.moonshot.ai/v1https://api.moonshot.ai/anthropicplatform.kimi.ai
Kimi (China)Kimi API, pay as you gohttps://api.moonshot.cn/v1https://api.moonshot.cn/anthropicplatform.kimi.com
Kimi CodeKimi Code membershiphttps://api.kimi.ai/coding/v1https://api.kimi.ai/codingkimi.ai/code/console
Kimi Code (China)Kimi Code membershiphttps://api.kimi.com/coding/v1https://api.kimi.com/codingkimi.com/code/console
+

A key works only on the endpoints of the plan and region that issued it, so pick the preset that matches where you got it.

+ +

In each agent

+

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.
  • +
+ +

Thinking

+

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.

+ +

Balance, windows and search

+
    +
  • 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.
  • +
+ +

FAQ

+

How do I use Kimi K2 in Codex?

+

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.

+ +

Every agent: Models in Claude Code, Models in Codex, Models in Gemini CLI, Models in OpenCode. Ask on Discord if you get stuck.

+
+
+ + + + + + + diff --git a/site/public/docs/opencode-models.html b/site/public/docs/opencode-models.html index ca1428b77..7cd953987 100644 --- a/site/public/docs/opencode-models.html +++ b/site/public/docs/opencode-models.html @@ -239,6 +239,8 @@ magpie visible opencode all # every model again
Terminal
magpie opencode default

It puts back the model and small_model OpenCode had before magpie, and takes the magpie provider out of the file.

+

By provider: DeepSeek · Kimi and Kimi Code · GLM Coding Plan

+

FAQ

How do I use DeepSeek in OpenCode?

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

各种路由方式见 快速上手。

+

按供应商:DeepSeek · Kimi 与 Kimi Code · GLM 编程套餐

+

常见问题

需要自己设置 ANTHROPIC_BASE_URL 吗?

不需要,magpie 会写进 Claude Code 的 settings.json。如果你的 shell 环境变量里设了 CLAUDE_CODE_USE_BEDROCK、CLAUDE_CODE_USE_VERTEX 等云厂商开关,Claude Code 会把请求发到那个云而不是 magpie;magpie 会提示你,把它从 shell 配置里删掉即可。

diff --git a/site/public/docs/zh/codex-models.html b/site/public/docs/zh/codex-models.html index e4ccda2aa..10ea8c5ed 100644 --- a/site/public/docs/zh/codex-models.html +++ b/site/public/docs/zh/codex-models.html @@ -251,6 +251,8 @@ magpie codex claude/…

各种路由方式见 快速上手。

+

按供应商:DeepSeek · Kimi 与 Kimi Code · GLM 编程套餐

+

常见问题

需要自己写 [model_providers] 吗?

不需要。选模型时 magpie 会写好 Codex 的 config.toml,也不用导出 OPENAI_BASE_URL。

diff --git a/site/public/docs/zh/deepseek.html b/site/public/docs/zh/deepseek.html new file mode 100644 index 000000000..b1ec95028 --- /dev/null +++ b/site/public/docs/zh/deepseek.html @@ -0,0 +1,284 @@ + + + + + +DeepSeek 接入 Claude Code、Codex、Gemini CLI 和 OpenCode · magpie + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + +
+

文档 · 供应商

+

DeepSeek 接入 Claude Code、Codex、Gemini CLI 和 OpenCode

+

DeepSeek 同时提供 OpenAI 兼容接口和 Anthropic 兼容接口。在 magpie 里添加一次 Key,Claude Code、Codex、Gemini CLI、OpenCode 以及你连接的其他工具,都能通过 magpie 的本地网关 127.0.0.1:3425 用上 DeepSeek 的模型。

+ +

添加 DeepSeek

+
    +
  1. 拿到 API Key在 platform.deepseek.com/api_keys 创建。
  2. +
  3. 添加供应商在 magpie 的 供应商 页点 + 添加供应商,选 DeepSeek,粘贴 Key 并保存。magpie 会向 DeepSeek 查询它提供哪些模型,比如 deepseek-v4-pro 和 deepseek-v4-flash。
  4. +
  5. 给工具选上在 Agent 页点某个工具那一行的模型,选一个 DeepSeek 模型。
  6. +
+
终端
magpie provider add deepseek sk-…
+magpie models        # 所有模型,格式是 provider/model
+

magpie 里的模型 ID 是 provider/model,DeepSeek 的就是 deepseek/…。再添加一次预设会多出第二个 DeepSeek 供应商,用另一个 Key;想让请求分到多个 Key 上,就把它们都加到同一个供应商里。

+ +

接口地址

+

DeepSeek 只有按量付费一种计费方式,magpie 用的接口是:

+
+ + + +
协议接口地址
OpenAI Chat Completions 和 Responseshttps://api.deepseek.com/v1
Anthropic Messageshttps://api.deepseek.com/anthropic
+ +

在各个工具里用

+

在 Agent 页里点某个工具那一行的模型来选,或者在终端里选。每篇指南都写了 magpie 在那个工具的配置里改了什么、怎么换回去。

+
终端
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 说的是 Anthropic Messages,DeepSeek 的 Anthropic 接口也说这种协议,所以请求原样转过去。opus、sonnet、haiku 三档默认都用你选的模型,也可以给某一档单独指定。Claude Code 接入其他模型。
  • +
  • Codex 只说 OpenAI Responses。DeepSeek 自己就提供 Responses 接口,所以 Codex 的请求原样转过去。模型会出现在 Codex 的 /model 里,带着推理强度。Codex 接入其他模型。
  • +
  • Gemini CLI 说 Gemini 的 API。magpie 把它指向本地网关并做转换。Gemini CLI 接入其他模型。
  • +
  • OpenCode:magpie 把模型写进 opencode.json,带上推理档位和价格。OpenCode 接入其他模型。
  • +
+ +

思考、推理强度和缓存

+
    +
  • 工具轮次的思考块。DeepSeek 的 Anthropic 接口要求每个调用工具的助手轮次、以及只回传工具结果的轮次都带思考块。工具的历史里没有时,magpie 会补一个,并把 Claude 的 redacted_thinking 转成可用的思考块。所以路由分组可以在对话中途从 Claude 切到 DeepSeek。
  • +
  • 推理强度。DeepSeek 只有 low、high、max 三档,写在 output_config.effort 里,不看 budget_tokens。工具给的 token 预算会对到这三档之一。
  • +
  • 缓存。有多个 Key 时,magpie 会在对话最后一轮之后的一小时内,让它一直留在同一个 DeepSeek Key 上,下一轮就能读到 DeepSeek 的缓存,而不是不带缓存地发给另一个 Key。
  • +
  • 图片。工具发给 DeepSeek API 的每张图,magpie 只上传一次,之后的轮次用文件 ID 指代。magpie provider set deepseek image-files=off 改成每轮都内联发送。
  • +
+ +

余额与用量

+

DeepSeek 那一行会显示从 DeepSeek 读到的余额:总额、赠送金额和充值金额。用量 页按工具和模型统计经过 magpie 的 token、缓存命中和费用。

+ +

常见问题

+

DeepSeek 怎么接入 Claude Code?

+

在 magpie 里添加 DeepSeek 的 API Key(供应商 → 添加供应商 → DeepSeek),然后在 Claude Code 那一行选一个 DeepSeek 模型,比如 deepseek-v4-pro,或者运行 magpie claude deepseek/deepseek-v4-pro。magpie 会写好 Claude Code 的 settings.json,把请求转给 DeepSeek 的 Anthropic 接口 https://api.deepseek.com/anthropic。

+

Codex 能用 DeepSeek 吗?

+

能。DeepSeek 自己就提供 Codex 说的 OpenAI Responses 接口,所以 magpie 把 Codex 的请求原样转过去。在 Codex 那一行选模型,或运行 magpie codex deepseek/deepseek-v4-pro,模型会出现在 Codex 的 /model 里。

+

要自己把 ANTHROPIC_BASE_URL 设成 DeepSeek 吗?

+

不用。magpie 把 Claude Code 指向本地网关 127.0.0.1:3425,DeepSeek 的 Key 留在 magpie 里。重新选回 Claude Code 自己的模型,原来的设置就回来了。

+

同一个对话里能在 Claude 和 DeepSeek 之间切换吗?

+

能。DeepSeek 的 Anthropic 接口要求调用工具的轮次带思考块,而在 Claude 上开始的对话没有它能读的思考块。magpie 会补上,所以路由分组可以在对话中途从 Claude 切到 DeepSeek。

+

DeepSeek 支持哪些推理强度?

+

DeepSeek 只有三档:low、high 和 max,写在 output_config.effort 里,不看 budget_tokens。工具要的档位或 token 预算,magpie 会对到这三档之一。

+

可以用多个 DeepSeek Key 吗?

+

可以。把它们都加到 DeepSeek 这个供应商里并勾选。magpie 把请求分到各个 Key 上,同一个对话留在同一个 Key 上以复用缓存,某个 Key 余额用完就换下一个。

+ +

各个工具的指南:Claude Code 接入其他模型、Codex 接入其他模型、Gemini CLI 接入其他模型、OpenCode 接入其他模型。遇到问题可以在 Discord 提问。

+
+
+ + + + + + + diff --git a/site/public/docs/zh/gemini-cli-models.html b/site/public/docs/zh/gemini-cli-models.html index ce29d249e..0de388868 100644 --- a/site/public/docs/zh/gemini-cli-models.html +++ b/site/public/docs/zh/gemini-cli-models.html @@ -235,6 +235,8 @@ magpie gemini model codex/gpt-5.5

路由方式和规则详见 快速上手。

+

按供应商:DeepSeek · Kimi 与 Kimi Code · GLM 编程套餐

+

常见问题

Gemini CLI 能用 Gemini 以外的模型吗?

能,需要一个提供 Gemini API 的网关。magpie 在你电脑上跑一个,并把 Gemini CLI 指向它,所以你添加的供应商的任何模型都能用:DeepSeek、Kimi、GLM、通义千问、MiniMax,或者 Claude、ChatGPT、Copilot 订阅。

diff --git a/site/public/docs/zh/glm.html b/site/public/docs/zh/glm.html new file mode 100644 index 000000000..bad0d200e --- /dev/null +++ b/site/public/docs/zh/glm.html @@ -0,0 +1,288 @@ + + + + + +GLM 编程套餐接入 Claude Code、Codex、Gemini CLI 和 OpenCode · magpie + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + +
+

文档 · 供应商

+

GLM 编程套餐接入 Claude Code、Codex、Gemini CLI 和 OpenCode

+

智谱的 GLM 模型有两个入口:open.bigmodel.cn 的智谱 GLM 和 api.z.ai 的 Z.ai,每个都有两种套餐:按量付费和 GLM Coding Plan(编程套餐)。在 magpie 里添加 Key 并选好套餐,Claude Code、Codex、Gemini CLI、OpenCode 和其他工具就都能通过 magpie 的本地网关 127.0.0.1:3425 用 GLM。

+ +

添加 GLM

+
    +
  1. 拿到 Key智谱 GLM 在 open.bigmodel.cn,Z.ai 在 z.ai。
  2. +
  3. 添加供应商并选套餐在 供应商 页点 + 添加供应商,选智谱 GLM 或 Z.ai,选 Key 对应的套餐(按量付费 或 Coding Plan),粘贴 Key 并保存。
  4. +
  5. 给工具选上在 Agent 页给某个工具选 glm-5.3 这类 GLM 模型。
  6. +
+
终端
magpie provider add zhipu sk-… plan=coding   # GLM 编程套餐(open.bigmodel.cn)
+magpie provider add zai sk-… plan=coding     # GLM Coding Plan(z.ai)
+magpie provider add zhipu sk-… plan=api      # 按量付费
+
选 Key 对应的套餐。编程套餐的 Key 有自己的接口地址,发到按量付费的接口会提示余额不足(429,错误码 1113)。遇到这种情况,magpie 会改用编程套餐的接口再试,能用就把供应商切到套餐的接口;两边都拒绝时,报错会写清两边各说了什么、该改哪里。
+ +

套餐与接口地址

+
+ + + + + +
预设套餐OpenAI Chat CompletionsOpenAI ResponsesAnthropic Messages
智谱 GLM按量付费https://open.bigmodel.cn/api/paas/v4—https://open.bigmodel.cn/api/anthropic
智谱 GLMCoding Plan(编程套餐)https://open.bigmodel.cn/api/coding/paas/v4https://open.bigmodel.cn/api/v1https://open.bigmodel.cn/api/anthropic
Z.ai按量付费https://api.z.ai/api/paas/v4—https://api.z.ai/api/anthropic
Z.aiCoding Plan(编程套餐)https://api.z.ai/api/coding/paas/v4https://api.z.ai/api/v1https://api.z.ai/api/anthropic
+

两种套餐共用 Anthropic 接口,账号有编程套餐时按套餐计费。供应商里的每个 Key 都标明自己的套餐,所以一个供应商可以同时放按量付费和编程套餐的 Key,每个 Key 的请求、模型列表和用量窗口都按它自己的套餐来。

+ +

在各个工具里用

+

在 Agent 页里点某个工具那一行的模型来选,或者在终端里选。每篇指南都写了 magpie 在那个工具的配置里改了什么、怎么换回去。

+
终端
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 说的是 Anthropic Messages,GLM 的 Anthropic 接口也说这种协议,所以请求原样转过去。opus、sonnet、haiku 三档默认都用你选的模型,也可以给某一档单独指定。Claude Code 接入其他模型。
  • +
  • Codex 只说 OpenAI Responses。编程套餐自己就提供 Responses 接口,Codex 的请求原样转过去;按量付费时,magpie 把它转成 Chat Completions。模型会出现在 Codex 的 /model 里,带着推理强度。Codex 接入其他模型。
  • +
  • Gemini CLI 说 Gemini 的 API。magpie 把它指向本地网关并做转换。Gemini CLI 接入其他模型。
  • +
  • OpenCode:magpie 把模型写进 opencode.json,带上推理档位和价格。OpenCode 接入其他模型。
  • +
+ +

思考与推理强度

+
    +
  • GLM-5.3 一直在思考。它不接受关掉思考的请求。magpie 会保持思考开启再问一次,工具拿到的是回答而不是报错。
  • +
  • 推理强度。GLM-5.2 和 GLM-5.3 的推理档位写在 output_config.effort 里,magpie 把工具要的档位放在那里。
  • +
+ +

用量窗口与搜索

+
    +
  • 编程套餐的窗口。那一行显示从智谱或 Z.ai 读到的套餐窗口:按小时和按周的额度,以及本月的 MCP 工具调用次数。
  • +
  • 联网搜索。有编程套餐的 Key、且设置里没指定搜索服务时,magpie 用套餐自带的搜索服务给 GLM 模型联网搜索。
  • +
+ +

常见问题

+

GLM 编程套餐怎么接入 Claude Code?

+

在 magpie 里添加智谱 GLM(open.bigmodel.cn)或 Z.ai(api.z.ai),把 Key 的套餐选成 Coding Plan,然后在 Claude Code 那一行选 glm-5.3 这类模型,或者运行 magpie claude zhipu/glm-5.3。Claude Code 的请求走 Anthropic 接口,账号有编程套餐时按套餐计费。

+

GLM 能在 Codex 里用吗?

+

能。GLM Coding Plan 自己就提供 Codex 说的 OpenAI Responses 接口,magpie 原样转过去;按量付费的话,magpie 把 Codex 的请求转成 Chat Completions。运行 magpie codex zhipu/glm-5.3,或在 Codex 那一行选上。

+

GLM 编程套餐的 Key 为什么提示余额不足(1113)?

+

编程套餐的 Key 发到按量付费的接口 https://open.bigmodel.cn/api/paas/v4,会收到 429、错误码 1113。magpie 会改用编程套餐的接口 https://open.bigmodel.cn/api/coding/paas/v4 再试,能用的话就把这个供应商切到套餐的接口。添加 Key 时选对 Coding Plan 就不会遇到。

+

编程套餐的 Key 和按量付费的 Key 能同时用吗?

+

能。智谱 GLM 或 Z.ai 供应商里的每个 Key 都可以标明自己属于哪个套餐,请求发到那个套餐的接口,模型列表和用量窗口也按那个套餐来。

+

智谱 GLM 和 Z.ai 选哪个?

+

看 Key 是哪里发的:open.bigmodel.cn 的 Key 选智谱 GLM,z.ai 的 Key 选 Z.ai。

+

GLM-5.3 能关掉思考吗?

+

GLM-5.3 一直在思考,不接受关掉思考的请求。magpie 会保持思考开启再问一次,工具拿到的是回答。

+ +

各个工具的指南:Claude Code 接入其他模型、Codex 接入其他模型、Gemini CLI 接入其他模型、OpenCode 接入其他模型。遇到问题可以在 Discord 提问。

+
+
+ + + + + + + diff --git a/site/public/docs/zh/kimi.html b/site/public/docs/zh/kimi.html new file mode 100644 index 000000000..9fdff1e40 --- /dev/null +++ b/site/public/docs/zh/kimi.html @@ -0,0 +1,278 @@ + + + + + +Kimi K2 和 Kimi Code 套餐接入 Claude Code、Codex、Gemini CLI 和 OpenCode · magpie + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + +
+

文档 · 供应商

+

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 的模型。

+ +

添加 Kimi

+
    +
  1. 拿到 KeyKimi API 的 Key 在 Kimi 开放平台的 API Key 页面;Kimi Code 的在 Kimi Code 控制台。下表有各自的链接。
  2. +
  3. 添加供应商在 供应商 页点 + 添加供应商,选发这个 Key 的预设:Kimi、Kimi(国内)、Kimi Code 或 Kimi Code(国内)。粘贴 Key 并保存,magpie 会向 Kimi 查询可用的模型。
  4. +
  5. 给工具选上在 Agent 页给某个工具选 Kimi 模型:API 上比如 kimi-k2.6,Kimi Code 上比如 kimi-for-coding。
  6. +
+
终端
magpie provider add moonshot sk-…        # Kimi API(platform.kimi.ai)
+magpie provider add moonshot-cn sk-…     # Kimi API 国内版(platform.kimi.com)
+magpie provider add kimi-code sk-…       # Kimi Code 会员
+magpie provider add kimi-code-cn sk-…    # Kimi Code 会员,国内版
+

模型 ID 是 provider/model,比如 moonshot/kimi-k2.6、kimi-code/kimi-for-coding。列出的模型就是 Kimi 当时给你的 Key 提供的。

+ +

套餐与接口地址

+
+ + + + + +
预设计费OpenAI Chat CompletionsAnthropic MessagesKey 在哪拿
KimiKimi API 按量付费https://api.moonshot.ai/v1https://api.moonshot.ai/anthropicplatform.kimi.ai
Kimi (国内)Kimi API 按量付费https://api.moonshot.cn/v1https://api.moonshot.cn/anthropicplatform.kimi.com
Kimi CodeKimi Code 会员https://api.kimi.ai/coding/v1https://api.kimi.ai/codingkimi.ai/code/console
Kimi Code (国内)Kimi Code 会员https://api.kimi.com/coding/v1https://api.kimi.com/codingkimi.com/code/console
+

Key 只能用在发它的套餐和地区的接口上,所以要选和 Key 来源对应的预设。

+ +

在各个工具里用

+

在 Agent 页里点某个工具那一行的模型来选,或者在终端里选。每篇指南都写了 magpie 在那个工具的配置里改了什么、怎么换回去。

+
终端
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 说的是 Anthropic Messages,Kimi 的 Anthropic 接口也说这种协议,所以请求原样转过去。opus、sonnet、haiku 三档默认都用你选的模型,也可以给某一档单独指定。Claude Code 接入其他模型。
  • +
  • Codex 只说 OpenAI Responses。Kimi 提供 Chat Completions 和 Anthropic Messages,不提供 Responses,所以 magpie 会转换请求和回复,流式输出和工具调用都保留。模型会出现在 Codex 的 /model 里,带着推理强度。Codex 接入其他模型。
  • +
  • Gemini CLI 说 Gemini 的 API。magpie 把它指向本地网关并做转换。Gemini CLI 接入其他模型。
  • +
  • OpenCode:magpie 把模型写进 opencode.json,带上推理档位和价格。OpenCode 接入其他模型。
  • +
+ +

思考

+

有的 Kimi 模型一直在思考:Kimi Code(国内)的 K3.1 不接受关掉思考的请求。工具要求关掉思考而模型拒绝时,magpie 会保持思考开启再问一次,工具拿到的是回答而不是报错。

+ +

余额、用量窗口和搜索

+
    +
  • Kimi API。那一行显示余额:Kimi(国内)用人民币,Kimi 用美元。
  • +
  • Kimi Code。那一行显示从 Kimi 读到的会员用量窗口:每周额度、5 小时这类更短的窗口、每月额度,以及加油包余额。
  • +
  • 费用。Kimi Code 的模型标价是 $0,magpie 的 用量 页按 Kimi API 上同一模型的价格来算。
  • +
  • 联网搜索。Kimi Code 的 Key 可以用会员自带的搜索接口,magpie 会把它提供给自己不能搜索的 Kimi Code 模型。
  • +
+ +

常见问题

+

Kimi Code 套餐能在 Codex 里用吗?

+

能。在 magpie 里添加 Kimi Code(或 Kimi Code(国内))预设,填上 Kimi Code 控制台里的 Key,然后在 Codex 那一行选模型,比如 kimi-for-coding。Kimi 不提供 Codex 说的 Responses 接口,magpie 会转换请求和回复,流式输出和工具调用都保留。

+

Kimi K2 怎么接入 Codex?

+

添加 Kimi 的 API Key,然后在 Codex 那一行选 kimi-k2.6 这类模型,或者运行 magpie codex moonshot/kimi-k2.6。magpie 把 Codex 的 Responses 请求转换成 Kimi 的接口。

+

Kimi 和 Kimi(国内)选哪个?

+

看 Key 是哪里发的。platform.kimi.ai 的 Key 用 Kimi(api.moonshot.ai),platform.kimi.com 的用 Kimi(国内)(api.moonshot.cn)。Kimi Code 也一样分 kimi.ai 和 kimi.com 两个。

+

Kimi Code 是包月的,为什么用量里还有费用?

+

Kimi Code 的模型列表把价格写成 $0,magpie 就按 Kimi API 上同一个模型的价格来算每次调用。这个数字表示同样的活在 API 上要花多少,并不会扣费。

+

Kimi Code 能帮工具联网搜索吗?

+

能。Kimi Code 的 Key 可以用会员自带的搜索接口联网搜索,magpie 会把这个搜索提供给自己不能搜索的 Kimi Code 模型。

+ +

各个工具的指南:Claude Code 接入其他模型、Codex 接入其他模型、Gemini CLI 接入其他模型、OpenCode 接入其他模型。遇到问题可以在 Discord 提问。

+
+
+ + + + + + + diff --git a/site/public/docs/zh/opencode-models.html b/site/public/docs/zh/opencode-models.html index 609a31d5d..a34b8c7e9 100644 --- a/site/public/docs/zh/opencode-models.html +++ b/site/public/docs/zh/opencode-models.html @@ -239,6 +239,8 @@ magpie visible opencode all # 恢复显示全部
终端
magpie opencode default

它会恢复接入 magpie 之前的 model 和 small_model,并把 magpie 供应商从文件里删掉。

+

按供应商:DeepSeek · Kimi 与 Kimi Code · GLM 编程套餐

+

常见问题

OpenCode 怎么用 DeepSeek?

在 magpie 里用 API Key 添加 DeepSeek,然后在 Agent 页给 OpenCode 选一个 DeepSeek 模型,或运行 magpie opencode deepseek/deepseek-v4-pro。magpie 会在 opencode.json 里加上 magpie 供应商并设好模型。

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-models https://usemagpie.ai/docs/opencode-models https://usemagpie.ai/docs/alternatives +https://usemagpie.ai/docs/deepseek +https://usemagpie.ai/docs/kimi +https://usemagpie.ai/docs/glm https://usemagpie.ai/docs/zh/claude-code-models https://usemagpie.ai/docs/zh/codex-models https://usemagpie.ai/docs/zh/contributors @@ -42,6 +45,9 @@ https://usemagpie.ai/docs/zh/local-models https://usemagpie.ai/docs/zh/opencode-models https://usemagpie.ai/docs/zh/alternatives +https://usemagpie.ai/docs/zh/deepseek +https://usemagpie.ai/docs/zh/kimi +https://usemagpie.ai/docs/zh/glm https://usemagpie.ai/docs/ja/claude-code-models https://usemagpie.ai/docs/ja/codex-models https://usemagpie.ai/docs/ja/contributors @@ -60,4 +66,7 @@ https://usemagpie.ai/docs/ja/local-models https://usemagpie.ai/docs/ja/opencode-models https://usemagpie.ai/docs/ja/alternatives +https://usemagpie.ai/docs/ja/deepseek +https://usemagpie.ai/docs/ja/kimi +https://usemagpie.ai/docs/ja/glm