diff --git a/site/public/docs/claude-code-models.html b/site/public/docs/claude-code-models.html index 7cc306641..adfe5d110 100644 --- a/site/public/docs/claude-code-models.html +++ b/site/public/docs/claude-code-models.html @@ -146,6 +146,7 @@ Models in Gemini CLI Subscriptions in any agent Local models + Models in OpenCode Add to magpie Integrate Releases @@ -286,6 +287,7 @@ magpie claude codex/gpt-5.5 Models in Gemini CLI Subscriptions in any agent Local models + Models in OpenCode Add to magpie Integrate GitHub diff --git a/site/public/docs/codex-models.html b/site/public/docs/codex-models.html index 50c0bed70..561446a6f 100644 --- a/site/public/docs/codex-models.html +++ b/site/public/docs/codex-models.html @@ -146,6 +146,7 @@ Models in Gemini CLI Subscriptions in any agent Local models + Models in OpenCode Add to magpie Integrate Releases @@ -286,6 +287,7 @@ magpie codex claude/… Models in Gemini CLI Subscriptions in any agent Local models + Models in OpenCode Add to magpie Integrate GitHub diff --git a/site/public/docs/contributors.html b/site/public/docs/contributors.html index 2e1ce0ce5..a4565f2b8 100644 --- a/site/public/docs/contributors.html +++ b/site/public/docs/contributors.html @@ -60,6 +60,7 @@ Models in Gemini CLI Subscriptions in any agent Local models + Models in OpenCode Add to magpie Integrate Releases @@ -127,6 +128,7 @@ Models in Gemini CLI Subscriptions in any agent Local models + Models in OpenCode Add to magpie Integrate GitHub diff --git a/site/public/docs/docker.html b/site/public/docs/docker.html index 9fbe0fa85..12981cbdd 100644 --- a/site/public/docs/docker.html +++ b/site/public/docs/docker.html @@ -60,6 +60,7 @@ Models in Gemini CLI Subscriptions in any agent Local models + Models in OpenCode Add to magpie Integrate Releases @@ -247,6 +248,7 @@ docker logs magpie Models in Gemini CLI Subscriptions in any agent Local models + Models in OpenCode Add to magpie Integrate GitHub diff --git a/site/public/docs/gemini-cli-models.html b/site/public/docs/gemini-cli-models.html index 4a89b732f..b3832760d 100644 --- a/site/public/docs/gemini-cli-models.html +++ b/site/public/docs/gemini-cli-models.html @@ -146,6 +146,7 @@ Models in Gemini CLI Subscriptions in any agent Local models + Models in OpenCode Add to magpie Integrate Releases @@ -270,6 +271,7 @@ magpie gemini model codex/gpt-5.5 Models in Gemini CLI Subscriptions in any agent Local models + Models in OpenCode Add to magpie Integrate GitHub diff --git a/site/public/docs/import.html b/site/public/docs/import.html index f27dd5754..4577aa1d0 100644 --- a/site/public/docs/import.html +++ b/site/public/docs/import.html @@ -60,6 +60,7 @@ Models in Gemini CLI Subscriptions in any agent Local models + Models in OpenCode Add to magpie Integrate Releases @@ -290,6 +291,7 @@ href = "https://usemagpie.ai/import#" + urlencode({ Models in Gemini CLI Subscriptions in any agent Local models + Models in OpenCode GitHub Discord Contributors diff --git a/site/public/docs/integrate.html b/site/public/docs/integrate.html index 4df95994e..d5ed3d815 100644 --- a/site/public/docs/integrate.html +++ b/site/public/docs/integrate.html @@ -59,6 +59,7 @@ Models in Gemini CLI Subscriptions in any agent Local models + Models in OpenCode Add to magpie Integrate Releases @@ -175,6 +176,7 @@ curl -s http://127.0.0.1:3425/v1/models -H "Authorization: Bearer magpie-acme"Models in Gemini CLI Subscriptions in any agent Local models + Models in OpenCode Add to magpie Integrate GitHub diff --git a/site/public/docs/intent.html b/site/public/docs/intent.html index c9d003970..6fc0bfc5c 100644 --- a/site/public/docs/intent.html +++ b/site/public/docs/intent.html @@ -60,6 +60,7 @@ Models in Gemini CLI Subscriptions in any agent Local models + Models in OpenCode Add to magpie Integrate Releases @@ -345,6 +346,7 @@ The number of its kind (0 for none): Models in Gemini CLI Subscriptions in any agent Local models + Models in OpenCode Add to magpie Integrate GitHub diff --git a/site/public/docs/ja/claude-code-models.html b/site/public/docs/ja/claude-code-models.html index 25937d89c..78b84f0ae 100644 --- a/site/public/docs/ja/claude-code-models.html +++ b/site/public/docs/ja/claude-code-models.html @@ -146,6 +146,7 @@ Gemini CLI で他のモデル サブスクを任意のエージェントで ローカルモデル + OpenCode で他のモデル magpie に追加 アプリ連携 リリース @@ -286,6 +287,7 @@ magpie claude codex/gpt-5.5 Gemini CLI で他のモデル サブスクを任意のエージェントで ローカルモデル + OpenCode で他のモデル magpie に追加 アプリ連携 GitHub diff --git a/site/public/docs/ja/codex-models.html b/site/public/docs/ja/codex-models.html index 8dd18ae88..7f73b67c6 100644 --- a/site/public/docs/ja/codex-models.html +++ b/site/public/docs/ja/codex-models.html @@ -146,6 +146,7 @@ Gemini CLI で他のモデル サブスクを任意のエージェントで ローカルモデル + OpenCode で他のモデル magpie に追加 アプリ連携 リリース @@ -286,6 +287,7 @@ magpie codex claude/… Gemini CLI で他のモデル サブスクを任意のエージェントで ローカルモデル + OpenCode で他のモデル magpie に追加 アプリ連携 GitHub diff --git a/site/public/docs/ja/contributors.html b/site/public/docs/ja/contributors.html index f51d63d30..04b1c994f 100644 --- a/site/public/docs/ja/contributors.html +++ b/site/public/docs/ja/contributors.html @@ -60,6 +60,7 @@ Gemini CLI で他のモデル サブスクを任意のエージェントで ローカルモデル + OpenCode で他のモデル magpie に追加 アプリ連携 リリース @@ -127,6 +128,7 @@ Gemini CLI で他のモデル サブスクを任意のエージェントで ローカルモデル + OpenCode で他のモデル magpie に追加 アプリ連携 GitHub diff --git a/site/public/docs/ja/docker.html b/site/public/docs/ja/docker.html index d027e3793..18f2dbf20 100644 --- a/site/public/docs/ja/docker.html +++ b/site/public/docs/ja/docker.html @@ -60,6 +60,7 @@ Gemini CLI で他のモデル サブスクを任意のエージェントで ローカルモデル + OpenCode で他のモデル magpie に追加 アプリ連携 リリース @@ -247,6 +248,7 @@ docker logs magpie Gemini CLI で他のモデル サブスクを任意のエージェントで ローカルモデル + OpenCode で他のモデル magpie に追加 アプリ連携 GitHub diff --git a/site/public/docs/ja/gemini-cli-models.html b/site/public/docs/ja/gemini-cli-models.html index c3a93f7ac..ba33dd607 100644 --- a/site/public/docs/ja/gemini-cli-models.html +++ b/site/public/docs/ja/gemini-cli-models.html @@ -146,6 +146,7 @@ Gemini CLI で他のモデル サブスクを任意のエージェントで ローカルモデル + OpenCode で他のモデル magpie に追加 アプリ連携 リリース @@ -270,6 +271,7 @@ magpie gemini model codex/gpt-5.5 Gemini CLI で他のモデル サブスクを任意のエージェントで ローカルモデル + OpenCode で他のモデル magpie に追加 アプリ連携 GitHub diff --git a/site/public/docs/ja/import.html b/site/public/docs/ja/import.html index b030e9eec..0aca75890 100644 --- a/site/public/docs/ja/import.html +++ b/site/public/docs/ja/import.html @@ -60,6 +60,7 @@ Gemini CLI で他のモデル サブスクを任意のエージェントで ローカルモデル + OpenCode で他のモデル magpie に追加 アプリ連携 リリース @@ -290,6 +291,7 @@ href = "https://usemagpie.ai/import#" + urlencode({ Gemini CLI で他のモデル サブスクを任意のエージェントで ローカルモデル + OpenCode で他のモデル GitHub Discord コントリビューター diff --git a/site/public/docs/ja/intent.html b/site/public/docs/ja/intent.html index 963983ccf..f159de4ca 100644 --- a/site/public/docs/ja/intent.html +++ b/site/public/docs/ja/intent.html @@ -60,6 +60,7 @@ Gemini CLI で他のモデル サブスクを任意のエージェントで ローカルモデル + OpenCode で他のモデル magpie に追加 アプリ連携 リリース @@ -345,6 +346,7 @@ The number of its kind (0 for none): Gemini CLI で他のモデル サブスクを任意のエージェントで ローカルモデル + OpenCode で他のモデル magpie に追加 アプリ連携 GitHub diff --git a/site/public/docs/ja/library.html b/site/public/docs/ja/library.html index 1113607ca..d0857e1ee 100644 --- a/site/public/docs/ja/library.html +++ b/site/public/docs/ja/library.html @@ -60,6 +60,7 @@ Gemini CLI で他のモデル サブスクを任意のエージェントで ローカルモデル + OpenCode で他のモデル magpie に追加 アプリ連携 リリース @@ -261,6 +262,7 @@ magpie library sync # エージェントに書き直す Gemini CLI で他のモデル サブスクを任意のエージェントで ローカルモデル + OpenCode で他のモデル magpie に追加 アプリ連携 GitHub diff --git a/site/public/docs/ja/local-models.html b/site/public/docs/ja/local-models.html index 6a50d10e8..4fc00b007 100644 --- a/site/public/docs/ja/local-models.html +++ b/site/public/docs/ja/local-models.html @@ -138,6 +138,7 @@ Gemini CLI で他のモデル サブスクを任意のエージェントで ローカルモデル + OpenCode で他のモデル magpie に追加 アプリ連携 リリース @@ -260,6 +261,7 @@ magpie provider set ollama context.qwen3=128k Gemini CLI で他のモデル サブスクを任意のエージェントで ローカルモデル + OpenCode で他のモデル magpie に追加 アプリ連携 GitHub diff --git a/site/public/docs/ja/masking.html b/site/public/docs/ja/masking.html index 4f55f2eb6..99fd7b6ed 100644 --- a/site/public/docs/ja/masking.html +++ b/site/public/docs/ja/masking.html @@ -60,6 +60,7 @@ Gemini CLI で他のモデル サブスクを任意のエージェントで ローカルモデル + OpenCode で他のモデル magpie に追加 アプリ連携 リリース @@ -189,6 +190,7 @@ Gemini CLI で他のモデル サブスクを任意のエージェントで ローカルモデル + OpenCode で他のモデル magpie に追加 アプリ連携 GitHub diff --git a/site/public/docs/ja/mcp-router.html b/site/public/docs/ja/mcp-router.html index cb0bf18f6..e06a650fd 100644 --- a/site/public/docs/ja/mcp-router.html +++ b/site/public/docs/ja/mcp-router.html @@ -60,6 +60,7 @@ Gemini CLI で他のモデル サブスクを任意のエージェントで ローカルモデル + OpenCode で他のモデル magpie に追加 アプリ連携 リリース @@ -152,6 +153,7 @@ magpie library mcp router off Gemini CLI で他のモデル サブスクを任意のエージェントで ローカルモデル + OpenCode で他のモデル magpie に追加 アプリ連携 GitHub diff --git a/site/public/docs/ja/opencode-models.html b/site/public/docs/ja/opencode-models.html new file mode 100644 index 000000000..e84d6eb9e --- /dev/null +++ b/site/public/docs/ja/opencode-models.html @@ -0,0 +1,305 @@ + + + + + +OpenCode で DeepSeek・Kimi・GLM や Claude・ChatGPT のサブスクを使う方法 · magpie + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + +
+

ドキュメント · ガイド

+

OpenCode で DeepSeek・Kimi・GLM や Claude・ChatGPT のサブスクを使う方法

+

OpenCode は設定ファイルのプロバイダ(provider)を通じてモデルを呼び出します。magpie は magpie という名前のプロバイダを 1 つ追加し、あなたのマシン上のゲートウェイへつなぎます。magpie にあるモデルはすべてその下に並びます。DeepSeek・Kimi・GLM・Qwen のキーも、Claude・ChatGPT・Copilot のサブスクのモデルも同じです。

+ +

ゲートウェイは 127.0.0.1:3425 で動きます。OpenCode は OpenAI Chat Completions でリクエストを送り、magpie がそれを各プロバイダの API で送り直します。API が違えばリクエストと応答を変換し、ストリーミングもツール呼び出しもそのままです。OpenCode 自身のプロバイダはそのまま残り、magpie のものと並びます。

+ +
+

中国のモデル

DeepSeek、Kimi と Kimi Code、Zhipu GLM(従量課金または Coding Plan)、Z.ai、MiniMax、Qwen。

+

サブスクリプション

Claude Pro/Max、ChatGPT Plus/Pro、GitHub Copilot。magpie で一度サインインするだけです。

+

その他

任意の OpenAI・Anthropic 互換の URL とキー、Ollama、LM Studio。

+
+ +

セットアップ

+
    +
  1. プロバイダを追加するmagpie の プロバイダ タブで + プロバイダを追加 を押し、DeepSeek・Kimi・Zhipu GLM・MiniMax・Qwen のいずれかを選んで API キーを貼り付け、保存します。magpie がベンダーに提供モデルを問い合わせます。
  2. +
  3. OpenCode のモデルを選ぶエージェント タブで OpenCode の行のモデルをクリックし、deepseek/deepseek-v4-pro などを選びます。magpie が OpenCode の設定に "model": "magpie/deepseek/deepseek-v4-pro" を書き込み、magpie プロバイダも追加します。
  4. +
  5. OpenCode の中で選んでもよいプロバイダが入れば、magpie のモデルは OpenCode 自身の /models 一覧の magpie の下に並ぶので、そこで切り替えられます。
  6. +
+

ターミナルからも同じことができます。

+
ターミナル
magpie provider add deepseek sk-…
+magpie models                                    # すべてのモデル(プロバイダ/モデル)
+magpie opencode deepseek/deepseek-v4-pro         # OpenCode のモデル
+magpie opencode small deepseek/deepseek-v4-flash # small_model
+

OpenCode の small_model は行の中で別に選べるので、メインより安いモデルを割り当てられます。

+
Zhipu GLM Coding Plan。Zhipu GLM や Z.ai を追加するときは、キーに合ったプランを選んでください。Coding Plan のキーには専用のエンドポイントがあり、従量課金のエンドポイントに送ると残高不足と返されます。
+ +

サブスクリプション

+

magpie で一度サインインすれば(+ プロバイダを追加 またはターミナルから)、サブスクのモデルもほかのモデルと同じく OpenCode の magpie の下に並びます。API キーは要りません。

+
+ + + + +
サブスクモデル名ターミナル
Claude(Pro、Max、Team)claude/…magpie accounts add claude
magpie opencode claude/claude-opus-5-5
ChatGPT(Plus、Pro、Business)codex/…magpie accounts add codex
magpie opencode codex/gpt-5.5
GitHub Copilotcopilot/…magpie accounts add copilot
+

Claude のサブスクへのリクエストは、マシンにインストールされた Claude Code を通して送られるので、Claude Code は残しておいてください。Copilot はサインイン時にコードが表示されるので、GitHub のページで入力します。同じサブスクの複数アカウントで負荷を分け、切り替えることもできます。サブスクを任意のエージェントで を参照してください。

+ +

opencode.json の変更点

+

magpie が書き込むのは、OpenCode が設定フォルダから読む設定ファイルです。フォルダは $OPENCODE_CONFIG_DIR(設定されていれば)、なければ ~/.config/opencode。ファイルは opencode.jsonc・opencode.json・config.json のうち最初に見つかったもので、どれもなければ opencode.json を新しく作ります。変えるのは次のキーだけで、ほかの設定はそのままです。

+
+ + + + + + + +
キー値
modelmagpie/<プロバイダ>/<モデル>
small_model同じ形式(設定したときだけ)
provider.magpie.npm@ai-sdk/openai-compatible
provider.magpie.options.baseURLhttp://127.0.0.1:3425/v1
provider.magpie.options.apiKeyゲートウェイのキー
provider.magpie.modelsmagpie が OpenCode に見せるすべてのモデル
+

各モデルにはコンテキストウィンドウと出力の上限(OpenCode が圧縮のタイミングを判断するのに使います)、画像を受け付けるかどうか、推論レベル、料金が入ります。プロバイダやアカウントを追加すると、magpie がこの一覧を更新します。ファイルの providers(OpenCode 2 の書き方)にもこのプロバイダがあれば、そちらにも書き込みます。Windows の WSL ディストリビューション内の OpenCode も同じように設定され、そのディストリビューションの ~/.config/opencode に書き込みます。

+ +

推論レベルと料金

+ + +

モデル一覧を絞る

+

既定では、OpenCode には magpie のすべてのモデルが見えます。一部のプロバイダやグループだけにするには:

+
ターミナル
magpie visible opencode deepseek,claude   # このプロバイダだけ
+magpie visible opencode all               # すべてに戻す
+

一覧から外したモデルも、OpenCode が名前で指定すれば応答します。

+ +

元に戻す

+

magpie の OpenCode の行のモデル選択には、OpenCode 自身のプロバイダ(auth.json でサインイン済みのもの)も並びます。その中から選ぶか、次を実行します。

+
ターミナル
magpie opencode default
+

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

+ +

よくある質問

+

OpenCode で DeepSeek を使うには?

+

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

+

OpenCode で Kimi や GLM は使えますか?

+

使えます。magpie に Kimi か Zhipu GLM を追加し、OpenCode のモデルに選ぶだけです。GLM Coding Plan のキーには専用のエンドポイントがあるので、追加するときに Coding Plan を選んでください。

+

OpenCode で Claude Pro/Max のサブスクは使えますか?

+

使えます。magpie で Claude にサインインし(magpie accounts add claude)、OpenCode に claude/… のモデルを選びます。Claude のサブスクへのリクエストはマシンにインストールされた Claude Code を通して送られるので、残しておいてください。

+

OpenCode で ChatGPT Plus/Pro のサブスクは使えますか?

+

使えます。magpie で ChatGPT にサインインし(magpie accounts add codex)、codex/gpt-5.5 などの codex/… のモデルを選びます。推論レベルは OpenCode ではモデルのバリアントとして表示されます。

+

magpie はどのファイルを変更しますか?

+

~/.config/opencode(または $OPENCODE_CONFIG_DIR)にある OpenCode の設定です。opencode.jsonc・opencode.json・config.json のうち最初に見つかったもの、なければ新しい opencode.json。model と small_model を設定し、provider.magpie を追加します。ほかの設定はそのままです。

+

OpenCode 自身のモデルに戻すには?

+

magpie の OpenCode の行で OpenCode 自身のモデルを選ぶか、magpie opencode default を実行します。以前の model と small_model が戻り、magpie のプロバイダは取り除かれます。

+ +

ほかのエージェント:Claude Code でほかのモデルを使う、Codex でほかのモデルを使う、Gemini CLI でほかのモデルを使う。困ったときは Discord で質問してください。

+
+
+ + + + + + + diff --git a/site/public/docs/ja/plugins.html b/site/public/docs/ja/plugins.html index 34e3d8211..64c505d3b 100644 --- a/site/public/docs/ja/plugins.html +++ b/site/public/docs/ja/plugins.html @@ -60,6 +60,7 @@ Gemini CLI で他のモデル サブスクを任意のエージェントで ローカルモデル + OpenCode で他のモデル magpie に追加 アプリ連携 リリース @@ -1045,6 +1046,7 @@ document.getElementById("calls").textContent = `${s.calls Gemini CLI で他のモデル サブスクを任意のエージェントで ローカルモデル + OpenCode で他のモデル magpie に追加 アプリ連携 GitHub diff --git a/site/public/docs/ja/privacy.html b/site/public/docs/ja/privacy.html index 9afcbcfb1..0298575f6 100644 --- a/site/public/docs/ja/privacy.html +++ b/site/public/docs/ja/privacy.html @@ -60,6 +60,7 @@ Gemini CLI で他のモデル サブスクを任意のエージェントで ローカルモデル + OpenCode で他のモデル magpie に追加 アプリ連携 リリース @@ -235,6 +236,7 @@ Gemini CLI で他のモデル サブスクを任意のエージェントで ローカルモデル + OpenCode で他のモデル magpie に追加 アプリ連携 GitHub diff --git a/site/public/docs/ja/remote.html b/site/public/docs/ja/remote.html index 0e393d77a..522791fc6 100644 --- a/site/public/docs/ja/remote.html +++ b/site/public/docs/ja/remote.html @@ -60,6 +60,7 @@ Gemini CLI で他のモデル サブスクを任意のエージェントで ローカルモデル + OpenCode で他のモデル magpie に追加 アプリ連携 リリース @@ -248,6 +249,7 @@ curl -s http://127.0.0.1:3425/v1/magpie/concurrency Gemini CLI で他のモデル サブスクを任意のエージェントで ローカルモデル + OpenCode で他のモデル magpie に追加 アプリ連携 GitHub diff --git a/site/public/docs/ja/start.html b/site/public/docs/ja/start.html index 4225bc074..a8419b84f 100644 --- a/site/public/docs/ja/start.html +++ b/site/public/docs/ja/start.html @@ -60,6 +60,7 @@ Gemini CLI で他のモデル サブスクを任意のエージェントで ローカルモデル + OpenCode で他のモデル magpie に追加 アプリ連携 リリース @@ -378,6 +379,7 @@ IP-CIDR6,::1/128,DIRECT,no-resolve Gemini CLI で他のモデル サブスクを任意のエージェントで ローカルモデル + OpenCode で他のモデル magpie に追加 アプリ連携 GitHub diff --git a/site/public/docs/ja/subscriptions.html b/site/public/docs/ja/subscriptions.html index b4ce3ef79..1487f4357 100644 --- a/site/public/docs/ja/subscriptions.html +++ b/site/public/docs/ja/subscriptions.html @@ -146,6 +146,7 @@ Gemini CLI で他のモデル サブスクを任意のエージェントで ローカルモデル + OpenCode で他のモデル magpie に追加 アプリ連携 リリース @@ -269,6 +270,7 @@ Gemini CLI で他のモデル サブスクを任意のエージェントで ローカルモデル + OpenCode で他のモデル magpie に追加 アプリ連携 GitHub diff --git a/site/public/docs/library.html b/site/public/docs/library.html index 92d3e7972..e1c7426c7 100644 --- a/site/public/docs/library.html +++ b/site/public/docs/library.html @@ -60,6 +60,7 @@ Models in Gemini CLI Subscriptions in any agent Local models + Models in OpenCode Add to magpie Integrate Releases @@ -261,6 +262,7 @@ magpie library sync # write it into the agents again Models in Gemini CLI Subscriptions in any agent Local models + Models in OpenCode Add to magpie Integrate GitHub diff --git a/site/public/docs/local-models.html b/site/public/docs/local-models.html index 42da61845..f097f9501 100644 --- a/site/public/docs/local-models.html +++ b/site/public/docs/local-models.html @@ -138,6 +138,7 @@ Models in Gemini CLI Subscriptions in any agent Local models + Models in OpenCode Add to magpie Integrate Releases @@ -260,6 +261,7 @@ magpie provider set ollama context.qwen3=128k Models in Gemini CLI Subscriptions in any agent Local models + Models in OpenCode Add to magpie Integrate GitHub diff --git a/site/public/docs/masking.html b/site/public/docs/masking.html index 1980da917..8b9a7f3ed 100644 --- a/site/public/docs/masking.html +++ b/site/public/docs/masking.html @@ -60,6 +60,7 @@ Models in Gemini CLI Subscriptions in any agent Local models + Models in OpenCode Add to magpie Integrate Releases @@ -189,6 +190,7 @@ Models in Gemini CLI Subscriptions in any agent Local models + Models in OpenCode Add to magpie Integrate GitHub diff --git a/site/public/docs/mcp-router.html b/site/public/docs/mcp-router.html index 74b476e60..4960c3488 100644 --- a/site/public/docs/mcp-router.html +++ b/site/public/docs/mcp-router.html @@ -60,6 +60,7 @@ Models in Gemini CLI Subscriptions in any agent Local models + Models in OpenCode Add to magpie Integrate Releases @@ -152,6 +153,7 @@ magpie library mcp router off Models in Gemini CLI Subscriptions in any agent Local models + Models in OpenCode Add to magpie Integrate GitHub diff --git a/site/public/docs/opencode-models.html b/site/public/docs/opencode-models.html new file mode 100644 index 000000000..f162bfad0 --- /dev/null +++ b/site/public/docs/opencode-models.html @@ -0,0 +1,305 @@ + + + + + +Use DeepSeek, Kimi, GLM or your Claude and ChatGPT subscription in OpenCode · magpie + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + +
+

Docs · Guide

+

Use DeepSeek, Kimi, GLM or your Claude and ChatGPT subscription in OpenCode

+

OpenCode reaches a model through a provider in its config. magpie adds one provider, named magpie, that leads to a gateway on your computer. Every model you have in magpie is listed under it: DeepSeek, Kimi, GLM and Qwen keys, and the models of a Claude, ChatGPT or Copilot sign-in.

+ +

The gateway runs at 127.0.0.1:3425. OpenCode sends it OpenAI Chat Completions, and magpie passes each request on in the API its provider speaks, translating the request and the reply where they differ, streaming and tool calls included. OpenCode’s own providers stay as they were, next to magpie’s.

+ +
+

Chinese models

DeepSeek, Kimi and Kimi Code, Zhipu GLM (pay as you go or Coding Plan), Z.ai, MiniMax and Qwen.

+

Subscriptions

Claude Pro/Max, ChatGPT Plus/Pro and GitHub Copilot, signed in once in magpie.

+

Anything else

Any OpenAI- or Anthropic-compatible URL and key, Ollama and LM Studio.

+
+ +

Set it up

+
    +
  1. Add the providerIn magpie’s Providers tab, press + Add provider, pick DeepSeek, Kimi, Zhipu GLM, MiniMax or Qwen, paste your API key and save. magpie asks the vendor which models it serves.
  2. +
  3. Pick the model for OpenCodeIn the Agents tab, click the model on OpenCode’s row and choose one, such as deepseek/deepseek-v4-pro. magpie writes "model": "magpie/deepseek/deepseek-v4-pro" into OpenCode’s config, with the magpie provider beside it.
  4. +
  5. Or pick it in OpenCodeOnce the provider is there, magpie’s models are in OpenCode’s own /models list under magpie, so you can switch there too.
  6. +
+

The same from a terminal:

+
Terminal
magpie provider add deepseek sk-…
+magpie models                                    # every model, as provider/model
+magpie opencode deepseek/deepseek-v4-pro         # OpenCode's model
+magpie opencode small deepseek/deepseek-v4-flash # its small_model
+

OpenCode’s small_model is a field of its own on the row, so it can run on a cheaper model than the main one.

+
Zhipu GLM Coding Plan. When you add Zhipu GLM or Z.ai, pick the plan your key is for. A Coding Plan key has its own endpoints, and sent to the pay-as-you-go one it is told it has no balance.
+ +

Subscriptions

+

Sign in once in magpie, from + Add provider or a terminal, and the subscription’s models are listed under magpie in OpenCode like any other. No API key.

+
+ + + + +
SubscriptionModels areFrom a terminal
Claude (Pro, Max, Team)claude/…magpie accounts add claude
magpie opencode claude/claude-opus-5-5
ChatGPT (Plus, Pro, Business)codex/…magpie accounts add codex
magpie opencode codex/gpt-5.5
GitHub Copilotcopilot/…magpie accounts add copilot
+

Requests on a Claude subscription run through the Claude Code installed on your computer, so keep it installed. Copilot gives you a code to enter on GitHub’s page. Several accounts of one subscription can share the load and fail over; see Subscriptions in any agent.

+ +

What changes in opencode.json

+

magpie writes to the config file OpenCode reads from its config folder, $OPENCODE_CONFIG_DIR when that is set and ~/.config/opencode otherwise: the first of opencode.jsonc, opencode.json and config.json that exists, or a new opencode.json. It changes only these keys; your other settings stay.

+
+ + + + + + + +
KeySet to
modelmagpie/<provider>/<model>
small_modelThe same form, when you set one
provider.magpie.npm@ai-sdk/openai-compatible
provider.magpie.options.baseURLhttp://127.0.0.1:3425/v1
provider.magpie.options.apiKeyThe gateway’s key
provider.magpie.modelsEvery model magpie lists for OpenCode
+

Each model carries its context window and output limit, so OpenCode knows when to compact; whether it takes images; its reasoning levels; and its price. magpie keeps the list up to date as you add providers and accounts. If the file also has the provider under providers, where OpenCode 2 keeps it, magpie writes it there as well. OpenCode in a WSL distro on Windows is set up the same way, in the distro’s ~/.config/opencode.

+ +

Reasoning levels and cost

+ + +

A shorter model list

+

By default OpenCode is shown every model you have in magpie. To show it only some providers or groups:

+
Terminal
magpie visible opencode deepseek,claude   # only these providers
+magpie visible opencode all               # every model again
+

A model left out of the list still answers when OpenCode asks for it by name.

+ +

Switch back

+

On OpenCode’s row in magpie, the model picker lists OpenCode’s own providers too, the ones signed in in its auth.json. Pick one of them, or run:

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

+ +

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.

+

Can I use Kimi or GLM in OpenCode?

+

Yes. Add Kimi or Zhipu GLM in magpie and pick its model for OpenCode. For a GLM Coding Plan key, pick the Coding Plan when you add it, since it has its own endpoints.

+

Can I use my Claude Pro or Max subscription in OpenCode?

+

Yes. Sign in to Claude in magpie (magpie accounts add claude) and pick a claude/… model for OpenCode. Requests on a Claude subscription run through the Claude Code installed on your computer, so keep it installed.

+

Can I use my ChatGPT Plus or Pro subscription in OpenCode?

+

Yes. Sign in to ChatGPT in magpie (magpie accounts add codex) and pick a codex/… model, such as codex/gpt-5.5. Its reasoning levels show as the model’s variants in OpenCode.

+

Which file does magpie change?

+

OpenCode’s config in ~/.config/opencode (or $OPENCODE_CONFIG_DIR): the first of opencode.jsonc, opencode.json and config.json, or a new opencode.json. It sets model and small_model and adds provider.magpie; other settings stay.

+

How do I switch back to OpenCode’s own model?

+

Pick one of OpenCode’s own models on its row in magpie, or run magpie opencode default. It puts back the model and small_model you had and removes magpie’s provider.

+ +

Other agents: Models in Claude Code, Models in Codex, Models in Gemini CLI. Stuck? Ask on Discord.

+
+
+ + + + + + + diff --git a/site/public/docs/plugins.html b/site/public/docs/plugins.html index ac8743bdd..d228d03d6 100644 --- a/site/public/docs/plugins.html +++ b/site/public/docs/plugins.html @@ -60,6 +60,7 @@ Models in Gemini CLI Subscriptions in any agent Local models + Models in OpenCode Add to magpie Integrate Releases @@ -1045,6 +1046,7 @@ document.getElementById("calls").textContent = `${s.calls Models in Gemini CLI Subscriptions in any agent Local models + Models in OpenCode Add to magpie Integrate GitHub diff --git a/site/public/docs/privacy.html b/site/public/docs/privacy.html index 5ee42c9bf..ed876a156 100644 --- a/site/public/docs/privacy.html +++ b/site/public/docs/privacy.html @@ -60,6 +60,7 @@ Models in Gemini CLI Subscriptions in any agent Local models + Models in OpenCode Add to magpie Integrate Releases @@ -235,6 +236,7 @@ Models in Gemini CLI Subscriptions in any agent Local models + Models in OpenCode Add to magpie Integrate GitHub diff --git a/site/public/docs/remote.html b/site/public/docs/remote.html index b60436bd4..af3d45827 100644 --- a/site/public/docs/remote.html +++ b/site/public/docs/remote.html @@ -60,6 +60,7 @@ Models in Gemini CLI Subscriptions in any agent Local models + Models in OpenCode Add to magpie Integrate Releases @@ -248,6 +249,7 @@ curl -s http://127.0.0.1:3425/v1/magpie/concurrency Models in Gemini CLI Subscriptions in any agent Local models + Models in OpenCode Add to magpie Integrate GitHub diff --git a/site/public/docs/start.html b/site/public/docs/start.html index ee324cffa..8673d9d89 100644 --- a/site/public/docs/start.html +++ b/site/public/docs/start.html @@ -60,6 +60,7 @@ Models in Gemini CLI Subscriptions in any agent Local models + Models in OpenCode Add to magpie Integrate Releases @@ -378,6 +379,7 @@ IP-CIDR6,::1/128,DIRECT,no-resolve Models in Gemini CLI Subscriptions in any agent Local models + Models in OpenCode Add to magpie Integrate GitHub diff --git a/site/public/docs/subscriptions.html b/site/public/docs/subscriptions.html index 371321728..da19e2430 100644 --- a/site/public/docs/subscriptions.html +++ b/site/public/docs/subscriptions.html @@ -146,6 +146,7 @@ Models in Gemini CLI Subscriptions in any agent Local models + Models in OpenCode Add to magpie Integrate Releases @@ -269,6 +270,7 @@ Models in Gemini CLI Subscriptions in any agent Local models + Models in OpenCode Add to magpie Integrate GitHub diff --git a/site/public/docs/zh/claude-code-models.html b/site/public/docs/zh/claude-code-models.html index 89d903602..aebbc6a43 100644 --- a/site/public/docs/zh/claude-code-models.html +++ b/site/public/docs/zh/claude-code-models.html @@ -146,6 +146,7 @@ Gemini CLI 接入其他模型 订阅用于任意 Agent 本地模型 + OpenCode 接入其他模型 Add to magpie 接入应用 版本发布 @@ -286,6 +287,7 @@ magpie claude codex/gpt-5.5 Gemini CLI 接入其他模型 订阅用于任意 Agent 本地模型 + OpenCode 接入其他模型 Add to magpie 接入应用 GitHub diff --git a/site/public/docs/zh/codex-models.html b/site/public/docs/zh/codex-models.html index 20f49a629..5b433a7b4 100644 --- a/site/public/docs/zh/codex-models.html +++ b/site/public/docs/zh/codex-models.html @@ -146,6 +146,7 @@ Gemini CLI 接入其他模型 订阅用于任意 Agent 本地模型 + OpenCode 接入其他模型 Add to magpie 接入应用 版本发布 @@ -286,6 +287,7 @@ magpie codex claude/… Gemini CLI 接入其他模型 订阅用于任意 Agent 本地模型 + OpenCode 接入其他模型 Add to magpie 接入应用 GitHub diff --git a/site/public/docs/zh/contributors.html b/site/public/docs/zh/contributors.html index cba510b49..ba37d62b2 100644 --- a/site/public/docs/zh/contributors.html +++ b/site/public/docs/zh/contributors.html @@ -60,6 +60,7 @@ Gemini CLI 接入其他模型 订阅用于任意 Agent 本地模型 + OpenCode 接入其他模型 Add to magpie 接入应用 版本发布 @@ -127,6 +128,7 @@ Gemini CLI 接入其他模型 订阅用于任意 Agent 本地模型 + OpenCode 接入其他模型 Add to magpie 接入应用 GitHub diff --git a/site/public/docs/zh/docker.html b/site/public/docs/zh/docker.html index f40a0cdf7..2a2e54197 100644 --- a/site/public/docs/zh/docker.html +++ b/site/public/docs/zh/docker.html @@ -60,6 +60,7 @@ Gemini CLI 接入其他模型 订阅用于任意 Agent 本地模型 + OpenCode 接入其他模型 Add to magpie 接入应用 版本发布 @@ -247,6 +248,7 @@ docker logs magpie Gemini CLI 接入其他模型 订阅用于任意 Agent 本地模型 + OpenCode 接入其他模型 Add to magpie 接入应用 GitHub diff --git a/site/public/docs/zh/gemini-cli-models.html b/site/public/docs/zh/gemini-cli-models.html index 4fd9f17c3..d03283927 100644 --- a/site/public/docs/zh/gemini-cli-models.html +++ b/site/public/docs/zh/gemini-cli-models.html @@ -146,6 +146,7 @@ Gemini CLI 接入其他模型 订阅用于任意 Agent 本地模型 + OpenCode 接入其他模型 Add to magpie 接入应用 版本发布 @@ -270,6 +271,7 @@ magpie gemini model codex/gpt-5.5 Gemini CLI 接入其他模型 订阅用于任意 Agent 本地模型 + OpenCode 接入其他模型 Add to magpie 接入应用 GitHub diff --git a/site/public/docs/zh/import.html b/site/public/docs/zh/import.html index fa1a68fb5..2acd506b4 100644 --- a/site/public/docs/zh/import.html +++ b/site/public/docs/zh/import.html @@ -60,6 +60,7 @@ Gemini CLI 接入其他模型 订阅用于任意 Agent 本地模型 + OpenCode 接入其他模型 Add to magpie 接入应用 版本发布 @@ -290,6 +291,7 @@ href = "https://usemagpie.ai/import#" + urlencode({ Gemini CLI 接入其他模型 订阅用于任意 Agent 本地模型 + OpenCode 接入其他模型 GitHub Discord 贡献墙 diff --git a/site/public/docs/zh/integrate.html b/site/public/docs/zh/integrate.html index 6e9524de6..888171ac7 100644 --- a/site/public/docs/zh/integrate.html +++ b/site/public/docs/zh/integrate.html @@ -59,6 +59,7 @@ Gemini CLI 接入其他模型 订阅用于任意 Agent 本地模型 + OpenCode 接入其他模型 Add to magpie 接入应用 版本发布 @@ -175,6 +176,7 @@ curl -s http://127.0.0.1:3425/v1/models -H "Authorization: Bearer magpie-acme"Gemini CLI 接入其他模型 订阅用于任意 Agent 本地模型 + OpenCode 接入其他模型 Add to magpie 接入应用 GitHub diff --git a/site/public/docs/zh/intent.html b/site/public/docs/zh/intent.html index bb806979b..8e24b286f 100644 --- a/site/public/docs/zh/intent.html +++ b/site/public/docs/zh/intent.html @@ -60,6 +60,7 @@ Gemini CLI 接入其他模型 订阅用于任意 Agent 本地模型 + OpenCode 接入其他模型 Add to magpie 接入应用 版本发布 @@ -345,6 +346,7 @@ The number of its kind (0 for none): Gemini CLI 接入其他模型 订阅用于任意 Agent 本地模型 + OpenCode 接入其他模型 Add to magpie 接入应用 GitHub diff --git a/site/public/docs/zh/library.html b/site/public/docs/zh/library.html index 3e49124e6..f07efb810 100644 --- a/site/public/docs/zh/library.html +++ b/site/public/docs/zh/library.html @@ -60,6 +60,7 @@ Gemini CLI 接入其他模型 订阅用于任意 Agent 本地模型 + OpenCode 接入其他模型 Add to magpie 接入应用 版本发布 @@ -261,6 +262,7 @@ magpie library sync # 重新写进各个 Agent Gemini CLI 接入其他模型 订阅用于任意 Agent 本地模型 + OpenCode 接入其他模型 Add to magpie 接入应用 GitHub diff --git a/site/public/docs/zh/local-models.html b/site/public/docs/zh/local-models.html index 28b8af93f..67f99e8ea 100644 --- a/site/public/docs/zh/local-models.html +++ b/site/public/docs/zh/local-models.html @@ -138,6 +138,7 @@ Gemini CLI 接入其他模型 订阅用于任意 Agent 本地模型 + OpenCode 接入其他模型 Add to magpie 接入应用 版本发布 @@ -260,6 +261,7 @@ magpie provider set ollama context.qwen3=128k Gemini CLI 接入其他模型 订阅用于任意 Agent 本地模型 + OpenCode 接入其他模型 Add to magpie 接入应用 GitHub diff --git a/site/public/docs/zh/masking.html b/site/public/docs/zh/masking.html index 2db62222a..8707deedc 100644 --- a/site/public/docs/zh/masking.html +++ b/site/public/docs/zh/masking.html @@ -60,6 +60,7 @@ Gemini CLI 接入其他模型 订阅用于任意 Agent 本地模型 + OpenCode 接入其他模型 Add to magpie 接入应用 版本发布 @@ -189,6 +190,7 @@ Gemini CLI 接入其他模型 订阅用于任意 Agent 本地模型 + OpenCode 接入其他模型 Add to magpie 接入应用 GitHub diff --git a/site/public/docs/zh/mcp-router.html b/site/public/docs/zh/mcp-router.html index 603d8bb97..375f96c5e 100644 --- a/site/public/docs/zh/mcp-router.html +++ b/site/public/docs/zh/mcp-router.html @@ -60,6 +60,7 @@ Gemini CLI 接入其他模型 订阅用于任意 Agent 本地模型 + OpenCode 接入其他模型 Add to magpie 接入应用 版本发布 @@ -152,6 +153,7 @@ magpie library mcp router off Gemini CLI 接入其他模型 订阅用于任意 Agent 本地模型 + OpenCode 接入其他模型 Add to magpie 接入应用 GitHub diff --git a/site/public/docs/zh/opencode-models.html b/site/public/docs/zh/opencode-models.html new file mode 100644 index 000000000..9c5934fa4 --- /dev/null +++ b/site/public/docs/zh/opencode-models.html @@ -0,0 +1,305 @@ + + + + + +OpenCode 接入 DeepSeek、Kimi、GLM,或用 Claude、ChatGPT 订阅 · magpie + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + +
+

文档 · 指南

+

OpenCode 接入 DeepSeek、Kimi、GLM,或用 Claude、ChatGPT 订阅

+

OpenCode 通过配置里的供应商(provider)来调用模型。magpie 会加一个名为 magpie 的供应商,指向你电脑上的本地网关。你在 magpie 里有的模型都列在它下面:DeepSeek、Kimi、GLM、Qwen 的 Key,以及 Claude、ChatGPT、Copilot 订阅里的模型。

+ +

网关运行在 127.0.0.1:3425。OpenCode 用 OpenAI Chat Completions 协议发请求,magpie 再按各供应商自己的协议转发;协议不同时,请求和回复都会转换,流式输出和工具调用都不受影响。OpenCode 自己的供应商保持原样,和 magpie 的并列。

+ +
+

国产模型

DeepSeek、Kimi 与 Kimi Code、智谱 GLM(按量付费或 Coding Plan)、Z.ai、MiniMax、通义千问。

+

订阅

Claude Pro/Max、ChatGPT Plus/Pro、GitHub Copilot,在 magpie 里登录一次即可。

+

其他

任何 OpenAI 或 Anthropic 兼容的地址和 Key,以及 Ollama、LM Studio。

+
+ +

配置步骤

+
    +
  1. 添加供应商在 magpie 的 供应商 页点 + 添加供应商,选 DeepSeek、Kimi、智谱 GLM、MiniMax 或通义千问,粘贴 API Key 后保存。magpie 会向厂商查询可用的模型。
  2. +
  3. 给 OpenCode 选模型在 Agent 页点 OpenCode 那一行的模型,选一个,比如 deepseek/deepseek-v4-pro。magpie 会在 OpenCode 的配置里写入 "model": "magpie/deepseek/deepseek-v4-pro",并加上 magpie 供应商。
  4. +
  5. 或者在 OpenCode 里切换供应商加好之后,magpie 的模型会出现在 OpenCode 自己的 /models 列表里的 magpie 下面,也可以直接在那里切。
  6. +
+

用命令行也一样:

+
终端
magpie provider add deepseek sk-…
+magpie models                                    # 所有模型(供应商/模型)
+magpie opencode deepseek/deepseek-v4-pro         # OpenCode 的主模型
+magpie opencode small deepseek/deepseek-v4-flash # 它的 small_model
+

OpenCode 的 small_model 在那一行里单独可选,可以给它配一个比主模型便宜的模型。

+
智谱 GLM Coding Plan。添加智谱 GLM 或 Z.ai 时,要选和 Key 对应的套餐。Coding Plan 的 Key 有专用接口,发到按量付费的接口会提示余额不足。
+ +

订阅

+

在 magpie 里登录一次(+ 添加供应商 或命令行),订阅里的模型就会和其他模型一样列在 OpenCode 的 magpie 下面,不需要 API Key。

+
+ + + + +
订阅模型名命令行
Claude(Pro、Max、Team)claude/…magpie accounts add claude
magpie opencode claude/claude-opus-5-5
ChatGPT(Plus、Pro、Business)codex/…magpie accounts add codex
magpie opencode codex/gpt-5.5
GitHub Copilotcopilot/…magpie accounts add copilot
+

Claude 订阅的请求经由你电脑上安装的 Claude Code 发出,请保留它。Copilot 登录时会给你一个验证码,在 GitHub 页面输入即可。同一订阅的多个账号可以分摊请求、自动切换,见 订阅用于任意 Agent。

+ +

opencode.json 里改了什么

+

magpie 写的是 OpenCode 从配置目录读取的配置文件。配置目录是 $OPENCODE_CONFIG_DIR(如果设置了),否则是 ~/.config/opencode;文件是 opencode.jsonc、opencode.json、config.json 中第一个存在的,都没有就新建 opencode.json。只改下面这些键,其他设置不动。

+
+ + + + + + + +
键值
modelmagpie/<供应商>/<模型>
small_model同样的格式,设置了才写
provider.magpie.npm@ai-sdk/openai-compatible
provider.magpie.options.baseURLhttp://127.0.0.1:3425/v1
provider.magpie.options.apiKey网关的 Key
provider.magpie.modelsmagpie 给 OpenCode 列出的所有模型
+

每个模型都带上下文窗口和输出上限(OpenCode 据此判断何时压缩),是否支持图片、推理档位和价格。你添加供应商或账号后,magpie 会同步更新这份列表。如果文件里在 providers 下也有这个供应商(OpenCode 2 的写法),magpie 会一并写入。Windows 上 WSL 发行版里的 OpenCode 也同样配置,写在该发行版的 ~/.config/opencode。

+ +

推理档位与费用

+ + +

精简模型列表

+

默认情况下,OpenCode 能看到你在 magpie 里的全部模型。只想给它看部分供应商或分组:

+
终端
magpie visible opencode deepseek,claude   # 只显示这些供应商
+magpie visible opencode all               # 恢复显示全部
+

没列出来的模型,OpenCode 按名字请求时依然可用。

+ +

恢复原样

+

magpie 里 OpenCode 那一行的模型选择器也会列出 OpenCode 自己的供应商(它 auth.json 里已登录的那些)。选其中一个,或者运行:

+
终端
magpie opencode default
+

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

+ +

常见问题

+

OpenCode 怎么用 DeepSeek?

+

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

+

OpenCode 能用 Kimi 或智谱 GLM 吗?

+

能。在 magpie 里添加 Kimi 或智谱 GLM,给 OpenCode 选它的模型即可。GLM Coding Plan 的 Key 有专用接口,添加时记得选 Coding Plan。

+

OpenCode 能用 Claude Pro/Max 订阅吗?

+

能。在 magpie 里登录 Claude(magpie accounts add claude),给 OpenCode 选一个 claude/… 模型。Claude 订阅的请求经由你电脑上安装的 Claude Code 发出,请保留它。

+

OpenCode 能用 ChatGPT Plus/Pro 订阅吗?

+

能。在 magpie 里登录 ChatGPT(magpie accounts add codex),选一个 codex/… 模型,比如 codex/gpt-5.5。它的推理档位会显示为 OpenCode 里的模型变体。

+

magpie 改的是哪个文件?

+

OpenCode 在 ~/.config/opencode(或 $OPENCODE_CONFIG_DIR)下的配置:opencode.jsonc、opencode.json、config.json 中第一个存在的,都没有就新建 opencode.json。它设置 model 和 small_model,加上 provider.magpie,其他设置不动。

+

怎么换回 OpenCode 自己的模型?

+

在 magpie 里 OpenCode 那一行选回它自己的模型,或运行 magpie opencode default。之前的 model 和 small_model 会恢复,magpie 的供应商会被删掉。

+ +

其他 Agent:Claude Code 接入其他模型、Codex 接入其他模型、Gemini CLI 接入其他模型。遇到问题可以到 Discord 提问。

+
+
+ + + + + + + diff --git a/site/public/docs/zh/plugins.html b/site/public/docs/zh/plugins.html index 1a1e180dd..fe4dddc13 100644 --- a/site/public/docs/zh/plugins.html +++ b/site/public/docs/zh/plugins.html @@ -60,6 +60,7 @@ Gemini CLI 接入其他模型 订阅用于任意 Agent 本地模型 + OpenCode 接入其他模型 Add to magpie 接入应用 版本发布 @@ -1045,6 +1046,7 @@ document.getElementById("calls").textContent = `${s.calls Gemini CLI 接入其他模型 订阅用于任意 Agent 本地模型 + OpenCode 接入其他模型 Add to magpie 接入应用 GitHub diff --git a/site/public/docs/zh/privacy.html b/site/public/docs/zh/privacy.html index 01d8c6b2c..b79f3d2f9 100644 --- a/site/public/docs/zh/privacy.html +++ b/site/public/docs/zh/privacy.html @@ -60,6 +60,7 @@ Gemini CLI 接入其他模型 订阅用于任意 Agent 本地模型 + OpenCode 接入其他模型 Add to magpie 接入应用 版本发布 @@ -235,6 +236,7 @@ Gemini CLI 接入其他模型 订阅用于任意 Agent 本地模型 + OpenCode 接入其他模型 Add to magpie 接入应用 GitHub diff --git a/site/public/docs/zh/remote.html b/site/public/docs/zh/remote.html index 55e117555..52b8ddd16 100644 --- a/site/public/docs/zh/remote.html +++ b/site/public/docs/zh/remote.html @@ -60,6 +60,7 @@ Gemini CLI 接入其他模型 订阅用于任意 Agent 本地模型 + OpenCode 接入其他模型 Add to magpie 接入应用 版本发布 @@ -248,6 +249,7 @@ curl -s http://127.0.0.1:3425/v1/magpie/concurrency Gemini CLI 接入其他模型 订阅用于任意 Agent 本地模型 + OpenCode 接入其他模型 Add to magpie 接入应用 GitHub diff --git a/site/public/docs/zh/start.html b/site/public/docs/zh/start.html index 4bf15a5ae..ef959c169 100644 --- a/site/public/docs/zh/start.html +++ b/site/public/docs/zh/start.html @@ -60,6 +60,7 @@ Gemini CLI 接入其他模型 订阅用于任意 Agent 本地模型 + OpenCode 接入其他模型 Add to magpie 接入应用 版本发布 @@ -378,6 +379,7 @@ IP-CIDR6,::1/128,DIRECT,no-resolve Gemini CLI 接入其他模型 订阅用于任意 Agent 本地模型 + OpenCode 接入其他模型 Add to magpie 接入应用 GitHub diff --git a/site/public/docs/zh/subscriptions.html b/site/public/docs/zh/subscriptions.html index 9c27ba3e3..430b89031 100644 --- a/site/public/docs/zh/subscriptions.html +++ b/site/public/docs/zh/subscriptions.html @@ -146,6 +146,7 @@ Gemini CLI 接入其他模型 订阅用于任意 Agent 本地模型 + OpenCode 接入其他模型 Add to magpie 接入应用 版本发布 @@ -269,6 +270,7 @@ Gemini CLI 接入其他模型 订阅用于任意 Agent 本地模型 + OpenCode 接入其他模型 Add to magpie 接入应用 GitHub diff --git a/site/public/llms.txt b/site/public/llms.txt index 238cb3e51..cb702be9b 100644 --- a/site/public/llms.txt +++ b/site/public/llms.txt @@ -41,6 +41,7 @@ DeepSeek, Kimi (Moonshot), GLM (Zhipu), Qwen, MiniMax, Anthropic (Claude), OpenA - [Models in Gemini CLI](https://usemagpie.ai/docs/gemini-cli-models): run Gemini CLI on DeepSeek, Kimi, GLM, Qwen or a Claude or ChatGPT subscription; what changes in ~/.gemini/.env and settings.json, and how to switch back. - [Subscriptions in any agent](https://usemagpie.ai/docs/subscriptions): sign in to Claude, ChatGPT, GitHub Copilot, Gemini Code Assist or Antigravity in magpie and use its models in Claude Code, Codex, Gemini CLI or OpenCode, with several accounts and failover. - [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. - [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 9fbe3fbd7..491a16efb 100644 --- a/site/public/sitemap.xml +++ b/site/public/sitemap.xml @@ -21,6 +21,7 @@ https://usemagpie.ai/docs/start https://usemagpie.ai/docs/subscriptions https://usemagpie.ai/docs/local-models +https://usemagpie.ai/docs/opencode-models https://usemagpie.ai/docs/zh/claude-code-models https://usemagpie.ai/docs/zh/codex-models https://usemagpie.ai/docs/zh/contributors @@ -38,6 +39,7 @@ https://usemagpie.ai/docs/zh/start https://usemagpie.ai/docs/zh/subscriptions https://usemagpie.ai/docs/zh/local-models +https://usemagpie.ai/docs/zh/opencode-models https://usemagpie.ai/docs/ja/claude-code-models https://usemagpie.ai/docs/ja/codex-models https://usemagpie.ai/docs/ja/contributors @@ -54,4 +56,5 @@ https://usemagpie.ai/docs/ja/start https://usemagpie.ai/docs/ja/subscriptions https://usemagpie.ai/docs/ja/local-models +https://usemagpie.ai/docs/ja/opencode-models