site: SiliconFlow and ModelScope docs pages in en, zh and ja

/docs/siliconflow says how to use SiliconFlow (硅基流动) in Claude
Code, Codex, Gemini CLI and OpenCode through magpie: the China and
Global sites as separate accounts with a site per key; Chat Completions
only, so Claude Code's and Codex's requests are converted; model names
with their maker, as models.dev's siliconflow catalog has them; the
balance query retired on 2026-08-14, so the card points to the
console. From internal/provider/presets.go (siliconflow), balance.go
(readSiliconFlow, siliconFlowGone) and the bundled catalog.

/docs/modelscope says the same for ModelScope (魔搭) API-Inference: a
ModelScope access token as the key, not DashScope; Chat Completions
and Responses at api-inference.modelscope.cn/v1; a hand-added entry
there taken as ModelScope; its async image tasks drawn one at a time.
From presets.go (modelscope), nvidia_modelscope_test.go and
internal/gateway/draw_modelscope.go's header.

Both linked from each language's "By provider" line after Baidu
Qianfan (33 pages), in the sitemap, llms.txt and llms-full.txt.

Run: the six pages' JSON-LD parsed with node; llms-full.mjs rebuilt;
node --test site/*.test.mjs on the WSL box (magpie-desktop, wsl-run):
115 pass, 0 fail.
Not tried: a SiliconFlow key or ModelScope token on magpie for these
pages; they name only what magpie's source says.
This commit is contained in:
yetone
2026-11-11 19:43:15 +08:00
parent f94ece2ffa
commit 817ccb56f9
42 changed files with 1840 additions and 44 deletions
+1 -1
View File
@@ -308,7 +308,7 @@ magpie provider add anthropic <key> id=anthropic-ws2 name="Anthropic WS2"
<h3>Why does Claude answer 400 when thinking is turned off?</h3>
<p>Newer Claude models don’t all take <code>thinking</code> <code>disabled</code>. magpie sends Sonnet 5.5 <code>between_tools</code>, leaves thinking out for Opus 5.5 and Fable 5, which always think, and asks Opus 5 and Haiku 5.5 at high in place of xhigh or max. Older Claudes get it as sent.</p>
<p><b>By provider:</b> <a href="/docs/deepseek">DeepSeek</a> · <a href="/docs/kimi">Kimi and Kimi Code</a> · <a href="/docs/glm">GLM Coding Plan</a> · <a href="/docs/volcengine">Volcengine Ark</a> · <a href="/docs/tencent-cloud">Tencent Cloud</a> · <a href="/docs/baidu-qianfan">Baidu Qianfan</a> · <a href="/docs/qwen">Qwen</a> · <a href="/docs/minimax">MiniMax</a> · <a href="/docs/openai">OpenAI</a> · <a href="/docs/gemini">Gemini</a> · <a href="/docs/grok">Grok</a> · <a href="/docs/mistral">Mistral</a> · <a href="/docs/openrouter">OpenRouter</a> · <a href="/docs/copilot">GitHub Copilot</a> · <a href="/docs/ollama">Ollama</a></p>
<p><b>By provider:</b> <a href="/docs/deepseek">DeepSeek</a> · <a href="/docs/kimi">Kimi and Kimi Code</a> · <a href="/docs/glm">GLM Coding Plan</a> · <a href="/docs/volcengine">Volcengine Ark</a> · <a href="/docs/tencent-cloud">Tencent Cloud</a> · <a href="/docs/baidu-qianfan">Baidu Qianfan</a> · <a href="/docs/siliconflow">SiliconFlow</a> · <a href="/docs/modelscope">ModelScope</a> · <a href="/docs/qwen">Qwen</a> · <a href="/docs/minimax">MiniMax</a> · <a href="/docs/openai">OpenAI</a> · <a href="/docs/gemini">Gemini</a> · <a href="/docs/grok">Grok</a> · <a href="/docs/mistral">Mistral</a> · <a href="/docs/openrouter">OpenRouter</a> · <a href="/docs/copilot">GitHub Copilot</a> · <a href="/docs/ollama">Ollama</a></p>
<p style="margin-top:48px">Every agent: <a href="/docs/claude-code-models">Models in Claude Code</a>, <a href="/docs/codex-models">Models in Codex</a>, <a href="/docs/gemini-cli-models">Models in Gemini CLI</a>, <a href="/docs/opencode-models">Models in OpenCode</a>. Ask on <a href="https://discord.gg/vGSnD3ZKQF">Discord</a> if you get stuck.</p>
</article>
</main>
+1 -1
View File
@@ -274,7 +274,7 @@ magpie claude codex/gpt-5.5</pre></div>
</ul>
<p>The routing modes are in <a href="/docs/start#routing">Get started</a>.</p>
<p><b>By provider:</b> <a href="/docs/deepseek">DeepSeek</a> · <a href="/docs/kimi">Kimi and Kimi Code</a> · <a href="/docs/glm">GLM Coding Plan</a> · <a href="/docs/volcengine">Volcengine Ark</a> · <a href="/docs/tencent-cloud">Tencent Cloud</a> · <a href="/docs/baidu-qianfan">Baidu Qianfan</a> · <a href="/docs/qwen">Qwen</a> · <a href="/docs/minimax">MiniMax</a> · <a href="/docs/anthropic">Anthropic</a> · <a href="/docs/openai">OpenAI</a> · <a href="/docs/gemini">Gemini</a> · <a href="/docs/grok">Grok</a> · <a href="/docs/mistral">Mistral</a> · <a href="/docs/openrouter">OpenRouter</a> · <a href="/docs/copilot">GitHub Copilot</a> · <a href="/docs/ollama">Ollama</a></p>
<p><b>By provider:</b> <a href="/docs/deepseek">DeepSeek</a> · <a href="/docs/kimi">Kimi and Kimi Code</a> · <a href="/docs/glm">GLM Coding Plan</a> · <a href="/docs/volcengine">Volcengine Ark</a> · <a href="/docs/tencent-cloud">Tencent Cloud</a> · <a href="/docs/baidu-qianfan">Baidu Qianfan</a> · <a href="/docs/siliconflow">SiliconFlow</a> · <a href="/docs/modelscope">ModelScope</a> · <a href="/docs/qwen">Qwen</a> · <a href="/docs/minimax">MiniMax</a> · <a href="/docs/anthropic">Anthropic</a> · <a href="/docs/openai">OpenAI</a> · <a href="/docs/gemini">Gemini</a> · <a href="/docs/grok">Grok</a> · <a href="/docs/mistral">Mistral</a> · <a href="/docs/openrouter">OpenRouter</a> · <a href="/docs/copilot">GitHub Copilot</a> · <a href="/docs/ollama">Ollama</a></p>
<h2 id="faq"><a class="anchor" href="#faq">FAQ</a></h2>
<h3>Do I set <code>ANTHROPIC_BASE_URL</code> myself?</h3>
+1 -1
View File
@@ -274,7 +274,7 @@ magpie codex claude/…</pre></div>
</ul>
<p>The routing modes are in <a href="/docs/start#routing">Get started</a>.</p>
<p><b>By provider:</b> <a href="/docs/deepseek">DeepSeek</a> · <a href="/docs/kimi">Kimi and Kimi Code</a> · <a href="/docs/glm">GLM Coding Plan</a> · <a href="/docs/volcengine">Volcengine Ark</a> · <a href="/docs/tencent-cloud">Tencent Cloud</a> · <a href="/docs/baidu-qianfan">Baidu Qianfan</a> · <a href="/docs/qwen">Qwen</a> · <a href="/docs/minimax">MiniMax</a> · <a href="/docs/anthropic">Anthropic</a> · <a href="/docs/openai">OpenAI</a> · <a href="/docs/gemini">Gemini</a> · <a href="/docs/grok">Grok</a> · <a href="/docs/mistral">Mistral</a> · <a href="/docs/openrouter">OpenRouter</a> · <a href="/docs/copilot">GitHub Copilot</a> · <a href="/docs/ollama">Ollama</a></p>
<p><b>By provider:</b> <a href="/docs/deepseek">DeepSeek</a> · <a href="/docs/kimi">Kimi and Kimi Code</a> · <a href="/docs/glm">GLM Coding Plan</a> · <a href="/docs/volcengine">Volcengine Ark</a> · <a href="/docs/tencent-cloud">Tencent Cloud</a> · <a href="/docs/baidu-qianfan">Baidu Qianfan</a> · <a href="/docs/siliconflow">SiliconFlow</a> · <a href="/docs/modelscope">ModelScope</a> · <a href="/docs/qwen">Qwen</a> · <a href="/docs/minimax">MiniMax</a> · <a href="/docs/anthropic">Anthropic</a> · <a href="/docs/openai">OpenAI</a> · <a href="/docs/gemini">Gemini</a> · <a href="/docs/grok">Grok</a> · <a href="/docs/mistral">Mistral</a> · <a href="/docs/openrouter">OpenRouter</a> · <a href="/docs/copilot">GitHub Copilot</a> · <a href="/docs/ollama">Ollama</a></p>
<h2 id="faq"><a class="anchor" href="#faq">FAQ</a></h2>
<h3>Do I write <code>[model_providers]</code> myself?</h3>
+1 -1
View File
@@ -258,7 +258,7 @@ magpie gemini model codex/gpt-5.5</pre></div>
</ul>
<p>The routing modes and rules are in <a href="/docs/start#routing">Get started</a>.</p>
<p><b>By provider:</b> <a href="/docs/deepseek">DeepSeek</a> · <a href="/docs/kimi">Kimi and Kimi Code</a> · <a href="/docs/glm">GLM Coding Plan</a> · <a href="/docs/volcengine">Volcengine Ark</a> · <a href="/docs/tencent-cloud">Tencent Cloud</a> · <a href="/docs/baidu-qianfan">Baidu Qianfan</a> · <a href="/docs/qwen">Qwen</a> · <a href="/docs/minimax">MiniMax</a> · <a href="/docs/anthropic">Anthropic</a> · <a href="/docs/openai">OpenAI</a> · <a href="/docs/gemini">Gemini</a> · <a href="/docs/grok">Grok</a> · <a href="/docs/mistral">Mistral</a> · <a href="/docs/openrouter">OpenRouter</a> · <a href="/docs/copilot">GitHub Copilot</a> · <a href="/docs/ollama">Ollama</a></p>
<p><b>By provider:</b> <a href="/docs/deepseek">DeepSeek</a> · <a href="/docs/kimi">Kimi and Kimi Code</a> · <a href="/docs/glm">GLM Coding Plan</a> · <a href="/docs/volcengine">Volcengine Ark</a> · <a href="/docs/tencent-cloud">Tencent Cloud</a> · <a href="/docs/baidu-qianfan">Baidu Qianfan</a> · <a href="/docs/siliconflow">SiliconFlow</a> · <a href="/docs/modelscope">ModelScope</a> · <a href="/docs/qwen">Qwen</a> · <a href="/docs/minimax">MiniMax</a> · <a href="/docs/anthropic">Anthropic</a> · <a href="/docs/openai">OpenAI</a> · <a href="/docs/gemini">Gemini</a> · <a href="/docs/grok">Grok</a> · <a href="/docs/mistral">Mistral</a> · <a href="/docs/openrouter">OpenRouter</a> · <a href="/docs/copilot">GitHub Copilot</a> · <a href="/docs/ollama">Ollama</a></p>
<h2 id="faq"><a class="anchor" href="#faq">FAQ</a></h2>
<h3>Can Gemini CLI use models that aren’t Gemini?</h3>
+1 -1
View File
@@ -333,7 +333,7 @@ magpie claude google-vertex/gemini-3.1-pro-preview</pre></div>
<h3>Can I use my Gemini Code Assist or Antigravity sign-in instead?</h3>
<p>Yes. Both are subscriptions: <code>magpie accounts add gemini</code> or <code>magpie accounts add antigravity</code>, then pick a <code>gemini/…</code> or <code>antigravity/…</code> model. Code Assist needs a Standard or Enterprise account with a Google Cloud project of its own.</p>
<p><b>By provider:</b> <a href="/docs/deepseek">DeepSeek</a> · <a href="/docs/kimi">Kimi and Kimi Code</a> · <a href="/docs/glm">GLM Coding Plan</a> · <a href="/docs/volcengine">Volcengine Ark</a> · <a href="/docs/tencent-cloud">Tencent Cloud</a> · <a href="/docs/baidu-qianfan">Baidu Qianfan</a> · <a href="/docs/qwen">Qwen</a> · <a href="/docs/minimax">MiniMax</a> · <a href="/docs/anthropic">Anthropic</a> · <a href="/docs/openai">OpenAI</a> · <a href="/docs/grok">Grok</a> · <a href="/docs/mistral">Mistral</a> · <a href="/docs/openrouter">OpenRouter</a> · <a href="/docs/copilot">GitHub Copilot</a> · <a href="/docs/ollama">Ollama</a></p>
<p><b>By provider:</b> <a href="/docs/deepseek">DeepSeek</a> · <a href="/docs/kimi">Kimi and Kimi Code</a> · <a href="/docs/glm">GLM Coding Plan</a> · <a href="/docs/volcengine">Volcengine Ark</a> · <a href="/docs/tencent-cloud">Tencent Cloud</a> · <a href="/docs/baidu-qianfan">Baidu Qianfan</a> · <a href="/docs/siliconflow">SiliconFlow</a> · <a href="/docs/modelscope">ModelScope</a> · <a href="/docs/qwen">Qwen</a> · <a href="/docs/minimax">MiniMax</a> · <a href="/docs/anthropic">Anthropic</a> · <a href="/docs/openai">OpenAI</a> · <a href="/docs/grok">Grok</a> · <a href="/docs/mistral">Mistral</a> · <a href="/docs/openrouter">OpenRouter</a> · <a href="/docs/copilot">GitHub Copilot</a> · <a href="/docs/ollama">Ollama</a></p>
<p style="margin-top:48px">Every agent: <a href="/docs/claude-code-models">Models in Claude Code</a>, <a href="/docs/codex-models">Models in Codex</a>, <a href="/docs/gemini-cli-models">Models in Gemini CLI</a>, <a href="/docs/opencode-models">Models in OpenCode</a>. To run Google’s Antigravity app on other models, see <a href="/docs/antigravity">Antigravity on any model</a>. Ask on <a href="https://discord.gg/vGSnD3ZKQF">Discord</a> if you get stuck.</p>
</article>
</main>
+1 -1
View File
@@ -306,7 +306,7 @@ magpie provider fallback xai deepseek/deepseek-v4-pro</pre></div>
<h3>Does magpie show my xAI balance?</h3>
<p>No. The Usage tab counts tokens, cache and cost for every Grok call, priced from models.dev, but magpie reads no balance from xAI. You can type the balance in with <code>magpie provider key-balance</code>, and the Usage page shows it less what magpie has priced since.</p>
<p><b>By provider:</b> <a href="/docs/deepseek">DeepSeek</a> · <a href="/docs/kimi">Kimi and Kimi Code</a> · <a href="/docs/glm">GLM Coding Plan</a> · <a href="/docs/volcengine">Volcengine Ark</a> · <a href="/docs/tencent-cloud">Tencent Cloud</a> · <a href="/docs/baidu-qianfan">Baidu Qianfan</a> · <a href="/docs/qwen">Qwen</a> · <a href="/docs/minimax">MiniMax</a> · <a href="/docs/anthropic">Anthropic</a> · <a href="/docs/openai">OpenAI</a> · <a href="/docs/gemini">Gemini</a> · <a href="/docs/mistral">Mistral</a> · <a href="/docs/openrouter">OpenRouter</a> · <a href="/docs/copilot">GitHub Copilot</a> · <a href="/docs/ollama">Ollama</a></p>
<p><b>By provider:</b> <a href="/docs/deepseek">DeepSeek</a> · <a href="/docs/kimi">Kimi and Kimi Code</a> · <a href="/docs/glm">GLM Coding Plan</a> · <a href="/docs/volcengine">Volcengine Ark</a> · <a href="/docs/tencent-cloud">Tencent Cloud</a> · <a href="/docs/baidu-qianfan">Baidu Qianfan</a> · <a href="/docs/siliconflow">SiliconFlow</a> · <a href="/docs/modelscope">ModelScope</a> · <a href="/docs/qwen">Qwen</a> · <a href="/docs/minimax">MiniMax</a> · <a href="/docs/anthropic">Anthropic</a> · <a href="/docs/openai">OpenAI</a> · <a href="/docs/gemini">Gemini</a> · <a href="/docs/mistral">Mistral</a> · <a href="/docs/openrouter">OpenRouter</a> · <a href="/docs/copilot">GitHub Copilot</a> · <a href="/docs/ollama">Ollama</a></p>
<p style="margin-top:48px">Every agent: <a href="/docs/claude-code-models">Models in Claude Code</a>, <a href="/docs/codex-models">Models in Codex</a>, <a href="/docs/gemini-cli-models">Models in Gemini CLI</a>, <a href="/docs/opencode-models">Models in OpenCode</a>. Ask on <a href="https://discord.gg/vGSnD3ZKQF">Discord</a> if you get stuck.</p>
</article>
</main>
+1 -1
View File
@@ -308,7 +308,7 @@ magpie provider add anthropic &lt;key&gt; id=anthropic-ws2 name="Anthropic WS2"
<h3>思考をオフにすると Claude が 400 を返すのはなぜ?</h3>
<p>新しい Claude のモデルは、どれも <code>thinking</code> の <code>disabled</code> を受け付けるわけではありません。magpie は Sonnet 5.5 には <code>between_tools</code> を送り、常に思考する Opus 5.5 と Fable 5 には thinking を外し、Opus 5 と Haiku 5.5 には xhigh や max の代わりに high で求めます。それより前の Claude には送ったとおりに渡します。</p>
<p><b>プロバイダ別:</b><a href="/docs/ja/deepseek">DeepSeek</a> · <a href="/docs/ja/kimi">Kimi と Kimi Code</a> · <a href="/docs/ja/glm">GLM Coding Plan</a> · <a href="/docs/ja/volcengine">Volcengine Ark(火山方舟)</a> · <a href="/docs/ja/tencent-cloud">Tencent Cloud</a> · <a href="/docs/ja/baidu-qianfan">Baidu Qianfan</a> · <a href="/docs/ja/qwen">Qwen</a> · <a href="/docs/ja/minimax">MiniMax</a> · <a href="/docs/ja/openai">OpenAI</a> · <a href="/docs/ja/gemini">Gemini</a> · <a href="/docs/ja/grok">Grok</a> · <a href="/docs/ja/mistral">Mistral</a> · <a href="/docs/ja/openrouter">OpenRouter</a> · <a href="/docs/ja/copilot">GitHub Copilot</a> · <a href="/docs/ja/ollama">Ollama</a></p>
<p><b>プロバイダ別:</b><a href="/docs/ja/deepseek">DeepSeek</a> · <a href="/docs/ja/kimi">Kimi と Kimi Code</a> · <a href="/docs/ja/glm">GLM Coding Plan</a> · <a href="/docs/ja/volcengine">Volcengine Ark(火山方舟)</a> · <a href="/docs/ja/tencent-cloud">Tencent Cloud</a> · <a href="/docs/ja/baidu-qianfan">Baidu Qianfan</a> · <a href="/docs/ja/siliconflow">SiliconFlow</a> · <a href="/docs/ja/modelscope">ModelScope</a> · <a href="/docs/ja/qwen">Qwen</a> · <a href="/docs/ja/minimax">MiniMax</a> · <a href="/docs/ja/openai">OpenAI</a> · <a href="/docs/ja/gemini">Gemini</a> · <a href="/docs/ja/grok">Grok</a> · <a href="/docs/ja/mistral">Mistral</a> · <a href="/docs/ja/openrouter">OpenRouter</a> · <a href="/docs/ja/copilot">GitHub Copilot</a> · <a href="/docs/ja/ollama">Ollama</a></p>
<p style="margin-top:48px">ツールごとのガイド:<a href="/docs/ja/claude-code-models">Claude Code で他のモデル</a>、<a href="/docs/ja/codex-models">Codex で他のモデル</a>、<a href="/docs/ja/gemini-cli-models">Gemini CLI で他のモデル</a>、<a href="/docs/ja/opencode-models">OpenCode で他のモデル</a>。困ったときは <a href="https://discord.gg/vGSnD3ZKQF">Discord</a> で質問してください。</p>
</article>
</main>
+1 -1
View File
@@ -274,7 +274,7 @@ magpie claude codex/gpt-5.5</pre></div>
</ul>
<p>ルーティングモードは<a href="/docs/ja/start#routing">はじめに</a>で説明しています。</p>
<p><b>プロバイダ別:</b><a href="/docs/ja/deepseek">DeepSeek</a> · <a href="/docs/ja/kimi">Kimi と Kimi Code</a> · <a href="/docs/ja/glm">GLM Coding Plan</a> · <a href="/docs/ja/volcengine">Volcengine Ark(火山方舟)</a> · <a href="/docs/ja/tencent-cloud">Tencent Cloud</a> · <a href="/docs/ja/baidu-qianfan">Baidu Qianfan</a> · <a href="/docs/ja/qwen">Qwen</a> · <a href="/docs/ja/minimax">MiniMax</a> · <a href="/docs/ja/anthropic">Anthropic</a> · <a href="/docs/ja/openai">OpenAI</a> · <a href="/docs/ja/gemini">Gemini</a> · <a href="/docs/ja/grok">Grok</a> · <a href="/docs/ja/mistral">Mistral</a> · <a href="/docs/ja/openrouter">OpenRouter</a> · <a href="/docs/ja/copilot">GitHub Copilot</a> · <a href="/docs/ja/ollama">Ollama</a></p>
<p><b>プロバイダ別:</b><a href="/docs/ja/deepseek">DeepSeek</a> · <a href="/docs/ja/kimi">Kimi と Kimi Code</a> · <a href="/docs/ja/glm">GLM Coding Plan</a> · <a href="/docs/ja/volcengine">Volcengine Ark(火山方舟)</a> · <a href="/docs/ja/tencent-cloud">Tencent Cloud</a> · <a href="/docs/ja/baidu-qianfan">Baidu Qianfan</a> · <a href="/docs/ja/siliconflow">SiliconFlow</a> · <a href="/docs/ja/modelscope">ModelScope</a> · <a href="/docs/ja/qwen">Qwen</a> · <a href="/docs/ja/minimax">MiniMax</a> · <a href="/docs/ja/anthropic">Anthropic</a> · <a href="/docs/ja/openai">OpenAI</a> · <a href="/docs/ja/gemini">Gemini</a> · <a href="/docs/ja/grok">Grok</a> · <a href="/docs/ja/mistral">Mistral</a> · <a href="/docs/ja/openrouter">OpenRouter</a> · <a href="/docs/ja/copilot">GitHub Copilot</a> · <a href="/docs/ja/ollama">Ollama</a></p>
<h2 id="faq"><a class="anchor" href="#faq">よくある質問</a></h2>
<h3><code>ANTHROPIC_BASE_URL</code> は自分で設定しますか?</h3>
+1 -1
View File
@@ -274,7 +274,7 @@ magpie codex claude/…</pre></div>
</ul>
<p>ルーティングモードは<a href="/docs/ja/start#routing">はじめに</a>で説明しています。</p>
<p><b>プロバイダ別:</b><a href="/docs/ja/deepseek">DeepSeek</a> · <a href="/docs/ja/kimi">Kimi と Kimi Code</a> · <a href="/docs/ja/glm">GLM Coding Plan</a> · <a href="/docs/ja/volcengine">Volcengine Ark(火山方舟)</a> · <a href="/docs/ja/tencent-cloud">Tencent Cloud</a> · <a href="/docs/ja/baidu-qianfan">Baidu Qianfan</a> · <a href="/docs/ja/qwen">Qwen</a> · <a href="/docs/ja/minimax">MiniMax</a> · <a href="/docs/ja/anthropic">Anthropic</a> · <a href="/docs/ja/openai">OpenAI</a> · <a href="/docs/ja/gemini">Gemini</a> · <a href="/docs/ja/grok">Grok</a> · <a href="/docs/ja/mistral">Mistral</a> · <a href="/docs/ja/openrouter">OpenRouter</a> · <a href="/docs/ja/copilot">GitHub Copilot</a> · <a href="/docs/ja/ollama">Ollama</a></p>
<p><b>プロバイダ別:</b><a href="/docs/ja/deepseek">DeepSeek</a> · <a href="/docs/ja/kimi">Kimi と Kimi Code</a> · <a href="/docs/ja/glm">GLM Coding Plan</a> · <a href="/docs/ja/volcengine">Volcengine Ark(火山方舟)</a> · <a href="/docs/ja/tencent-cloud">Tencent Cloud</a> · <a href="/docs/ja/baidu-qianfan">Baidu Qianfan</a> · <a href="/docs/ja/siliconflow">SiliconFlow</a> · <a href="/docs/ja/modelscope">ModelScope</a> · <a href="/docs/ja/qwen">Qwen</a> · <a href="/docs/ja/minimax">MiniMax</a> · <a href="/docs/ja/anthropic">Anthropic</a> · <a href="/docs/ja/openai">OpenAI</a> · <a href="/docs/ja/gemini">Gemini</a> · <a href="/docs/ja/grok">Grok</a> · <a href="/docs/ja/mistral">Mistral</a> · <a href="/docs/ja/openrouter">OpenRouter</a> · <a href="/docs/ja/copilot">GitHub Copilot</a> · <a href="/docs/ja/ollama">Ollama</a></p>
<h2 id="faq"><a class="anchor" href="#faq">よくある質問</a></h2>
<h3><code>[model_providers]</code> は自分で書きますか?</h3>
+1 -1
View File
@@ -258,7 +258,7 @@ magpie gemini model codex/gpt-5.5</pre></div>
</ul>
<p>ルーティングモードとルールは<a href="/docs/ja/start#routing">はじめに</a>で説明しています。</p>
<p><b>プロバイダ別:</b><a href="/docs/ja/deepseek">DeepSeek</a> · <a href="/docs/ja/kimi">Kimi と Kimi Code</a> · <a href="/docs/ja/glm">GLM Coding Plan</a> · <a href="/docs/ja/volcengine">Volcengine Ark(火山方舟)</a> · <a href="/docs/ja/tencent-cloud">Tencent Cloud</a> · <a href="/docs/ja/baidu-qianfan">Baidu Qianfan</a> · <a href="/docs/ja/qwen">Qwen</a> · <a href="/docs/ja/minimax">MiniMax</a> · <a href="/docs/ja/anthropic">Anthropic</a> · <a href="/docs/ja/openai">OpenAI</a> · <a href="/docs/ja/gemini">Gemini</a> · <a href="/docs/ja/grok">Grok</a> · <a href="/docs/ja/mistral">Mistral</a> · <a href="/docs/ja/openrouter">OpenRouter</a> · <a href="/docs/ja/copilot">GitHub Copilot</a> · <a href="/docs/ja/ollama">Ollama</a></p>
<p><b>プロバイダ別:</b><a href="/docs/ja/deepseek">DeepSeek</a> · <a href="/docs/ja/kimi">Kimi と Kimi Code</a> · <a href="/docs/ja/glm">GLM Coding Plan</a> · <a href="/docs/ja/volcengine">Volcengine Ark(火山方舟)</a> · <a href="/docs/ja/tencent-cloud">Tencent Cloud</a> · <a href="/docs/ja/baidu-qianfan">Baidu Qianfan</a> · <a href="/docs/ja/siliconflow">SiliconFlow</a> · <a href="/docs/ja/modelscope">ModelScope</a> · <a href="/docs/ja/qwen">Qwen</a> · <a href="/docs/ja/minimax">MiniMax</a> · <a href="/docs/ja/anthropic">Anthropic</a> · <a href="/docs/ja/openai">OpenAI</a> · <a href="/docs/ja/gemini">Gemini</a> · <a href="/docs/ja/grok">Grok</a> · <a href="/docs/ja/mistral">Mistral</a> · <a href="/docs/ja/openrouter">OpenRouter</a> · <a href="/docs/ja/copilot">GitHub Copilot</a> · <a href="/docs/ja/ollama">Ollama</a></p>
<h2 id="faq"><a class="anchor" href="#faq">よくある質問</a></h2>
<h3>Gemini CLI で Gemini 以外のモデルを使えますか?</h3>
+1 -1
View File
@@ -333,7 +333,7 @@ magpie claude google-vertex/gemini-3.1-pro-preview</pre></div>
<h3>Gemini Code Assist や Antigravity のサインインは使えますか?</h3>
<p>使えます。どちらもサブスクです。<code>magpie accounts add gemini</code> か <code>magpie accounts add antigravity</code> を実行し、<code>gemini/…</code> か <code>antigravity/…</code> のモデルを選びます。Code Assist には、専用の Google Cloud プロジェクトを持つ Standard または Enterprise のアカウントが必要です。</p>
<p><b>プロバイダ別:</b><a href="/docs/ja/deepseek">DeepSeek</a> · <a href="/docs/ja/kimi">Kimi と Kimi Code</a> · <a href="/docs/ja/glm">GLM Coding Plan</a> · <a href="/docs/ja/volcengine">Volcengine Ark(火山方舟)</a> · <a href="/docs/ja/tencent-cloud">Tencent Cloud</a> · <a href="/docs/ja/baidu-qianfan">Baidu Qianfan</a> · <a href="/docs/ja/qwen">Qwen</a> · <a href="/docs/ja/minimax">MiniMax</a> · <a href="/docs/ja/anthropic">Anthropic</a> · <a href="/docs/ja/openai">OpenAI</a> · <a href="/docs/ja/grok">Grok</a> · <a href="/docs/ja/mistral">Mistral</a> · <a href="/docs/ja/openrouter">OpenRouter</a> · <a href="/docs/ja/copilot">GitHub Copilot</a> · <a href="/docs/ja/ollama">Ollama</a></p>
<p><b>プロバイダ別:</b><a href="/docs/ja/deepseek">DeepSeek</a> · <a href="/docs/ja/kimi">Kimi と Kimi Code</a> · <a href="/docs/ja/glm">GLM Coding Plan</a> · <a href="/docs/ja/volcengine">Volcengine Ark(火山方舟)</a> · <a href="/docs/ja/tencent-cloud">Tencent Cloud</a> · <a href="/docs/ja/baidu-qianfan">Baidu Qianfan</a> · <a href="/docs/ja/siliconflow">SiliconFlow</a> · <a href="/docs/ja/modelscope">ModelScope</a> · <a href="/docs/ja/qwen">Qwen</a> · <a href="/docs/ja/minimax">MiniMax</a> · <a href="/docs/ja/anthropic">Anthropic</a> · <a href="/docs/ja/openai">OpenAI</a> · <a href="/docs/ja/grok">Grok</a> · <a href="/docs/ja/mistral">Mistral</a> · <a href="/docs/ja/openrouter">OpenRouter</a> · <a href="/docs/ja/copilot">GitHub Copilot</a> · <a href="/docs/ja/ollama">Ollama</a></p>
<p style="margin-top:48px">ツールごとのガイド:<a href="/docs/ja/claude-code-models">Claude Code で他のモデル</a>、<a href="/docs/ja/codex-models">Codex で他のモデル</a>、<a href="/docs/ja/gemini-cli-models">Gemini CLI で他のモデル</a>、<a href="/docs/ja/opencode-models">OpenCode で他のモデル</a>。Google の Antigravity アプリを他のモデルで使うには <a href="/docs/ja/antigravity">Antigravity を任意のモデルで</a> を参照してください。困ったときは <a href="https://discord.gg/vGSnD3ZKQF">Discord</a> で質問してください。</p>
</article>
</main>
+1 -1
View File
@@ -306,7 +306,7 @@ magpie provider fallback xai deepseek/deepseek-v4-pro</pre></div>
<h3>magpie で xAI の残高は見られますか?</h3>
<p>見られません。使用量タブは Grok の呼び出しごとにトークン・キャッシュ・費用を models.dev の価格で数えますが、magpie は xAI から残高を読みません。<code>magpie provider key-balance</code> で残高を入力すると、使用量ページはそこから magpie がそれ以降に計算した費用を引いて表示します。</p>
<p><b>プロバイダ別:</b><a href="/docs/ja/deepseek">DeepSeek</a> · <a href="/docs/ja/kimi">Kimi と Kimi Code</a> · <a href="/docs/ja/glm">GLM Coding Plan</a> · <a href="/docs/ja/volcengine">Volcengine Ark(火山方舟)</a> · <a href="/docs/ja/tencent-cloud">Tencent Cloud</a> · <a href="/docs/ja/baidu-qianfan">Baidu Qianfan</a> · <a href="/docs/ja/qwen">Qwen</a> · <a href="/docs/ja/minimax">MiniMax</a> · <a href="/docs/ja/anthropic">Anthropic</a> · <a href="/docs/ja/openai">OpenAI</a> · <a href="/docs/ja/gemini">Gemini</a> · <a href="/docs/ja/mistral">Mistral</a> · <a href="/docs/ja/openrouter">OpenRouter</a> · <a href="/docs/ja/copilot">GitHub Copilot</a> · <a href="/docs/ja/ollama">Ollama</a></p>
<p><b>プロバイダ別:</b><a href="/docs/ja/deepseek">DeepSeek</a> · <a href="/docs/ja/kimi">Kimi と Kimi Code</a> · <a href="/docs/ja/glm">GLM Coding Plan</a> · <a href="/docs/ja/volcengine">Volcengine Ark(火山方舟)</a> · <a href="/docs/ja/tencent-cloud">Tencent Cloud</a> · <a href="/docs/ja/baidu-qianfan">Baidu Qianfan</a> · <a href="/docs/ja/siliconflow">SiliconFlow</a> · <a href="/docs/ja/modelscope">ModelScope</a> · <a href="/docs/ja/qwen">Qwen</a> · <a href="/docs/ja/minimax">MiniMax</a> · <a href="/docs/ja/anthropic">Anthropic</a> · <a href="/docs/ja/openai">OpenAI</a> · <a href="/docs/ja/gemini">Gemini</a> · <a href="/docs/ja/mistral">Mistral</a> · <a href="/docs/ja/openrouter">OpenRouter</a> · <a href="/docs/ja/copilot">GitHub Copilot</a> · <a href="/docs/ja/ollama">Ollama</a></p>
<p style="margin-top:48px">ツールごとのガイド:<a href="/docs/ja/claude-code-models">Claude Code で他のモデル</a>、<a href="/docs/ja/codex-models">Codex で他のモデル</a>、<a href="/docs/ja/gemini-cli-models">Gemini CLI で他のモデル</a>、<a href="/docs/ja/opencode-models">OpenCode で他のモデル</a>。困ったときは <a href="https://discord.gg/vGSnD3ZKQF">Discord</a> で質問してください。</p>
</article>
</main>
+1 -1
View File
@@ -299,7 +299,7 @@ magpie provider fallback mistral deepseek/deepseek-v4-pro</pre></div>
<h3>Le Chat プランの Vibe 予算を magpie で見られますか?</h3>
<p>見られます。Le Chat プラン(Pro・Student・Team)の Vibe キーには、その月の Vibe 予算の使用量、Mistral が請求する通貨、リセット日、プラン名が表示されます。コンソールで作った Studio キーには、代わりに組織の API 予算が “API · Month” として表示されます。</p>
<p><b>プロバイダ別:</b><a href="/docs/ja/deepseek">DeepSeek</a> · <a href="/docs/ja/kimi">Kimi と Kimi Code</a> · <a href="/docs/ja/glm">GLM Coding Plan</a> · <a href="/docs/ja/volcengine">Volcengine Ark(火山方舟)</a> · <a href="/docs/ja/tencent-cloud">Tencent Cloud</a> · <a href="/docs/ja/baidu-qianfan">Baidu Qianfan</a> · <a href="/docs/ja/qwen">Qwen</a> · <a href="/docs/ja/minimax">MiniMax</a> · <a href="/docs/ja/anthropic">Anthropic</a> · <a href="/docs/ja/openai">OpenAI</a> · <a href="/docs/ja/gemini">Gemini</a> · <a href="/docs/ja/grok">Grok</a> · <a href="/docs/ja/openrouter">OpenRouter</a> · <a href="/docs/ja/copilot">GitHub Copilot</a> · <a href="/docs/ja/ollama">Ollama</a></p>
<p><b>プロバイダ別:</b><a href="/docs/ja/deepseek">DeepSeek</a> · <a href="/docs/ja/kimi">Kimi と Kimi Code</a> · <a href="/docs/ja/glm">GLM Coding Plan</a> · <a href="/docs/ja/volcengine">Volcengine Ark(火山方舟)</a> · <a href="/docs/ja/tencent-cloud">Tencent Cloud</a> · <a href="/docs/ja/baidu-qianfan">Baidu Qianfan</a> · <a href="/docs/ja/siliconflow">SiliconFlow</a> · <a href="/docs/ja/modelscope">ModelScope</a> · <a href="/docs/ja/qwen">Qwen</a> · <a href="/docs/ja/minimax">MiniMax</a> · <a href="/docs/ja/anthropic">Anthropic</a> · <a href="/docs/ja/openai">OpenAI</a> · <a href="/docs/ja/gemini">Gemini</a> · <a href="/docs/ja/grok">Grok</a> · <a href="/docs/ja/openrouter">OpenRouter</a> · <a href="/docs/ja/copilot">GitHub Copilot</a> · <a href="/docs/ja/ollama">Ollama</a></p>
<p style="margin-top:48px">ツールごとのガイド:<a href="/docs/ja/claude-code-models">Claude Code で他のモデル</a>、<a href="/docs/ja/codex-models">Codex で他のモデル</a>、<a href="/docs/ja/gemini-cli-models">Gemini CLI で他のモデル</a>、<a href="/docs/ja/opencode-models">OpenCode で他のモデル</a>。困ったときは <a href="https://discord.gg/vGSnD3ZKQF">Discord</a> で質問してください。</p>
</article>
</main>
+277
View File
@@ -0,0 +1,277 @@
<!doctype html>
<html lang="ja">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>ModelScope(魔搭)API-Inference を Claude Code、Codex、OpenCode で使う:Qwen3 Coder と GLM を任意のエージェントで · magpie</title>
<meta name="description" content="ModelScope のアクセストークンで API-Inference を magpie に追加し、Claude Code、Codex、Gemini CLI、OpenCode で Qwen3 Coder、Qwen3、GLM を使う方法:エンドポイント、モデル名の書き方、Alibaba の DashScope との違い、ModelScope での画像生成。">
<meta name="color-scheme" content="light dark">
<meta name="theme-color" content="#fafafa">
<script>
(() => {
let mode = "system";
try { mode = localStorage.getItem("theme") || "system"; } catch {}
const q = matchMedia("(prefers-color-scheme: dark)");
const apply = () => {
const t = mode === "system" ? (q.matches ? "dark" : "light") : mode;
document.documentElement.dataset.theme = t;
document.querySelector('meta[name="theme-color"]').content = t === "dark" ? "#0b0b0c" : "#fafafa";
document.querySelectorAll("button.theme").forEach((b) => { b.dataset.mode = mode; b.title = "Theme: " + mode; });
};
q.addEventListener("change", () => mode === "system" && apply());
window.setTheme = (m) => { mode = m; try { m === "system" ? localStorage.removeItem("theme") : localStorage.setItem("theme", m); } catch {} apply(); };
window.themeMode = () => mode;
apply();
})();
</script>
<script>try{if(/Linux/.test(navigator.userAgent)&&!/Android/.test(navigator.userAgent)||localStorage.getItem("omarchy")||/[?&]omarchy=/.test(location.search))document.write('<script src="/omarchy.js"><\/script>')}catch(e){}</script>
<link rel="icon" href="/favicon.png" type="image/png">
<link rel="apple-touch-icon" href="/img/icon-256.png">
<link rel="alternate" hreflang="en" href="https://usemagpie.ai/docs/modelscope">
<link rel="alternate" hreflang="zh" href="https://usemagpie.ai/docs/zh/modelscope">
<link rel="alternate" hreflang="ja" href="https://usemagpie.ai/docs/ja/modelscope">
<link rel="alternate" hreflang="x-default" href="https://usemagpie.ai/docs/modelscope">
<link rel="canonical" href="https://usemagpie.ai/docs/ja/modelscope">
<link rel="stylesheet" href="/docs.css">
<meta property="og:site_name" content="magpie">
<meta property="og:title" content="ModelScope を Claude Code と Codex で">
<meta property="og:description" content="ModelScope のアクセストークンで API-Inference を magpie に追加し、Claude Code、Codex、Gemini CLI、OpenCode で Qwen3 Coder、Qwen3、GLM を使う方法:エンドポイント、モデル名の書き方、Alibaba の DashScope との違い、ModelScope での画像生成。">
<meta property="og:image" content="https://usemagpie.ai/img/og.png">
<meta property="og:url" content="https://usemagpie.ai/docs/ja/modelscope">
<meta name="twitter:card" content="summary_large_image">
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@graph": [
{
"@type": "TechArticle",
"headline": "ModelScope を Claude Code と Codex で",
"description": "ModelScope のアクセストークンで API-Inference を magpie に追加し、Claude Code、Codex、Gemini CLI、OpenCode で Qwen3 Coder、Qwen3、GLM を使う方法:エンドポイント、モデル名の書き方、Alibaba の DashScope との違い、ModelScope での画像生成。",
"inLanguage": "ja",
"url": "https://usemagpie.ai/docs/ja/modelscope",
"about": {
"@type": "SoftwareApplication",
"name": "magpie",
"applicationCategory": "DeveloperApplication",
"operatingSystem": "macOS, Windows, Linux"
},
"publisher": {
"@type": "Organization",
"name": "magpie",
"url": "https://usemagpie.ai/"
}
},
{
"@type": "FAQPage",
"mainEntity": [
{
"@type": "Question",
"name": "ModelScope を Claude Code で使うには?",
"acceptedAnswer": {
"@type": "Answer",
"text": "magpie に ModelScope を追加してアクセストークンをキーに貼り、Claude Code の行で Qwen/Qwen3-Coder-30B-A3B-Instruct を選ぶか、magpie claude modelscope/Qwen/Qwen3-Coder-30B-A3B-Instruct を実行します。Anthropic エンドポイントがないため magpie が変換します。"
}
},
{
"@type": "Question",
"name": "ModelScope のキーはどこで取得しますか?",
"acceptedAnswer": {
"@type": "Answer",
"text": "ModelScope アカウントのアクセストークンを modelscope.cn/my/myaccesstoken で作り、magpie の ModelScope プロバイダーに貼ります。"
}
},
{
"@type": "Question",
"name": "ModelScope と Alibaba の DashScope は同じですか?",
"acceptedAnswer": {
"@type": "Answer",
"text": "違います。ModelScope の API-Inference は api-inference.modelscope.cn で ModelScope のトークンを使い、DashScope は Alibaba Cloud のキーで magpie の Qwen プロバイダーです。"
}
},
{
"@type": "Question",
"name": "ModelScope は Codex で使えますか?",
"acceptedAnswer": {
"@type": "Answer",
"text": "使えます。Responses を提供しているので、magpie は Codex のリクエストをそのまま送ります。magpie codex modelscope/ZhipuAI/GLM-4.6 を実行してください。"
}
}
]
},
{
"@type": "BreadcrumbList",
"itemListElement": [
{
"@type": "ListItem",
"position": 1,
"name": "magpie",
"item": "https://usemagpie.ai/ja/"
},
{
"@type": "ListItem",
"position": 2,
"name": "ドキュメント",
"item": "https://usemagpie.ai/docs/ja/start"
},
{
"@type": "ListItem",
"position": 3,
"name": "ModelScope を Claude Code と Codex で",
"item": "https://usemagpie.ai/docs/ja/modelscope"
}
]
}
]
}
</script>
</head>
<body>
<nav><div class="wrap">
<a class="brand" href="/ja/"><img class="bird" src="/img/magpie-small.svg" alt="">magpie <small>ドキュメント</small></a>
<div class="links">
<a href="/ja/">ホーム</a>
<a href="/docs/ja/start">はじめに</a>
<a href="/docs/ja/intent">インテントルーティング</a>
<a href="/docs/ja/plugins">プラグイン</a>
<a class="toc-only" href="/docs/ja/remote">リモート magpie</a>
<a class="toc-only" href="/docs/ja/docker">Docker</a>
<a class="toc-only" href="/docs/ja/privacy">プライバシー</a>
<a class="toc-only" href="/docs/ja/masking">プライバシーマスキング</a>
<a class="toc-only" href="/docs/ja/mcp-router">MCP ルーター</a>
<a class="toc-only" href="/docs/ja/library">ライブラリ</a>
<a class="toc-only" href="/docs/ja/claude-code-models">Claude Code で他のモデル</a>
<a class="toc-only" href="/docs/ja/codex-models">Codex で他のモデル</a>
<a class="toc-only" href="/docs/ja/gemini-cli-models">Gemini CLI で他のモデル</a>
<a class="toc-only" href="/docs/ja/subscriptions">サブスクを任意のエージェントで</a>
<a class="toc-only" href="/docs/ja/local-models">ローカルモデル</a>
<a class="toc-only" href="/docs/ja/opencode-models">OpenCode で他のモデル</a>
<a class="toc-only" href="/docs/ja/alternatives">CC Switch・CCR との比較</a>
<a href="/docs/ja/import">magpie に追加</a>
<a href="/docs/integrate">アプリ連携</a>
<a href="https://github.com/yetone/magpie-releases/releases">リリース</a>
</div>
<div class="langs">
<button class="icon-btn lang" type="button" aria-label="言語" title="言語" aria-haspopup="true" aria-expanded="false" aria-controls="langs"><svg viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.4" aria-hidden="true"><circle cx="8" cy="8" r="6.25"/><path d="M1.75 8h12.5M8 1.75c1.7 1.75 2.55 3.83 2.55 6.25S9.7 12.5 8 14.25M8 1.75C6.3 3.5 5.45 5.58 5.45 8S6.3 12.5 8 14.25"/></svg></button>
<div class="lang-menu" id="langs" hidden>
<a href="/docs/modelscope" hreflang="en" lang="en">English</a>
<a href="/docs/zh/modelscope" hreflang="zh" lang="zh">中文</a>
<a href="/docs/ja/modelscope" hreflang="ja" lang="ja">日本語</a>
</div>
</div>
<a class="icon-btn" href="https://discord.gg/vGSnD3ZKQF" aria-label="Discord の magpie" title="Discord に参加"><svg viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M20.317 4.3698a19.7913 19.7913 0 00-4.8851-1.5152.0741.0741 0 00-.0785.0371c-.211.3753-.4447.8648-.6083 1.2495-1.8447-.2762-3.68-.2762-5.4868 0-.1636-.3933-.4058-.8742-.6177-1.2495a.077.077 0 00-.0785-.037 19.7363 19.7363 0 00-4.8852 1.515.0699.0699 0 00-.0321.0277C.5334 9.0458-.319 13.5799.0992 18.0578a.0824.0824 0 00.0312.0561c2.0528 1.5076 4.0413 2.4228 5.9929 3.0294a.0777.0777 0 00.0842-.0276c.4616-.6304.8731-1.2952 1.226-1.9942a.076.076 0 00-.0416-.1057c-.6528-.2476-1.2743-.5495-1.8722-.8923a.077.077 0 01-.0076-.1277c.1258-.0943.2517-.1923.3718-.2914a.0743.0743 0 01.0776-.0105c3.9278 1.7933 8.18 1.7933 12.0614 0a.0739.0739 0 01.0785.0095c.1202.099.246.1981.3728.2924a.077.077 0 01-.0066.1276 12.2986 12.2986 0 01-1.873.8914.0766.0766 0 00-.0407.1067c.3604.698.7719 1.3628 1.225 1.9932a.076.076 0 00.0842.0286c1.961-.6067 3.9495-1.5219 6.0023-3.0294a.077.077 0 00.0313-.0552c.5004-5.177-.8382-9.6739-3.5485-13.6604a.061.061 0 00-.0312-.0286zM8.02 15.3312c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9555-2.4189 2.157-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.9555 2.4189-2.1569 2.4189zm7.9748 0c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9554-2.4189 2.1569-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.946 2.4189-2.1568 2.4189Z"/></svg></a>
<a class="icon-btn" href="https://github.com/yetone/magpie" aria-label="GitHub の magpie" title="GitHub のソースコード"><svg viewBox="0 0 16 16" fill="currentColor" aria-hidden="true"><path d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0 0 16 8c0-4.42-3.58-8-8-8Z"/></svg></a>
<button class="icon-btn theme" type="button" aria-label="Theme" title="Theme: system"><svg class="i-system" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5"><rect x="1.75" y="2.75" width="12.5" height="8.5" rx="1.5"/><path d="M5.5 14h5M8 11.25V14"/></svg><svg class="i-light" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"><circle cx="8" cy="8" r="3"/><path d="M8 1v1.5M8 13.5V15M1 8h1.5M13.5 8H15M3 3l1 1M12 12l1 1M3 13l1-1M12 4l1-1"/></svg><svg class="i-dark" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linejoin="round"><path d="M13.5 9.5A5.5 5.5 0 0 1 6.5 2.5a5.5 5.5 0 1 0 7 7Z"/></svg></button>
<a class="btn small" href="/#get">ダウンロード</a>
</div></nav>
<main class="wrap doc">
<aside class="toc">
<p>ModelScope</p>
<a href="#overview">概要</a>
<a href="#add">ModelScope を追加</a>
<a href="#endpoint">エンドポイントとトークン</a>
<a href="#models">モデル</a>
<a href="#agents">各エージェントで</a>
<a href="#images">画像</a>
<a href="#faq">よくある質問</a>
</aside>
<article>
<p class="eyebrow" id="overview">ドキュメント · プロバイダー</p>
<h1>ModelScope を Claude Code と Codex で</h1>
<p class="lede">ModelScope(魔搭)の API-Inference は ModelScope アカウントのアクセストークンをキーにし、Qwen や GLM などを Chat Completions と Responses で提供します。magpie に ModelScope を追加すれば、Claude Code、Codex、Gemini CLI、OpenCode が 127.0.0.1:3425 のローカルゲートウェイ経由で使えます。</p>
<h2 id="add"><a class="anchor" href="#add">ModelScope を追加</a></h2>
<ol class="steps">
<li><b>プロバイダーを追加</b><span class="ui">プロバイダー</span> で <span class="ui">+ プロバイダーを追加</span> を押し、<span class="ui">ModelScope</span> を選び、ModelScope のアクセストークンをキーとしてキーを貼り付けて保存します。</li>
<li><b>ツールで選ぶ</b><span class="ui">エージェント</span> でツールの行に Qwen/Qwen3-Coder-30B-A3B-Instruct などを選びます。</li>
</ol>
<div class="code"><span class="lang">ターミナル</span><button class="copy" data-copy="ms-cli">コピー</button><pre id="ms-cli">magpie claude modelscope/Qwen/Qwen3-Coder-30B-A3B-Instruct
magpie codex modelscope/ZhipuAI/GLM-4.6
magpie opencode modelscope/Qwen/Qwen3-235B-A22B-Instruct-2507</pre></div>
<h2 id="endpoint"><a class="anchor" href="#endpoint">エンドポイントとトークン</a></h2>
<div class="table-wrap"><table>
<tr><th>API</th><th>エンドポイント</th></tr>
<tr><td>Chat Completions</td><td><code>https://api-inference.modelscope.cn/v1</code></td></tr>
<tr><td>Responses</td><td><code>https://api-inference.modelscope.cn/v1</code></td></tr>
</table></div>
<p>キーは ModelScope アカウントのアクセストークンで、modelscope.cn/my/myaccesstoken で作ります。ModelScope は Alibaba Cloud の DashScope ではありません。DashScope のキーは <a href="/docs/ja/qwen">Qwen</a> プロバイダーで使い、互いに使えません。api-inference.modelscope.cn を手で追加したプロバイダーも ModelScope として扱われます。</p>
<h2 id="models"><a class="anchor" href="#models">モデル</a></h2>
<p>ModelScope のモデル名には組織名が付き、そのまま書きます:Qwen/Qwen3-Coder-30B-A3B-Instruct、Qwen/Qwen3-235B-A22B-Instruct-2507、Qwen/Qwen3-235B-A22B-Thinking-2507、ZhipuAI/GLM-4.6、ZhipuAI/GLM-4.5 など。名前とコンテキスト長は models.dev の modelscope カタログから取ります。コマンドラインでは <code>modelscope/</code> の後にモデル名を書きます。</p>
<h2 id="agents"><a class="anchor" href="#agents">各エージェントで</a></h2>
<ul>
<li><b>Claude Code</b> は Anthropic Messages を話しますが、このプロバイダーにはありません。magpie が各リクエストを Chat Completions に変換し、返答も戻します(思考も含む)。<a href="/docs/ja/claude-code-models">Claude Code で他のモデル</a>。</li>
<li><b>Codex</b> は OpenAI Responses を話します。Responses も提供しているので、Codex のリクエストはそのまま送られます。<a href="/docs/ja/codex-models">Codex で他のモデル</a>。</li>
<li><b>Gemini CLI</b> は Gemini の API を話し、magpie が Chat Completions に変換します。<a href="/docs/ja/gemini-cli-models">Gemini CLI で他のモデル</a>。</li>
<li><b>OpenCode</b> は Chat Completions を話すので、そのまま送られます。<a href="/docs/ja/opencode-models">OpenCode で他のモデル</a>。</li>
</ul>
<h2 id="images"><a class="anchor" href="#images">画像</a></h2>
<p>ModelScope の画像生成は独自の非同期タスクです。リクエストでタスクを始めて task_id を受け取り、成功か失敗まで問い合わせます。ユーザーごとに同時 1 タスクで、バーストには 429 を返すため、magpie は 1 枚ずつ頼み、混んでいるときは少し待ってから、結果をツールが読める画像として渡します。</p>
<h2 id="faq"><a class="anchor" href="#faq">よくある質問</a></h2>
<h3>ModelScope を Claude Code で使うには?</h3>
<p>magpie に ModelScope を追加してアクセストークンをキーに貼り、Claude Code の行で Qwen/Qwen3-Coder-30B-A3B-Instruct を選ぶか、magpie claude modelscope/Qwen/Qwen3-Coder-30B-A3B-Instruct を実行します。Anthropic エンドポイントがないため magpie が変換します。</p>
<h3>ModelScope のキーはどこで取得しますか?</h3>
<p>ModelScope アカウントのアクセストークンを modelscope.cn/my/myaccesstoken で作り、magpie の ModelScope プロバイダーに貼ります。</p>
<h3>ModelScope と Alibaba の DashScope は同じですか?</h3>
<p>違います。ModelScope の API-Inference は api-inference.modelscope.cn で ModelScope のトークンを使い、DashScope は Alibaba Cloud のキーで magpie の Qwen プロバイダーです。</p>
<h3>ModelScope は Codex で使えますか?</h3>
<p>使えます。Responses を提供しているので、magpie は Codex のリクエストをそのまま送ります。magpie codex modelscope/ZhipuAI/GLM-4.6 を実行してください。</p>
<p style="margin-top:48px">ほかのプロバイダーも同じ方法で:<a href="/docs/ja/siliconflow">SiliconFlow</a>、<a href="/docs/ja/volcengine">Volcengine Ark</a>、<a href="/docs/ja/glm">GLM Coding Plan</a>、<a href="/docs/ja/kimi">Kimi</a>、<a href="/docs/ja/deepseek">DeepSeek</a>、<a href="/docs/ja/qwen">Qwen</a>。エラーは <a href="/docs/ja/troubleshooting">トラブルシューティング</a> へ、または <a href="https://discord.gg/vGSnD3ZKQF">Discord</a> で質問してください。</p>
</article>
</main>
<footer><div class="wrap">
<span>© 2026 magpie · MIT</span>
<div class="links">
<a href="/ja/">ホーム</a>
<a href="/docs/ja/intent">インテントルーティング</a>
<a href="/docs/ja/plugins">プラグイン</a>
<a href="/docs/ja/remote">リモート magpie</a>
<a href="/docs/ja/docker">Docker</a>
<a href="/docs/ja/privacy">プライバシー</a>
<a href="/docs/ja/masking">プライバシーマスキング</a>
<a href="/docs/ja/mcp-router">MCP ルーター</a>
<a href="/docs/ja/library">ライブラリ</a>
<a href="/docs/ja/claude-code-models">Claude Code で他のモデル</a>
<a href="/docs/ja/codex-models">Codex で他のモデル</a>
<a href="/docs/ja/gemini-cli-models">Gemini CLI で他のモデル</a>
<a href="/docs/ja/subscriptions">サブスクを任意のエージェントで</a>
<a href="/docs/ja/local-models">ローカルモデル</a>
<a href="/docs/ja/opencode-models">OpenCode で他のモデル</a>
<a href="/docs/ja/alternatives">CC Switch・CCR との比較</a>
<a href="/docs/ja/import">magpie に追加</a>
<a href="/docs/integrate">アプリ連携</a>
<a href="https://github.com/yetone/magpie">GitHub</a>
<a href="https://discord.gg/vGSnD3ZKQF">Discord</a>
<a href="/docs/ja/contributors">コントリビューター</a>
<a href="https://github.com/yetone/magpie-releases/releases">リリース</a>
</div>
</div></footer>
<script>
(() => {
const next = { system: "light", light: "dark", dark: "system" };
document.querySelectorAll("button.theme").forEach((b) => {
b.dataset.mode = themeMode();
b.title = "Theme: " + themeMode();
b.addEventListener("click", () => setTheme(next[themeMode()]));
});
document.querySelectorAll(".copy").forEach((b) => b.addEventListener("click", async () => {
try {
await navigator.clipboard.writeText(document.getElementById(b.dataset.copy).textContent);
b.textContent = "コピーしました"; setTimeout(() => (b.textContent = "コピー"), 1400);
} catch {}
}));
})();
</script>
<script src="/docs.js"></script>
</body>
</html>
+1 -1
View File
@@ -345,7 +345,7 @@ magpie provider fallback ollama-cloud ollama/qwen3</pre></div>
<p>要りません。Ollama のプリセットはキーなしで使えます。Ollama Cloud にはキーが要ります。</p>
<p>LM Studio・oMLX・vLLM・llama.cpp など他のローカルサーバーは <a href="/docs/ja/local-models">ローカルモデル</a> を見てください。ローカルモデルにリクエストを分類させてルーティングを決めるには <a href="/docs/ja/intent">インテントルーティング</a> を見てください。</p>
<p><b>プロバイダ別:</b><a href="/docs/ja/deepseek">DeepSeek</a> · <a href="/docs/ja/kimi">Kimi と Kimi Code</a> · <a href="/docs/ja/glm">GLM Coding Plan</a> · <a href="/docs/ja/volcengine">Volcengine Ark(火山方舟)</a> · <a href="/docs/ja/tencent-cloud">Tencent Cloud</a> · <a href="/docs/ja/baidu-qianfan">Baidu Qianfan</a> · <a href="/docs/ja/qwen">Qwen</a> · <a href="/docs/ja/minimax">MiniMax</a> · <a href="/docs/ja/anthropic">Anthropic</a> · <a href="/docs/ja/openai">OpenAI</a> · <a href="/docs/ja/gemini">Gemini</a> · <a href="/docs/ja/grok">Grok</a> · <a href="/docs/ja/mistral">Mistral</a> · <a href="/docs/ja/openrouter">OpenRouter</a> · <a href="/docs/ja/copilot">GitHub Copilot</a></p>
<p><b>プロバイダ別:</b><a href="/docs/ja/deepseek">DeepSeek</a> · <a href="/docs/ja/kimi">Kimi と Kimi Code</a> · <a href="/docs/ja/glm">GLM Coding Plan</a> · <a href="/docs/ja/volcengine">Volcengine Ark(火山方舟)</a> · <a href="/docs/ja/tencent-cloud">Tencent Cloud</a> · <a href="/docs/ja/baidu-qianfan">Baidu Qianfan</a> · <a href="/docs/ja/siliconflow">SiliconFlow</a> · <a href="/docs/ja/modelscope">ModelScope</a> · <a href="/docs/ja/qwen">Qwen</a> · <a href="/docs/ja/minimax">MiniMax</a> · <a href="/docs/ja/anthropic">Anthropic</a> · <a href="/docs/ja/openai">OpenAI</a> · <a href="/docs/ja/gemini">Gemini</a> · <a href="/docs/ja/grok">Grok</a> · <a href="/docs/ja/mistral">Mistral</a> · <a href="/docs/ja/openrouter">OpenRouter</a> · <a href="/docs/ja/copilot">GitHub Copilot</a></p>
<p style="margin-top:48px">ツールごとのガイド:<a href="/docs/ja/claude-code-models">Claude Code で他のモデル</a>、<a href="/docs/ja/codex-models">Codex で他のモデル</a>、<a href="/docs/ja/gemini-cli-models">Gemini CLI で他のモデル</a>、<a href="/docs/ja/opencode-models">OpenCode で他のモデル</a>。困ったときは <a href="https://discord.gg/vGSnD3ZKQF">Discord</a> で質問してください。</p>
</article>
</main>
+1 -1
View File
@@ -316,7 +316,7 @@ magpie provider fallback openai deepseek/deepseek-v4-pro</pre></div>
<h3>magpie は Azure OpenAI に対応していますか?</h3>
<p>対応しています。別のプロバイダ、Azure OpenAI として使います。リソースのエンドポイントとキーを入れると、magpie は <code>/openai/v1</code> 以下の v1 API を使い、キーを <code>api-key</code> ヘッダーで送り、リソースのデプロイをモデルとして並べます。</p>
<p><b>プロバイダ別:</b><a href="/docs/ja/deepseek">DeepSeek</a> · <a href="/docs/ja/kimi">Kimi と Kimi Code</a> · <a href="/docs/ja/glm">GLM Coding Plan</a> · <a href="/docs/ja/volcengine">Volcengine Ark(火山方舟)</a> · <a href="/docs/ja/tencent-cloud">Tencent Cloud</a> · <a href="/docs/ja/baidu-qianfan">Baidu Qianfan</a> · <a href="/docs/ja/qwen">Qwen</a> · <a href="/docs/ja/minimax">MiniMax</a> · <a href="/docs/ja/anthropic">Anthropic</a> · <a href="/docs/ja/gemini">Gemini</a> · <a href="/docs/ja/grok">Grok</a> · <a href="/docs/ja/mistral">Mistral</a> · <a href="/docs/ja/openrouter">OpenRouter</a> · <a href="/docs/ja/copilot">GitHub Copilot</a> · <a href="/docs/ja/ollama">Ollama</a></p>
<p><b>プロバイダ別:</b><a href="/docs/ja/deepseek">DeepSeek</a> · <a href="/docs/ja/kimi">Kimi と Kimi Code</a> · <a href="/docs/ja/glm">GLM Coding Plan</a> · <a href="/docs/ja/volcengine">Volcengine Ark(火山方舟)</a> · <a href="/docs/ja/tencent-cloud">Tencent Cloud</a> · <a href="/docs/ja/baidu-qianfan">Baidu Qianfan</a> · <a href="/docs/ja/siliconflow">SiliconFlow</a> · <a href="/docs/ja/modelscope">ModelScope</a> · <a href="/docs/ja/qwen">Qwen</a> · <a href="/docs/ja/minimax">MiniMax</a> · <a href="/docs/ja/anthropic">Anthropic</a> · <a href="/docs/ja/gemini">Gemini</a> · <a href="/docs/ja/grok">Grok</a> · <a href="/docs/ja/mistral">Mistral</a> · <a href="/docs/ja/openrouter">OpenRouter</a> · <a href="/docs/ja/copilot">GitHub Copilot</a> · <a href="/docs/ja/ollama">Ollama</a></p>
<p style="margin-top:48px">ツールごとのガイド:<a href="/docs/ja/claude-code-models">Claude Code で他のモデル</a>、<a href="/docs/ja/codex-models">Codex で他のモデル</a>、<a href="/docs/ja/gemini-cli-models">Gemini CLI で他のモデル</a>、<a href="/docs/ja/opencode-models">OpenCode で他のモデル</a>。困ったときは <a href="https://discord.gg/vGSnD3ZKQF">Discord</a> で質問してください。</p>
</article>
</main>
+1 -1
View File
@@ -262,7 +262,7 @@ magpie visible opencode all # すべてに戻す</pre></div>
<div class="code"><span class="lang">ターミナル</span><button class="copy" data-copy="ex-oc-back">コピー</button><pre id="ex-oc-back">magpie opencode default</pre></div>
<p>magpie を使う前の <code>model</code> と <code>small_model</code> が戻り、<code>magpie</code> プロバイダがファイルから取り除かれます。</p>
<p><b>プロバイダ別:</b><a href="/docs/ja/deepseek">DeepSeek</a> · <a href="/docs/ja/kimi">Kimi と Kimi Code</a> · <a href="/docs/ja/glm">GLM Coding Plan</a> · <a href="/docs/ja/volcengine">Volcengine Ark(火山方舟)</a> · <a href="/docs/ja/tencent-cloud">Tencent Cloud</a> · <a href="/docs/ja/baidu-qianfan">Baidu Qianfan</a> · <a href="/docs/ja/qwen">Qwen</a> · <a href="/docs/ja/minimax">MiniMax</a> · <a href="/docs/ja/anthropic">Anthropic</a> · <a href="/docs/ja/openai">OpenAI</a> · <a href="/docs/ja/gemini">Gemini</a> · <a href="/docs/ja/grok">Grok</a> · <a href="/docs/ja/mistral">Mistral</a> · <a href="/docs/ja/openrouter">OpenRouter</a> · <a href="/docs/ja/copilot">GitHub Copilot</a> · <a href="/docs/ja/ollama">Ollama</a></p>
<p><b>プロバイダ別:</b><a href="/docs/ja/deepseek">DeepSeek</a> · <a href="/docs/ja/kimi">Kimi と Kimi Code</a> · <a href="/docs/ja/glm">GLM Coding Plan</a> · <a href="/docs/ja/volcengine">Volcengine Ark(火山方舟)</a> · <a href="/docs/ja/tencent-cloud">Tencent Cloud</a> · <a href="/docs/ja/baidu-qianfan">Baidu Qianfan</a> · <a href="/docs/ja/siliconflow">SiliconFlow</a> · <a href="/docs/ja/modelscope">ModelScope</a> · <a href="/docs/ja/qwen">Qwen</a> · <a href="/docs/ja/minimax">MiniMax</a> · <a href="/docs/ja/anthropic">Anthropic</a> · <a href="/docs/ja/openai">OpenAI</a> · <a href="/docs/ja/gemini">Gemini</a> · <a href="/docs/ja/grok">Grok</a> · <a href="/docs/ja/mistral">Mistral</a> · <a href="/docs/ja/openrouter">OpenRouter</a> · <a href="/docs/ja/copilot">GitHub Copilot</a> · <a href="/docs/ja/ollama">Ollama</a></p>
<h2 id="faq"><a class="anchor" href="#faq">よくある質問</a></h2>
<h3>OpenCode で DeepSeek を使うには?</h3>
+1 -1
View File
@@ -311,7 +311,7 @@ magpie group set opus-anywhere stays=session models+=openrouter/anthropic/claude
<h3>magpie が OpenRouter のモデル一覧を /api/v1 から取るのはなぜ?</h3>
<p>Anthropic のベース URL で一覧を求めると、OpenRouter は <code>anthropic/</code> の下に並べたカタログを返しますが、その ID では提供していません。magpie は Chat Completions のベース URL <code>https://openrouter.ai/api/v1</code> から一覧を取り、OpenRouter の Anthropic のベース URL しかないプロバイダには、この Chat の URL を足すよう案内します。</p>
<p><b>プロバイダ別:</b><a href="/docs/ja/deepseek">DeepSeek</a> · <a href="/docs/ja/kimi">Kimi と Kimi Code</a> · <a href="/docs/ja/glm">GLM Coding Plan</a> · <a href="/docs/ja/volcengine">Volcengine Ark(火山方舟)</a> · <a href="/docs/ja/tencent-cloud">Tencent Cloud</a> · <a href="/docs/ja/baidu-qianfan">Baidu Qianfan</a> · <a href="/docs/ja/qwen">Qwen</a> · <a href="/docs/ja/minimax">MiniMax</a> · <a href="/docs/ja/anthropic">Anthropic</a> · <a href="/docs/ja/openai">OpenAI</a> · <a href="/docs/ja/gemini">Gemini</a> · <a href="/docs/ja/grok">Grok</a> · <a href="/docs/ja/mistral">Mistral</a> · <a href="/docs/ja/copilot">GitHub Copilot</a> · <a href="/docs/ja/ollama">Ollama</a></p>
<p><b>プロバイダ別:</b><a href="/docs/ja/deepseek">DeepSeek</a> · <a href="/docs/ja/kimi">Kimi と Kimi Code</a> · <a href="/docs/ja/glm">GLM Coding Plan</a> · <a href="/docs/ja/volcengine">Volcengine Ark(火山方舟)</a> · <a href="/docs/ja/tencent-cloud">Tencent Cloud</a> · <a href="/docs/ja/baidu-qianfan">Baidu Qianfan</a> · <a href="/docs/ja/siliconflow">SiliconFlow</a> · <a href="/docs/ja/modelscope">ModelScope</a> · <a href="/docs/ja/qwen">Qwen</a> · <a href="/docs/ja/minimax">MiniMax</a> · <a href="/docs/ja/anthropic">Anthropic</a> · <a href="/docs/ja/openai">OpenAI</a> · <a href="/docs/ja/gemini">Gemini</a> · <a href="/docs/ja/grok">Grok</a> · <a href="/docs/ja/mistral">Mistral</a> · <a href="/docs/ja/copilot">GitHub Copilot</a> · <a href="/docs/ja/ollama">Ollama</a></p>
<p style="margin-top:48px">ツールごとのガイド:<a href="/docs/ja/claude-code-models">Claude Code で他のモデル</a>、<a href="/docs/ja/codex-models">Codex で他のモデル</a>、<a href="/docs/ja/gemini-cli-models">Gemini CLI で他のモデル</a>、<a href="/docs/ja/opencode-models">OpenCode で他のモデル</a>。困ったときは <a href="https://discord.gg/vGSnD3ZKQF">Discord</a> で質問してください。</p>
</article>
</main>
+277
View File
@@ -0,0 +1,277 @@
<!doctype html>
<html lang="ja">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>SiliconFlow(硅基流動)を Claude Code、Codex、OpenCode で使う:DeepSeek、GLM、Kimi、Qwen を任意のエージェントで · magpie</title>
<meta name="description" content="SiliconFlow の API キーを magpie に追加し、Claude Code、Codex、Gemini CLI、OpenCode で DeepSeek V4、GLM-5.3、Kimi K3、Qwen3 Coder を使う方法:中国サイトとグローバルサイト、モデル名の書き方、Anthropic と Responses の変換、残高の確認先。">
<meta name="color-scheme" content="light dark">
<meta name="theme-color" content="#fafafa">
<script>
(() => {
let mode = "system";
try { mode = localStorage.getItem("theme") || "system"; } catch {}
const q = matchMedia("(prefers-color-scheme: dark)");
const apply = () => {
const t = mode === "system" ? (q.matches ? "dark" : "light") : mode;
document.documentElement.dataset.theme = t;
document.querySelector('meta[name="theme-color"]').content = t === "dark" ? "#0b0b0c" : "#fafafa";
document.querySelectorAll("button.theme").forEach((b) => { b.dataset.mode = mode; b.title = "Theme: " + mode; });
};
q.addEventListener("change", () => mode === "system" && apply());
window.setTheme = (m) => { mode = m; try { m === "system" ? localStorage.removeItem("theme") : localStorage.setItem("theme", m); } catch {} apply(); };
window.themeMode = () => mode;
apply();
})();
</script>
<script>try{if(/Linux/.test(navigator.userAgent)&&!/Android/.test(navigator.userAgent)||localStorage.getItem("omarchy")||/[?&]omarchy=/.test(location.search))document.write('<script src="/omarchy.js"><\/script>')}catch(e){}</script>
<link rel="icon" href="/favicon.png" type="image/png">
<link rel="apple-touch-icon" href="/img/icon-256.png">
<link rel="alternate" hreflang="en" href="https://usemagpie.ai/docs/siliconflow">
<link rel="alternate" hreflang="zh" href="https://usemagpie.ai/docs/zh/siliconflow">
<link rel="alternate" hreflang="ja" href="https://usemagpie.ai/docs/ja/siliconflow">
<link rel="alternate" hreflang="x-default" href="https://usemagpie.ai/docs/siliconflow">
<link rel="canonical" href="https://usemagpie.ai/docs/ja/siliconflow">
<link rel="stylesheet" href="/docs.css">
<meta property="og:site_name" content="magpie">
<meta property="og:title" content="SiliconFlow を Claude Code と Codex で">
<meta property="og:description" content="SiliconFlow の API キーを magpie に追加し、Claude Code、Codex、Gemini CLI、OpenCode で DeepSeek V4、GLM-5.3、Kimi K3、Qwen3 Coder を使う方法:中国サイトとグローバルサイト、モデル名の書き方、Anthropic と Responses の変換、残高の確認先。">
<meta property="og:image" content="https://usemagpie.ai/img/og.png">
<meta property="og:url" content="https://usemagpie.ai/docs/ja/siliconflow">
<meta name="twitter:card" content="summary_large_image">
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@graph": [
{
"@type": "TechArticle",
"headline": "SiliconFlow を Claude Code と Codex で",
"description": "SiliconFlow の API キーを magpie に追加し、Claude Code、Codex、Gemini CLI、OpenCode で DeepSeek V4、GLM-5.3、Kimi K3、Qwen3 Coder を使う方法:中国サイトとグローバルサイト、モデル名の書き方、Anthropic と Responses の変換、残高の確認先。",
"inLanguage": "ja",
"url": "https://usemagpie.ai/docs/ja/siliconflow",
"about": {
"@type": "SoftwareApplication",
"name": "magpie",
"applicationCategory": "DeveloperApplication",
"operatingSystem": "macOS, Windows, Linux"
},
"publisher": {
"@type": "Organization",
"name": "magpie",
"url": "https://usemagpie.ai/"
}
},
{
"@type": "FAQPage",
"mainEntity": [
{
"@type": "Question",
"name": "SiliconFlow を Claude Code で使うには?",
"acceptedAnswer": {
"@type": "Answer",
"text": "magpie に SiliconFlow を追加してキーを貼り、Claude Code の行で deepseek-ai/DeepSeek-V4-Pro などを選ぶか、magpie claude siliconflow/deepseek-ai/DeepSeek-V4-Pro を実行します。Anthropic エンドポイントがないため、magpie が Chat Completions に変換します。"
}
},
{
"@type": "Question",
"name": "SiliconFlow は Codex で使えますか?",
"acceptedAnswer": {
"@type": "Answer",
"text": "使えます。Chat Completions だけなので magpie が Codex の Responses リクエストを変換し、apply_patch などのカスタムツールも使えます。magpie codex siliconflow/zai-org/GLM-5.3 を実行してください。"
}
},
{
"@type": "Question",
"name": "中国のキーはグローバルで使えますか?",
"acceptedAnswer": {
"@type": "Answer",
"text": "使えません。cloud.siliconflow.com は別アカウントで、キーも残高も別です。magpie で各キーに China か Global を選んでください。"
}
},
{
"@type": "Question",
"name": "magpie に SiliconFlow の残高が出ないのはなぜ?",
"acceptedAnswer": {
"@type": "Answer",
"text": "SiliconFlow は 2026-08-14 に残高 API を廃止し、新しい API はまだありません。magpie のカードからコンソールを開いて確認できます。"
}
}
]
},
{
"@type": "BreadcrumbList",
"itemListElement": [
{
"@type": "ListItem",
"position": 1,
"name": "magpie",
"item": "https://usemagpie.ai/ja/"
},
{
"@type": "ListItem",
"position": 2,
"name": "ドキュメント",
"item": "https://usemagpie.ai/docs/ja/start"
},
{
"@type": "ListItem",
"position": 3,
"name": "SiliconFlow を Claude Code と Codex で",
"item": "https://usemagpie.ai/docs/ja/siliconflow"
}
]
}
]
}
</script>
</head>
<body>
<nav><div class="wrap">
<a class="brand" href="/ja/"><img class="bird" src="/img/magpie-small.svg" alt="">magpie <small>ドキュメント</small></a>
<div class="links">
<a href="/ja/">ホーム</a>
<a href="/docs/ja/start">はじめに</a>
<a href="/docs/ja/intent">インテントルーティング</a>
<a href="/docs/ja/plugins">プラグイン</a>
<a class="toc-only" href="/docs/ja/remote">リモート magpie</a>
<a class="toc-only" href="/docs/ja/docker">Docker</a>
<a class="toc-only" href="/docs/ja/privacy">プライバシー</a>
<a class="toc-only" href="/docs/ja/masking">プライバシーマスキング</a>
<a class="toc-only" href="/docs/ja/mcp-router">MCP ルーター</a>
<a class="toc-only" href="/docs/ja/library">ライブラリ</a>
<a class="toc-only" href="/docs/ja/claude-code-models">Claude Code で他のモデル</a>
<a class="toc-only" href="/docs/ja/codex-models">Codex で他のモデル</a>
<a class="toc-only" href="/docs/ja/gemini-cli-models">Gemini CLI で他のモデル</a>
<a class="toc-only" href="/docs/ja/subscriptions">サブスクを任意のエージェントで</a>
<a class="toc-only" href="/docs/ja/local-models">ローカルモデル</a>
<a class="toc-only" href="/docs/ja/opencode-models">OpenCode で他のモデル</a>
<a class="toc-only" href="/docs/ja/alternatives">CC Switch・CCR との比較</a>
<a href="/docs/ja/import">magpie に追加</a>
<a href="/docs/integrate">アプリ連携</a>
<a href="https://github.com/yetone/magpie-releases/releases">リリース</a>
</div>
<div class="langs">
<button class="icon-btn lang" type="button" aria-label="言語" title="言語" aria-haspopup="true" aria-expanded="false" aria-controls="langs"><svg viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.4" aria-hidden="true"><circle cx="8" cy="8" r="6.25"/><path d="M1.75 8h12.5M8 1.75c1.7 1.75 2.55 3.83 2.55 6.25S9.7 12.5 8 14.25M8 1.75C6.3 3.5 5.45 5.58 5.45 8S6.3 12.5 8 14.25"/></svg></button>
<div class="lang-menu" id="langs" hidden>
<a href="/docs/siliconflow" hreflang="en" lang="en">English</a>
<a href="/docs/zh/siliconflow" hreflang="zh" lang="zh">中文</a>
<a href="/docs/ja/siliconflow" hreflang="ja" lang="ja">日本語</a>
</div>
</div>
<a class="icon-btn" href="https://discord.gg/vGSnD3ZKQF" aria-label="Discord の magpie" title="Discord に参加"><svg viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M20.317 4.3698a19.7913 19.7913 0 00-4.8851-1.5152.0741.0741 0 00-.0785.0371c-.211.3753-.4447.8648-.6083 1.2495-1.8447-.2762-3.68-.2762-5.4868 0-.1636-.3933-.4058-.8742-.6177-1.2495a.077.077 0 00-.0785-.037 19.7363 19.7363 0 00-4.8852 1.515.0699.0699 0 00-.0321.0277C.5334 9.0458-.319 13.5799.0992 18.0578a.0824.0824 0 00.0312.0561c2.0528 1.5076 4.0413 2.4228 5.9929 3.0294a.0777.0777 0 00.0842-.0276c.4616-.6304.8731-1.2952 1.226-1.9942a.076.076 0 00-.0416-.1057c-.6528-.2476-1.2743-.5495-1.8722-.8923a.077.077 0 01-.0076-.1277c.1258-.0943.2517-.1923.3718-.2914a.0743.0743 0 01.0776-.0105c3.9278 1.7933 8.18 1.7933 12.0614 0a.0739.0739 0 01.0785.0095c.1202.099.246.1981.3728.2924a.077.077 0 01-.0066.1276 12.2986 12.2986 0 01-1.873.8914.0766.0766 0 00-.0407.1067c.3604.698.7719 1.3628 1.225 1.9932a.076.076 0 00.0842.0286c1.961-.6067 3.9495-1.5219 6.0023-3.0294a.077.077 0 00.0313-.0552c.5004-5.177-.8382-9.6739-3.5485-13.6604a.061.061 0 00-.0312-.0286zM8.02 15.3312c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9555-2.4189 2.157-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.9555 2.4189-2.1569 2.4189zm7.9748 0c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9554-2.4189 2.1569-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.946 2.4189-2.1568 2.4189Z"/></svg></a>
<a class="icon-btn" href="https://github.com/yetone/magpie" aria-label="GitHub の magpie" title="GitHub のソースコード"><svg viewBox="0 0 16 16" fill="currentColor" aria-hidden="true"><path d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0 0 16 8c0-4.42-3.58-8-8-8Z"/></svg></a>
<button class="icon-btn theme" type="button" aria-label="Theme" title="Theme: system"><svg class="i-system" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5"><rect x="1.75" y="2.75" width="12.5" height="8.5" rx="1.5"/><path d="M5.5 14h5M8 11.25V14"/></svg><svg class="i-light" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"><circle cx="8" cy="8" r="3"/><path d="M8 1v1.5M8 13.5V15M1 8h1.5M13.5 8H15M3 3l1 1M12 12l1 1M3 13l1-1M12 4l1-1"/></svg><svg class="i-dark" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linejoin="round"><path d="M13.5 9.5A5.5 5.5 0 0 1 6.5 2.5a5.5 5.5 0 1 0 7 7Z"/></svg></button>
<a class="btn small" href="/#get">ダウンロード</a>
</div></nav>
<main class="wrap doc">
<aside class="toc">
<p>SiliconFlow</p>
<a href="#overview">概要</a>
<a href="#add">SiliconFlow を追加</a>
<a href="#sites">中国とグローバル</a>
<a href="#models">モデル</a>
<a href="#agents">各エージェントで</a>
<a href="#balance">残高</a>
<a href="#faq">よくある質問</a>
</aside>
<article>
<p class="eyebrow" id="overview">ドキュメント · プロバイダー</p>
<h1>SiliconFlow を Claude Code と Codex で</h1>
<p class="lede">SiliconFlow(硅基流動)は DeepSeek、GLM、Kimi、Qwen などのオープンモデルを 1 つの API キーで、OpenAI の Chat Completions として提供します。Claude Code は Anthropic Messages、Codex は Responses を求めますが SiliconFlow にはどちらもありません。127.0.0.1:3425 の magpie ローカルゲートウェイが変換するので、これらのツールで直接使えます。</p>
<h2 id="add"><a class="anchor" href="#add">SiliconFlow を追加</a></h2>
<ol class="steps">
<li><b>プロバイダーを追加</b><span class="ui">プロバイダー</span> で <span class="ui">+ プロバイダーを追加</span> を押し、<span class="ui">SiliconFlow</span> を選び、キーに <span class="ui">China</span> か <span class="ui">Global</span> を選び、キーを貼り付けて保存します。</li>
<li><b>ツールで選ぶ</b><span class="ui">エージェント</span> でツールの行に deepseek-ai/DeepSeek-V4-Pro などを選びます。</li>
</ol>
<div class="code"><span class="lang">ターミナル</span><button class="copy" data-copy="sf-cli">コピー</button><pre id="sf-cli">magpie claude siliconflow/deepseek-ai/DeepSeek-V4-Pro
magpie codex siliconflow/zai-org/GLM-5.3
magpie opencode siliconflow/moonshotai/Kimi-K3</pre></div>
<h2 id="sites"><a class="anchor" href="#sites">中国とグローバル</a></h2>
<div class="table-wrap"><table>
<tr><th>サイト</th><th>Chat Completions</th><th>コンソール</th></tr>
<tr><td>中国(China)</td><td><code>https://api.siliconflow.cn/v1</code></td><td>cloud.siliconflow.cn</td></tr>
<tr><td>グローバル(Global)</td><td><code>https://api.siliconflow.com/v1</code></td><td>cloud.siliconflow.com</td></tr>
</table></div>
<p>グローバルサイトは別アカウントで、キーも残高(ドル)も別です。中国のキーはグローバルでは使えません。プロバイダー内の各キーがサイトを持つので、両方のキーを 1 つのプロバイダーに並べられます。</p>
<h2 id="models"><a class="anchor" href="#models">モデル</a></h2>
<p>SiliconFlow のモデル名にはメーカー名が付き、そのまま magpie とツールに書きます:deepseek-ai/DeepSeek-V4-Pro、deepseek-ai/DeepSeek-V4-Flash、zai-org/GLM-5.3、moonshotai/Kimi-K3、moonshotai/Kimi-K2.7-Code、Qwen/Qwen3-Coder-480B-A35B-Instruct、meituan-longcat/LongCat-2.0。名前、コンテキスト長、価格は models.dev の siliconflow カタログから取ります。コマンドラインでは <code>siliconflow/</code> の後にモデル名を書きます。</p>
<h2 id="agents"><a class="anchor" href="#agents">各エージェントで</a></h2>
<ul>
<li><b>Claude Code</b> は Anthropic Messages を話しますが、このプロバイダーにはありません。magpie が各リクエストを Chat Completions に変換し、返答も戻します(思考も含む)。<a href="/docs/ja/claude-code-models">Claude Code で他のモデル</a>。</li>
<li><b>Codex</b> は OpenAI Responses を話します。Responses がないため、magpie が Chat Completions に変換します。<code>apply_patch</code> などのカスタムツールは関数としてモデルに渡り、呼び出しは Codex が実行できる形で戻ります。<a href="/docs/ja/codex-models">Codex で他のモデル</a>。</li>
<li><b>Gemini CLI</b> は Gemini の API を話し、magpie が Chat Completions に変換します。<a href="/docs/ja/gemini-cli-models">Gemini CLI で他のモデル</a>。</li>
<li><b>OpenCode</b> は Chat Completions を話すので、そのまま送られます。<a href="/docs/ja/opencode-models">OpenCode で他のモデル</a>。</li>
</ul>
<h2 id="balance"><a class="anchor" href="#balance">残高</a></h2>
<p>SiliconFlow は 2026-08-14 に残高照会 <code>/v1/user/info</code> を廃止し(410 を返す)、代わりの API はまだありません。以前の付与残高はクーポンになりました。そのため magpie の使用量カードは金額ではなく残高の確認先を示し、ボタンでそのサイトのコンソールを開きます。キー自体が拒否された場合(401)はそのまま表示します。</p>
<h2 id="faq"><a class="anchor" href="#faq">よくある質問</a></h2>
<h3>SiliconFlow を Claude Code で使うには?</h3>
<p>magpie に SiliconFlow を追加してキーを貼り、Claude Code の行で deepseek-ai/DeepSeek-V4-Pro などを選ぶか、magpie claude siliconflow/deepseek-ai/DeepSeek-V4-Pro を実行します。Anthropic エンドポイントがないため、magpie が Chat Completions に変換します。</p>
<h3>SiliconFlow は Codex で使えますか?</h3>
<p>使えます。Chat Completions だけなので magpie が Codex の Responses リクエストを変換し、apply_patch などのカスタムツールも使えます。magpie codex siliconflow/zai-org/GLM-5.3 を実行してください。</p>
<h3>中国のキーはグローバルで使えますか?</h3>
<p>使えません。cloud.siliconflow.com は別アカウントで、キーも残高も別です。magpie で各キーに China か Global を選んでください。</p>
<h3>magpie に SiliconFlow の残高が出ないのはなぜ?</h3>
<p>SiliconFlow は 2026-08-14 に残高 API を廃止し、新しい API はまだありません。magpie のカードからコンソールを開いて確認できます。</p>
<p style="margin-top:48px">ほかのプロバイダーも同じ方法で:<a href="/docs/ja/modelscope">ModelScope</a>、<a href="/docs/ja/volcengine">Volcengine Ark</a>、<a href="/docs/ja/glm">GLM Coding Plan</a>、<a href="/docs/ja/kimi">Kimi</a>、<a href="/docs/ja/deepseek">DeepSeek</a>、<a href="/docs/ja/qwen">Qwen</a>。エラーは <a href="/docs/ja/troubleshooting">トラブルシューティング</a> へ、または <a href="https://discord.gg/vGSnD3ZKQF">Discord</a> で質問してください。</p>
</article>
</main>
<footer><div class="wrap">
<span>© 2026 magpie · MIT</span>
<div class="links">
<a href="/ja/">ホーム</a>
<a href="/docs/ja/intent">インテントルーティング</a>
<a href="/docs/ja/plugins">プラグイン</a>
<a href="/docs/ja/remote">リモート magpie</a>
<a href="/docs/ja/docker">Docker</a>
<a href="/docs/ja/privacy">プライバシー</a>
<a href="/docs/ja/masking">プライバシーマスキング</a>
<a href="/docs/ja/mcp-router">MCP ルーター</a>
<a href="/docs/ja/library">ライブラリ</a>
<a href="/docs/ja/claude-code-models">Claude Code で他のモデル</a>
<a href="/docs/ja/codex-models">Codex で他のモデル</a>
<a href="/docs/ja/gemini-cli-models">Gemini CLI で他のモデル</a>
<a href="/docs/ja/subscriptions">サブスクを任意のエージェントで</a>
<a href="/docs/ja/local-models">ローカルモデル</a>
<a href="/docs/ja/opencode-models">OpenCode で他のモデル</a>
<a href="/docs/ja/alternatives">CC Switch・CCR との比較</a>
<a href="/docs/ja/import">magpie に追加</a>
<a href="/docs/integrate">アプリ連携</a>
<a href="https://github.com/yetone/magpie">GitHub</a>
<a href="https://discord.gg/vGSnD3ZKQF">Discord</a>
<a href="/docs/ja/contributors">コントリビューター</a>
<a href="https://github.com/yetone/magpie-releases/releases">リリース</a>
</div>
</div></footer>
<script>
(() => {
const next = { system: "light", light: "dark", dark: "system" };
document.querySelectorAll("button.theme").forEach((b) => {
b.dataset.mode = themeMode();
b.title = "Theme: " + themeMode();
b.addEventListener("click", () => setTheme(next[themeMode()]));
});
document.querySelectorAll(".copy").forEach((b) => b.addEventListener("click", async () => {
try {
await navigator.clipboard.writeText(document.getElementById(b.dataset.copy).textContent);
b.textContent = "コピーしました"; setTimeout(() => (b.textContent = "コピー"), 1400);
} catch {}
}));
})();
</script>
<script src="/docs.js"></script>
</body>
</html>
+1 -1
View File
@@ -299,7 +299,7 @@ magpie provider fallback mistral deepseek/deepseek-v4-pro</pre></div>
<h3>Does magpie show my Le Chat plan’s Vibe budget?</h3>
<p>Yes. A Vibe key from a Le Chat plan (Pro, Student or Team) shows how much of the month’s Vibe budget is used, in the currency Mistral bills in, and when it resets, with the plan’s name. A Studio key made in the console shows the organization’s API budget instead, as “API · Month”.</p>
<p><b>By provider:</b> <a href="/docs/deepseek">DeepSeek</a> · <a href="/docs/kimi">Kimi and Kimi Code</a> · <a href="/docs/glm">GLM Coding Plan</a> · <a href="/docs/volcengine">Volcengine Ark</a> · <a href="/docs/tencent-cloud">Tencent Cloud</a> · <a href="/docs/baidu-qianfan">Baidu Qianfan</a> · <a href="/docs/qwen">Qwen</a> · <a href="/docs/minimax">MiniMax</a> · <a href="/docs/anthropic">Anthropic</a> · <a href="/docs/openai">OpenAI</a> · <a href="/docs/gemini">Gemini</a> · <a href="/docs/grok">Grok</a> · <a href="/docs/openrouter">OpenRouter</a> · <a href="/docs/copilot">GitHub Copilot</a> · <a href="/docs/ollama">Ollama</a></p>
<p><b>By provider:</b> <a href="/docs/deepseek">DeepSeek</a> · <a href="/docs/kimi">Kimi and Kimi Code</a> · <a href="/docs/glm">GLM Coding Plan</a> · <a href="/docs/volcengine">Volcengine Ark</a> · <a href="/docs/tencent-cloud">Tencent Cloud</a> · <a href="/docs/baidu-qianfan">Baidu Qianfan</a> · <a href="/docs/siliconflow">SiliconFlow</a> · <a href="/docs/modelscope">ModelScope</a> · <a href="/docs/qwen">Qwen</a> · <a href="/docs/minimax">MiniMax</a> · <a href="/docs/anthropic">Anthropic</a> · <a href="/docs/openai">OpenAI</a> · <a href="/docs/gemini">Gemini</a> · <a href="/docs/grok">Grok</a> · <a href="/docs/openrouter">OpenRouter</a> · <a href="/docs/copilot">GitHub Copilot</a> · <a href="/docs/ollama">Ollama</a></p>
<p style="margin-top:48px">Every agent: <a href="/docs/claude-code-models">Models in Claude Code</a>, <a href="/docs/codex-models">Models in Codex</a>, <a href="/docs/gemini-cli-models">Models in Gemini CLI</a>, <a href="/docs/opencode-models">Models in OpenCode</a>. Ask on <a href="https://discord.gg/vGSnD3ZKQF">Discord</a> if you get stuck.</p>
</article>
</main>
+277
View File
@@ -0,0 +1,277 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>ModelScope API-Inference in Claude Code, Codex and OpenCode: Qwen3 Coder and GLM in any agent · magpie</title>
<meta name="description" content="Add ModelScope&#x27;s API-Inference to magpie with a ModelScope access token and use its Qwen3 Coder, Qwen3 and GLM in Claude Code, Codex, Gemini CLI and OpenCode: the endpoint, how model names are written, how it differs from Alibaba&#x27;s DashScope, and drawing on ModelScope.">
<meta name="color-scheme" content="light dark">
<meta name="theme-color" content="#fafafa">
<script>
(() => {
let mode = "system";
try { mode = localStorage.getItem("theme") || "system"; } catch {}
const q = matchMedia("(prefers-color-scheme: dark)");
const apply = () => {
const t = mode === "system" ? (q.matches ? "dark" : "light") : mode;
document.documentElement.dataset.theme = t;
document.querySelector('meta[name="theme-color"]').content = t === "dark" ? "#0b0b0c" : "#fafafa";
document.querySelectorAll("button.theme").forEach((b) => { b.dataset.mode = mode; b.title = "Theme: " + mode; });
};
q.addEventListener("change", () => mode === "system" && apply());
window.setTheme = (m) => { mode = m; try { m === "system" ? localStorage.removeItem("theme") : localStorage.setItem("theme", m); } catch {} apply(); };
window.themeMode = () => mode;
apply();
})();
</script>
<script>try{if(/Linux/.test(navigator.userAgent)&&!/Android/.test(navigator.userAgent)||localStorage.getItem("omarchy")||/[?&]omarchy=/.test(location.search))document.write('<script src="/omarchy.js"><\/script>')}catch(e){}</script>
<link rel="icon" href="/favicon.png" type="image/png">
<link rel="apple-touch-icon" href="/img/icon-256.png">
<link rel="alternate" hreflang="en" href="https://usemagpie.ai/docs/modelscope">
<link rel="alternate" hreflang="zh" href="https://usemagpie.ai/docs/zh/modelscope">
<link rel="alternate" hreflang="ja" href="https://usemagpie.ai/docs/ja/modelscope">
<link rel="alternate" hreflang="x-default" href="https://usemagpie.ai/docs/modelscope">
<link rel="canonical" href="https://usemagpie.ai/docs/modelscope">
<link rel="stylesheet" href="/docs.css">
<meta property="og:site_name" content="magpie">
<meta property="og:title" content="ModelScope in Claude Code and Codex">
<meta property="og:description" content="Add ModelScope&#x27;s API-Inference to magpie with a ModelScope access token and use its Qwen3 Coder, Qwen3 and GLM in Claude Code, Codex, Gemini CLI and OpenCode: the endpoint, how model names are written, how it differs from Alibaba&#x27;s DashScope, and drawing on ModelScope.">
<meta property="og:image" content="https://usemagpie.ai/img/og.png">
<meta property="og:url" content="https://usemagpie.ai/docs/modelscope">
<meta name="twitter:card" content="summary_large_image">
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@graph": [
{
"@type": "TechArticle",
"headline": "ModelScope in Claude Code and Codex",
"description": "Add ModelScope's API-Inference to magpie with a ModelScope access token and use its Qwen3 Coder, Qwen3 and GLM in Claude Code, Codex, Gemini CLI and OpenCode: the endpoint, how model names are written, how it differs from Alibaba's DashScope, and drawing on ModelScope.",
"inLanguage": "en",
"url": "https://usemagpie.ai/docs/modelscope",
"about": {
"@type": "SoftwareApplication",
"name": "magpie",
"applicationCategory": "DeveloperApplication",
"operatingSystem": "macOS, Windows, Linux"
},
"publisher": {
"@type": "Organization",
"name": "magpie",
"url": "https://usemagpie.ai/"
}
},
{
"@type": "FAQPage",
"mainEntity": [
{
"@type": "Question",
"name": "How do I use ModelScope in Claude Code?",
"acceptedAnswer": {
"@type": "Answer",
"text": "Add ModelScope in magpie with your access token as the key, then pick Qwen/Qwen3-Coder-30B-A3B-Instruct on Claude Code's row, or run magpie claude modelscope/Qwen/Qwen3-Coder-30B-A3B-Instruct. ModelScope has no Anthropic endpoint, so magpie converts to Chat Completions."
}
},
{
"@type": "Question",
"name": "Where do I get a ModelScope key?",
"acceptedAnswer": {
"@type": "Answer",
"text": "ModelScope uses your account's access token, made at modelscope.cn/my/myaccesstoken. Paste it into magpie's ModelScope provider."
}
},
{
"@type": "Question",
"name": "Is ModelScope the same as Alibaba's DashScope?",
"acceptedAnswer": {
"@type": "Answer",
"text": "No. ModelScope's API-Inference is at api-inference.modelscope.cn on a ModelScope access token; DashScope takes an Alibaba Cloud key and is magpie's Qwen provider."
}
},
{
"@type": "Question",
"name": "Does ModelScope work in Codex?",
"acceptedAnswer": {
"@type": "Answer",
"text": "Yes. ModelScope serves Responses, so magpie passes Codex's requests through. Run magpie codex modelscope/ZhipuAI/GLM-4.6."
}
}
]
},
{
"@type": "BreadcrumbList",
"itemListElement": [
{
"@type": "ListItem",
"position": 1,
"name": "magpie",
"item": "https://usemagpie.ai/"
},
{
"@type": "ListItem",
"position": 2,
"name": "Docs",
"item": "https://usemagpie.ai/docs/start"
},
{
"@type": "ListItem",
"position": 3,
"name": "ModelScope in Claude Code and Codex",
"item": "https://usemagpie.ai/docs/modelscope"
}
]
}
]
}
</script>
</head>
<body>
<nav><div class="wrap">
<a class="brand" href="/"><img class="bird" src="/img/magpie-small.svg" alt="">magpie <small>Docs</small></a>
<div class="links">
<a href="/">Home</a>
<a href="/docs/start">Get started</a>
<a href="/docs/intent">Intent routing</a>
<a href="/docs/plugins">Plugins</a>
<a class="toc-only" href="/docs/remote">Remote magpie</a>
<a class="toc-only" href="/docs/docker">Docker</a>
<a class="toc-only" href="/docs/privacy">Privacy</a>
<a class="toc-only" href="/docs/masking">Privacy masking</a>
<a class="toc-only" href="/docs/mcp-router">MCP router</a>
<a class="toc-only" href="/docs/library">Library</a>
<a class="toc-only" href="/docs/claude-code-models">Models in Claude Code</a>
<a class="toc-only" href="/docs/codex-models">Models in Codex</a>
<a class="toc-only" href="/docs/gemini-cli-models">Models in Gemini CLI</a>
<a class="toc-only" href="/docs/subscriptions">Subscriptions in any agent</a>
<a class="toc-only" href="/docs/local-models">Local models</a>
<a class="toc-only" href="/docs/opencode-models">Models in OpenCode</a>
<a class="toc-only" href="/docs/alternatives">magpie vs CC Switch vs CCR</a>
<a href="/docs/import">Add to magpie</a>
<a href="/docs/integrate">Integrate</a>
<a href="https://github.com/yetone/magpie-releases/releases">Releases</a>
</div>
<div class="langs">
<button class="icon-btn lang" type="button" aria-label="Language" title="Language" aria-haspopup="true" aria-expanded="false" aria-controls="langs"><svg viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.4" aria-hidden="true"><circle cx="8" cy="8" r="6.25"/><path d="M1.75 8h12.5M8 1.75c1.7 1.75 2.55 3.83 2.55 6.25S9.7 12.5 8 14.25M8 1.75C6.3 3.5 5.45 5.58 5.45 8S6.3 12.5 8 14.25"/></svg></button>
<div class="lang-menu" id="langs" hidden>
<a href="/docs/modelscope" hreflang="en" lang="en">English</a>
<a href="/docs/zh/modelscope" hreflang="zh" lang="zh">中文</a>
<a href="/docs/ja/modelscope" hreflang="ja" lang="ja">日本語</a>
</div>
</div>
<a class="icon-btn" href="https://discord.gg/vGSnD3ZKQF" aria-label="magpie on Discord" title="Join us on Discord"><svg viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M20.317 4.3698a19.7913 19.7913 0 00-4.8851-1.5152.0741.0741 0 00-.0785.0371c-.211.3753-.4447.8648-.6083 1.2495-1.8447-.2762-3.68-.2762-5.4868 0-.1636-.3933-.4058-.8742-.6177-1.2495a.077.077 0 00-.0785-.037 19.7363 19.7363 0 00-4.8852 1.515.0699.0699 0 00-.0321.0277C.5334 9.0458-.319 13.5799.0992 18.0578a.0824.0824 0 00.0312.0561c2.0528 1.5076 4.0413 2.4228 5.9929 3.0294a.0777.0777 0 00.0842-.0276c.4616-.6304.8731-1.2952 1.226-1.9942a.076.076 0 00-.0416-.1057c-.6528-.2476-1.2743-.5495-1.8722-.8923a.077.077 0 01-.0076-.1277c.1258-.0943.2517-.1923.3718-.2914a.0743.0743 0 01.0776-.0105c3.9278 1.7933 8.18 1.7933 12.0614 0a.0739.0739 0 01.0785.0095c.1202.099.246.1981.3728.2924a.077.077 0 01-.0066.1276 12.2986 12.2986 0 01-1.873.8914.0766.0766 0 00-.0407.1067c.3604.698.7719 1.3628 1.225 1.9932a.076.076 0 00.0842.0286c1.961-.6067 3.9495-1.5219 6.0023-3.0294a.077.077 0 00.0313-.0552c.5004-5.177-.8382-9.6739-3.5485-13.6604a.061.061 0 00-.0312-.0286zM8.02 15.3312c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9555-2.4189 2.157-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.9555 2.4189-2.1569 2.4189zm7.9748 0c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9554-2.4189 2.1569-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.946 2.4189-2.1568 2.4189Z"/></svg></a>
<a class="icon-btn" href="https://github.com/yetone/magpie" aria-label="magpie on GitHub" title="Source on GitHub"><svg viewBox="0 0 16 16" fill="currentColor" aria-hidden="true"><path d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0 0 16 8c0-4.42-3.58-8-8-8Z"/></svg></a>
<button class="icon-btn theme" type="button" aria-label="Theme" title="Theme: system"><svg class="i-system" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5"><rect x="1.75" y="2.75" width="12.5" height="8.5" rx="1.5"/><path d="M5.5 14h5M8 11.25V14"/></svg><svg class="i-light" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"><circle cx="8" cy="8" r="3"/><path d="M8 1v1.5M8 13.5V15M1 8h1.5M13.5 8H15M3 3l1 1M12 12l1 1M3 13l1-1M12 4l1-1"/></svg><svg class="i-dark" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linejoin="round"><path d="M13.5 9.5A5.5 5.5 0 0 1 6.5 2.5a5.5 5.5 0 1 0 7 7Z"/></svg></button>
<a class="btn small" href="/#get">Download</a>
</div></nav>
<main class="wrap doc">
<aside class="toc">
<p>ModelScope</p>
<a href="#overview">Overview</a>
<a href="#add">Add ModelScope</a>
<a href="#endpoint">Endpoint and token</a>
<a href="#models">Models</a>
<a href="#agents">In each agent</a>
<a href="#images">Images</a>
<a href="#faq">FAQ</a>
</aside>
<article>
<p class="eyebrow" id="overview">Docs · Providers</p>
<h1>ModelScope in Claude Code and Codex</h1>
<p class="lede">ModelScope's (魔搭) API-Inference takes a ModelScope account's access token as its key and serves models such as Qwen and GLM over Chat Completions and Responses. Add ModelScope in magpie, and Claude Code, Codex, Gemini CLI and OpenCode use them through magpie's local gateway on 127.0.0.1:3425.</p>
<h2 id="add"><a class="anchor" href="#add">Add ModelScope</a></h2>
<ol class="steps">
<li><b>Add the provider</b>On <span class="ui">Providers</span>, click <span class="ui">+ Add provider</span>, pick <span class="ui">ModelScope</span>, use your ModelScope access token as the key, paste the key and save.</li>
<li><b>Pick it for a tool</b>On <span class="ui">Agents</span>, pick a model such as Qwen/Qwen3-Coder-30B-A3B-Instruct on a tool's row.</li>
</ol>
<div class="code"><span class="lang">Terminal</span><button class="copy" data-copy="ms-cli">Copy</button><pre id="ms-cli">magpie claude modelscope/Qwen/Qwen3-Coder-30B-A3B-Instruct
magpie codex modelscope/ZhipuAI/GLM-4.6
magpie opencode modelscope/Qwen/Qwen3-235B-A22B-Instruct-2507</pre></div>
<h2 id="endpoint"><a class="anchor" href="#endpoint">Endpoint and token</a></h2>
<div class="table-wrap"><table>
<tr><th>API</th><th>Endpoint</th></tr>
<tr><td>Chat Completions</td><td><code>https://api-inference.modelscope.cn/v1</code></td></tr>
<tr><td>Responses</td><td><code>https://api-inference.modelscope.cn/v1</code></td></tr>
</table></div>
<p>The key is a ModelScope account's access token, made at modelscope.cn/my/myaccesstoken. ModelScope is not Alibaba Cloud's DashScope: a DashScope key goes in the <a href="/docs/qwen">Qwen</a> provider, and neither works on the other. A provider added by hand at api-inference.modelscope.cn is taken as ModelScope too.</p>
<h2 id="models"><a class="anchor" href="#models">Models</a></h2>
<p>ModelScope's model names carry their organisation, written as they are: Qwen/Qwen3-Coder-30B-A3B-Instruct, Qwen/Qwen3-235B-A22B-Instruct-2507, Qwen/Qwen3-235B-A22B-Thinking-2507, ZhipuAI/GLM-4.6, ZhipuAI/GLM-4.5, among others. magpie takes their names and context from models.dev's modelscope catalog. On the command line, write <code>modelscope/</code> then the name.</p>
<h2 id="agents"><a class="anchor" href="#agents">In each agent</a></h2>
<ul>
<li><b>Claude Code</b> speaks Anthropic Messages, which this provider doesn't serve. magpie converts each request to Chat Completions and the reply back, reasoning included. <a href="/docs/claude-code-models">Claude Code with other models</a>.</li>
<li><b>Codex</b> speaks OpenAI Responses. It serves Responses too, so Codex's requests go as they are. <a href="/docs/codex-models">Codex with other models</a>.</li>
<li><b>Gemini CLI</b> speaks Gemini's API; magpie converts it to Chat Completions. <a href="/docs/gemini-cli-models">Gemini CLI with other models</a>.</li>
<li><b>OpenCode</b> speaks Chat Completions, so requests go as they are. <a href="/docs/opencode-models">OpenCode with other models</a>.</li>
</ul>
<h2 id="images"><a class="anchor" href="#images">Images</a></h2>
<p>ModelScope draws through async tasks of its own: a request starts a task and answers its task_id, which is asked about until it succeeds or fails. It runs one task of a user's at a time and answers bursts with 429, so magpie asks for one image at a time, waits a moment when it is busy, and hands the result to your tool as an image it can read.</p>
<h2 id="faq"><a class="anchor" href="#faq">FAQ</a></h2>
<h3>How do I use ModelScope in Claude Code?</h3>
<p>Add ModelScope in magpie with your access token as the key, then pick Qwen/Qwen3-Coder-30B-A3B-Instruct on Claude Code's row, or run magpie claude modelscope/Qwen/Qwen3-Coder-30B-A3B-Instruct. ModelScope has no Anthropic endpoint, so magpie converts to Chat Completions.</p>
<h3>Where do I get a ModelScope key?</h3>
<p>ModelScope uses your account's access token, made at modelscope.cn/my/myaccesstoken. Paste it into magpie's ModelScope provider.</p>
<h3>Is ModelScope the same as Alibaba's DashScope?</h3>
<p>No. ModelScope's API-Inference is at api-inference.modelscope.cn on a ModelScope access token; DashScope takes an Alibaba Cloud key and is magpie's Qwen provider.</p>
<h3>Does ModelScope work in Codex?</h3>
<p>Yes. ModelScope serves Responses, so magpie passes Codex's requests through. Run magpie codex modelscope/ZhipuAI/GLM-4.6.</p>
<p style="margin-top:48px">The same for other providers: <a href="/docs/siliconflow">SiliconFlow</a>, <a href="/docs/volcengine">Volcengine Ark</a>, <a href="/docs/glm">GLM Coding Plan</a>, <a href="/docs/kimi">Kimi</a>, <a href="/docs/deepseek">DeepSeek</a>, <a href="/docs/qwen">Qwen</a>. Hit an error? See <a href="/docs/troubleshooting">troubleshooting</a>, or ask on <a href="https://discord.gg/vGSnD3ZKQF">Discord</a>.</p>
</article>
</main>
<footer><div class="wrap">
<span>© 2026 magpie · MIT</span>
<div class="links">
<a href="/">Home</a>
<a href="/docs/intent">Intent routing</a>
<a href="/docs/plugins">Plugins</a>
<a href="/docs/remote">Remote magpie</a>
<a href="/docs/docker">Docker</a>
<a href="/docs/privacy">Privacy</a>
<a href="/docs/masking">Privacy masking</a>
<a href="/docs/mcp-router">MCP router</a>
<a href="/docs/library">Library</a>
<a href="/docs/claude-code-models">Models in Claude Code</a>
<a href="/docs/codex-models">Models in Codex</a>
<a href="/docs/gemini-cli-models">Models in Gemini CLI</a>
<a href="/docs/subscriptions">Subscriptions in any agent</a>
<a href="/docs/local-models">Local models</a>
<a href="/docs/opencode-models">Models in OpenCode</a>
<a href="/docs/alternatives">magpie vs CC Switch vs CCR</a>
<a href="/docs/import">Add to magpie</a>
<a href="/docs/integrate">Integrate</a>
<a href="https://github.com/yetone/magpie">GitHub</a>
<a href="https://discord.gg/vGSnD3ZKQF">Discord</a>
<a href="/docs/contributors">Contributors</a>
<a href="https://github.com/yetone/magpie-releases/releases">Releases</a>
</div>
</div></footer>
<script>
(() => {
const next = { system: "light", light: "dark", dark: "system" };
document.querySelectorAll("button.theme").forEach((b) => {
b.dataset.mode = themeMode();
b.title = "Theme: " + themeMode();
b.addEventListener("click", () => setTheme(next[themeMode()]));
});
document.querySelectorAll(".copy").forEach((b) => b.addEventListener("click", async () => {
try {
await navigator.clipboard.writeText(document.getElementById(b.dataset.copy).textContent);
b.textContent = "Copied"; setTimeout(() => (b.textContent = "Copy"), 1400);
} catch {}
}));
})();
</script>
<script src="/docs.js"></script>
</body>
</html>
+1 -1
View File
@@ -345,7 +345,7 @@ magpie provider fallback ollama-cloud ollama/qwen3</pre></div>
<p>No. The Ollama preset takes none. Ollama Cloud needs one.</p>
<p>Other local servers, such as LM Studio, oMLX, vLLM and llama.cpp’s server, are in <a href="/docs/local-models">Local models</a>. To let a local model classify each request for routing, see <a href="/docs/intent">Intent routing</a>.</p>
<p><b>By provider:</b> <a href="/docs/deepseek">DeepSeek</a> · <a href="/docs/kimi">Kimi and Kimi Code</a> · <a href="/docs/glm">GLM Coding Plan</a> · <a href="/docs/volcengine">Volcengine Ark</a> · <a href="/docs/tencent-cloud">Tencent Cloud</a> · <a href="/docs/baidu-qianfan">Baidu Qianfan</a> · <a href="/docs/qwen">Qwen</a> · <a href="/docs/minimax">MiniMax</a> · <a href="/docs/anthropic">Anthropic</a> · <a href="/docs/openai">OpenAI</a> · <a href="/docs/gemini">Gemini</a> · <a href="/docs/grok">Grok</a> · <a href="/docs/mistral">Mistral</a> · <a href="/docs/openrouter">OpenRouter</a> · <a href="/docs/copilot">GitHub Copilot</a></p>
<p><b>By provider:</b> <a href="/docs/deepseek">DeepSeek</a> · <a href="/docs/kimi">Kimi and Kimi Code</a> · <a href="/docs/glm">GLM Coding Plan</a> · <a href="/docs/volcengine">Volcengine Ark</a> · <a href="/docs/tencent-cloud">Tencent Cloud</a> · <a href="/docs/baidu-qianfan">Baidu Qianfan</a> · <a href="/docs/siliconflow">SiliconFlow</a> · <a href="/docs/modelscope">ModelScope</a> · <a href="/docs/qwen">Qwen</a> · <a href="/docs/minimax">MiniMax</a> · <a href="/docs/anthropic">Anthropic</a> · <a href="/docs/openai">OpenAI</a> · <a href="/docs/gemini">Gemini</a> · <a href="/docs/grok">Grok</a> · <a href="/docs/mistral">Mistral</a> · <a href="/docs/openrouter">OpenRouter</a> · <a href="/docs/copilot">GitHub Copilot</a></p>
<p style="margin-top:48px">Every agent: <a href="/docs/claude-code-models">Models in Claude Code</a>, <a href="/docs/codex-models">Models in Codex</a>, <a href="/docs/gemini-cli-models">Models in Gemini CLI</a>, <a href="/docs/opencode-models">Models in OpenCode</a>. Ask on <a href="https://discord.gg/vGSnD3ZKQF">Discord</a> if you get stuck.</p>
</article>
</main>
+1 -1
View File
@@ -316,7 +316,7 @@ magpie provider fallback openai deepseek/deepseek-v4-pro</pre></div>
<h3>Does magpie support Azure OpenAI?</h3>
<p>Yes, as its own provider, Azure OpenAI. Give it the resource’s endpoint and key; magpie uses the v1 API under <code>/openai/v1</code>, sends the key in the <code>api-key</code> header and lists the resource’s deployments as models.</p>
<p><b>By provider:</b> <a href="/docs/deepseek">DeepSeek</a> · <a href="/docs/kimi">Kimi and Kimi Code</a> · <a href="/docs/glm">GLM Coding Plan</a> · <a href="/docs/volcengine">Volcengine Ark</a> · <a href="/docs/tencent-cloud">Tencent Cloud</a> · <a href="/docs/baidu-qianfan">Baidu Qianfan</a> · <a href="/docs/qwen">Qwen</a> · <a href="/docs/minimax">MiniMax</a> · <a href="/docs/anthropic">Anthropic</a> · <a href="/docs/gemini">Gemini</a> · <a href="/docs/grok">Grok</a> · <a href="/docs/mistral">Mistral</a> · <a href="/docs/openrouter">OpenRouter</a> · <a href="/docs/copilot">GitHub Copilot</a> · <a href="/docs/ollama">Ollama</a></p>
<p><b>By provider:</b> <a href="/docs/deepseek">DeepSeek</a> · <a href="/docs/kimi">Kimi and Kimi Code</a> · <a href="/docs/glm">GLM Coding Plan</a> · <a href="/docs/volcengine">Volcengine Ark</a> · <a href="/docs/tencent-cloud">Tencent Cloud</a> · <a href="/docs/baidu-qianfan">Baidu Qianfan</a> · <a href="/docs/siliconflow">SiliconFlow</a> · <a href="/docs/modelscope">ModelScope</a> · <a href="/docs/qwen">Qwen</a> · <a href="/docs/minimax">MiniMax</a> · <a href="/docs/anthropic">Anthropic</a> · <a href="/docs/gemini">Gemini</a> · <a href="/docs/grok">Grok</a> · <a href="/docs/mistral">Mistral</a> · <a href="/docs/openrouter">OpenRouter</a> · <a href="/docs/copilot">GitHub Copilot</a> · <a href="/docs/ollama">Ollama</a></p>
<p style="margin-top:48px">Every agent: <a href="/docs/claude-code-models">Models in Claude Code</a>, <a href="/docs/codex-models">Models in Codex</a>, <a href="/docs/gemini-cli-models">Models in Gemini CLI</a>, <a href="/docs/opencode-models">Models in OpenCode</a>. Ask on <a href="https://discord.gg/vGSnD3ZKQF">Discord</a> if you get stuck.</p>
</article>
</main>
+1 -1
View File
@@ -262,7 +262,7 @@ magpie visible opencode all # every model again</pre></div>
<div class="code"><span class="lang">Terminal</span><button class="copy" data-copy="ex-oc-back">Copy</button><pre id="ex-oc-back">magpie opencode default</pre></div>
<p>It puts back the <code>model</code> and <code>small_model</code> OpenCode had before magpie, and takes the <code>magpie</code> provider out of the file.</p>
<p><b>By provider:</b> <a href="/docs/deepseek">DeepSeek</a> · <a href="/docs/kimi">Kimi and Kimi Code</a> · <a href="/docs/glm">GLM Coding Plan</a> · <a href="/docs/volcengine">Volcengine Ark</a> · <a href="/docs/tencent-cloud">Tencent Cloud</a> · <a href="/docs/baidu-qianfan">Baidu Qianfan</a> · <a href="/docs/qwen">Qwen</a> · <a href="/docs/minimax">MiniMax</a> · <a href="/docs/anthropic">Anthropic</a> · <a href="/docs/openai">OpenAI</a> · <a href="/docs/gemini">Gemini</a> · <a href="/docs/grok">Grok</a> · <a href="/docs/mistral">Mistral</a> · <a href="/docs/openrouter">OpenRouter</a> · <a href="/docs/copilot">GitHub Copilot</a> · <a href="/docs/ollama">Ollama</a></p>
<p><b>By provider:</b> <a href="/docs/deepseek">DeepSeek</a> · <a href="/docs/kimi">Kimi and Kimi Code</a> · <a href="/docs/glm">GLM Coding Plan</a> · <a href="/docs/volcengine">Volcengine Ark</a> · <a href="/docs/tencent-cloud">Tencent Cloud</a> · <a href="/docs/baidu-qianfan">Baidu Qianfan</a> · <a href="/docs/siliconflow">SiliconFlow</a> · <a href="/docs/modelscope">ModelScope</a> · <a href="/docs/qwen">Qwen</a> · <a href="/docs/minimax">MiniMax</a> · <a href="/docs/anthropic">Anthropic</a> · <a href="/docs/openai">OpenAI</a> · <a href="/docs/gemini">Gemini</a> · <a href="/docs/grok">Grok</a> · <a href="/docs/mistral">Mistral</a> · <a href="/docs/openrouter">OpenRouter</a> · <a href="/docs/copilot">GitHub Copilot</a> · <a href="/docs/ollama">Ollama</a></p>
<h2 id="faq"><a class="anchor" href="#faq">FAQ</a></h2>
<h3>How do I use DeepSeek in OpenCode?</h3>
+1 -1
View File
@@ -311,7 +311,7 @@ magpie group set opus-anywhere stays=session models+=openrouter/anthropic/claude
<h3>Why does magpie fetch OpenRouter’s model list from /api/v1?</h3>
<p>Asked at the Anthropic base, OpenRouter answers with its catalog under <code>anthropic/</code> names it doesn’t serve. magpie fetches the list from the Chat Completions base, <code>https://openrouter.ai/api/v1</code>, and a provider given only OpenRouter’s Anthropic base is told to add that Chat base.</p>
<p><b>By provider:</b> <a href="/docs/deepseek">DeepSeek</a> · <a href="/docs/kimi">Kimi and Kimi Code</a> · <a href="/docs/glm">GLM Coding Plan</a> · <a href="/docs/volcengine">Volcengine Ark</a> · <a href="/docs/tencent-cloud">Tencent Cloud</a> · <a href="/docs/baidu-qianfan">Baidu Qianfan</a> · <a href="/docs/qwen">Qwen</a> · <a href="/docs/minimax">MiniMax</a> · <a href="/docs/anthropic">Anthropic</a> · <a href="/docs/openai">OpenAI</a> · <a href="/docs/gemini">Gemini</a> · <a href="/docs/grok">Grok</a> · <a href="/docs/mistral">Mistral</a> · <a href="/docs/copilot">GitHub Copilot</a> · <a href="/docs/ollama">Ollama</a></p>
<p><b>By provider:</b> <a href="/docs/deepseek">DeepSeek</a> · <a href="/docs/kimi">Kimi and Kimi Code</a> · <a href="/docs/glm">GLM Coding Plan</a> · <a href="/docs/volcengine">Volcengine Ark</a> · <a href="/docs/tencent-cloud">Tencent Cloud</a> · <a href="/docs/baidu-qianfan">Baidu Qianfan</a> · <a href="/docs/siliconflow">SiliconFlow</a> · <a href="/docs/modelscope">ModelScope</a> · <a href="/docs/qwen">Qwen</a> · <a href="/docs/minimax">MiniMax</a> · <a href="/docs/anthropic">Anthropic</a> · <a href="/docs/openai">OpenAI</a> · <a href="/docs/gemini">Gemini</a> · <a href="/docs/grok">Grok</a> · <a href="/docs/mistral">Mistral</a> · <a href="/docs/copilot">GitHub Copilot</a> · <a href="/docs/ollama">Ollama</a></p>
<p style="margin-top:48px">Every agent: <a href="/docs/claude-code-models">Models in Claude Code</a>, <a href="/docs/codex-models">Models in Codex</a>, <a href="/docs/gemini-cli-models">Models in Gemini CLI</a>, <a href="/docs/opencode-models">Models in OpenCode</a>. Ask on <a href="https://discord.gg/vGSnD3ZKQF">Discord</a> if you get stuck.</p>
</article>
</main>
+277
View File
@@ -0,0 +1,277 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>SiliconFlow in Claude Code, Codex and OpenCode: DeepSeek, GLM, Kimi and Qwen in any agent · magpie</title>
<meta name="description" content="Add a SiliconFlow API key to magpie and use DeepSeek V4, GLM-5.3, Kimi K3 and Qwen3 Coder in Claude Code, Codex, Gemini CLI and OpenCode: the China and Global sites, how model names are written, the Anthropic and Responses conversion, and where the balance is.">
<meta name="color-scheme" content="light dark">
<meta name="theme-color" content="#fafafa">
<script>
(() => {
let mode = "system";
try { mode = localStorage.getItem("theme") || "system"; } catch {}
const q = matchMedia("(prefers-color-scheme: dark)");
const apply = () => {
const t = mode === "system" ? (q.matches ? "dark" : "light") : mode;
document.documentElement.dataset.theme = t;
document.querySelector('meta[name="theme-color"]').content = t === "dark" ? "#0b0b0c" : "#fafafa";
document.querySelectorAll("button.theme").forEach((b) => { b.dataset.mode = mode; b.title = "Theme: " + mode; });
};
q.addEventListener("change", () => mode === "system" && apply());
window.setTheme = (m) => { mode = m; try { m === "system" ? localStorage.removeItem("theme") : localStorage.setItem("theme", m); } catch {} apply(); };
window.themeMode = () => mode;
apply();
})();
</script>
<script>try{if(/Linux/.test(navigator.userAgent)&&!/Android/.test(navigator.userAgent)||localStorage.getItem("omarchy")||/[?&]omarchy=/.test(location.search))document.write('<script src="/omarchy.js"><\/script>')}catch(e){}</script>
<link rel="icon" href="/favicon.png" type="image/png">
<link rel="apple-touch-icon" href="/img/icon-256.png">
<link rel="alternate" hreflang="en" href="https://usemagpie.ai/docs/siliconflow">
<link rel="alternate" hreflang="zh" href="https://usemagpie.ai/docs/zh/siliconflow">
<link rel="alternate" hreflang="ja" href="https://usemagpie.ai/docs/ja/siliconflow">
<link rel="alternate" hreflang="x-default" href="https://usemagpie.ai/docs/siliconflow">
<link rel="canonical" href="https://usemagpie.ai/docs/siliconflow">
<link rel="stylesheet" href="/docs.css">
<meta property="og:site_name" content="magpie">
<meta property="og:title" content="SiliconFlow in Claude Code and Codex">
<meta property="og:description" content="Add a SiliconFlow API key to magpie and use DeepSeek V4, GLM-5.3, Kimi K3 and Qwen3 Coder in Claude Code, Codex, Gemini CLI and OpenCode: the China and Global sites, how model names are written, the Anthropic and Responses conversion, and where the balance is.">
<meta property="og:image" content="https://usemagpie.ai/img/og.png">
<meta property="og:url" content="https://usemagpie.ai/docs/siliconflow">
<meta name="twitter:card" content="summary_large_image">
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@graph": [
{
"@type": "TechArticle",
"headline": "SiliconFlow in Claude Code and Codex",
"description": "Add a SiliconFlow API key to magpie and use DeepSeek V4, GLM-5.3, Kimi K3 and Qwen3 Coder in Claude Code, Codex, Gemini CLI and OpenCode: the China and Global sites, how model names are written, the Anthropic and Responses conversion, and where the balance is.",
"inLanguage": "en",
"url": "https://usemagpie.ai/docs/siliconflow",
"about": {
"@type": "SoftwareApplication",
"name": "magpie",
"applicationCategory": "DeveloperApplication",
"operatingSystem": "macOS, Windows, Linux"
},
"publisher": {
"@type": "Organization",
"name": "magpie",
"url": "https://usemagpie.ai/"
}
},
{
"@type": "FAQPage",
"mainEntity": [
{
"@type": "Question",
"name": "How do I use SiliconFlow in Claude Code?",
"acceptedAnswer": {
"@type": "Answer",
"text": "Add SiliconFlow in magpie with your key, then pick a model such as deepseek-ai/DeepSeek-V4-Pro on Claude Code's row, or run magpie claude siliconflow/deepseek-ai/DeepSeek-V4-Pro. SiliconFlow has no Anthropic endpoint, so magpie converts Claude Code's requests to Chat Completions."
}
},
{
"@type": "Question",
"name": "Does SiliconFlow work in Codex?",
"acceptedAnswer": {
"@type": "Answer",
"text": "Yes. SiliconFlow has Chat Completions only, so magpie converts Codex's Responses requests, custom tools like apply_patch included. Run magpie codex siliconflow/zai-org/GLM-5.3."
}
},
{
"@type": "Question",
"name": "Does a China key work on the Global site?",
"acceptedAnswer": {
"@type": "Answer",
"text": "No. cloud.siliconflow.com is another account, with its own keys and balance. Set each key's site to China or Global in magpie."
}
},
{
"@type": "Question",
"name": "Why doesn't magpie show my SiliconFlow balance?",
"acceptedAnswer": {
"@type": "Answer",
"text": "SiliconFlow retired its balance API on 2026-08-14 and has no new one yet. magpie's card takes you to the console, where the balance and vouchers are shown."
}
}
]
},
{
"@type": "BreadcrumbList",
"itemListElement": [
{
"@type": "ListItem",
"position": 1,
"name": "magpie",
"item": "https://usemagpie.ai/"
},
{
"@type": "ListItem",
"position": 2,
"name": "Docs",
"item": "https://usemagpie.ai/docs/start"
},
{
"@type": "ListItem",
"position": 3,
"name": "SiliconFlow in Claude Code and Codex",
"item": "https://usemagpie.ai/docs/siliconflow"
}
]
}
]
}
</script>
</head>
<body>
<nav><div class="wrap">
<a class="brand" href="/"><img class="bird" src="/img/magpie-small.svg" alt="">magpie <small>Docs</small></a>
<div class="links">
<a href="/">Home</a>
<a href="/docs/start">Get started</a>
<a href="/docs/intent">Intent routing</a>
<a href="/docs/plugins">Plugins</a>
<a class="toc-only" href="/docs/remote">Remote magpie</a>
<a class="toc-only" href="/docs/docker">Docker</a>
<a class="toc-only" href="/docs/privacy">Privacy</a>
<a class="toc-only" href="/docs/masking">Privacy masking</a>
<a class="toc-only" href="/docs/mcp-router">MCP router</a>
<a class="toc-only" href="/docs/library">Library</a>
<a class="toc-only" href="/docs/claude-code-models">Models in Claude Code</a>
<a class="toc-only" href="/docs/codex-models">Models in Codex</a>
<a class="toc-only" href="/docs/gemini-cli-models">Models in Gemini CLI</a>
<a class="toc-only" href="/docs/subscriptions">Subscriptions in any agent</a>
<a class="toc-only" href="/docs/local-models">Local models</a>
<a class="toc-only" href="/docs/opencode-models">Models in OpenCode</a>
<a class="toc-only" href="/docs/alternatives">magpie vs CC Switch vs CCR</a>
<a href="/docs/import">Add to magpie</a>
<a href="/docs/integrate">Integrate</a>
<a href="https://github.com/yetone/magpie-releases/releases">Releases</a>
</div>
<div class="langs">
<button class="icon-btn lang" type="button" aria-label="Language" title="Language" aria-haspopup="true" aria-expanded="false" aria-controls="langs"><svg viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.4" aria-hidden="true"><circle cx="8" cy="8" r="6.25"/><path d="M1.75 8h12.5M8 1.75c1.7 1.75 2.55 3.83 2.55 6.25S9.7 12.5 8 14.25M8 1.75C6.3 3.5 5.45 5.58 5.45 8S6.3 12.5 8 14.25"/></svg></button>
<div class="lang-menu" id="langs" hidden>
<a href="/docs/siliconflow" hreflang="en" lang="en">English</a>
<a href="/docs/zh/siliconflow" hreflang="zh" lang="zh">中文</a>
<a href="/docs/ja/siliconflow" hreflang="ja" lang="ja">日本語</a>
</div>
</div>
<a class="icon-btn" href="https://discord.gg/vGSnD3ZKQF" aria-label="magpie on Discord" title="Join us on Discord"><svg viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M20.317 4.3698a19.7913 19.7913 0 00-4.8851-1.5152.0741.0741 0 00-.0785.0371c-.211.3753-.4447.8648-.6083 1.2495-1.8447-.2762-3.68-.2762-5.4868 0-.1636-.3933-.4058-.8742-.6177-1.2495a.077.077 0 00-.0785-.037 19.7363 19.7363 0 00-4.8852 1.515.0699.0699 0 00-.0321.0277C.5334 9.0458-.319 13.5799.0992 18.0578a.0824.0824 0 00.0312.0561c2.0528 1.5076 4.0413 2.4228 5.9929 3.0294a.0777.0777 0 00.0842-.0276c.4616-.6304.8731-1.2952 1.226-1.9942a.076.076 0 00-.0416-.1057c-.6528-.2476-1.2743-.5495-1.8722-.8923a.077.077 0 01-.0076-.1277c.1258-.0943.2517-.1923.3718-.2914a.0743.0743 0 01.0776-.0105c3.9278 1.7933 8.18 1.7933 12.0614 0a.0739.0739 0 01.0785.0095c.1202.099.246.1981.3728.2924a.077.077 0 01-.0066.1276 12.2986 12.2986 0 01-1.873.8914.0766.0766 0 00-.0407.1067c.3604.698.7719 1.3628 1.225 1.9932a.076.076 0 00.0842.0286c1.961-.6067 3.9495-1.5219 6.0023-3.0294a.077.077 0 00.0313-.0552c.5004-5.177-.8382-9.6739-3.5485-13.6604a.061.061 0 00-.0312-.0286zM8.02 15.3312c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9555-2.4189 2.157-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.9555 2.4189-2.1569 2.4189zm7.9748 0c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9554-2.4189 2.1569-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.946 2.4189-2.1568 2.4189Z"/></svg></a>
<a class="icon-btn" href="https://github.com/yetone/magpie" aria-label="magpie on GitHub" title="Source on GitHub"><svg viewBox="0 0 16 16" fill="currentColor" aria-hidden="true"><path d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0 0 16 8c0-4.42-3.58-8-8-8Z"/></svg></a>
<button class="icon-btn theme" type="button" aria-label="Theme" title="Theme: system"><svg class="i-system" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5"><rect x="1.75" y="2.75" width="12.5" height="8.5" rx="1.5"/><path d="M5.5 14h5M8 11.25V14"/></svg><svg class="i-light" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"><circle cx="8" cy="8" r="3"/><path d="M8 1v1.5M8 13.5V15M1 8h1.5M13.5 8H15M3 3l1 1M12 12l1 1M3 13l1-1M12 4l1-1"/></svg><svg class="i-dark" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linejoin="round"><path d="M13.5 9.5A5.5 5.5 0 0 1 6.5 2.5a5.5 5.5 0 1 0 7 7Z"/></svg></button>
<a class="btn small" href="/#get">Download</a>
</div></nav>
<main class="wrap doc">
<aside class="toc">
<p>SiliconFlow</p>
<a href="#overview">Overview</a>
<a href="#add">Add SiliconFlow</a>
<a href="#sites">China and Global</a>
<a href="#models">Models</a>
<a href="#agents">In each agent</a>
<a href="#balance">Balance</a>
<a href="#faq">FAQ</a>
</aside>
<article>
<p class="eyebrow" id="overview">Docs · Providers</p>
<h1>SiliconFlow in Claude Code and Codex</h1>
<p class="lede">SiliconFlow (硅基流动) serves open models such as DeepSeek, GLM, Kimi and Qwen on one API key, over OpenAI's Chat Completions. Claude Code wants Anthropic Messages and Codex wants Responses, and SiliconFlow serves neither; magpie's local gateway on 127.0.0.1:3425 converts between them, so these tools use SiliconFlow's models directly.</p>
<h2 id="add"><a class="anchor" href="#add">Add SiliconFlow</a></h2>
<ol class="steps">
<li><b>Add the provider</b>On <span class="ui">Providers</span>, click <span class="ui">+ Add provider</span>, pick <span class="ui">SiliconFlow</span>, set the key to <span class="ui">China</span> or <span class="ui">Global</span>, paste the key and save.</li>
<li><b>Pick it for a tool</b>On <span class="ui">Agents</span>, pick a model such as deepseek-ai/DeepSeek-V4-Pro on a tool's row.</li>
</ol>
<div class="code"><span class="lang">Terminal</span><button class="copy" data-copy="sf-cli">Copy</button><pre id="sf-cli">magpie claude siliconflow/deepseek-ai/DeepSeek-V4-Pro
magpie codex siliconflow/zai-org/GLM-5.3
magpie opencode siliconflow/moonshotai/Kimi-K3</pre></div>
<h2 id="sites"><a class="anchor" href="#sites">China and Global</a></h2>
<div class="table-wrap"><table>
<tr><th>Site</th><th>Chat Completions</th><th>Console</th></tr>
<tr><td>China</td><td><code>https://api.siliconflow.cn/v1</code></td><td>cloud.siliconflow.cn</td></tr>
<tr><td>Global</td><td><code>https://api.siliconflow.com/v1</code></td><td>cloud.siliconflow.com</td></tr>
</table></div>
<p>The Global site is another account, with keys and a balance (in $) of its own; a China key doesn't work there. Each key in the provider names its site, so keys from both can share one provider.</p>
<h2 id="models"><a class="anchor" href="#models">Models</a></h2>
<p>SiliconFlow's model names carry their maker, and go into magpie and your tools as written: deepseek-ai/DeepSeek-V4-Pro, deepseek-ai/DeepSeek-V4-Flash, zai-org/GLM-5.3, moonshotai/Kimi-K3, moonshotai/Kimi-K2.7-Code, Qwen/Qwen3-Coder-480B-A35B-Instruct, meituan-longcat/LongCat-2.0. magpie takes their names, context and prices from models.dev's siliconflow catalog. On the command line, write <code>siliconflow/</code> then the name.</p>
<h2 id="agents"><a class="anchor" href="#agents">In each agent</a></h2>
<ul>
<li><b>Claude Code</b> speaks Anthropic Messages, which this provider doesn't serve. magpie converts each request to Chat Completions and the reply back, reasoning included. <a href="/docs/claude-code-models">Claude Code with other models</a>.</li>
<li><b>Codex</b> speaks OpenAI Responses. It has no Responses, so magpie converts to Chat Completions; Codex's custom tools such as <code>apply_patch</code> go to the model as functions, and its calls come back as Codex can run them. <a href="/docs/codex-models">Codex with other models</a>.</li>
<li><b>Gemini CLI</b> speaks Gemini's API; magpie converts it to Chat Completions. <a href="/docs/gemini-cli-models">Gemini CLI with other models</a>.</li>
<li><b>OpenCode</b> speaks Chat Completions, so requests go as they are. <a href="/docs/opencode-models">OpenCode with other models</a>.</li>
</ul>
<h2 id="balance"><a class="anchor" href="#balance">Balance</a></h2>
<p>SiliconFlow retired its balance query, <code>/v1/user/info</code>, on 2026-08-14 (it answers 410) with nothing in its place yet, and its old granted balance is a voucher now. So magpie's usage card says where the balance is shown instead of an amount, and its button opens that site's console. A key refused for itself (401) is said as it came.</p>
<h2 id="faq"><a class="anchor" href="#faq">FAQ</a></h2>
<h3>How do I use SiliconFlow in Claude Code?</h3>
<p>Add SiliconFlow in magpie with your key, then pick a model such as deepseek-ai/DeepSeek-V4-Pro on Claude Code's row, or run magpie claude siliconflow/deepseek-ai/DeepSeek-V4-Pro. SiliconFlow has no Anthropic endpoint, so magpie converts Claude Code's requests to Chat Completions.</p>
<h3>Does SiliconFlow work in Codex?</h3>
<p>Yes. SiliconFlow has Chat Completions only, so magpie converts Codex's Responses requests, custom tools like apply_patch included. Run magpie codex siliconflow/zai-org/GLM-5.3.</p>
<h3>Does a China key work on the Global site?</h3>
<p>No. cloud.siliconflow.com is another account, with its own keys and balance. Set each key's site to China or Global in magpie.</p>
<h3>Why doesn't magpie show my SiliconFlow balance?</h3>
<p>SiliconFlow retired its balance API on 2026-08-14 and has no new one yet. magpie's card takes you to the console, where the balance and vouchers are shown.</p>
<p style="margin-top:48px">The same for other providers: <a href="/docs/modelscope">ModelScope</a>, <a href="/docs/volcengine">Volcengine Ark</a>, <a href="/docs/glm">GLM Coding Plan</a>, <a href="/docs/kimi">Kimi</a>, <a href="/docs/deepseek">DeepSeek</a>, <a href="/docs/qwen">Qwen</a>. Hit an error? See <a href="/docs/troubleshooting">troubleshooting</a>, or ask on <a href="https://discord.gg/vGSnD3ZKQF">Discord</a>.</p>
</article>
</main>
<footer><div class="wrap">
<span>© 2026 magpie · MIT</span>
<div class="links">
<a href="/">Home</a>
<a href="/docs/intent">Intent routing</a>
<a href="/docs/plugins">Plugins</a>
<a href="/docs/remote">Remote magpie</a>
<a href="/docs/docker">Docker</a>
<a href="/docs/privacy">Privacy</a>
<a href="/docs/masking">Privacy masking</a>
<a href="/docs/mcp-router">MCP router</a>
<a href="/docs/library">Library</a>
<a href="/docs/claude-code-models">Models in Claude Code</a>
<a href="/docs/codex-models">Models in Codex</a>
<a href="/docs/gemini-cli-models">Models in Gemini CLI</a>
<a href="/docs/subscriptions">Subscriptions in any agent</a>
<a href="/docs/local-models">Local models</a>
<a href="/docs/opencode-models">Models in OpenCode</a>
<a href="/docs/alternatives">magpie vs CC Switch vs CCR</a>
<a href="/docs/import">Add to magpie</a>
<a href="/docs/integrate">Integrate</a>
<a href="https://github.com/yetone/magpie">GitHub</a>
<a href="https://discord.gg/vGSnD3ZKQF">Discord</a>
<a href="/docs/contributors">Contributors</a>
<a href="https://github.com/yetone/magpie-releases/releases">Releases</a>
</div>
</div></footer>
<script>
(() => {
const next = { system: "light", light: "dark", dark: "system" };
document.querySelectorAll("button.theme").forEach((b) => {
b.dataset.mode = themeMode();
b.title = "Theme: " + themeMode();
b.addEventListener("click", () => setTheme(next[themeMode()]));
});
document.querySelectorAll(".copy").forEach((b) => b.addEventListener("click", async () => {
try {
await navigator.clipboard.writeText(document.getElementById(b.dataset.copy).textContent);
b.textContent = "Copied"; setTimeout(() => (b.textContent = "Copy"), 1400);
} catch {}
}));
})();
</script>
<script src="/docs.js"></script>
</body>
</html>
+1 -1
View File
@@ -308,7 +308,7 @@ magpie provider add anthropic &lt;key&gt; id=anthropic-ws2 name="Anthropic WS2"
<h3>关掉思考时 Claude 为什么回 400?</h3>
<p>较新的 Claude 模型并不都接受 <code>thinking</code> <code>disabled</code>。magpie 给 Sonnet 5.5 发 <code>between_tools</code>;Opus 5.5 和 Fable 5 总是在思考,所以不发 thinking;Opus 5 和 Haiku 5.5 在 xhigh 或 max 时改按 high 请求。更早的 Claude 原样发送。</p>
<p><b>按供应商:</b><a href="/docs/zh/deepseek">DeepSeek</a> · <a href="/docs/zh/kimi">Kimi 与 Kimi Code</a> · <a href="/docs/zh/glm">GLM 编程套餐</a> · <a href="/docs/zh/volcengine">火山方舟</a> · <a href="/docs/zh/tencent-cloud">腾讯云</a> · <a href="/docs/zh/baidu-qianfan">百度千帆</a> · <a href="/docs/zh/qwen">通义千问</a> · <a href="/docs/zh/minimax">MiniMax</a> · <a href="/docs/zh/openai">OpenAI</a> · <a href="/docs/zh/gemini">Gemini</a> · <a href="/docs/zh/grok">Grok</a> · <a href="/docs/zh/mistral">Mistral</a> · <a href="/docs/zh/openrouter">OpenRouter</a> · <a href="/docs/zh/copilot">GitHub Copilot</a> · <a href="/docs/zh/ollama">Ollama</a></p>
<p><b>按供应商:</b><a href="/docs/zh/deepseek">DeepSeek</a> · <a href="/docs/zh/kimi">Kimi 与 Kimi Code</a> · <a href="/docs/zh/glm">GLM 编程套餐</a> · <a href="/docs/zh/volcengine">火山方舟</a> · <a href="/docs/zh/tencent-cloud">腾讯云</a> · <a href="/docs/zh/baidu-qianfan">百度千帆</a> · <a href="/docs/zh/siliconflow">硅基流动</a> · <a href="/docs/zh/modelscope">魔搭</a> · <a href="/docs/zh/qwen">通义千问</a> · <a href="/docs/zh/minimax">MiniMax</a> · <a href="/docs/zh/openai">OpenAI</a> · <a href="/docs/zh/gemini">Gemini</a> · <a href="/docs/zh/grok">Grok</a> · <a href="/docs/zh/mistral">Mistral</a> · <a href="/docs/zh/openrouter">OpenRouter</a> · <a href="/docs/zh/copilot">GitHub Copilot</a> · <a href="/docs/zh/ollama">Ollama</a></p>
<p style="margin-top:48px">各个工具的指南:<a href="/docs/zh/claude-code-models">Claude Code 接入其他模型</a>、<a href="/docs/zh/codex-models">Codex 接入其他模型</a>、<a href="/docs/zh/gemini-cli-models">Gemini CLI 接入其他模型</a>、<a href="/docs/zh/opencode-models">OpenCode 接入其他模型</a>。遇到问题可以在 <a href="https://discord.gg/vGSnD3ZKQF">Discord</a> 提问。</p>
</article>
</main>
+1 -1
View File
@@ -274,7 +274,7 @@ magpie claude codex/gpt-5.5</pre></div>
</ul>
<p>各种路由方式见 <a href="/docs/zh/start#routing">快速上手</a>。</p>
<p><b>按供应商:</b><a href="/docs/zh/deepseek">DeepSeek</a> · <a href="/docs/zh/kimi">Kimi 与 Kimi Code</a> · <a href="/docs/zh/glm">GLM 编程套餐</a> · <a href="/docs/zh/volcengine">火山方舟</a> · <a href="/docs/zh/tencent-cloud">腾讯云</a> · <a href="/docs/zh/baidu-qianfan">百度千帆</a> · <a href="/docs/zh/qwen">通义千问</a> · <a href="/docs/zh/minimax">MiniMax</a> · <a href="/docs/zh/anthropic">Anthropic</a> · <a href="/docs/zh/openai">OpenAI</a> · <a href="/docs/zh/gemini">Gemini</a> · <a href="/docs/zh/grok">Grok</a> · <a href="/docs/zh/mistral">Mistral</a> · <a href="/docs/zh/openrouter">OpenRouter</a> · <a href="/docs/zh/copilot">GitHub Copilot</a> · <a href="/docs/zh/ollama">Ollama</a></p>
<p><b>按供应商:</b><a href="/docs/zh/deepseek">DeepSeek</a> · <a href="/docs/zh/kimi">Kimi 与 Kimi Code</a> · <a href="/docs/zh/glm">GLM 编程套餐</a> · <a href="/docs/zh/volcengine">火山方舟</a> · <a href="/docs/zh/tencent-cloud">腾讯云</a> · <a href="/docs/zh/baidu-qianfan">百度千帆</a> · <a href="/docs/zh/siliconflow">硅基流动</a> · <a href="/docs/zh/modelscope">魔搭</a> · <a href="/docs/zh/qwen">通义千问</a> · <a href="/docs/zh/minimax">MiniMax</a> · <a href="/docs/zh/anthropic">Anthropic</a> · <a href="/docs/zh/openai">OpenAI</a> · <a href="/docs/zh/gemini">Gemini</a> · <a href="/docs/zh/grok">Grok</a> · <a href="/docs/zh/mistral">Mistral</a> · <a href="/docs/zh/openrouter">OpenRouter</a> · <a href="/docs/zh/copilot">GitHub Copilot</a> · <a href="/docs/zh/ollama">Ollama</a></p>
<h2 id="faq"><a class="anchor" href="#faq">常见问题</a></h2>
<h3>需要自己设置 <code>ANTHROPIC_BASE_URL</code> 吗?</h3>
+1 -1
View File
@@ -274,7 +274,7 @@ magpie codex claude/…</pre></div>
</ul>
<p>各种路由方式见 <a href="/docs/zh/start#routing">快速上手</a>。</p>
<p><b>按供应商:</b><a href="/docs/zh/deepseek">DeepSeek</a> · <a href="/docs/zh/kimi">Kimi 与 Kimi Code</a> · <a href="/docs/zh/glm">GLM 编程套餐</a> · <a href="/docs/zh/volcengine">火山方舟</a> · <a href="/docs/zh/tencent-cloud">腾讯云</a> · <a href="/docs/zh/baidu-qianfan">百度千帆</a> · <a href="/docs/zh/qwen">通义千问</a> · <a href="/docs/zh/minimax">MiniMax</a> · <a href="/docs/zh/anthropic">Anthropic</a> · <a href="/docs/zh/openai">OpenAI</a> · <a href="/docs/zh/gemini">Gemini</a> · <a href="/docs/zh/grok">Grok</a> · <a href="/docs/zh/mistral">Mistral</a> · <a href="/docs/zh/openrouter">OpenRouter</a> · <a href="/docs/zh/copilot">GitHub Copilot</a> · <a href="/docs/zh/ollama">Ollama</a></p>
<p><b>按供应商:</b><a href="/docs/zh/deepseek">DeepSeek</a> · <a href="/docs/zh/kimi">Kimi 与 Kimi Code</a> · <a href="/docs/zh/glm">GLM 编程套餐</a> · <a href="/docs/zh/volcengine">火山方舟</a> · <a href="/docs/zh/tencent-cloud">腾讯云</a> · <a href="/docs/zh/baidu-qianfan">百度千帆</a> · <a href="/docs/zh/siliconflow">硅基流动</a> · <a href="/docs/zh/modelscope">魔搭</a> · <a href="/docs/zh/qwen">通义千问</a> · <a href="/docs/zh/minimax">MiniMax</a> · <a href="/docs/zh/anthropic">Anthropic</a> · <a href="/docs/zh/openai">OpenAI</a> · <a href="/docs/zh/gemini">Gemini</a> · <a href="/docs/zh/grok">Grok</a> · <a href="/docs/zh/mistral">Mistral</a> · <a href="/docs/zh/openrouter">OpenRouter</a> · <a href="/docs/zh/copilot">GitHub Copilot</a> · <a href="/docs/zh/ollama">Ollama</a></p>
<h2 id="faq"><a class="anchor" href="#faq">常见问题</a></h2>
<h3>需要自己写 <code>[model_providers]</code> 吗?</h3>
+1 -1
View File
@@ -258,7 +258,7 @@ magpie gemini model codex/gpt-5.5</pre></div>
</ul>
<p>路由方式和规则详见 <a href="/docs/zh/start#routing">快速上手</a>。</p>
<p><b>按供应商:</b><a href="/docs/zh/deepseek">DeepSeek</a> · <a href="/docs/zh/kimi">Kimi 与 Kimi Code</a> · <a href="/docs/zh/glm">GLM 编程套餐</a> · <a href="/docs/zh/volcengine">火山方舟</a> · <a href="/docs/zh/tencent-cloud">腾讯云</a> · <a href="/docs/zh/baidu-qianfan">百度千帆</a> · <a href="/docs/zh/qwen">通义千问</a> · <a href="/docs/zh/minimax">MiniMax</a> · <a href="/docs/zh/anthropic">Anthropic</a> · <a href="/docs/zh/openai">OpenAI</a> · <a href="/docs/zh/gemini">Gemini</a> · <a href="/docs/zh/grok">Grok</a> · <a href="/docs/zh/mistral">Mistral</a> · <a href="/docs/zh/openrouter">OpenRouter</a> · <a href="/docs/zh/copilot">GitHub Copilot</a> · <a href="/docs/zh/ollama">Ollama</a></p>
<p><b>按供应商:</b><a href="/docs/zh/deepseek">DeepSeek</a> · <a href="/docs/zh/kimi">Kimi 与 Kimi Code</a> · <a href="/docs/zh/glm">GLM 编程套餐</a> · <a href="/docs/zh/volcengine">火山方舟</a> · <a href="/docs/zh/tencent-cloud">腾讯云</a> · <a href="/docs/zh/baidu-qianfan">百度千帆</a> · <a href="/docs/zh/siliconflow">硅基流动</a> · <a href="/docs/zh/modelscope">魔搭</a> · <a href="/docs/zh/qwen">通义千问</a> · <a href="/docs/zh/minimax">MiniMax</a> · <a href="/docs/zh/anthropic">Anthropic</a> · <a href="/docs/zh/openai">OpenAI</a> · <a href="/docs/zh/gemini">Gemini</a> · <a href="/docs/zh/grok">Grok</a> · <a href="/docs/zh/mistral">Mistral</a> · <a href="/docs/zh/openrouter">OpenRouter</a> · <a href="/docs/zh/copilot">GitHub Copilot</a> · <a href="/docs/zh/ollama">Ollama</a></p>
<h2 id="faq"><a class="anchor" href="#faq">常见问题</a></h2>
<h3>Gemini CLI 能用 Gemini 以外的模型吗?</h3>
+1 -1
View File
@@ -333,7 +333,7 @@ magpie claude google-vertex/gemini-3.1-pro-preview</pre></div>
<h3>能用 Gemini Code Assist 或 Antigravity 的登录吗?</h3>
<p>能。两者都是订阅:运行 <code>magpie accounts add gemini</code> 或 <code>magpie accounts add antigravity</code>,然后选 <code>gemini/…</code> 或 <code>antigravity/…</code> 模型。Code Assist 需要有自己 Google Cloud 项目的 Standard 或 Enterprise 账号。</p>
<p><b>按供应商:</b><a href="/docs/zh/deepseek">DeepSeek</a> · <a href="/docs/zh/kimi">Kimi 与 Kimi Code</a> · <a href="/docs/zh/glm">GLM 编程套餐</a> · <a href="/docs/zh/volcengine">火山方舟</a> · <a href="/docs/zh/tencent-cloud">腾讯云</a> · <a href="/docs/zh/baidu-qianfan">百度千帆</a> · <a href="/docs/zh/qwen">通义千问</a> · <a href="/docs/zh/minimax">MiniMax</a> · <a href="/docs/zh/anthropic">Anthropic</a> · <a href="/docs/zh/openai">OpenAI</a> · <a href="/docs/zh/grok">Grok</a> · <a href="/docs/zh/mistral">Mistral</a> · <a href="/docs/zh/openrouter">OpenRouter</a> · <a href="/docs/zh/copilot">GitHub Copilot</a> · <a href="/docs/zh/ollama">Ollama</a></p>
<p><b>按供应商:</b><a href="/docs/zh/deepseek">DeepSeek</a> · <a href="/docs/zh/kimi">Kimi 与 Kimi Code</a> · <a href="/docs/zh/glm">GLM 编程套餐</a> · <a href="/docs/zh/volcengine">火山方舟</a> · <a href="/docs/zh/tencent-cloud">腾讯云</a> · <a href="/docs/zh/baidu-qianfan">百度千帆</a> · <a href="/docs/zh/siliconflow">硅基流动</a> · <a href="/docs/zh/modelscope">魔搭</a> · <a href="/docs/zh/qwen">通义千问</a> · <a href="/docs/zh/minimax">MiniMax</a> · <a href="/docs/zh/anthropic">Anthropic</a> · <a href="/docs/zh/openai">OpenAI</a> · <a href="/docs/zh/grok">Grok</a> · <a href="/docs/zh/mistral">Mistral</a> · <a href="/docs/zh/openrouter">OpenRouter</a> · <a href="/docs/zh/copilot">GitHub Copilot</a> · <a href="/docs/zh/ollama">Ollama</a></p>
<p style="margin-top:48px">各个工具的指南:<a href="/docs/zh/claude-code-models">Claude Code 接入其他模型</a>、<a href="/docs/zh/codex-models">Codex 接入其他模型</a>、<a href="/docs/zh/gemini-cli-models">Gemini CLI 接入其他模型</a>、<a href="/docs/zh/opencode-models">OpenCode 接入其他模型</a>。想让 Google 的 Antigravity 应用用其他模型,见 <a href="/docs/zh/antigravity">让 Antigravity 用任意模型</a>。遇到问题可以在 <a href="https://discord.gg/vGSnD3ZKQF">Discord</a> 提问。</p>
</article>
</main>
+1 -1
View File
@@ -306,7 +306,7 @@ magpie provider fallback xai deepseek/deepseek-v4-pro</pre></div>
<h3>magpie 能显示 xAI 的余额吗?</h3>
<p>不能。用量页会统计每次 Grok 调用的 token、缓存和费用,按 models.dev 的价格计价,但 magpie 不会从 xAI 读取余额。你可以用 <code>magpie provider key-balance</code> 自己填上余额,用量页会显示它减去 magpie 此后算出的费用。</p>
<p><b>按供应商:</b><a href="/docs/zh/deepseek">DeepSeek</a> · <a href="/docs/zh/kimi">Kimi 与 Kimi Code</a> · <a href="/docs/zh/glm">GLM 编程套餐</a> · <a href="/docs/zh/volcengine">火山方舟</a> · <a href="/docs/zh/tencent-cloud">腾讯云</a> · <a href="/docs/zh/baidu-qianfan">百度千帆</a> · <a href="/docs/zh/qwen">通义千问</a> · <a href="/docs/zh/minimax">MiniMax</a> · <a href="/docs/zh/anthropic">Anthropic</a> · <a href="/docs/zh/openai">OpenAI</a> · <a href="/docs/zh/gemini">Gemini</a> · <a href="/docs/zh/mistral">Mistral</a> · <a href="/docs/zh/openrouter">OpenRouter</a> · <a href="/docs/zh/copilot">GitHub Copilot</a> · <a href="/docs/zh/ollama">Ollama</a></p>
<p><b>按供应商:</b><a href="/docs/zh/deepseek">DeepSeek</a> · <a href="/docs/zh/kimi">Kimi 与 Kimi Code</a> · <a href="/docs/zh/glm">GLM 编程套餐</a> · <a href="/docs/zh/volcengine">火山方舟</a> · <a href="/docs/zh/tencent-cloud">腾讯云</a> · <a href="/docs/zh/baidu-qianfan">百度千帆</a> · <a href="/docs/zh/siliconflow">硅基流动</a> · <a href="/docs/zh/modelscope">魔搭</a> · <a href="/docs/zh/qwen">通义千问</a> · <a href="/docs/zh/minimax">MiniMax</a> · <a href="/docs/zh/anthropic">Anthropic</a> · <a href="/docs/zh/openai">OpenAI</a> · <a href="/docs/zh/gemini">Gemini</a> · <a href="/docs/zh/mistral">Mistral</a> · <a href="/docs/zh/openrouter">OpenRouter</a> · <a href="/docs/zh/copilot">GitHub Copilot</a> · <a href="/docs/zh/ollama">Ollama</a></p>
<p style="margin-top:48px">各个工具的指南:<a href="/docs/zh/claude-code-models">Claude Code 接入其他模型</a>、<a href="/docs/zh/codex-models">Codex 接入其他模型</a>、<a href="/docs/zh/gemini-cli-models">Gemini CLI 接入其他模型</a>、<a href="/docs/zh/opencode-models">OpenCode 接入其他模型</a>。遇到问题可以在 <a href="https://discord.gg/vGSnD3ZKQF">Discord</a> 提问。</p>
</article>
</main>
+1 -1
View File
@@ -299,7 +299,7 @@ magpie provider fallback mistral deepseek/deepseek-v4-pro</pre></div>
<h3>magpie 能显示 Le Chat 套餐的 Vibe 额度吗?</h3>
<p>能。Le Chat 套餐(Pro、Student 或 Team)的 Vibe Key 会显示本月 Vibe 额度用了多少、按 Mistral 计费的币种计、什么时候重置,以及套餐名称。在控制台创建的 Studio Key 则显示组织的 API 额度,名为 “API · Month”。</p>
<p><b>按供应商:</b><a href="/docs/zh/deepseek">DeepSeek</a> · <a href="/docs/zh/kimi">Kimi 与 Kimi Code</a> · <a href="/docs/zh/glm">GLM 编程套餐</a> · <a href="/docs/zh/volcengine">火山方舟</a> · <a href="/docs/zh/tencent-cloud">腾讯云</a> · <a href="/docs/zh/baidu-qianfan">百度千帆</a> · <a href="/docs/zh/qwen">通义千问</a> · <a href="/docs/zh/minimax">MiniMax</a> · <a href="/docs/zh/anthropic">Anthropic</a> · <a href="/docs/zh/openai">OpenAI</a> · <a href="/docs/zh/gemini">Gemini</a> · <a href="/docs/zh/grok">Grok</a> · <a href="/docs/zh/openrouter">OpenRouter</a> · <a href="/docs/zh/copilot">GitHub Copilot</a> · <a href="/docs/zh/ollama">Ollama</a></p>
<p><b>按供应商:</b><a href="/docs/zh/deepseek">DeepSeek</a> · <a href="/docs/zh/kimi">Kimi 与 Kimi Code</a> · <a href="/docs/zh/glm">GLM 编程套餐</a> · <a href="/docs/zh/volcengine">火山方舟</a> · <a href="/docs/zh/tencent-cloud">腾讯云</a> · <a href="/docs/zh/baidu-qianfan">百度千帆</a> · <a href="/docs/zh/siliconflow">硅基流动</a> · <a href="/docs/zh/modelscope">魔搭</a> · <a href="/docs/zh/qwen">通义千问</a> · <a href="/docs/zh/minimax">MiniMax</a> · <a href="/docs/zh/anthropic">Anthropic</a> · <a href="/docs/zh/openai">OpenAI</a> · <a href="/docs/zh/gemini">Gemini</a> · <a href="/docs/zh/grok">Grok</a> · <a href="/docs/zh/openrouter">OpenRouter</a> · <a href="/docs/zh/copilot">GitHub Copilot</a> · <a href="/docs/zh/ollama">Ollama</a></p>
<p style="margin-top:48px">各个工具的指南:<a href="/docs/zh/claude-code-models">Claude Code 接入其他模型</a>、<a href="/docs/zh/codex-models">Codex 接入其他模型</a>、<a href="/docs/zh/gemini-cli-models">Gemini CLI 接入其他模型</a>、<a href="/docs/zh/opencode-models">OpenCode 接入其他模型</a>。遇到问题可以在 <a href="https://discord.gg/vGSnD3ZKQF">Discord</a> 提问。</p>
</article>
</main>
+277
View File
@@ -0,0 +1,277 @@
<!doctype html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>魔搭 ModelScope API-Inference 接入 Claude Code、Codex、OpenCode:Qwen3 Coder、GLM 用在任意 Agent · magpie</title>
<meta name="description" content="在 magpie 里用魔搭(ModelScope)的访问令牌添加 API-Inference,让 Claude Code、Codex、Gemini CLI、OpenCode 用上魔搭的 Qwen3 Coder、Qwen3、GLM:接口地址、模型名的写法、和阿里云百炼 DashScope 的区别,以及用魔搭画图。">
<meta name="color-scheme" content="light dark">
<meta name="theme-color" content="#fafafa">
<script>
(() => {
let mode = "system";
try { mode = localStorage.getItem("theme") || "system"; } catch {}
const q = matchMedia("(prefers-color-scheme: dark)");
const apply = () => {
const t = mode === "system" ? (q.matches ? "dark" : "light") : mode;
document.documentElement.dataset.theme = t;
document.querySelector('meta[name="theme-color"]').content = t === "dark" ? "#0b0b0c" : "#fafafa";
document.querySelectorAll("button.theme").forEach((b) => { b.dataset.mode = mode; b.title = "Theme: " + mode; });
};
q.addEventListener("change", () => mode === "system" && apply());
window.setTheme = (m) => { mode = m; try { m === "system" ? localStorage.removeItem("theme") : localStorage.setItem("theme", m); } catch {} apply(); };
window.themeMode = () => mode;
apply();
})();
</script>
<script>try{if(/Linux/.test(navigator.userAgent)&&!/Android/.test(navigator.userAgent)||localStorage.getItem("omarchy")||/[?&]omarchy=/.test(location.search))document.write('<script src="/omarchy.js"><\/script>')}catch(e){}</script>
<link rel="icon" href="/favicon.png" type="image/png">
<link rel="apple-touch-icon" href="/img/icon-256.png">
<link rel="alternate" hreflang="en" href="https://usemagpie.ai/docs/modelscope">
<link rel="alternate" hreflang="zh" href="https://usemagpie.ai/docs/zh/modelscope">
<link rel="alternate" hreflang="ja" href="https://usemagpie.ai/docs/ja/modelscope">
<link rel="alternate" hreflang="x-default" href="https://usemagpie.ai/docs/modelscope">
<link rel="canonical" href="https://usemagpie.ai/docs/zh/modelscope">
<link rel="stylesheet" href="/docs.css">
<meta property="og:site_name" content="magpie">
<meta property="og:title" content="魔搭 ModelScope 接入 Claude Code 和 Codex">
<meta property="og:description" content="在 magpie 里用魔搭(ModelScope)的访问令牌添加 API-Inference,让 Claude Code、Codex、Gemini CLI、OpenCode 用上魔搭的 Qwen3 Coder、Qwen3、GLM:接口地址、模型名的写法、和阿里云百炼 DashScope 的区别,以及用魔搭画图。">
<meta property="og:image" content="https://usemagpie.ai/img/og.png">
<meta property="og:url" content="https://usemagpie.ai/docs/zh/modelscope">
<meta name="twitter:card" content="summary_large_image">
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@graph": [
{
"@type": "TechArticle",
"headline": "魔搭 ModelScope 接入 Claude Code 和 Codex",
"description": "在 magpie 里用魔搭(ModelScope)的访问令牌添加 API-Inference,让 Claude Code、Codex、Gemini CLI、OpenCode 用上魔搭的 Qwen3 Coder、Qwen3、GLM:接口地址、模型名的写法、和阿里云百炼 DashScope 的区别,以及用魔搭画图。",
"inLanguage": "zh-CN",
"url": "https://usemagpie.ai/docs/zh/modelscope",
"about": {
"@type": "SoftwareApplication",
"name": "magpie",
"applicationCategory": "DeveloperApplication",
"operatingSystem": "macOS, Windows, Linux"
},
"publisher": {
"@type": "Organization",
"name": "magpie",
"url": "https://usemagpie.ai/"
}
},
{
"@type": "FAQPage",
"mainEntity": [
{
"@type": "Question",
"name": "魔搭 ModelScope 怎么接入 Claude Code?",
"acceptedAnswer": {
"@type": "Answer",
"text": "在 magpie 里添加 ModelScope,把访问令牌当 Key 粘贴,在 Claude Code 那一行选 Qwen/Qwen3-Coder-30B-A3B-Instruct 这类模型,或运行 magpie claude modelscope/Qwen/Qwen3-Coder-30B-A3B-Instruct。魔搭没有 Anthropic 接口,magpie 把请求转换成 Chat Completions。"
}
},
{
"@type": "Question",
"name": "魔搭的 Key 在哪里拿?",
"acceptedAnswer": {
"@type": "Answer",
"text": "魔搭用 ModelScope 账号的访问令牌,在 modelscope.cn/my/myaccesstoken 创建,粘贴到 magpie 的 ModelScope 供应商里。"
}
},
{
"@type": "Question",
"name": "魔搭和阿里云百炼 DashScope 是一回事吗?",
"acceptedAnswer": {
"@type": "Answer",
"text": "不是。魔搭 API-Inference 在 api-inference.modelscope.cn,用 ModelScope 访问令牌;百炼 DashScope 用阿里云的 Key,在 magpie 里是通义千问供应商。"
}
},
{
"@type": "Question",
"name": "魔搭能在 Codex 里用吗?",
"acceptedAnswer": {
"@type": "Answer",
"text": "能。魔搭提供 Responses,magpie 把 Codex 的请求原样转过去。运行 magpie codex modelscope/ZhipuAI/GLM-4.6。"
}
}
]
},
{
"@type": "BreadcrumbList",
"itemListElement": [
{
"@type": "ListItem",
"position": 1,
"name": "magpie",
"item": "https://usemagpie.ai/zh/"
},
{
"@type": "ListItem",
"position": 2,
"name": "文档",
"item": "https://usemagpie.ai/docs/zh/start"
},
{
"@type": "ListItem",
"position": 3,
"name": "魔搭 ModelScope 接入 Claude Code 和 Codex",
"item": "https://usemagpie.ai/docs/zh/modelscope"
}
]
}
]
}
</script>
</head>
<body>
<nav><div class="wrap">
<a class="brand" href="/zh/"><img class="bird" src="/img/magpie-small.svg" alt="">magpie <small>文档</small></a>
<div class="links">
<a href="/zh/">首页</a>
<a href="/docs/zh/start">快速上手</a>
<a href="/docs/zh/intent">意图路由</a>
<a href="/docs/zh/plugins">插件开发</a>
<a class="toc-only" href="/docs/zh/remote">远程 magpie</a>
<a class="toc-only" href="/docs/zh/docker">Docker</a>
<a class="toc-only" href="/docs/zh/privacy">隐私</a>
<a class="toc-only" href="/docs/zh/masking">本地脱敏</a>
<a class="toc-only" href="/docs/zh/mcp-router">MCP 路由</a>
<a class="toc-only" href="/docs/zh/library">资源库</a>
<a class="toc-only" href="/docs/zh/claude-code-models">Claude Code 接入其他模型</a>
<a class="toc-only" href="/docs/zh/codex-models">Codex 接入其他模型</a>
<a class="toc-only" href="/docs/zh/gemini-cli-models">Gemini CLI 接入其他模型</a>
<a class="toc-only" href="/docs/zh/subscriptions">订阅用于任意 Agent</a>
<a class="toc-only" href="/docs/zh/local-models">本地模型</a>
<a class="toc-only" href="/docs/zh/opencode-models">OpenCode 接入其他模型</a>
<a class="toc-only" href="/docs/zh/alternatives">与 CC Switch、CCR 对比</a>
<a href="/docs/zh/import">Add to magpie</a>
<a href="/docs/zh/integrate">接入应用</a>
<a href="https://github.com/yetone/magpie-releases/releases">版本发布</a>
</div>
<div class="langs">
<button class="icon-btn lang" type="button" aria-label="语言" title="语言" aria-haspopup="true" aria-expanded="false" aria-controls="langs"><svg viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.4" aria-hidden="true"><circle cx="8" cy="8" r="6.25"/><path d="M1.75 8h12.5M8 1.75c1.7 1.75 2.55 3.83 2.55 6.25S9.7 12.5 8 14.25M8 1.75C6.3 3.5 5.45 5.58 5.45 8S6.3 12.5 8 14.25"/></svg></button>
<div class="lang-menu" id="langs" hidden>
<a href="/docs/modelscope" hreflang="en" lang="en">English</a>
<a href="/docs/zh/modelscope" hreflang="zh" lang="zh">中文</a>
<a href="/docs/ja/modelscope" hreflang="ja" lang="ja">日本語</a>
</div>
</div>
<a class="icon-btn" href="https://discord.gg/vGSnD3ZKQF" aria-label="magpie on Discord" title="Join us on Discord"><svg viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M20.317 4.3698a19.7913 19.7913 0 00-4.8851-1.5152.0741.0741 0 00-.0785.0371c-.211.3753-.4447.8648-.6083 1.2495-1.8447-.2762-3.68-.2762-5.4868 0-.1636-.3933-.4058-.8742-.6177-1.2495a.077.077 0 00-.0785-.037 19.7363 19.7363 0 00-4.8852 1.515.0699.0699 0 00-.0321.0277C.5334 9.0458-.319 13.5799.0992 18.0578a.0824.0824 0 00.0312.0561c2.0528 1.5076 4.0413 2.4228 5.9929 3.0294a.0777.0777 0 00.0842-.0276c.4616-.6304.8731-1.2952 1.226-1.9942a.076.076 0 00-.0416-.1057c-.6528-.2476-1.2743-.5495-1.8722-.8923a.077.077 0 01-.0076-.1277c.1258-.0943.2517-.1923.3718-.2914a.0743.0743 0 01.0776-.0105c3.9278 1.7933 8.18 1.7933 12.0614 0a.0739.0739 0 01.0785.0095c.1202.099.246.1981.3728.2924a.077.077 0 01-.0066.1276 12.2986 12.2986 0 01-1.873.8914.0766.0766 0 00-.0407.1067c.3604.698.7719 1.3628 1.225 1.9932a.076.076 0 00.0842.0286c1.961-.6067 3.9495-1.5219 6.0023-3.0294a.077.077 0 00.0313-.0552c.5004-5.177-.8382-9.6739-3.5485-13.6604a.061.061 0 00-.0312-.0286zM8.02 15.3312c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9555-2.4189 2.157-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.9555 2.4189-2.1569 2.4189zm7.9748 0c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9554-2.4189 2.1569-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.946 2.4189-2.1568 2.4189Z"/></svg></a>
<a class="icon-btn" href="https://github.com/yetone/magpie" aria-label="magpie on GitHub" title="Source on GitHub"><svg viewBox="0 0 16 16" fill="currentColor" aria-hidden="true"><path d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0 0 16 8c0-4.42-3.58-8-8-8Z"/></svg></a>
<button class="icon-btn theme" type="button" aria-label="Theme" title="Theme: system"><svg class="i-system" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5"><rect x="1.75" y="2.75" width="12.5" height="8.5" rx="1.5"/><path d="M5.5 14h5M8 11.25V14"/></svg><svg class="i-light" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"><circle cx="8" cy="8" r="3"/><path d="M8 1v1.5M8 13.5V15M1 8h1.5M13.5 8H15M3 3l1 1M12 12l1 1M3 13l1-1M12 4l1-1"/></svg><svg class="i-dark" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linejoin="round"><path d="M13.5 9.5A5.5 5.5 0 0 1 6.5 2.5a5.5 5.5 0 1 0 7 7Z"/></svg></button>
<a class="btn small" href="/#get">下载</a>
</div></nav>
<main class="wrap doc">
<aside class="toc">
<p>魔搭</p>
<a href="#overview">概览</a>
<a href="#add">添加魔搭</a>
<a href="#endpoint">接口与令牌</a>
<a href="#models">模型</a>
<a href="#agents">在各个工具里用</a>
<a href="#images">画图</a>
<a href="#faq">常见问题</a>
</aside>
<article>
<p class="eyebrow" id="overview">文档 · 供应商</p>
<h1>魔搭 ModelScope 接入 Claude Code 和 Codex</h1>
<p class="lede">魔搭(ModelScope)的 API-Inference 用 ModelScope 账号的访问令牌(Access Token)作 Key,提供 Qwen、GLM 等模型,接口是 Chat Completions 和 Responses。在 magpie 里添加魔搭,Claude Code、Codex、Gemini CLI、OpenCode 就都能通过本地网关 127.0.0.1:3425 用上这些模型。</p>
<h2 id="add"><a class="anchor" href="#add">添加魔搭</a></h2>
<ol class="steps">
<li><b>添加供应商</b>在 <span class="ui">供应商</span> 页点 <span class="ui">+ 添加供应商</span>,选 <span class="ui">ModelScope</span>,把 ModelScope 的访问令牌当 Key 粘贴 Key 并保存。</li>
<li><b>给工具选上</b>在 <span class="ui">Agent</span> 页给某个工具选 Qwen/Qwen3-Coder-30B-A3B-Instruct 这类模型。</li>
</ol>
<div class="code"><span class="lang">终端</span><button class="copy" data-copy="ms-cli">复制</button><pre id="ms-cli">magpie claude modelscope/Qwen/Qwen3-Coder-30B-A3B-Instruct
magpie codex modelscope/ZhipuAI/GLM-4.6
magpie opencode modelscope/Qwen/Qwen3-235B-A22B-Instruct-2507</pre></div>
<h2 id="endpoint"><a class="anchor" href="#endpoint">接口与令牌</a></h2>
<div class="table-wrap"><table>
<tr><th>接口</th><th>地址</th></tr>
<tr><td>Chat Completions</td><td><code>https://api-inference.modelscope.cn/v1</code></td></tr>
<tr><td>Responses</td><td><code>https://api-inference.modelscope.cn/v1</code></td></tr>
</table></div>
<p>Key 是 ModelScope 账号的访问令牌,在 modelscope.cn/my/myaccesstoken 创建。魔搭不是阿里云百炼的 DashScope:百炼的 Key 用在 <a href="/docs/zh/qwen">通义千问</a> 供应商里,两者互不通用。手动添加、地址是 api-inference.modelscope.cn 的供应商,magpie 也认作魔搭。</p>
<h2 id="models"><a class="anchor" href="#models">模型</a></h2>
<p>魔搭的模型名带组织前缀,原样写:Qwen/Qwen3-Coder-30B-A3B-Instruct、Qwen/Qwen3-235B-A22B-Instruct-2507、Qwen/Qwen3-235B-A22B-Thinking-2507、ZhipuAI/GLM-4.6、ZhipuAI/GLM-4.5 等。magpie 用 models.dev 的 modelscope 目录给出名字和上下文长度。命令行里写成 <code>modelscope/</code> 加模型名。</p>
<h2 id="agents"><a class="anchor" href="#agents">在各个工具里用</a></h2>
<ul>
<li><b>Claude Code</b> 说的是 Anthropic Messages,这家不提供这个接口。magpie 把每个请求转换成 Chat Completions,再把回复转换回来,思考内容也会显示在 Claude Code 里。<a href="/docs/zh/claude-code-models">Claude Code 接入国产模型</a>。</li>
<li><b>Codex</b> 说的是 OpenAI Responses。这家也提供 Responses,Codex 的请求原样转过去。<a href="/docs/zh/codex-models">Codex 接入第三方模型</a>。</li>
<li><b>Gemini CLI</b> 说 Gemini 的接口,magpie 转换成 Chat Completions。<a href="/docs/zh/gemini-cli-models">Gemini CLI 接入其他模型</a>。</li>
<li><b>OpenCode</b> 说 Chat Completions,请求原样发过去。<a href="/docs/zh/opencode-models">OpenCode 接入其他模型</a>。</li>
</ul>
<h2 id="images"><a class="anchor" href="#images">画图</a></h2>
<p>魔搭的画图接口是它自己的异步任务:先提交任务拿到 task_id,再查询到成功或失败。它每个用户同时只跑一个任务,突发请求会回 429,所以 magpie 一次只画一张,忙的时候稍等再试,再把结果变成工具能读的图片。</p>
<h2 id="faq"><a class="anchor" href="#faq">常见问题</a></h2>
<h3>魔搭 ModelScope 怎么接入 Claude Code?</h3>
<p>在 magpie 里添加 ModelScope,把访问令牌当 Key 粘贴,在 Claude Code 那一行选 Qwen/Qwen3-Coder-30B-A3B-Instruct 这类模型,或运行 magpie claude modelscope/Qwen/Qwen3-Coder-30B-A3B-Instruct。魔搭没有 Anthropic 接口,magpie 把请求转换成 Chat Completions。</p>
<h3>魔搭的 Key 在哪里拿?</h3>
<p>魔搭用 ModelScope 账号的访问令牌,在 modelscope.cn/my/myaccesstoken 创建,粘贴到 magpie 的 ModelScope 供应商里。</p>
<h3>魔搭和阿里云百炼 DashScope 是一回事吗?</h3>
<p>不是。魔搭 API-Inference 在 api-inference.modelscope.cn,用 ModelScope 访问令牌;百炼 DashScope 用阿里云的 Key,在 magpie 里是通义千问供应商。</p>
<h3>魔搭能在 Codex 里用吗?</h3>
<p>能。魔搭提供 Responses,magpie 把 Codex 的请求原样转过去。运行 magpie codex modelscope/ZhipuAI/GLM-4.6。</p>
<p style="margin-top:48px">同一套方法用在其他国产模型:<a href="/docs/zh/siliconflow">硅基流动</a>、<a href="/docs/zh/volcengine">火山方舟</a>、<a href="/docs/zh/glm">GLM 编程套餐</a>、<a href="/docs/zh/kimi">Kimi</a>、<a href="/docs/zh/deepseek">DeepSeek</a>、<a href="/docs/zh/qwen">通义千问</a>。遇到报错?见 <a href="/docs/zh/troubleshooting">常见错误排查</a>,或到 <a href="https://discord.gg/vGSnD3ZKQF">Discord</a> 提问。</p>
</article>
</main>
<footer><div class="wrap">
<span>© 2026 magpie · MIT</span>
<div class="links">
<a href="/zh/">首页</a>
<a href="/docs/zh/intent">意图路由</a>
<a href="/docs/zh/plugins">插件开发</a>
<a href="/docs/zh/remote">远程 magpie</a>
<a href="/docs/zh/docker">Docker</a>
<a href="/docs/zh/privacy">隐私</a>
<a href="/docs/zh/masking">本地脱敏</a>
<a href="/docs/zh/mcp-router">MCP 路由</a>
<a href="/docs/zh/library">资源库</a>
<a href="/docs/zh/claude-code-models">Claude Code 接入其他模型</a>
<a href="/docs/zh/codex-models">Codex 接入其他模型</a>
<a href="/docs/zh/gemini-cli-models">Gemini CLI 接入其他模型</a>
<a href="/docs/zh/subscriptions">订阅用于任意 Agent</a>
<a href="/docs/zh/local-models">本地模型</a>
<a href="/docs/zh/opencode-models">OpenCode 接入其他模型</a>
<a href="/docs/zh/alternatives">与 CC Switch、CCR 对比</a>
<a href="/docs/zh/import">Add to magpie</a>
<a href="/docs/zh/integrate">接入应用</a>
<a href="https://github.com/yetone/magpie">GitHub</a>
<a href="https://discord.gg/vGSnD3ZKQF">Discord</a>
<a href="/docs/zh/contributors">贡献墙</a>
<a href="https://github.com/yetone/magpie-releases/releases">版本发布</a>
</div>
</div></footer>
<script>
(() => {
const next = { system: "light", light: "dark", dark: "system" };
document.querySelectorAll("button.theme").forEach((b) => {
b.dataset.mode = themeMode();
b.title = "Theme: " + themeMode();
b.addEventListener("click", () => setTheme(next[themeMode()]));
});
document.querySelectorAll(".copy").forEach((b) => b.addEventListener("click", async () => {
try {
await navigator.clipboard.writeText(document.getElementById(b.dataset.copy).textContent);
b.textContent = "已复制"; setTimeout(() => (b.textContent = "复制"), 1400);
} catch {}
}));
})();
</script>
<script src="/docs.js"></script>
</body>
</html>
+1 -1
View File
@@ -345,7 +345,7 @@ magpie provider fallback ollama-cloud ollama/qwen3</pre></div>
<p>不需要,Ollama 预设不用 Key。Ollama Cloud 需要。</p>
<p>LM Studio、oMLX、vLLM、llama.cpp 等其他本地服务见 <a href="/docs/zh/local-models">本地模型</a>。想让本地模型给每个请求分类、决定路由,见 <a href="/docs/zh/intent">意图路由</a>。</p>
<p><b>按供应商:</b><a href="/docs/zh/deepseek">DeepSeek</a> · <a href="/docs/zh/kimi">Kimi 与 Kimi Code</a> · <a href="/docs/zh/glm">GLM 编程套餐</a> · <a href="/docs/zh/volcengine">火山方舟</a> · <a href="/docs/zh/tencent-cloud">腾讯云</a> · <a href="/docs/zh/baidu-qianfan">百度千帆</a> · <a href="/docs/zh/qwen">通义千问</a> · <a href="/docs/zh/minimax">MiniMax</a> · <a href="/docs/zh/anthropic">Anthropic</a> · <a href="/docs/zh/openai">OpenAI</a> · <a href="/docs/zh/gemini">Gemini</a> · <a href="/docs/zh/grok">Grok</a> · <a href="/docs/zh/mistral">Mistral</a> · <a href="/docs/zh/openrouter">OpenRouter</a> · <a href="/docs/zh/copilot">GitHub Copilot</a></p>
<p><b>按供应商:</b><a href="/docs/zh/deepseek">DeepSeek</a> · <a href="/docs/zh/kimi">Kimi 与 Kimi Code</a> · <a href="/docs/zh/glm">GLM 编程套餐</a> · <a href="/docs/zh/volcengine">火山方舟</a> · <a href="/docs/zh/tencent-cloud">腾讯云</a> · <a href="/docs/zh/baidu-qianfan">百度千帆</a> · <a href="/docs/zh/siliconflow">硅基流动</a> · <a href="/docs/zh/modelscope">魔搭</a> · <a href="/docs/zh/qwen">通义千问</a> · <a href="/docs/zh/minimax">MiniMax</a> · <a href="/docs/zh/anthropic">Anthropic</a> · <a href="/docs/zh/openai">OpenAI</a> · <a href="/docs/zh/gemini">Gemini</a> · <a href="/docs/zh/grok">Grok</a> · <a href="/docs/zh/mistral">Mistral</a> · <a href="/docs/zh/openrouter">OpenRouter</a> · <a href="/docs/zh/copilot">GitHub Copilot</a></p>
<p style="margin-top:48px">各个工具的指南:<a href="/docs/zh/claude-code-models">Claude Code 接入其他模型</a>、<a href="/docs/zh/codex-models">Codex 接入其他模型</a>、<a href="/docs/zh/gemini-cli-models">Gemini CLI 接入其他模型</a>、<a href="/docs/zh/opencode-models">OpenCode 接入其他模型</a>。遇到问题可以在 <a href="https://discord.gg/vGSnD3ZKQF">Discord</a> 提问。</p>
</article>
</main>
+1 -1
View File
@@ -316,7 +316,7 @@ magpie provider fallback openai deepseek/deepseek-v4-pro</pre></div>
<h3>magpie 支持 Azure OpenAI 吗?</h3>
<p>支持,它是单独的供应商 Azure OpenAI。填上资源地址和 Key;magpie 使用 <code>/openai/v1</code> 下的 v1 接口,把 Key 放在 <code>api-key</code> 请求头里,并把资源里的部署列为模型。</p>
<p><b>按供应商:</b><a href="/docs/zh/deepseek">DeepSeek</a> · <a href="/docs/zh/kimi">Kimi 与 Kimi Code</a> · <a href="/docs/zh/glm">GLM 编程套餐</a> · <a href="/docs/zh/volcengine">火山方舟</a> · <a href="/docs/zh/tencent-cloud">腾讯云</a> · <a href="/docs/zh/baidu-qianfan">百度千帆</a> · <a href="/docs/zh/qwen">通义千问</a> · <a href="/docs/zh/minimax">MiniMax</a> · <a href="/docs/zh/anthropic">Anthropic</a> · <a href="/docs/zh/gemini">Gemini</a> · <a href="/docs/zh/grok">Grok</a> · <a href="/docs/zh/mistral">Mistral</a> · <a href="/docs/zh/openrouter">OpenRouter</a> · <a href="/docs/zh/copilot">GitHub Copilot</a> · <a href="/docs/zh/ollama">Ollama</a></p>
<p><b>按供应商:</b><a href="/docs/zh/deepseek">DeepSeek</a> · <a href="/docs/zh/kimi">Kimi 与 Kimi Code</a> · <a href="/docs/zh/glm">GLM 编程套餐</a> · <a href="/docs/zh/volcengine">火山方舟</a> · <a href="/docs/zh/tencent-cloud">腾讯云</a> · <a href="/docs/zh/baidu-qianfan">百度千帆</a> · <a href="/docs/zh/siliconflow">硅基流动</a> · <a href="/docs/zh/modelscope">魔搭</a> · <a href="/docs/zh/qwen">通义千问</a> · <a href="/docs/zh/minimax">MiniMax</a> · <a href="/docs/zh/anthropic">Anthropic</a> · <a href="/docs/zh/gemini">Gemini</a> · <a href="/docs/zh/grok">Grok</a> · <a href="/docs/zh/mistral">Mistral</a> · <a href="/docs/zh/openrouter">OpenRouter</a> · <a href="/docs/zh/copilot">GitHub Copilot</a> · <a href="/docs/zh/ollama">Ollama</a></p>
<p style="margin-top:48px">各个工具的指南:<a href="/docs/zh/claude-code-models">Claude Code 接入其他模型</a>、<a href="/docs/zh/codex-models">Codex 接入其他模型</a>、<a href="/docs/zh/gemini-cli-models">Gemini CLI 接入其他模型</a>、<a href="/docs/zh/opencode-models">OpenCode 接入其他模型</a>。遇到问题可以在 <a href="https://discord.gg/vGSnD3ZKQF">Discord</a> 提问。</p>
</article>
</main>
+1 -1
View File
@@ -262,7 +262,7 @@ magpie visible opencode all # 恢复显示全部</pre></div>
<div class="code"><span class="lang">终端</span><button class="copy" data-copy="ex-oc-back">复制</button><pre id="ex-oc-back">magpie opencode default</pre></div>
<p>它会恢复接入 magpie 之前的 <code>model</code> 和 <code>small_model</code>,并把 <code>magpie</code> 供应商从文件里删掉。</p>
<p><b>按供应商:</b><a href="/docs/zh/deepseek">DeepSeek</a> · <a href="/docs/zh/kimi">Kimi 与 Kimi Code</a> · <a href="/docs/zh/glm">GLM 编程套餐</a> · <a href="/docs/zh/volcengine">火山方舟</a> · <a href="/docs/zh/tencent-cloud">腾讯云</a> · <a href="/docs/zh/baidu-qianfan">百度千帆</a> · <a href="/docs/zh/qwen">通义千问</a> · <a href="/docs/zh/minimax">MiniMax</a> · <a href="/docs/zh/anthropic">Anthropic</a> · <a href="/docs/zh/openai">OpenAI</a> · <a href="/docs/zh/gemini">Gemini</a> · <a href="/docs/zh/grok">Grok</a> · <a href="/docs/zh/mistral">Mistral</a> · <a href="/docs/zh/openrouter">OpenRouter</a> · <a href="/docs/zh/copilot">GitHub Copilot</a> · <a href="/docs/zh/ollama">Ollama</a></p>
<p><b>按供应商:</b><a href="/docs/zh/deepseek">DeepSeek</a> · <a href="/docs/zh/kimi">Kimi 与 Kimi Code</a> · <a href="/docs/zh/glm">GLM 编程套餐</a> · <a href="/docs/zh/volcengine">火山方舟</a> · <a href="/docs/zh/tencent-cloud">腾讯云</a> · <a href="/docs/zh/baidu-qianfan">百度千帆</a> · <a href="/docs/zh/siliconflow">硅基流动</a> · <a href="/docs/zh/modelscope">魔搭</a> · <a href="/docs/zh/qwen">通义千问</a> · <a href="/docs/zh/minimax">MiniMax</a> · <a href="/docs/zh/anthropic">Anthropic</a> · <a href="/docs/zh/openai">OpenAI</a> · <a href="/docs/zh/gemini">Gemini</a> · <a href="/docs/zh/grok">Grok</a> · <a href="/docs/zh/mistral">Mistral</a> · <a href="/docs/zh/openrouter">OpenRouter</a> · <a href="/docs/zh/copilot">GitHub Copilot</a> · <a href="/docs/zh/ollama">Ollama</a></p>
<h2 id="faq"><a class="anchor" href="#faq">常见问题</a></h2>
<h3>OpenCode 怎么用 DeepSeek?</h3>
+1 -1
View File
@@ -311,7 +311,7 @@ magpie group set opus-anywhere stays=session models+=openrouter/anthropic/claude
<h3>为什么 magpie 从 /api/v1 拉取 OpenRouter 的模型列表?</h3>
<p>在 Anthropic 地址上拉列表,OpenRouter 返回的是挂在 <code>anthropic/</code> 前缀下的目录,里面的 id 它并不提供服务。magpie 从 Chat Completions 地址 <code>https://openrouter.ai/api/v1</code> 拉列表;只填了 OpenRouter Anthropic 地址的供应商,会提示你补上这个 Chat 地址。</p>
<p><b>按供应商:</b><a href="/docs/zh/deepseek">DeepSeek</a> · <a href="/docs/zh/kimi">Kimi 与 Kimi Code</a> · <a href="/docs/zh/glm">GLM 编程套餐</a> · <a href="/docs/zh/volcengine">火山方舟</a> · <a href="/docs/zh/tencent-cloud">腾讯云</a> · <a href="/docs/zh/baidu-qianfan">百度千帆</a> · <a href="/docs/zh/qwen">通义千问</a> · <a href="/docs/zh/minimax">MiniMax</a> · <a href="/docs/zh/anthropic">Anthropic</a> · <a href="/docs/zh/openai">OpenAI</a> · <a href="/docs/zh/gemini">Gemini</a> · <a href="/docs/zh/grok">Grok</a> · <a href="/docs/zh/mistral">Mistral</a> · <a href="/docs/zh/copilot">GitHub Copilot</a> · <a href="/docs/zh/ollama">Ollama</a></p>
<p><b>按供应商:</b><a href="/docs/zh/deepseek">DeepSeek</a> · <a href="/docs/zh/kimi">Kimi 与 Kimi Code</a> · <a href="/docs/zh/glm">GLM 编程套餐</a> · <a href="/docs/zh/volcengine">火山方舟</a> · <a href="/docs/zh/tencent-cloud">腾讯云</a> · <a href="/docs/zh/baidu-qianfan">百度千帆</a> · <a href="/docs/zh/siliconflow">硅基流动</a> · <a href="/docs/zh/modelscope">魔搭</a> · <a href="/docs/zh/qwen">通义千问</a> · <a href="/docs/zh/minimax">MiniMax</a> · <a href="/docs/zh/anthropic">Anthropic</a> · <a href="/docs/zh/openai">OpenAI</a> · <a href="/docs/zh/gemini">Gemini</a> · <a href="/docs/zh/grok">Grok</a> · <a href="/docs/zh/mistral">Mistral</a> · <a href="/docs/zh/copilot">GitHub Copilot</a> · <a href="/docs/zh/ollama">Ollama</a></p>
<p style="margin-top:48px">各个工具的指南:<a href="/docs/zh/claude-code-models">Claude Code 接入其他模型</a>、<a href="/docs/zh/codex-models">Codex 接入其他模型</a>、<a href="/docs/zh/gemini-cli-models">Gemini CLI 接入其他模型</a>、<a href="/docs/zh/opencode-models">OpenCode 接入其他模型</a>。遇到问题可以在 <a href="https://discord.gg/vGSnD3ZKQF">Discord</a> 提问。</p>
</article>
</main>
+277
View File
@@ -0,0 +1,277 @@
<!doctype html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>硅基流动 SiliconFlow 接入 Claude Code、Codex、OpenCode:DeepSeek、GLM、Kimi、Qwen 用在任意 Agent · magpie</title>
<meta name="description" content="在 magpie 里添加硅基流动(SiliconFlow)的 API Key,让 Claude Code、Codex、Gemini CLI、OpenCode 用上 DeepSeek V4、GLM-5.3、Kimi K3、Qwen3 Coder:国内站和国际站的接口、模型名的写法、Anthropic 和 Responses 的转换,以及余额去哪里看。">
<meta name="color-scheme" content="light dark">
<meta name="theme-color" content="#fafafa">
<script>
(() => {
let mode = "system";
try { mode = localStorage.getItem("theme") || "system"; } catch {}
const q = matchMedia("(prefers-color-scheme: dark)");
const apply = () => {
const t = mode === "system" ? (q.matches ? "dark" : "light") : mode;
document.documentElement.dataset.theme = t;
document.querySelector('meta[name="theme-color"]').content = t === "dark" ? "#0b0b0c" : "#fafafa";
document.querySelectorAll("button.theme").forEach((b) => { b.dataset.mode = mode; b.title = "Theme: " + mode; });
};
q.addEventListener("change", () => mode === "system" && apply());
window.setTheme = (m) => { mode = m; try { m === "system" ? localStorage.removeItem("theme") : localStorage.setItem("theme", m); } catch {} apply(); };
window.themeMode = () => mode;
apply();
})();
</script>
<script>try{if(/Linux/.test(navigator.userAgent)&&!/Android/.test(navigator.userAgent)||localStorage.getItem("omarchy")||/[?&]omarchy=/.test(location.search))document.write('<script src="/omarchy.js"><\/script>')}catch(e){}</script>
<link rel="icon" href="/favicon.png" type="image/png">
<link rel="apple-touch-icon" href="/img/icon-256.png">
<link rel="alternate" hreflang="en" href="https://usemagpie.ai/docs/siliconflow">
<link rel="alternate" hreflang="zh" href="https://usemagpie.ai/docs/zh/siliconflow">
<link rel="alternate" hreflang="ja" href="https://usemagpie.ai/docs/ja/siliconflow">
<link rel="alternate" hreflang="x-default" href="https://usemagpie.ai/docs/siliconflow">
<link rel="canonical" href="https://usemagpie.ai/docs/zh/siliconflow">
<link rel="stylesheet" href="/docs.css">
<meta property="og:site_name" content="magpie">
<meta property="og:title" content="硅基流动接入 Claude Code 和 Codex">
<meta property="og:description" content="在 magpie 里添加硅基流动(SiliconFlow)的 API Key,让 Claude Code、Codex、Gemini CLI、OpenCode 用上 DeepSeek V4、GLM-5.3、Kimi K3、Qwen3 Coder:国内站和国际站的接口、模型名的写法、Anthropic 和 Responses 的转换,以及余额去哪里看。">
<meta property="og:image" content="https://usemagpie.ai/img/og.png">
<meta property="og:url" content="https://usemagpie.ai/docs/zh/siliconflow">
<meta name="twitter:card" content="summary_large_image">
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@graph": [
{
"@type": "TechArticle",
"headline": "硅基流动接入 Claude Code 和 Codex",
"description": "在 magpie 里添加硅基流动(SiliconFlow)的 API Key,让 Claude Code、Codex、Gemini CLI、OpenCode 用上 DeepSeek V4、GLM-5.3、Kimi K3、Qwen3 Coder:国内站和国际站的接口、模型名的写法、Anthropic 和 Responses 的转换,以及余额去哪里看。",
"inLanguage": "zh-CN",
"url": "https://usemagpie.ai/docs/zh/siliconflow",
"about": {
"@type": "SoftwareApplication",
"name": "magpie",
"applicationCategory": "DeveloperApplication",
"operatingSystem": "macOS, Windows, Linux"
},
"publisher": {
"@type": "Organization",
"name": "magpie",
"url": "https://usemagpie.ai/"
}
},
{
"@type": "FAQPage",
"mainEntity": [
{
"@type": "Question",
"name": "硅基流动怎么接入 Claude Code?",
"acceptedAnswer": {
"@type": "Answer",
"text": "在 magpie 里添加 SiliconFlow 并粘贴 Key,在 Claude Code 那一行选 deepseek-ai/DeepSeek-V4-Pro 这类模型,或运行 magpie claude siliconflow/deepseek-ai/DeepSeek-V4-Pro。硅基流动没有 Anthropic 接口,magpie 把 Claude Code 的请求转换成 Chat Completions。"
}
},
{
"@type": "Question",
"name": "硅基流动能在 Codex 里用吗?",
"acceptedAnswer": {
"@type": "Answer",
"text": "能。硅基流动只有 Chat Completions,magpie 把 Codex 的 Responses 请求转换过去,apply_patch 等自定义工具也照常能用。运行 magpie codex siliconflow/zai-org/GLM-5.3。"
}
},
{
"@type": "Question",
"name": "国内站的 Key 能用在国际站吗?",
"acceptedAnswer": {
"@type": "Answer",
"text": "不能。国际站 cloud.siliconflow.com 是另一个账号,Key 和余额都分开。在 magpie 里给每个 Key 选对 China 或 Global 即可。"
}
},
{
"@type": "Question",
"name": "magpie 为什么不显示硅基流动的余额?",
"acceptedAnswer": {
"@type": "Answer",
"text": "硅基流动在 2026-08-14 停掉了余额查询接口,还没有新的接口。magpie 的卡片会带你去控制台看余额和代金券。"
}
}
]
},
{
"@type": "BreadcrumbList",
"itemListElement": [
{
"@type": "ListItem",
"position": 1,
"name": "magpie",
"item": "https://usemagpie.ai/zh/"
},
{
"@type": "ListItem",
"position": 2,
"name": "文档",
"item": "https://usemagpie.ai/docs/zh/start"
},
{
"@type": "ListItem",
"position": 3,
"name": "硅基流动接入 Claude Code 和 Codex",
"item": "https://usemagpie.ai/docs/zh/siliconflow"
}
]
}
]
}
</script>
</head>
<body>
<nav><div class="wrap">
<a class="brand" href="/zh/"><img class="bird" src="/img/magpie-small.svg" alt="">magpie <small>文档</small></a>
<div class="links">
<a href="/zh/">首页</a>
<a href="/docs/zh/start">快速上手</a>
<a href="/docs/zh/intent">意图路由</a>
<a href="/docs/zh/plugins">插件开发</a>
<a class="toc-only" href="/docs/zh/remote">远程 magpie</a>
<a class="toc-only" href="/docs/zh/docker">Docker</a>
<a class="toc-only" href="/docs/zh/privacy">隐私</a>
<a class="toc-only" href="/docs/zh/masking">本地脱敏</a>
<a class="toc-only" href="/docs/zh/mcp-router">MCP 路由</a>
<a class="toc-only" href="/docs/zh/library">资源库</a>
<a class="toc-only" href="/docs/zh/claude-code-models">Claude Code 接入其他模型</a>
<a class="toc-only" href="/docs/zh/codex-models">Codex 接入其他模型</a>
<a class="toc-only" href="/docs/zh/gemini-cli-models">Gemini CLI 接入其他模型</a>
<a class="toc-only" href="/docs/zh/subscriptions">订阅用于任意 Agent</a>
<a class="toc-only" href="/docs/zh/local-models">本地模型</a>
<a class="toc-only" href="/docs/zh/opencode-models">OpenCode 接入其他模型</a>
<a class="toc-only" href="/docs/zh/alternatives">与 CC Switch、CCR 对比</a>
<a href="/docs/zh/import">Add to magpie</a>
<a href="/docs/zh/integrate">接入应用</a>
<a href="https://github.com/yetone/magpie-releases/releases">版本发布</a>
</div>
<div class="langs">
<button class="icon-btn lang" type="button" aria-label="语言" title="语言" aria-haspopup="true" aria-expanded="false" aria-controls="langs"><svg viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.4" aria-hidden="true"><circle cx="8" cy="8" r="6.25"/><path d="M1.75 8h12.5M8 1.75c1.7 1.75 2.55 3.83 2.55 6.25S9.7 12.5 8 14.25M8 1.75C6.3 3.5 5.45 5.58 5.45 8S6.3 12.5 8 14.25"/></svg></button>
<div class="lang-menu" id="langs" hidden>
<a href="/docs/siliconflow" hreflang="en" lang="en">English</a>
<a href="/docs/zh/siliconflow" hreflang="zh" lang="zh">中文</a>
<a href="/docs/ja/siliconflow" hreflang="ja" lang="ja">日本語</a>
</div>
</div>
<a class="icon-btn" href="https://discord.gg/vGSnD3ZKQF" aria-label="magpie on Discord" title="Join us on Discord"><svg viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M20.317 4.3698a19.7913 19.7913 0 00-4.8851-1.5152.0741.0741 0 00-.0785.0371c-.211.3753-.4447.8648-.6083 1.2495-1.8447-.2762-3.68-.2762-5.4868 0-.1636-.3933-.4058-.8742-.6177-1.2495a.077.077 0 00-.0785-.037 19.7363 19.7363 0 00-4.8852 1.515.0699.0699 0 00-.0321.0277C.5334 9.0458-.319 13.5799.0992 18.0578a.0824.0824 0 00.0312.0561c2.0528 1.5076 4.0413 2.4228 5.9929 3.0294a.0777.0777 0 00.0842-.0276c.4616-.6304.8731-1.2952 1.226-1.9942a.076.076 0 00-.0416-.1057c-.6528-.2476-1.2743-.5495-1.8722-.8923a.077.077 0 01-.0076-.1277c.1258-.0943.2517-.1923.3718-.2914a.0743.0743 0 01.0776-.0105c3.9278 1.7933 8.18 1.7933 12.0614 0a.0739.0739 0 01.0785.0095c.1202.099.246.1981.3728.2924a.077.077 0 01-.0066.1276 12.2986 12.2986 0 01-1.873.8914.0766.0766 0 00-.0407.1067c.3604.698.7719 1.3628 1.225 1.9932a.076.076 0 00.0842.0286c1.961-.6067 3.9495-1.5219 6.0023-3.0294a.077.077 0 00.0313-.0552c.5004-5.177-.8382-9.6739-3.5485-13.6604a.061.061 0 00-.0312-.0286zM8.02 15.3312c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9555-2.4189 2.157-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.9555 2.4189-2.1569 2.4189zm7.9748 0c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9554-2.4189 2.1569-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.946 2.4189-2.1568 2.4189Z"/></svg></a>
<a class="icon-btn" href="https://github.com/yetone/magpie" aria-label="magpie on GitHub" title="Source on GitHub"><svg viewBox="0 0 16 16" fill="currentColor" aria-hidden="true"><path d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0 0 16 8c0-4.42-3.58-8-8-8Z"/></svg></a>
<button class="icon-btn theme" type="button" aria-label="Theme" title="Theme: system"><svg class="i-system" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5"><rect x="1.75" y="2.75" width="12.5" height="8.5" rx="1.5"/><path d="M5.5 14h5M8 11.25V14"/></svg><svg class="i-light" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"><circle cx="8" cy="8" r="3"/><path d="M8 1v1.5M8 13.5V15M1 8h1.5M13.5 8H15M3 3l1 1M12 12l1 1M3 13l1-1M12 4l1-1"/></svg><svg class="i-dark" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linejoin="round"><path d="M13.5 9.5A5.5 5.5 0 0 1 6.5 2.5a5.5 5.5 0 1 0 7 7Z"/></svg></button>
<a class="btn small" href="/#get">下载</a>
</div></nav>
<main class="wrap doc">
<aside class="toc">
<p>硅基流动</p>
<a href="#overview">概览</a>
<a href="#add">添加硅基流动</a>
<a href="#sites">国内站与国际站</a>
<a href="#models">模型</a>
<a href="#agents">在各个工具里用</a>
<a href="#balance">余额</a>
<a href="#faq">常见问题</a>
</aside>
<article>
<p class="eyebrow" id="overview">文档 · 供应商</p>
<h1>硅基流动接入 Claude Code 和 Codex</h1>
<p class="lede">硅基流动(SiliconFlow)用一个 API Key 提供 DeepSeek、GLM、Kimi、Qwen 等开源模型,接口是 OpenAI 的 Chat Completions。Claude Code 要 Anthropic Messages,Codex 要 Responses,硅基流动都不提供;magpie 的本地网关 127.0.0.1:3425 在中间做转换,所以这些工具都能直接用硅基流动的模型。</p>
<h2 id="add"><a class="anchor" href="#add">添加硅基流动</a></h2>
<ol class="steps">
<li><b>添加供应商</b>在 <span class="ui">供应商</span> 页点 <span class="ui">+ 添加供应商</span>,选 <span class="ui">SiliconFlow</span>,给 Key 选 <span class="ui">China</span> 或 <span class="ui">Global</span>,粘贴 Key 并保存。</li>
<li><b>给工具选上</b>在 <span class="ui">Agent</span> 页给某个工具选 deepseek-ai/DeepSeek-V4-Pro 这类模型。</li>
</ol>
<div class="code"><span class="lang">终端</span><button class="copy" data-copy="sf-cli">复制</button><pre id="sf-cli">magpie claude siliconflow/deepseek-ai/DeepSeek-V4-Pro
magpie codex siliconflow/zai-org/GLM-5.3
magpie opencode siliconflow/moonshotai/Kimi-K3</pre></div>
<h2 id="sites"><a class="anchor" href="#sites">国内站与国际站</a></h2>
<div class="table-wrap"><table>
<tr><th>站点</th><th>Chat Completions</th><th>控制台</th></tr>
<tr><td>国内站(China)</td><td><code>https://api.siliconflow.cn/v1</code></td><td>cloud.siliconflow.cn</td></tr>
<tr><td>国际站(Global)</td><td><code>https://api.siliconflow.com/v1</code></td><td>cloud.siliconflow.com</td></tr>
</table></div>
<p>国际站是另一个账号,Key 和余额(美元)都和国内站分开,国内站的 Key 在国际站用不了。供应商里的每个 Key 都标明自己的站点,两边的 Key 可以放在同一个供应商里。</p>
<h2 id="models"><a class="anchor" href="#models">模型</a></h2>
<p>硅基流动的模型名带厂商前缀,原样写在 magpie 和工具里,比如 deepseek-ai/DeepSeek-V4-Pro、deepseek-ai/DeepSeek-V4-Flash、zai-org/GLM-5.3、moonshotai/Kimi-K3、moonshotai/Kimi-K2.7-Code、Qwen/Qwen3-Coder-480B-A35B-Instruct、meituan-longcat/LongCat-2.0。magpie 用 models.dev 的 siliconflow 目录给出名字、上下文长度和价格。命令行里写成 <code>siliconflow/</code> 加模型名。</p>
<h2 id="agents"><a class="anchor" href="#agents">在各个工具里用</a></h2>
<ul>
<li><b>Claude Code</b> 说的是 Anthropic Messages,这家不提供这个接口。magpie 把每个请求转换成 Chat Completions,再把回复转换回来,思考内容也会显示在 Claude Code 里。<a href="/docs/zh/claude-code-models">Claude Code 接入国产模型</a>。</li>
<li><b>Codex</b> 说的是 OpenAI Responses。这家不提供 Responses,所以 magpie 把请求转换成 Chat Completions;<code>apply_patch</code> 这类自定义工具以函数交给模型,调用再以 Codex 能执行的形式还回去。<a href="/docs/zh/codex-models">Codex 接入第三方模型</a>。</li>
<li><b>Gemini CLI</b> 说 Gemini 的接口,magpie 转换成 Chat Completions。<a href="/docs/zh/gemini-cli-models">Gemini CLI 接入其他模型</a>。</li>
<li><b>OpenCode</b> 说 Chat Completions,请求原样发过去。<a href="/docs/zh/opencode-models">OpenCode 接入其他模型</a>。</li>
</ul>
<h2 id="balance"><a class="anchor" href="#balance">余额</a></h2>
<p>硅基流动在 2026-08-14 停掉了查询余额的 <code>/v1/user/info</code>(返回 410),目前还没有替代的接口,以前的赠送余额也改成了代金券。所以 magpie 的用量卡片不再显示金额,而是说明余额在哪里看,按钮直接打开对应站点的控制台。Key 本身被拒(401)时,卡片照原样显示错误。</p>
<h2 id="faq"><a class="anchor" href="#faq">常见问题</a></h2>
<h3>硅基流动怎么接入 Claude Code?</h3>
<p>在 magpie 里添加 SiliconFlow 并粘贴 Key,在 Claude Code 那一行选 deepseek-ai/DeepSeek-V4-Pro 这类模型,或运行 magpie claude siliconflow/deepseek-ai/DeepSeek-V4-Pro。硅基流动没有 Anthropic 接口,magpie 把 Claude Code 的请求转换成 Chat Completions。</p>
<h3>硅基流动能在 Codex 里用吗?</h3>
<p>能。硅基流动只有 Chat Completions,magpie 把 Codex 的 Responses 请求转换过去,apply_patch 等自定义工具也照常能用。运行 magpie codex siliconflow/zai-org/GLM-5.3。</p>
<h3>国内站的 Key 能用在国际站吗?</h3>
<p>不能。国际站 cloud.siliconflow.com 是另一个账号,Key 和余额都分开。在 magpie 里给每个 Key 选对 China 或 Global 即可。</p>
<h3>magpie 为什么不显示硅基流动的余额?</h3>
<p>硅基流动在 2026-08-14 停掉了余额查询接口,还没有新的接口。magpie 的卡片会带你去控制台看余额和代金券。</p>
<p style="margin-top:48px">同一套方法用在其他国产模型:<a href="/docs/zh/modelscope">魔搭 ModelScope</a>、<a href="/docs/zh/volcengine">火山方舟</a>、<a href="/docs/zh/glm">GLM 编程套餐</a>、<a href="/docs/zh/kimi">Kimi</a>、<a href="/docs/zh/deepseek">DeepSeek</a>、<a href="/docs/zh/qwen">通义千问</a>。遇到报错?见 <a href="/docs/zh/troubleshooting">常见错误排查</a>,或到 <a href="https://discord.gg/vGSnD3ZKQF">Discord</a> 提问。</p>
</article>
</main>
<footer><div class="wrap">
<span>© 2026 magpie · MIT</span>
<div class="links">
<a href="/zh/">首页</a>
<a href="/docs/zh/intent">意图路由</a>
<a href="/docs/zh/plugins">插件开发</a>
<a href="/docs/zh/remote">远程 magpie</a>
<a href="/docs/zh/docker">Docker</a>
<a href="/docs/zh/privacy">隐私</a>
<a href="/docs/zh/masking">本地脱敏</a>
<a href="/docs/zh/mcp-router">MCP 路由</a>
<a href="/docs/zh/library">资源库</a>
<a href="/docs/zh/claude-code-models">Claude Code 接入其他模型</a>
<a href="/docs/zh/codex-models">Codex 接入其他模型</a>
<a href="/docs/zh/gemini-cli-models">Gemini CLI 接入其他模型</a>
<a href="/docs/zh/subscriptions">订阅用于任意 Agent</a>
<a href="/docs/zh/local-models">本地模型</a>
<a href="/docs/zh/opencode-models">OpenCode 接入其他模型</a>
<a href="/docs/zh/alternatives">与 CC Switch、CCR 对比</a>
<a href="/docs/zh/import">Add to magpie</a>
<a href="/docs/zh/integrate">接入应用</a>
<a href="https://github.com/yetone/magpie">GitHub</a>
<a href="https://discord.gg/vGSnD3ZKQF">Discord</a>
<a href="/docs/zh/contributors">贡献墙</a>
<a href="https://github.com/yetone/magpie-releases/releases">版本发布</a>
</div>
</div></footer>
<script>
(() => {
const next = { system: "light", light: "dark", dark: "system" };
document.querySelectorAll("button.theme").forEach((b) => {
b.dataset.mode = themeMode();
b.title = "Theme: " + themeMode();
b.addEventListener("click", () => setTheme(next[themeMode()]));
});
document.querySelectorAll(".copy").forEach((b) => b.addEventListener("click", async () => {
try {
await navigator.clipboard.writeText(document.getElementById(b.dataset.copy).textContent);
b.textContent = "已复制"; setTimeout(() => (b.textContent = "复制"), 1400);
} catch {}
}));
})();
</script>
<script src="/docs.js"></script>
</body>
</html>
+137 -11
View File
@@ -417,7 +417,7 @@ With several keys or accounts, magpie can spread Claude Code’s requests over t
The routing modes are in [Get started](https://usemagpie.ai/docs/start#routing).
**By provider:** [DeepSeek](https://usemagpie.ai/docs/deepseek) · [Kimi and Kimi Code](https://usemagpie.ai/docs/kimi) · [GLM Coding Plan](https://usemagpie.ai/docs/glm) · [Volcengine Ark](https://usemagpie.ai/docs/volcengine) · [Tencent Cloud](https://usemagpie.ai/docs/tencent-cloud) · [Baidu Qianfan](https://usemagpie.ai/docs/baidu-qianfan) · [Qwen](https://usemagpie.ai/docs/qwen) · [MiniMax](https://usemagpie.ai/docs/minimax) · [Anthropic](https://usemagpie.ai/docs/anthropic) · [OpenAI](https://usemagpie.ai/docs/openai) · [Gemini](https://usemagpie.ai/docs/gemini) · [Grok](https://usemagpie.ai/docs/grok) · [Mistral](https://usemagpie.ai/docs/mistral) · [OpenRouter](https://usemagpie.ai/docs/openrouter) · [GitHub Copilot](https://usemagpie.ai/docs/copilot) · [Ollama](https://usemagpie.ai/docs/ollama)
**By provider:** [DeepSeek](https://usemagpie.ai/docs/deepseek) · [Kimi and Kimi Code](https://usemagpie.ai/docs/kimi) · [GLM Coding Plan](https://usemagpie.ai/docs/glm) · [Volcengine Ark](https://usemagpie.ai/docs/volcengine) · [Tencent Cloud](https://usemagpie.ai/docs/tencent-cloud) · [Baidu Qianfan](https://usemagpie.ai/docs/baidu-qianfan) · [SiliconFlow](https://usemagpie.ai/docs/siliconflow) · [ModelScope](https://usemagpie.ai/docs/modelscope) · [Qwen](https://usemagpie.ai/docs/qwen) · [MiniMax](https://usemagpie.ai/docs/minimax) · [Anthropic](https://usemagpie.ai/docs/anthropic) · [OpenAI](https://usemagpie.ai/docs/openai) · [Gemini](https://usemagpie.ai/docs/gemini) · [Grok](https://usemagpie.ai/docs/grok) · [Mistral](https://usemagpie.ai/docs/mistral) · [OpenRouter](https://usemagpie.ai/docs/openrouter) · [GitHub Copilot](https://usemagpie.ai/docs/copilot) · [Ollama](https://usemagpie.ai/docs/ollama)
## FAQ
@@ -549,7 +549,7 @@ Requests on a Claude subscription run through the Claude Code installed on your
The routing modes are in [Get started](https://usemagpie.ai/docs/start#routing).
**By provider:** [DeepSeek](https://usemagpie.ai/docs/deepseek) · [Kimi and Kimi Code](https://usemagpie.ai/docs/kimi) · [GLM Coding Plan](https://usemagpie.ai/docs/glm) · [Volcengine Ark](https://usemagpie.ai/docs/volcengine) · [Tencent Cloud](https://usemagpie.ai/docs/tencent-cloud) · [Baidu Qianfan](https://usemagpie.ai/docs/baidu-qianfan) · [Qwen](https://usemagpie.ai/docs/qwen) · [MiniMax](https://usemagpie.ai/docs/minimax) · [Anthropic](https://usemagpie.ai/docs/anthropic) · [OpenAI](https://usemagpie.ai/docs/openai) · [Gemini](https://usemagpie.ai/docs/gemini) · [Grok](https://usemagpie.ai/docs/grok) · [Mistral](https://usemagpie.ai/docs/mistral) · [OpenRouter](https://usemagpie.ai/docs/openrouter) · [GitHub Copilot](https://usemagpie.ai/docs/copilot) · [Ollama](https://usemagpie.ai/docs/ollama)
**By provider:** [DeepSeek](https://usemagpie.ai/docs/deepseek) · [Kimi and Kimi Code](https://usemagpie.ai/docs/kimi) · [GLM Coding Plan](https://usemagpie.ai/docs/glm) · [Volcengine Ark](https://usemagpie.ai/docs/volcengine) · [Tencent Cloud](https://usemagpie.ai/docs/tencent-cloud) · [Baidu Qianfan](https://usemagpie.ai/docs/baidu-qianfan) · [SiliconFlow](https://usemagpie.ai/docs/siliconflow) · [ModelScope](https://usemagpie.ai/docs/modelscope) · [Qwen](https://usemagpie.ai/docs/qwen) · [MiniMax](https://usemagpie.ai/docs/minimax) · [Anthropic](https://usemagpie.ai/docs/anthropic) · [OpenAI](https://usemagpie.ai/docs/openai) · [Gemini](https://usemagpie.ai/docs/gemini) · [Grok](https://usemagpie.ai/docs/grok) · [Mistral](https://usemagpie.ai/docs/mistral) · [OpenRouter](https://usemagpie.ai/docs/openrouter) · [GitHub Copilot](https://usemagpie.ai/docs/copilot) · [Ollama](https://usemagpie.ai/docs/ollama)
## FAQ
@@ -666,7 +666,7 @@ Gemini CLI still speaks the Gemini API; magpie translates each request for the m
The routing modes and rules are in [Get started](https://usemagpie.ai/docs/start#routing).
**By provider:** [DeepSeek](https://usemagpie.ai/docs/deepseek) · [Kimi and Kimi Code](https://usemagpie.ai/docs/kimi) · [GLM Coding Plan](https://usemagpie.ai/docs/glm) · [Volcengine Ark](https://usemagpie.ai/docs/volcengine) · [Tencent Cloud](https://usemagpie.ai/docs/tencent-cloud) · [Baidu Qianfan](https://usemagpie.ai/docs/baidu-qianfan) · [Qwen](https://usemagpie.ai/docs/qwen) · [MiniMax](https://usemagpie.ai/docs/minimax) · [Anthropic](https://usemagpie.ai/docs/anthropic) · [OpenAI](https://usemagpie.ai/docs/openai) · [Gemini](https://usemagpie.ai/docs/gemini) · [Grok](https://usemagpie.ai/docs/grok) · [Mistral](https://usemagpie.ai/docs/mistral) · [OpenRouter](https://usemagpie.ai/docs/openrouter) · [GitHub Copilot](https://usemagpie.ai/docs/copilot) · [Ollama](https://usemagpie.ai/docs/ollama)
**By provider:** [DeepSeek](https://usemagpie.ai/docs/deepseek) · [Kimi and Kimi Code](https://usemagpie.ai/docs/kimi) · [GLM Coding Plan](https://usemagpie.ai/docs/glm) · [Volcengine Ark](https://usemagpie.ai/docs/volcengine) · [Tencent Cloud](https://usemagpie.ai/docs/tencent-cloud) · [Baidu Qianfan](https://usemagpie.ai/docs/baidu-qianfan) · [SiliconFlow](https://usemagpie.ai/docs/siliconflow) · [ModelScope](https://usemagpie.ai/docs/modelscope) · [Qwen](https://usemagpie.ai/docs/qwen) · [MiniMax](https://usemagpie.ai/docs/minimax) · [Anthropic](https://usemagpie.ai/docs/anthropic) · [OpenAI](https://usemagpie.ai/docs/openai) · [Gemini](https://usemagpie.ai/docs/gemini) · [Grok](https://usemagpie.ai/docs/grok) · [Mistral](https://usemagpie.ai/docs/mistral) · [OpenRouter](https://usemagpie.ai/docs/openrouter) · [GitHub Copilot](https://usemagpie.ai/docs/copilot) · [Ollama](https://usemagpie.ai/docs/ollama)
## FAQ
@@ -1125,7 +1125,7 @@ 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](https://usemagpie.ai/docs/deepseek) · [Kimi and Kimi Code](https://usemagpie.ai/docs/kimi) · [GLM Coding Plan](https://usemagpie.ai/docs/glm) · [Volcengine Ark](https://usemagpie.ai/docs/volcengine) · [Tencent Cloud](https://usemagpie.ai/docs/tencent-cloud) · [Baidu Qianfan](https://usemagpie.ai/docs/baidu-qianfan) · [Qwen](https://usemagpie.ai/docs/qwen) · [MiniMax](https://usemagpie.ai/docs/minimax) · [Anthropic](https://usemagpie.ai/docs/anthropic) · [OpenAI](https://usemagpie.ai/docs/openai) · [Gemini](https://usemagpie.ai/docs/gemini) · [Grok](https://usemagpie.ai/docs/grok) · [Mistral](https://usemagpie.ai/docs/mistral) · [OpenRouter](https://usemagpie.ai/docs/openrouter) · [GitHub Copilot](https://usemagpie.ai/docs/copilot) · [Ollama](https://usemagpie.ai/docs/ollama)
**By provider:** [DeepSeek](https://usemagpie.ai/docs/deepseek) · [Kimi and Kimi Code](https://usemagpie.ai/docs/kimi) · [GLM Coding Plan](https://usemagpie.ai/docs/glm) · [Volcengine Ark](https://usemagpie.ai/docs/volcengine) · [Tencent Cloud](https://usemagpie.ai/docs/tencent-cloud) · [Baidu Qianfan](https://usemagpie.ai/docs/baidu-qianfan) · [SiliconFlow](https://usemagpie.ai/docs/siliconflow) · [ModelScope](https://usemagpie.ai/docs/modelscope) · [Qwen](https://usemagpie.ai/docs/qwen) · [MiniMax](https://usemagpie.ai/docs/minimax) · [Anthropic](https://usemagpie.ai/docs/anthropic) · [OpenAI](https://usemagpie.ai/docs/openai) · [Gemini](https://usemagpie.ai/docs/gemini) · [Grok](https://usemagpie.ai/docs/grok) · [Mistral](https://usemagpie.ai/docs/mistral) · [OpenRouter](https://usemagpie.ai/docs/openrouter) · [GitHub Copilot](https://usemagpie.ai/docs/copilot) · [Ollama](https://usemagpie.ai/docs/ollama)
## FAQ
@@ -1685,6 +1685,132 @@ The same for other providers: [Volcengine Ark](https://usemagpie.ai/docs/volceng
---
Source: https://usemagpie.ai/docs/siliconflow
# SiliconFlow in Claude Code and Codex
SiliconFlow (硅基流动) serves open models such as DeepSeek, GLM, Kimi and Qwen on one API key, over OpenAI's Chat Completions. Claude Code wants Anthropic Messages and Codex wants Responses, and SiliconFlow serves neither; magpie's local gateway on 127.0.0.1:3425 converts between them, so these tools use SiliconFlow's models directly.
## Add SiliconFlow
1. **Add the provider.** On Providers, click + Add provider, pick SiliconFlow, set the key to China or Global, paste the key and save.
2. **Pick it for a tool.** On Agents, pick a model such as deepseek-ai/DeepSeek-V4-Pro on a tool's row.
```
magpie claude siliconflow/deepseek-ai/DeepSeek-V4-Pro
magpie codex siliconflow/zai-org/GLM-5.3
magpie opencode siliconflow/moonshotai/Kimi-K3
```
## China and Global
| Site | Chat Completions | Console |
| --- | --- | --- |
| China | `https://api.siliconflow.cn/v1` | cloud.siliconflow.cn |
| Global | `https://api.siliconflow.com/v1` | cloud.siliconflow.com |
The Global site is another account, with keys and a balance (in $) of its own; a China key doesn't work there. Each key in the provider names its site, so keys from both can share one provider.
## Models
SiliconFlow's model names carry their maker, and go into magpie and your tools as written: deepseek-ai/DeepSeek-V4-Pro, deepseek-ai/DeepSeek-V4-Flash, zai-org/GLM-5.3, moonshotai/Kimi-K3, moonshotai/Kimi-K2.7-Code, Qwen/Qwen3-Coder-480B-A35B-Instruct, meituan-longcat/LongCat-2.0. magpie takes their names, context and prices from models.dev's siliconflow catalog. On the command line, write `siliconflow/` then the name.
## In each agent
- **Claude Code.** speaks Anthropic Messages, which this provider doesn't serve. magpie converts each request to Chat Completions and the reply back, reasoning included. [Claude Code with other models](https://usemagpie.ai/docs/claude-code-models).
- **Codex.** speaks OpenAI Responses. It has no Responses, so magpie converts to Chat Completions; Codex's custom tools such as `apply_patch` go to the model as functions, and its calls come back as Codex can run them. [Codex with other models](https://usemagpie.ai/docs/codex-models).
- **Gemini CLI.** speaks Gemini's API; magpie converts it to Chat Completions. [Gemini CLI with other models](https://usemagpie.ai/docs/gemini-cli-models).
- **OpenCode.** speaks Chat Completions, so requests go as they are. [OpenCode with other models](https://usemagpie.ai/docs/opencode-models).
## Balance
SiliconFlow retired its balance query, `/v1/user/info`, on 2026-08-14 (it answers 410) with nothing in its place yet, and its old granted balance is a voucher now. So magpie's usage card says where the balance is shown instead of an amount, and its button opens that site's console. A key refused for itself (401) is said as it came.
## FAQ
### How do I use SiliconFlow in Claude Code?
Add SiliconFlow in magpie with your key, then pick a model such as deepseek-ai/DeepSeek-V4-Pro on Claude Code's row, or run magpie claude siliconflow/deepseek-ai/DeepSeek-V4-Pro. SiliconFlow has no Anthropic endpoint, so magpie converts Claude Code's requests to Chat Completions.
### Does SiliconFlow work in Codex?
Yes. SiliconFlow has Chat Completions only, so magpie converts Codex's Responses requests, custom tools like apply_patch included. Run magpie codex siliconflow/zai-org/GLM-5.3.
### Does a China key work on the Global site?
No. cloud.siliconflow.com is another account, with its own keys and balance. Set each key's site to China or Global in magpie.
### Why doesn't magpie show my SiliconFlow balance?
SiliconFlow retired its balance API on 2026-08-14 and has no new one yet. magpie's card takes you to the console, where the balance and vouchers are shown.
The same for other providers: [ModelScope](https://usemagpie.ai/docs/modelscope), [Volcengine Ark](https://usemagpie.ai/docs/volcengine), [GLM Coding Plan](https://usemagpie.ai/docs/glm), [Kimi](https://usemagpie.ai/docs/kimi), [DeepSeek](https://usemagpie.ai/docs/deepseek), [Qwen](https://usemagpie.ai/docs/qwen). Hit an error? See [troubleshooting](https://usemagpie.ai/docs/troubleshooting), or ask on [Discord](https://discord.gg/vGSnD3ZKQF).
---
Source: https://usemagpie.ai/docs/modelscope
# ModelScope in Claude Code and Codex
ModelScope's (魔搭) API-Inference takes a ModelScope account's access token as its key and serves models such as Qwen and GLM over Chat Completions and Responses. Add ModelScope in magpie, and Claude Code, Codex, Gemini CLI and OpenCode use them through magpie's local gateway on 127.0.0.1:3425.
## Add ModelScope
1. **Add the provider.** On Providers, click + Add provider, pick ModelScope, use your ModelScope access token as the key, paste the key and save.
2. **Pick it for a tool.** On Agents, pick a model such as Qwen/Qwen3-Coder-30B-A3B-Instruct on a tool's row.
```
magpie claude modelscope/Qwen/Qwen3-Coder-30B-A3B-Instruct
magpie codex modelscope/ZhipuAI/GLM-4.6
magpie opencode modelscope/Qwen/Qwen3-235B-A22B-Instruct-2507
```
## Endpoint and token
| API | Endpoint |
| --- | --- |
| Chat Completions | `https://api-inference.modelscope.cn/v1` |
| Responses | `https://api-inference.modelscope.cn/v1` |
The key is a ModelScope account's access token, made at modelscope.cn/my/myaccesstoken. ModelScope is not Alibaba Cloud's DashScope: a DashScope key goes in the [Qwen](https://usemagpie.ai/docs/qwen) provider, and neither works on the other. A provider added by hand at api-inference.modelscope.cn is taken as ModelScope too.
## Models
ModelScope's model names carry their organisation, written as they are: Qwen/Qwen3-Coder-30B-A3B-Instruct, Qwen/Qwen3-235B-A22B-Instruct-2507, Qwen/Qwen3-235B-A22B-Thinking-2507, ZhipuAI/GLM-4.6, ZhipuAI/GLM-4.5, among others. magpie takes their names and context from models.dev's modelscope catalog. On the command line, write `modelscope/` then the name.
## In each agent
- **Claude Code.** speaks Anthropic Messages, which this provider doesn't serve. magpie converts each request to Chat Completions and the reply back, reasoning included. [Claude Code with other models](https://usemagpie.ai/docs/claude-code-models).
- **Codex.** speaks OpenAI Responses. It serves Responses too, so Codex's requests go as they are. [Codex with other models](https://usemagpie.ai/docs/codex-models).
- **Gemini CLI.** speaks Gemini's API; magpie converts it to Chat Completions. [Gemini CLI with other models](https://usemagpie.ai/docs/gemini-cli-models).
- **OpenCode.** speaks Chat Completions, so requests go as they are. [OpenCode with other models](https://usemagpie.ai/docs/opencode-models).
## Images
ModelScope draws through async tasks of its own: a request starts a task and answers its task_id, which is asked about until it succeeds or fails. It runs one task of a user's at a time and answers bursts with 429, so magpie asks for one image at a time, waits a moment when it is busy, and hands the result to your tool as an image it can read.
## FAQ
### How do I use ModelScope in Claude Code?
Add ModelScope in magpie with your access token as the key, then pick Qwen/Qwen3-Coder-30B-A3B-Instruct on Claude Code's row, or run magpie claude modelscope/Qwen/Qwen3-Coder-30B-A3B-Instruct. ModelScope has no Anthropic endpoint, so magpie converts to Chat Completions.
### Where do I get a ModelScope key?
ModelScope uses your account's access token, made at modelscope.cn/my/myaccesstoken. Paste it into magpie's ModelScope provider.
### Is ModelScope the same as Alibaba's DashScope?
No. ModelScope's API-Inference is at api-inference.modelscope.cn on a ModelScope access token; DashScope takes an Alibaba Cloud key and is magpie's Qwen provider.
### Does ModelScope work in Codex?
Yes. ModelScope serves Responses, so magpie passes Codex's requests through. Run magpie codex modelscope/ZhipuAI/GLM-4.6.
The same for other providers: [SiliconFlow](https://usemagpie.ai/docs/siliconflow), [Volcengine Ark](https://usemagpie.ai/docs/volcengine), [GLM Coding Plan](https://usemagpie.ai/docs/glm), [Kimi](https://usemagpie.ai/docs/kimi), [DeepSeek](https://usemagpie.ai/docs/deepseek), [Qwen](https://usemagpie.ai/docs/qwen). Hit an error? See [troubleshooting](https://usemagpie.ai/docs/troubleshooting), or ask on [Discord](https://discord.gg/vGSnD3ZKQF).
---
Source: https://usemagpie.ai/docs/qwen
# Qwen in Claude Code, Codex, Gemini CLI and OpenCode
@@ -1997,7 +2123,7 @@ Yes. magpie reads OpenRouter’s credits endpoint and shows what is left in doll
Asked at the Anthropic base, OpenRouter answers with its catalog under `anthropic/` names it doesn’t serve. magpie fetches the list from the Chat Completions base, `https://openrouter.ai/api/v1`, and a provider given only OpenRouter’s Anthropic base is told to add that Chat base.
**By provider:** [DeepSeek](https://usemagpie.ai/docs/deepseek) · [Kimi and Kimi Code](https://usemagpie.ai/docs/kimi) · [GLM Coding Plan](https://usemagpie.ai/docs/glm) · [Volcengine Ark](https://usemagpie.ai/docs/volcengine) · [Tencent Cloud](https://usemagpie.ai/docs/tencent-cloud) · [Baidu Qianfan](https://usemagpie.ai/docs/baidu-qianfan) · [Qwen](https://usemagpie.ai/docs/qwen) · [MiniMax](https://usemagpie.ai/docs/minimax) · [Anthropic](https://usemagpie.ai/docs/anthropic) · [OpenAI](https://usemagpie.ai/docs/openai) · [Gemini](https://usemagpie.ai/docs/gemini) · [Grok](https://usemagpie.ai/docs/grok) · [Mistral](https://usemagpie.ai/docs/mistral) · [GitHub Copilot](https://usemagpie.ai/docs/copilot) · [Ollama](https://usemagpie.ai/docs/ollama)
**By provider:** [DeepSeek](https://usemagpie.ai/docs/deepseek) · [Kimi and Kimi Code](https://usemagpie.ai/docs/kimi) · [GLM Coding Plan](https://usemagpie.ai/docs/glm) · [Volcengine Ark](https://usemagpie.ai/docs/volcengine) · [Tencent Cloud](https://usemagpie.ai/docs/tencent-cloud) · [Baidu Qianfan](https://usemagpie.ai/docs/baidu-qianfan) · [SiliconFlow](https://usemagpie.ai/docs/siliconflow) · [ModelScope](https://usemagpie.ai/docs/modelscope) · [Qwen](https://usemagpie.ai/docs/qwen) · [MiniMax](https://usemagpie.ai/docs/minimax) · [Anthropic](https://usemagpie.ai/docs/anthropic) · [OpenAI](https://usemagpie.ai/docs/openai) · [Gemini](https://usemagpie.ai/docs/gemini) · [Grok](https://usemagpie.ai/docs/grok) · [Mistral](https://usemagpie.ai/docs/mistral) · [GitHub Copilot](https://usemagpie.ai/docs/copilot) · [Ollama](https://usemagpie.ai/docs/ollama)
Every agent: [Models in Claude Code](https://usemagpie.ai/docs/claude-code-models), [Models in Codex](https://usemagpie.ai/docs/codex-models), [Models in Gemini CLI](https://usemagpie.ai/docs/gemini-cli-models), [Models in OpenCode](https://usemagpie.ai/docs/opencode-models). Ask on [Discord](https://discord.gg/vGSnD3ZKQF) if you get stuck.
@@ -2300,7 +2426,7 @@ Yes. Add the Google Vertex AI preset with your project’s id, for example `magp
Yes. Both are subscriptions: `magpie accounts add gemini` or `magpie accounts add antigravity`, then pick a `gemini/…` or `antigravity/…` model. Code Assist needs a Standard or Enterprise account with a Google Cloud project of its own.
**By provider:** [DeepSeek](https://usemagpie.ai/docs/deepseek) · [Kimi and Kimi Code](https://usemagpie.ai/docs/kimi) · [GLM Coding Plan](https://usemagpie.ai/docs/glm) · [Volcengine Ark](https://usemagpie.ai/docs/volcengine) · [Tencent Cloud](https://usemagpie.ai/docs/tencent-cloud) · [Baidu Qianfan](https://usemagpie.ai/docs/baidu-qianfan) · [Qwen](https://usemagpie.ai/docs/qwen) · [MiniMax](https://usemagpie.ai/docs/minimax) · [Anthropic](https://usemagpie.ai/docs/anthropic) · [OpenAI](https://usemagpie.ai/docs/openai) · [Grok](https://usemagpie.ai/docs/grok) · [Mistral](https://usemagpie.ai/docs/mistral) · [OpenRouter](https://usemagpie.ai/docs/openrouter) · [GitHub Copilot](https://usemagpie.ai/docs/copilot) · [Ollama](https://usemagpie.ai/docs/ollama)
**By provider:** [DeepSeek](https://usemagpie.ai/docs/deepseek) · [Kimi and Kimi Code](https://usemagpie.ai/docs/kimi) · [GLM Coding Plan](https://usemagpie.ai/docs/glm) · [Volcengine Ark](https://usemagpie.ai/docs/volcengine) · [Tencent Cloud](https://usemagpie.ai/docs/tencent-cloud) · [Baidu Qianfan](https://usemagpie.ai/docs/baidu-qianfan) · [SiliconFlow](https://usemagpie.ai/docs/siliconflow) · [ModelScope](https://usemagpie.ai/docs/modelscope) · [Qwen](https://usemagpie.ai/docs/qwen) · [MiniMax](https://usemagpie.ai/docs/minimax) · [Anthropic](https://usemagpie.ai/docs/anthropic) · [OpenAI](https://usemagpie.ai/docs/openai) · [Grok](https://usemagpie.ai/docs/grok) · [Mistral](https://usemagpie.ai/docs/mistral) · [OpenRouter](https://usemagpie.ai/docs/openrouter) · [GitHub Copilot](https://usemagpie.ai/docs/copilot) · [Ollama](https://usemagpie.ai/docs/ollama)
Every agent: [Models in Claude Code](https://usemagpie.ai/docs/claude-code-models), [Models in Codex](https://usemagpie.ai/docs/codex-models), [Models in Gemini CLI](https://usemagpie.ai/docs/gemini-cli-models), [Models in OpenCode](https://usemagpie.ai/docs/opencode-models). To run Google’s Antigravity app on other models, see [Antigravity on any model](https://usemagpie.ai/docs/antigravity). Ask on [Discord](https://discord.gg/vGSnD3ZKQF) if you get stuck.
@@ -2438,7 +2564,7 @@ xAI can’t read reasoning that another vendor sealed, and answers “Could not
No. The Usage tab counts tokens, cache and cost for every Grok call, priced from models.dev, but magpie reads no balance from xAI. You can type the balance in with `magpie provider key-balance`, and the Usage page shows it less what magpie has priced since.
**By provider:** [DeepSeek](https://usemagpie.ai/docs/deepseek) · [Kimi and Kimi Code](https://usemagpie.ai/docs/kimi) · [GLM Coding Plan](https://usemagpie.ai/docs/glm) · [Volcengine Ark](https://usemagpie.ai/docs/volcengine) · [Tencent Cloud](https://usemagpie.ai/docs/tencent-cloud) · [Baidu Qianfan](https://usemagpie.ai/docs/baidu-qianfan) · [Qwen](https://usemagpie.ai/docs/qwen) · [MiniMax](https://usemagpie.ai/docs/minimax) · [Anthropic](https://usemagpie.ai/docs/anthropic) · [OpenAI](https://usemagpie.ai/docs/openai) · [Gemini](https://usemagpie.ai/docs/gemini) · [Mistral](https://usemagpie.ai/docs/mistral) · [OpenRouter](https://usemagpie.ai/docs/openrouter) · [GitHub Copilot](https://usemagpie.ai/docs/copilot) · [Ollama](https://usemagpie.ai/docs/ollama)
**By provider:** [DeepSeek](https://usemagpie.ai/docs/deepseek) · [Kimi and Kimi Code](https://usemagpie.ai/docs/kimi) · [GLM Coding Plan](https://usemagpie.ai/docs/glm) · [Volcengine Ark](https://usemagpie.ai/docs/volcengine) · [Tencent Cloud](https://usemagpie.ai/docs/tencent-cloud) · [Baidu Qianfan](https://usemagpie.ai/docs/baidu-qianfan) · [SiliconFlow](https://usemagpie.ai/docs/siliconflow) · [ModelScope](https://usemagpie.ai/docs/modelscope) · [Qwen](https://usemagpie.ai/docs/qwen) · [MiniMax](https://usemagpie.ai/docs/minimax) · [Anthropic](https://usemagpie.ai/docs/anthropic) · [OpenAI](https://usemagpie.ai/docs/openai) · [Gemini](https://usemagpie.ai/docs/gemini) · [Mistral](https://usemagpie.ai/docs/mistral) · [OpenRouter](https://usemagpie.ai/docs/openrouter) · [GitHub Copilot](https://usemagpie.ai/docs/copilot) · [Ollama](https://usemagpie.ai/docs/ollama)
Every agent: [Models in Claude Code](https://usemagpie.ai/docs/claude-code-models), [Models in Codex](https://usemagpie.ai/docs/codex-models), [Models in Gemini CLI](https://usemagpie.ai/docs/gemini-cli-models), [Models in OpenCode](https://usemagpie.ai/docs/opencode-models). Ask on [Discord](https://discord.gg/vGSnD3ZKQF) if you get stuck.
@@ -2571,7 +2697,7 @@ Mistral turns away any field it doesn’t know. magpie sends an earlier turn’s
Yes. A Vibe key from a Le Chat plan (Pro, Student or Team) shows how much of the month’s Vibe budget is used, in the currency Mistral bills in, and when it resets, with the plan’s name. A Studio key made in the console shows the organization’s API budget instead, as “API · Month”.
**By provider:** [DeepSeek](https://usemagpie.ai/docs/deepseek) · [Kimi and Kimi Code](https://usemagpie.ai/docs/kimi) · [GLM Coding Plan](https://usemagpie.ai/docs/glm) · [Volcengine Ark](https://usemagpie.ai/docs/volcengine) · [Tencent Cloud](https://usemagpie.ai/docs/tencent-cloud) · [Baidu Qianfan](https://usemagpie.ai/docs/baidu-qianfan) · [Qwen](https://usemagpie.ai/docs/qwen) · [MiniMax](https://usemagpie.ai/docs/minimax) · [Anthropic](https://usemagpie.ai/docs/anthropic) · [OpenAI](https://usemagpie.ai/docs/openai) · [Gemini](https://usemagpie.ai/docs/gemini) · [Grok](https://usemagpie.ai/docs/grok) · [OpenRouter](https://usemagpie.ai/docs/openrouter) · [GitHub Copilot](https://usemagpie.ai/docs/copilot) · [Ollama](https://usemagpie.ai/docs/ollama)
**By provider:** [DeepSeek](https://usemagpie.ai/docs/deepseek) · [Kimi and Kimi Code](https://usemagpie.ai/docs/kimi) · [GLM Coding Plan](https://usemagpie.ai/docs/glm) · [Volcengine Ark](https://usemagpie.ai/docs/volcengine) · [Tencent Cloud](https://usemagpie.ai/docs/tencent-cloud) · [Baidu Qianfan](https://usemagpie.ai/docs/baidu-qianfan) · [SiliconFlow](https://usemagpie.ai/docs/siliconflow) · [ModelScope](https://usemagpie.ai/docs/modelscope) · [Qwen](https://usemagpie.ai/docs/qwen) · [MiniMax](https://usemagpie.ai/docs/minimax) · [Anthropic](https://usemagpie.ai/docs/anthropic) · [OpenAI](https://usemagpie.ai/docs/openai) · [Gemini](https://usemagpie.ai/docs/gemini) · [Grok](https://usemagpie.ai/docs/grok) · [OpenRouter](https://usemagpie.ai/docs/openrouter) · [GitHub Copilot](https://usemagpie.ai/docs/copilot) · [Ollama](https://usemagpie.ai/docs/ollama)
Every agent: [Models in Claude Code](https://usemagpie.ai/docs/claude-code-models), [Models in Codex](https://usemagpie.ai/docs/codex-models), [Models in Gemini CLI](https://usemagpie.ai/docs/gemini-cli-models), [Models in OpenCode](https://usemagpie.ai/docs/opencode-models). Ask on [Discord](https://discord.gg/vGSnD3ZKQF) if you get stuck.
@@ -2755,7 +2881,7 @@ No. The Ollama preset takes none. Ollama Cloud needs one.
Other local servers, such as LM Studio, oMLX, vLLM and llama.cpp’s server, are in [Local models](https://usemagpie.ai/docs/local-models). To let a local model classify each request for routing, see [Intent routing](https://usemagpie.ai/docs/intent).
**By provider:** [DeepSeek](https://usemagpie.ai/docs/deepseek) · [Kimi and Kimi Code](https://usemagpie.ai/docs/kimi) · [GLM Coding Plan](https://usemagpie.ai/docs/glm) · [Volcengine Ark](https://usemagpie.ai/docs/volcengine) · [Tencent Cloud](https://usemagpie.ai/docs/tencent-cloud) · [Baidu Qianfan](https://usemagpie.ai/docs/baidu-qianfan) · [Qwen](https://usemagpie.ai/docs/qwen) · [MiniMax](https://usemagpie.ai/docs/minimax) · [Anthropic](https://usemagpie.ai/docs/anthropic) · [OpenAI](https://usemagpie.ai/docs/openai) · [Gemini](https://usemagpie.ai/docs/gemini) · [Grok](https://usemagpie.ai/docs/grok) · [Mistral](https://usemagpie.ai/docs/mistral) · [OpenRouter](https://usemagpie.ai/docs/openrouter) · [GitHub Copilot](https://usemagpie.ai/docs/copilot)
**By provider:** [DeepSeek](https://usemagpie.ai/docs/deepseek) · [Kimi and Kimi Code](https://usemagpie.ai/docs/kimi) · [GLM Coding Plan](https://usemagpie.ai/docs/glm) · [Volcengine Ark](https://usemagpie.ai/docs/volcengine) · [Tencent Cloud](https://usemagpie.ai/docs/tencent-cloud) · [Baidu Qianfan](https://usemagpie.ai/docs/baidu-qianfan) · [SiliconFlow](https://usemagpie.ai/docs/siliconflow) · [ModelScope](https://usemagpie.ai/docs/modelscope) · [Qwen](https://usemagpie.ai/docs/qwen) · [MiniMax](https://usemagpie.ai/docs/minimax) · [Anthropic](https://usemagpie.ai/docs/anthropic) · [OpenAI](https://usemagpie.ai/docs/openai) · [Gemini](https://usemagpie.ai/docs/gemini) · [Grok](https://usemagpie.ai/docs/grok) · [Mistral](https://usemagpie.ai/docs/mistral) · [OpenRouter](https://usemagpie.ai/docs/openrouter) · [GitHub Copilot](https://usemagpie.ai/docs/copilot)
Every agent: [Models in Claude Code](https://usemagpie.ai/docs/claude-code-models), [Models in Codex](https://usemagpie.ai/docs/codex-models), [Models in Gemini CLI](https://usemagpie.ai/docs/gemini-cli-models), [Models in OpenCode](https://usemagpie.ai/docs/opencode-models). Ask on [Discord](https://discord.gg/vGSnD3ZKQF) if you get stuck.
@@ -2899,7 +3025,7 @@ Yes. A request from Codex, Gemini CLI or OpenCode has no cache marks of its own,
Newer Claude models don’t all take `thinking` `disabled`. magpie sends Sonnet 5.5 `between_tools`, leaves thinking out for Opus 5.5 and Fable 5, which always think, and asks Opus 5 and Haiku 5.5 at high in place of xhigh or max. Older Claudes get it as sent.
**By provider:** [DeepSeek](https://usemagpie.ai/docs/deepseek) · [Kimi and Kimi Code](https://usemagpie.ai/docs/kimi) · [GLM Coding Plan](https://usemagpie.ai/docs/glm) · [Volcengine Ark](https://usemagpie.ai/docs/volcengine) · [Tencent Cloud](https://usemagpie.ai/docs/tencent-cloud) · [Baidu Qianfan](https://usemagpie.ai/docs/baidu-qianfan) · [Qwen](https://usemagpie.ai/docs/qwen) · [MiniMax](https://usemagpie.ai/docs/minimax) · [OpenAI](https://usemagpie.ai/docs/openai) · [Gemini](https://usemagpie.ai/docs/gemini) · [Grok](https://usemagpie.ai/docs/grok) · [Mistral](https://usemagpie.ai/docs/mistral) · [OpenRouter](https://usemagpie.ai/docs/openrouter) · [GitHub Copilot](https://usemagpie.ai/docs/copilot) · [Ollama](https://usemagpie.ai/docs/ollama)
**By provider:** [DeepSeek](https://usemagpie.ai/docs/deepseek) · [Kimi and Kimi Code](https://usemagpie.ai/docs/kimi) · [GLM Coding Plan](https://usemagpie.ai/docs/glm) · [Volcengine Ark](https://usemagpie.ai/docs/volcengine) · [Tencent Cloud](https://usemagpie.ai/docs/tencent-cloud) · [Baidu Qianfan](https://usemagpie.ai/docs/baidu-qianfan) · [SiliconFlow](https://usemagpie.ai/docs/siliconflow) · [ModelScope](https://usemagpie.ai/docs/modelscope) · [Qwen](https://usemagpie.ai/docs/qwen) · [MiniMax](https://usemagpie.ai/docs/minimax) · [OpenAI](https://usemagpie.ai/docs/openai) · [Gemini](https://usemagpie.ai/docs/gemini) · [Grok](https://usemagpie.ai/docs/grok) · [Mistral](https://usemagpie.ai/docs/mistral) · [OpenRouter](https://usemagpie.ai/docs/openrouter) · [GitHub Copilot](https://usemagpie.ai/docs/copilot) · [Ollama](https://usemagpie.ai/docs/ollama)
Every agent: [Models in Claude Code](https://usemagpie.ai/docs/claude-code-models), [Models in Codex](https://usemagpie.ai/docs/codex-models), [Models in Gemini CLI](https://usemagpie.ai/docs/gemini-cli-models), [Models in OpenCode](https://usemagpie.ai/docs/opencode-models). Ask on [Discord](https://discord.gg/vGSnD3ZKQF) if you get stuck.
@@ -3050,7 +3176,7 @@ OpenAI reads only reasoning it sealed for the same key, organization or account.
Yes, as its own provider, Azure OpenAI. Give it the resource’s endpoint and key; magpie uses the v1 API under `/openai/v1`, sends the key in the `api-key` header and lists the resource’s deployments as models.
**By provider:** [DeepSeek](https://usemagpie.ai/docs/deepseek) · [Kimi and Kimi Code](https://usemagpie.ai/docs/kimi) · [GLM Coding Plan](https://usemagpie.ai/docs/glm) · [Volcengine Ark](https://usemagpie.ai/docs/volcengine) · [Tencent Cloud](https://usemagpie.ai/docs/tencent-cloud) · [Baidu Qianfan](https://usemagpie.ai/docs/baidu-qianfan) · [Qwen](https://usemagpie.ai/docs/qwen) · [MiniMax](https://usemagpie.ai/docs/minimax) · [Anthropic](https://usemagpie.ai/docs/anthropic) · [Gemini](https://usemagpie.ai/docs/gemini) · [Grok](https://usemagpie.ai/docs/grok) · [Mistral](https://usemagpie.ai/docs/mistral) · [OpenRouter](https://usemagpie.ai/docs/openrouter) · [GitHub Copilot](https://usemagpie.ai/docs/copilot) · [Ollama](https://usemagpie.ai/docs/ollama)
**By provider:** [DeepSeek](https://usemagpie.ai/docs/deepseek) · [Kimi and Kimi Code](https://usemagpie.ai/docs/kimi) · [GLM Coding Plan](https://usemagpie.ai/docs/glm) · [Volcengine Ark](https://usemagpie.ai/docs/volcengine) · [Tencent Cloud](https://usemagpie.ai/docs/tencent-cloud) · [Baidu Qianfan](https://usemagpie.ai/docs/baidu-qianfan) · [SiliconFlow](https://usemagpie.ai/docs/siliconflow) · [ModelScope](https://usemagpie.ai/docs/modelscope) · [Qwen](https://usemagpie.ai/docs/qwen) · [MiniMax](https://usemagpie.ai/docs/minimax) · [Anthropic](https://usemagpie.ai/docs/anthropic) · [Gemini](https://usemagpie.ai/docs/gemini) · [Grok](https://usemagpie.ai/docs/grok) · [Mistral](https://usemagpie.ai/docs/mistral) · [OpenRouter](https://usemagpie.ai/docs/openrouter) · [GitHub Copilot](https://usemagpie.ai/docs/copilot) · [Ollama](https://usemagpie.ai/docs/ollama)
Every agent: [Models in Claude Code](https://usemagpie.ai/docs/claude-code-models), [Models in Codex](https://usemagpie.ai/docs/codex-models), [Models in Gemini CLI](https://usemagpie.ai/docs/gemini-cli-models), [Models in OpenCode](https://usemagpie.ai/docs/opencode-models). Ask on [Discord](https://discord.gg/vGSnD3ZKQF) if you get stuck.
+2
View File
@@ -51,6 +51,8 @@ DeepSeek, Kimi (Moonshot), GLM (Zhipu), Qwen, MiniMax, Anthropic (Claude), OpenA
- [Volcengine Ark Coding Plan in every agent](https://usemagpie.ai/docs/volcengine): 火山方舟 Coding Plan, Agent Plan and pay as you go, each plan's endpoints, its Doubao, GLM, DeepSeek and Kimi models, Ark's own web search, Seedream and Seedance, and the plan windows through an AccessKey.
- [Tencent Cloud Token Plan in Claude Code and Codex](https://usemagpie.ai/docs/tencent-cloud): TokenHub's personal and enterprise Token Plan and pay as you go, their endpoints and models, and the enterprise quota read with a SecretId and SecretKey.
- [Baidu Qianfan Token Plan in Claude Code and Codex](https://usemagpie.ai/docs/baidu-qianfan): Qianfan's personal and enterprise Token Plans and pay as you go, their endpoints, and the DeepSeek and GLM models each plan has.
- [SiliconFlow in Claude Code and Codex](https://usemagpie.ai/docs/siliconflow): SiliconFlow's China and Global sites, model names with their maker, Chat Completions converted for Claude Code and Codex, and the retired balance query.
- [ModelScope in Claude Code and Codex](https://usemagpie.ai/docs/modelscope): ModelScope API-Inference on an access token, not DashScope; Chat Completions and Responses; its async image tasks.
- [Qwen in every agent](https://usemagpie.ai/docs/qwen): Alibaba Cloud Model Studio (DashScope), Bailian, the Qwen and Bailian Token Plans and Qwen Cloud in Claude Code, Codex, Gemini CLI and OpenCode; which endpoint each key works on, thinking and images.
- [MiniMax and the Coding Plan in every agent](https://usemagpie.ai/docs/minimax): MiniMax M3 and M2.7, pay as you go or Coding Plan keys, global and China endpoints, interleaved thinking, effort and the plan's usage windows.
- [OpenRouter in every agent](https://usemagpie.ai/docs/openrouter): one OpenRouter key for Claude Code, Codex, Gemini CLI and OpenCode; which endpoint each agent's requests use, the model list, reasoning, Claude's prompt cache, cost and credits, several keys and free models.
+6
View File
@@ -49,6 +49,8 @@
<url><loc>https://usemagpie.ai/docs/volcengine</loc></url>
<url><loc>https://usemagpie.ai/docs/tencent-cloud</loc></url>
<url><loc>https://usemagpie.ai/docs/baidu-qianfan</loc></url>
<url><loc>https://usemagpie.ai/docs/siliconflow</loc></url>
<url><loc>https://usemagpie.ai/docs/modelscope</loc></url>
<url><loc>https://usemagpie.ai/docs/qwen</loc></url>
<url><loc>https://usemagpie.ai/docs/minimax</loc></url>
<url><loc>https://usemagpie.ai/docs/openrouter</loc></url>
@@ -104,6 +106,8 @@
<url><loc>https://usemagpie.ai/docs/zh/volcengine</loc></url>
<url><loc>https://usemagpie.ai/docs/zh/tencent-cloud</loc></url>
<url><loc>https://usemagpie.ai/docs/zh/baidu-qianfan</loc></url>
<url><loc>https://usemagpie.ai/docs/zh/siliconflow</loc></url>
<url><loc>https://usemagpie.ai/docs/zh/modelscope</loc></url>
<url><loc>https://usemagpie.ai/docs/zh/qwen</loc></url>
<url><loc>https://usemagpie.ai/docs/zh/minimax</loc></url>
<url><loc>https://usemagpie.ai/docs/zh/openrouter</loc></url>
@@ -158,6 +162,8 @@
<url><loc>https://usemagpie.ai/docs/ja/volcengine</loc></url>
<url><loc>https://usemagpie.ai/docs/ja/tencent-cloud</loc></url>
<url><loc>https://usemagpie.ai/docs/ja/baidu-qianfan</loc></url>
<url><loc>https://usemagpie.ai/docs/ja/siliconflow</loc></url>
<url><loc>https://usemagpie.ai/docs/ja/modelscope</loc></url>
<url><loc>https://usemagpie.ai/docs/ja/qwen</loc></url>
<url><loc>https://usemagpie.ai/docs/ja/minimax</loc></url>
<url><loc>https://usemagpie.ai/docs/ja/openrouter</loc></url>