diff --git a/site/public/docs/ja/kimi-code.html b/site/public/docs/ja/kimi-code.html index 9b567f3f2..d6c475368 100644 --- a/site/public/docs/ja/kimi-code.html +++ b/site/public/docs/ja/kimi-code.html @@ -220,7 +220,7 @@ magpie kimi # Kimi Code の今のモデルWSL の Kimi Code でも使えますか?

使えます。magpie は WSL ディストリの Kimi Code も設定し、プロバイダはディストリから届くゲートウェイを指します。

-

同じモデルを他のエージェントでも:OpenCode で他のモデル、Claude Code で他のモデル、Qwen Code を任意のモデルで。エラーが出るときは よくあるエラーの直し方、または Discord で質問してください。

+

同じモデルを他のエージェントでも:OpenCode で他のモデル、Claude Code で他のモデル、Qwen Code を任意のモデルで、Pi を任意のモデルで。エラーが出るときは よくあるエラーの直し方、または Discord で質問してください。

diff --git a/site/public/docs/ja/pi.html b/site/public/docs/ja/pi.html new file mode 100644 index 000000000..d83882d4e --- /dev/null +++ b/site/public/docs/ja/pi.html @@ -0,0 +1,278 @@ + + + + + +Pi コーディングエージェントで DeepSeek、GLM、Qwen、GPT、Claude、ChatGPT サブスクリプションを使う:magpie で pi を任意のモデルに · magpie + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + +
+

ドキュメント · ガイド

+

Pi を任意のモデルで

+

Pi はコーディングエージェント pi で、models.json に自分のプロバイダを追加できます。magpie はそこに自分を加えるので、pi は magpie にある任意のモデルで動きます:DeepSeek、GLM、Qwen、OpenAI や Anthropic のキー、ChatGPT や Copilot のサブスクリプション。pi にキーを貼る必要はありません。

+ +

Pi の設定は ~/.pi/agent、または $PI_CODING_AGENT_DIR が指すフォルダにあります。magpie は models.json に magpie という名前のプロバイダを追加し、ゲートウェイのアドレス、専用のキー、magpie にあるモデルを書くので、それらが pi のモデルピッカーに並びます。次に settings.json の defaultProvider と defaultModel を選んだモデルにします。WSL の Pi も同じように設定されます。

+ +

Pi をつなぐ

+
    +
  1. magpie にプロバイダを追加プロバイダ タブで API キーを追加するか、サブスクリプションにサインインします。
  2. +
  3. Pi の行でモデルを選ぶエージェント タブで magpie の下のモデルを選びます。
  4. +
  5. pi を起動そのモデルで始まり、magpie のすべてのモデルがモデルピッカーにあります。
  6. +
+
ターミナル
magpie pi deepseek/deepseek-v4-pro    # Pi を DeepSeek で
+magpie pi                             # Pi が今使っているモデル
+ +

各モデルに書かれる内容

+ +

Pi は各リクエストにセッションを付けて送る(sendSessionAffinityHeaders)ので、magpie の使用量に pi のセッションごとに表示され、ゲートウェイの会話を記録 にも残ります。自分で設定した値は残ります。

+ +

Ctrl+P の一覧

+

Pi は Ctrl+P で enabledModels のモデルを切り替えます。この一覧は /scoped-models で編集します。一覧があれば magpie は選んだモデルをそこに加えます。なければ作らないので、Ctrl+P は引き続きすべてのモデルを切り替えます。

+ +

判断モデルと画像モデル

+

magpie は Pi のフォルダに拡張 extensions/magpie.ts も置きます。codemode 用に magpie の判断モデルと画像モデルを追加します。magpie プロバイダがある間だけ存在し、プロバイダと一緒に消えます。

+ +

あなたのファイル

+

最初に書き込む前に、magpie は settings.json と models.json を横の .before-magpie ファイルにコピーします。あなたのプロバイダや設定はそのままで、Pi の行には magpie のモデルと並んであなたのモデルも表示されます。

+ +

元に戻す

+

行で自分のモデルを選ぶか、行を magpie から外すか、magpie pi default を実行します。その後何も変えていなければ、magpie は両方のファイルをバイト単位で元に戻します。変えていれば、自分のプロバイダだけを取り除き、あなたの変更は残します。

+ +

よくある質問

+

Pi で DeepSeek や GLM は使えますか?

+

使えます。magpie にあるすべてのモデルが pi のモデルピッカーにあります:DeepSeek、GLM、Qwen、GPT、Claude など。

+

Pi で ChatGPT サブスクリプションは使えますか?

+

使えます。magpie で ChatGPT にサインインし、Pi の行で magpie の下の GPT モデルを選びます。pi は magpie にリクエストを送り、magpie が Responses API でサブスクリプションを使います。

+

PI_CODING_AGENT_DIR を設定すると、magpie はどこに書きますか?

+

そのフォルダに書きます。~ は展開されます。相対パスは無視され、magpie は ~/.pi/agent を使います。

+

WSL の Pi でも使えますか?

+

使えます。magpie は WSL ディストリの Pi も設定し、プロバイダはディストリから届くゲートウェイを指します。

+ +

同じモデルで使えるほかのエージェント:OpenCode で他のモデル、Claude Code で他のモデル、Kimi Code を任意のモデルで。うまくいかないときは よくあるエラーの対処 を見るか、Discord で質問してください。

+
+
+ + + + + + + diff --git a/site/public/docs/kimi-code.html b/site/public/docs/kimi-code.html index 4dd961caf..eb792ca81 100644 --- a/site/public/docs/kimi-code.html +++ b/site/public/docs/kimi-code.html @@ -220,7 +220,7 @@ magpie kimi # what Kimi Code runs on now

Does it work with Kimi Code in WSL?

Yes. magpie sets up a Kimi Code in a WSL distro too, its provider pointing at the gateway as the distro reaches it.

-

More agents on the same models: Models in OpenCode, Models in Claude Code and Qwen Code on any model. Something fails? See Fixing common errors, or ask on Discord.

+

More agents on the same models: Models in OpenCode, Models in Claude Code, Qwen Code on any model and Pi on any model. Something fails? See Fixing common errors, or ask on Discord.

diff --git a/site/public/docs/pi.html b/site/public/docs/pi.html new file mode 100644 index 000000000..3fcbef5f3 --- /dev/null +++ b/site/public/docs/pi.html @@ -0,0 +1,278 @@ + + + + + +Pi coding agent with DeepSeek, GLM, Qwen, GPT, Claude or a ChatGPT subscription: any model in pi through magpie · magpie + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + +
+

Docs · Guide

+

Pi on any model

+

Pi, the pi coding agent, takes providers of your own in its models.json. magpie adds itself there, so pi can run on any model you have in magpie: DeepSeek, GLM, Qwen, an OpenAI or Anthropic key, or a ChatGPT or Copilot subscription, with no key pasted into pi.

+ +

Pi keeps its settings in ~/.pi/agent, or in the folder $PI_CODING_AGENT_DIR names. magpie adds a provider named magpie to models.json, with the gateway’s address, a key of its own and the models you have in magpie, so they join pi’s model picker. Then it sets defaultProvider and defaultModel in settings.json to your pick. A Pi in WSL is set up the same way.

+ +

Connect Pi

+
    +
  1. Add providers in magpieIn the Providers tab, add an API key or sign in to a subscription.
  2. +
  3. Pick a model on Pi’s rowIn the Agents tab, choose a model under magpie.
  4. +
  5. Run piIt starts on that model, and every model of magpie’s is in its model picker.
  6. +
+
Terminal
magpie pi deepseek/deepseek-v4-pro    # Pi on DeepSeek
+magpie pi                             # what Pi runs on now
+ +

What each model gets

+ +

Pi sends its session with each request (sendSessionAffinityHeaders), so magpie’s usage shows each pi session and Record gateway conversations keeps them. A value you set there yourself stays.

+ +

The Ctrl+P list

+

Pi cycles models with Ctrl+P through enabledModels, the list /scoped-models edits. If you have such a list, magpie adds the model you picked to it. If you don’t, magpie never makes one, so Ctrl+P keeps cycling every model.

+ +

Decision and image models

+

magpie also puts an extension, extensions/magpie.ts, in Pi’s folder. It adds magpie’s decision models and image models, for codemode. It is there while the magpie provider is, and goes with it.

+ +

Your own files

+

Before its first write, magpie copies settings.json and models.json to .before-magpie files beside them. Your own providers and settings stay as they are, and Pi’s row lists your models beside magpie’s.

+ +

Switch back

+

Pick one of your own models on the row, take the row off magpie, or run magpie pi default. If you changed nothing since, magpie puts both files back byte for byte. Otherwise it removes only its own provider and keeps your changes.

+ +

FAQ

+

Can Pi run on DeepSeek or GLM?

+

Yes. Any model you have in magpie is in pi’s model picker: DeepSeek, GLM, Qwen, GPT, Claude and more.

+

Can Pi use my ChatGPT subscription?

+

Yes. Sign in to ChatGPT in magpie and pick a GPT model under magpie on Pi’s row. pi sends its requests to magpie, which uses the subscription on the Responses API.

+

Where does magpie write if I set PI_CODING_AGENT_DIR?

+

In that folder, with ~ expanded. A relative path is ignored, and magpie uses ~/.pi/agent.

+

Does it work with Pi in WSL?

+

Yes. magpie sets up a Pi in a WSL distro too, its provider pointing at the gateway as the distro reaches it.

+ +

More agents on the same models: Models in OpenCode, Models in Claude Code and Kimi Code on any model. Something fails? See Fixing common errors, or ask on Discord.

+
+
+ + + + + + + diff --git a/site/public/docs/zh/kimi-code.html b/site/public/docs/zh/kimi-code.html index d5d38131a..f4656e02d 100644 --- a/site/public/docs/zh/kimi-code.html +++ b/site/public/docs/zh/kimi-code.html @@ -220,7 +220,7 @@ magpie kimi # 查看 Kimi Code 当前的模型

WSL 里的 Kimi Code 能用吗?

能。magpie 也会设置 WSL 发行版里的 Kimi Code,供应商指向发行版能访问到的网关地址。

-

更多 Agent 用同样的模型:OpenCode 接入其他模型、Claude Code 接入其他模型、让 Qwen Code 用任意模型。遇到报错?见 常见错误排查,或到 Discord 提问。

+

更多 Agent 用同样的模型:OpenCode 接入其他模型、Claude Code 接入其他模型、让 Qwen Code 用任意模型、让 Pi 用任意模型。遇到报错?见 常见错误排查,或到 Discord 提问。

diff --git a/site/public/docs/zh/pi.html b/site/public/docs/zh/pi.html new file mode 100644 index 000000000..d83ed043d --- /dev/null +++ b/site/public/docs/zh/pi.html @@ -0,0 +1,278 @@ + + + + + +Pi 编程 Agent 接入 DeepSeek、GLM、Qwen、GPT、Claude 或 ChatGPT 订阅:通过 magpie 让 pi 用任意模型 · magpie + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + +
+

文档 · 指南

+

让 Pi 用任意模型

+

Pi 是编程 Agent pi,可以在 models.json 里添加你自己的供应商。magpie 把自己加进去,于是 pi 能用你在 magpie 里的任何模型:DeepSeek、GLM、Qwen、OpenAI 或 Anthropic Key,或 ChatGPT、Copilot 订阅,不用往 pi 里贴 Key。

+ +

Pi 的设置在 ~/.pi/agent,或 $PI_CODING_AGENT_DIR 指定的文件夹。magpie 在 models.json 里添加一个名为 magpie 的供应商,写入网关地址、一个专用 Key 和你在 magpie 里的模型,于是它们出现在 pi 的模型选择器里,然后把 settings.json 的 defaultProvider 和 defaultModel 设为你选的模型。WSL 里的 Pi 也一样设置。

+ +

接入 Pi

+
    +
  1. 在 magpie 里添加供应商在 供应商 页添加 API Key,或登录一个订阅。
  2. +
  3. 在 Pi 那一行选模型在 Agent 页,选 magpie 下的一个模型。
  4. +
  5. 运行 pi它用这个模型启动,magpie 的每个模型也都在它的模型选择器里。
  6. +
+
终端
magpie pi deepseek/deepseek-v4-pro    # Pi 用 DeepSeek
+magpie pi                             # 查看 Pi 当前的模型
+ +

每个模型写了什么

+ +

Pi 的每个请求都带上它的会话(sendSessionAffinityHeaders),所以 magpie 的用量能按 pi 会话显示,记录网关对话 也能记下它们。你自己设过的值会保留。

+ +

Ctrl+P 列表

+

Pi 按 Ctrl+P 在 enabledModels 里轮换模型,这个列表由 /scoped-models 编辑。你有这个列表时,magpie 把你选的模型加进去;没有时,magpie 不会新建,所以 Ctrl+P 仍然轮换所有模型。

+ +

决策和图片模型

+

magpie 还在 Pi 的文件夹里放一个扩展 extensions/magpie.ts,为 codemode 添加 magpie 的决策模型和图片模型。magpie 供应商在,它就在;供应商移除,它也随之移除。

+ +

你自己的文件

+

第一次写入前,magpie 把 settings.json 和 models.json 复制为旁边的 .before-magpie 文件。你自己的供应商和设置保持原样,Pi 那一行会把你的模型和 magpie 的并列显示。

+ +

切回

+

在那一行选你自己的模型、把那一行从 magpie 取消,或运行 magpie pi default。如果之后你什么都没改,magpie 把两个文件逐字节还原;否则只移除它自己的供应商,保留你的改动。

+ +

常见问题

+

Pi 能用 DeepSeek 或 GLM 吗?

+

能。你在 magpie 里的任何模型都在 pi 的模型选择器里:DeepSeek、GLM、Qwen、GPT、Claude 等。

+

Pi 能用我的 ChatGPT 订阅吗?

+

能。在 magpie 里登录 ChatGPT,在 Pi 那一行选 magpie 下的 GPT 模型。pi 把请求发给 magpie,magpie 通过 Responses API 使用该订阅。

+

设置了 PI_CODING_AGENT_DIR,magpie 写到哪里?

+

写到那个文件夹,~ 会展开。相对路径会被忽略,此时 magpie 用 ~/.pi/agent。

+

WSL 里的 Pi 能用吗?

+

能。magpie 也会设置 WSL 发行版里的 Pi,供应商指向发行版能访问到的网关地址。

+ +

更多 Agent 用同样的模型:OpenCode 接入其他模型、Claude Code 接入其他模型、让 Kimi Code 用任意模型。遇到报错?见 常见错误排查,或到 Discord 提问。

+
+
+ + + + + + + diff --git a/site/public/llms-full.txt b/site/public/llms-full.txt index 9b8c5991b..7824b9c82 100644 --- a/site/public/llms-full.txt +++ b/site/public/llms-full.txt @@ -3897,7 +3897,72 @@ Yes. Where there is no ~/.kimi-code, magpie writes to kimi-cli’s ~/.kimi, with Yes. magpie sets up a Kimi Code in a WSL distro too, its provider pointing at the gateway as the distro reaches it. -More agents on the same models: [Models in OpenCode](https://usemagpie.ai/docs/opencode-models), [Models in Claude Code](https://usemagpie.ai/docs/claude-code-models) and [Qwen Code on any model](https://usemagpie.ai/docs/qwen-code). Something fails? See [Fixing common errors](https://usemagpie.ai/docs/troubleshooting), or ask on [Discord](https://discord.gg/vGSnD3ZKQF). +More agents on the same models: [Models in OpenCode](https://usemagpie.ai/docs/opencode-models), [Models in Claude Code](https://usemagpie.ai/docs/claude-code-models), [Qwen Code on any model](https://usemagpie.ai/docs/qwen-code) and [Pi on any model](https://usemagpie.ai/docs/pi). Something fails? See [Fixing common errors](https://usemagpie.ai/docs/troubleshooting), or ask on [Discord](https://discord.gg/vGSnD3ZKQF). + +--- + +Source: https://usemagpie.ai/docs/pi + +# Pi on any model + +Pi, the `pi` coding agent, takes providers of your own in its `models.json`. magpie adds itself there, so pi can run on any model you have in magpie: DeepSeek, GLM, Qwen, an OpenAI or Anthropic key, or a ChatGPT or Copilot subscription, with no key pasted into pi. + +Pi keeps its settings in `~/.pi/agent`, or in the folder `$PI_CODING_AGENT_DIR` names. magpie adds a provider named `magpie` to `models.json`, with the gateway’s address, a key of its own and the models you have in magpie, so they join pi’s model picker. Then it sets `defaultProvider` and `defaultModel` in `settings.json` to your pick. A Pi in WSL is set up the same way. + +## Connect Pi + +1. **Add providers in magpie.** In the Providers tab, add an API key or sign in to a subscription. +2. **Pick a model on Pi’s row.** In the Agents tab, choose a model under magpie. +3. **Run pi.** It starts on that model, and every model of magpie’s is in its model picker. + +``` +magpie pi deepseek/deepseek-v4-pro # Pi on DeepSeek +magpie pi # what Pi runs on now +``` + +## What each model gets + +- **Its own API.** Each model is asked on its provider’s native API: GPT and ChatGPT models on Responses, Claude on Messages, the rest on Chat Completions. A Claude model that thinks only adaptively gets `forceAdaptiveThinking`. +- **Name, context and replies.** The name pi shows, `reasoning` for models that think, `contextWindow`, image input where the model takes images, and `maxTokens`. A `maxTokens` you typed in yourself stays. +- **Thinking level.** The level you pick in magpie goes in `defaultThinkingLevel`, held to the levels Pi offers. + +Pi sends its session with each request (`sendSessionAffinityHeaders`), so magpie’s usage shows each pi session and Record gateway conversations keeps them. A value you set there yourself stays. + +## The Ctrl+P list + +Pi cycles models with Ctrl+P through `enabledModels`, the list `/scoped-models` edits. If you have such a list, magpie adds the model you picked to it. If you don’t, magpie never makes one, so Ctrl+P keeps cycling every model. + +## Decision and image models + +magpie also puts an extension, `extensions/magpie.ts`, in Pi’s folder. It adds magpie’s decision models and image models, for codemode. It is there while the `magpie` provider is, and goes with it. + +## Your own files + +Before its first write, magpie copies `settings.json` and `models.json` to `.before-magpie` files beside them. Your own providers and settings stay as they are, and Pi’s row lists your models beside magpie’s. + +## Switch back + +Pick one of your own models on the row, take the row off magpie, or run `magpie pi default`. If you changed nothing since, magpie puts both files back byte for byte. Otherwise it removes only its own provider and keeps your changes. + +## FAQ + +### Can Pi run on DeepSeek or GLM? + +Yes. Any model you have in magpie is in pi’s model picker: DeepSeek, GLM, Qwen, GPT, Claude and more. + +### Can Pi use my ChatGPT subscription? + +Yes. Sign in to ChatGPT in magpie and pick a GPT model under magpie on Pi’s row. pi sends its requests to magpie, which uses the subscription on the Responses API. + +### Where does magpie write if I set PI_CODING_AGENT_DIR? + +In that folder, with ~ expanded. A relative path is ignored, and magpie uses ~/.pi/agent. + +### Does it work with Pi in WSL? + +Yes. magpie sets up a Pi in a WSL distro too, its provider pointing at the gateway as the distro reaches it. + +More agents on the same models: [Models in OpenCode](https://usemagpie.ai/docs/opencode-models), [Models in Claude Code](https://usemagpie.ai/docs/claude-code-models) and [Kimi Code on any model](https://usemagpie.ai/docs/kimi-code). Something fails? See [Fixing common errors](https://usemagpie.ai/docs/troubleshooting), or ask on [Discord](https://discord.gg/vGSnD3ZKQF). --- diff --git a/site/public/llms.txt b/site/public/llms.txt index a3572e42d..5a65960fe 100644 --- a/site/public/llms.txt +++ b/site/public/llms.txt @@ -72,6 +72,7 @@ DeepSeek, Kimi (Moonshot), GLM (Zhipu), Qwen, MiniMax, Anthropic (Claude), OpenA - [Copilot CLI on any model](https://usemagpie.ai/docs/copilot-cli): run GitHub Copilot CLI on DeepSeek, Kimi, GLM, Qwen, GPT or a ChatGPT subscription through a BYOK provider magpie adds to providers.json, with no GitHub sign-in; the magpie/ model in settings.json, effortLevel, your own providers kept and switching back. - [Qwen Code on any model](https://usemagpie.ai/docs/qwen-code): run Qwen Code (qwen) on DeepSeek, Kimi, GLM, GPT, Claude or a ChatGPT subscription through modelProviders entries magpie adds to ~/.qwen/settings.json; the MAGPIE_QWEN_API_KEY key, /auth skipped, your own models kept, WSL and switching back. - [Kimi Code on any model](https://usemagpie.ai/docs/kimi-code): run Kimi Code (Moonshot's kimi CLI) on DeepSeek, GLM, Qwen, GPT, Claude or a ChatGPT subscription through the provider and model tables magpie adds to ~/.kimi-code/config.toml; thinking levels, images and tools, the old kimi-cli, WSL and switching back. +- [Pi on any model](https://usemagpie.ai/docs/pi): run the pi coding agent on DeepSeek, GLM, Qwen, GPT, Claude or a ChatGPT subscription through magpie: the magpie provider in ~/.pi/agent/models.json, settings.json's default, thinking levels, the Ctrl+P list, decision and image models, your files put back. - [Cherry Studio](https://usemagpie.ai/docs/cherry-studio): add magpie to Cherry Studio as one OpenAI-compatible provider in one click, confirmed in Cherry Studio, and use every magpie model there, Claude, ChatGPT and Copilot subscriptions included; model list, status and usage. - [Fixing common errors](https://usemagpie.ai/docs/troubleshooting): what the gateway's errors mean and the fix: 401 and 403, 429 and rest periods, 502 and 504, model not found, an agent that doesn't show a model, port 3425 in use, agents in WSL, use from another computer and subscriptions moved to plugins. - [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 bce55e19d..c91be9020 100644 --- a/site/public/sitemap.xml +++ b/site/public/sitemap.xml @@ -35,6 +35,7 @@ https://usemagpie.ai/docs/copilot-cli https://usemagpie.ai/docs/qwen-code https://usemagpie.ai/docs/kimi-code +https://usemagpie.ai/docs/pi https://usemagpie.ai/docs/local-models https://usemagpie.ai/docs/opencode-models https://usemagpie.ai/docs/alternatives @@ -82,6 +83,7 @@ https://usemagpie.ai/docs/zh/copilot-cli https://usemagpie.ai/docs/zh/qwen-code https://usemagpie.ai/docs/zh/kimi-code +https://usemagpie.ai/docs/zh/pi https://usemagpie.ai/docs/zh/local-models https://usemagpie.ai/docs/zh/opencode-models https://usemagpie.ai/docs/zh/alternatives @@ -128,6 +130,7 @@ https://usemagpie.ai/docs/ja/copilot-cli https://usemagpie.ai/docs/ja/qwen-code https://usemagpie.ai/docs/ja/kimi-code +https://usemagpie.ai/docs/ja/pi https://usemagpie.ai/docs/ja/local-models https://usemagpie.ai/docs/ja/opencode-models https://usemagpie.ai/docs/ja/alternatives