site: Huawei Cloud MaaS and Xiaomi MiMo docs pages in en, zh and ja
/docs/huaweicloud says how to use Huawei Cloud ModelArts MaaS's Token Plan (personal accounts, 西南-贵阳一) and pay as you go in Claude Code, Codex, Gemini CLI and OpenCode through magpie: /plan/v2 and /plan/anthropic, where alone the plan's quota is spent, beside /openai/v1 and /anthropic; no Responses, so Codex's requests are converted; the plan's models before the list is fetched (glm-5.3, glm-5.1, kimi-k2.6, deepseek-v4.1-flash, deepseek-v4-flash), lowercase as its OpenClaw page has them. From internal/provider/presets.go (huaweicloud) and huaweicloud_test.go. /docs/xiaomi-mimo says the same for Xiaomi MiMo's platform: a tp- key spent only at its region's host (token-plan-cn, -sgp, -ams) and pay as you go at api.xiaomimimo.com, each with Chat, Responses and Anthropic; each region's catalog; the plans' $0 prices kept out of pricing (membershipCatalogs, #1873); the MiMo app subscription served by @magpie-community/opencode-mimo-auth, not this provider. From presets.go (xiaomi), internal/provider/models.go and the bundled catalog. Both linked from each language's "By provider" line after ModelScope (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 Huawei Cloud or MiMo key on magpie for these pages; they name only what magpie's source says.
This commit is contained in:
@@ -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/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><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/huaweicloud">Huawei Cloud MaaS</a> · <a href="/docs/xiaomi-mimo">Xiaomi MiMo</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>
|
||||
|
||||
@@ -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/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>
|
||||
<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/huaweicloud">Huawei Cloud MaaS</a> · <a href="/docs/xiaomi-mimo">Xiaomi MiMo</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>
|
||||
|
||||
@@ -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/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>
|
||||
<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/huaweicloud">Huawei Cloud MaaS</a> · <a href="/docs/xiaomi-mimo">Xiaomi MiMo</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>
|
||||
|
||||
@@ -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/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>
|
||||
<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/huaweicloud">Huawei Cloud MaaS</a> · <a href="/docs/xiaomi-mimo">Xiaomi MiMo</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>
|
||||
|
||||
@@ -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/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><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/huaweicloud">Huawei Cloud MaaS</a> · <a href="/docs/xiaomi-mimo">Xiaomi MiMo</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>
|
||||
|
||||
@@ -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/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><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/huaweicloud">Huawei Cloud MaaS</a> · <a href="/docs/xiaomi-mimo">Xiaomi MiMo</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>
|
||||
|
||||
@@ -0,0 +1,273 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>Huawei Cloud MaaS Token Plan in Claude Code, Codex and OpenCode: GLM, Kimi and DeepSeek in any agent · magpie</title>
|
||||
<meta name="description" content="Add a Huawei Cloud ModelArts MaaS Token Plan or pay-as-you-go key to magpie and use GLM-5.3, Kimi K2.6 and DeepSeek V4 in Claude Code, Codex, Gemini CLI and OpenCode: the plan's and pay as you go's endpoints, the plan's models, and Codex without 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/huaweicloud">
|
||||
<link rel="alternate" hreflang="zh" href="https://usemagpie.ai/docs/zh/huaweicloud">
|
||||
<link rel="alternate" hreflang="ja" href="https://usemagpie.ai/docs/ja/huaweicloud">
|
||||
<link rel="alternate" hreflang="x-default" href="https://usemagpie.ai/docs/huaweicloud">
|
||||
<link rel="canonical" href="https://usemagpie.ai/docs/huaweicloud">
|
||||
<link rel="stylesheet" href="/docs.css">
|
||||
<meta property="og:site_name" content="magpie">
|
||||
<meta property="og:title" content="Huawei Cloud MaaS Token Plan in Claude Code and Codex">
|
||||
<meta property="og:description" content="Add a Huawei Cloud ModelArts MaaS Token Plan or pay-as-you-go key to magpie and use GLM-5.3, Kimi K2.6 and DeepSeek V4 in Claude Code, Codex, Gemini CLI and OpenCode: the plan's and pay as you go's endpoints, the plan's models, and Codex without Responses.">
|
||||
<meta property="og:image" content="https://usemagpie.ai/img/og.png">
|
||||
<meta property="og:url" content="https://usemagpie.ai/docs/huaweicloud">
|
||||
<meta name="twitter:card" content="summary_large_image">
|
||||
<script type="application/ld+json">
|
||||
{
|
||||
"@context": "https://schema.org",
|
||||
"@graph": [
|
||||
{
|
||||
"@type": "TechArticle",
|
||||
"headline": "Huawei Cloud MaaS Token Plan in Claude Code and Codex",
|
||||
"description": "Add a Huawei Cloud ModelArts MaaS Token Plan or pay-as-you-go key to magpie and use GLM-5.3, Kimi K2.6 and DeepSeek V4 in Claude Code, Codex, Gemini CLI and OpenCode: the plan's and pay as you go's endpoints, the plan's models, and Codex without Responses.",
|
||||
"inLanguage": "en",
|
||||
"url": "https://usemagpie.ai/docs/huaweicloud",
|
||||
"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 the Huawei Cloud Token Plan in Claude Code?",
|
||||
"acceptedAnswer": {
|
||||
"@type": "Answer",
|
||||
"text": "Add Huawei Cloud MaaS in magpie with the key's plan set to Token Plan, then pick glm-5.3 on Claude Code's row, or run magpie claude huaweicloud/glm-5.3. Requests go to the plan's Anthropic endpoint, https://api.modelarts-maas.com/plan/anthropic."
|
||||
}
|
||||
},
|
||||
{
|
||||
"@type": "Question",
|
||||
"name": "Does Huawei Cloud MaaS work in Codex?",
|
||||
"acceptedAnswer": {
|
||||
"@type": "Answer",
|
||||
"text": "Yes. Huawei Cloud has no Responses endpoint, so magpie converts Codex's requests to Chat Completions, custom tools included. Run magpie codex huaweicloud/deepseek-v4.1-flash."
|
||||
}
|
||||
},
|
||||
{
|
||||
"@type": "Question",
|
||||
"name": "Why the endpoints under /plan?",
|
||||
"acceptedAnswer": {
|
||||
"@type": "Answer",
|
||||
"text": "The Token Plan's quota is spent only at /plan/v2 and /plan/anthropic; requests to pay as you go's /openai/v1 bill apart. magpie uses the plan's endpoints by default."
|
||||
}
|
||||
},
|
||||
{
|
||||
"@type": "Question",
|
||||
"name": "Which models does the Huawei Cloud Token Plan have?",
|
||||
"acceptedAnswer": {
|
||||
"@type": "Answer",
|
||||
"text": "magpie gives glm-5.3, glm-5.1, kimi-k2.6, deepseek-v4.1-flash and deepseek-v4-flash until Huawei's list is fetched, and then serves that list."
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"@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": "Huawei Cloud MaaS Token Plan in Claude Code and Codex",
|
||||
"item": "https://usemagpie.ai/docs/huaweicloud"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
</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/huaweicloud" hreflang="en" lang="en">English</a>
|
||||
<a href="/docs/zh/huaweicloud" hreflang="zh" lang="zh">中文</a>
|
||||
<a href="/docs/ja/huaweicloud" 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>Huawei Cloud MaaS</p>
|
||||
<a href="#overview">Overview</a>
|
||||
<a href="#add">Add Huawei Cloud</a>
|
||||
<a href="#plans">Plans and endpoints</a>
|
||||
<a href="#models">Models</a>
|
||||
<a href="#agents">In each agent</a>
|
||||
<a href="#faq">FAQ</a>
|
||||
</aside>
|
||||
|
||||
<article>
|
||||
<p class="eyebrow" id="overview">Docs · Providers</p>
|
||||
<h1>Huawei Cloud MaaS Token Plan in Claude Code and Codex</h1>
|
||||
<p class="lede">Huawei Cloud ModelArts MaaS's Token Plan is for personal accounts in 西南-贵阳一 (Guiyang) and serves GLM, Kimi and DeepSeek over Chat Completions and Anthropic Messages. Add Huawei Cloud in magpie with the plan, 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 Huawei Cloud</a></h2>
|
||||
<ol class="steps">
|
||||
<li><b>Add the provider and pick the plan</b>On <span class="ui">Providers</span>, click <span class="ui">+ Add provider</span>, pick <span class="ui">Huawei Cloud MaaS</span>, set the key's plan to <span class="ui">Token Plan</span> or <span class="ui">Pay as you go</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 glm-5.3 on a tool's row.</li>
|
||||
</ol>
|
||||
<div class="code"><span class="lang">Terminal</span><button class="copy" data-copy="hw-cli">Copy</button><pre id="hw-cli">magpie claude huaweicloud/glm-5.3
|
||||
magpie codex huaweicloud/deepseek-v4.1-flash
|
||||
magpie opencode huaweicloud/kimi-k2.6</pre></div>
|
||||
|
||||
<h2 id="plans"><a class="anchor" href="#plans">Plans and endpoints</a></h2>
|
||||
<div class="table-wrap"><table>
|
||||
<tr><th>Plan</th><th>Chat Completions</th><th>Anthropic Messages</th></tr>
|
||||
<tr><td>Token Plan</td><td><code>https://api.modelarts-maas.com/plan/v2</code></td><td><code>https://api.modelarts-maas.com/plan/anthropic</code></td></tr>
|
||||
<tr><td>Pay as you go</td><td><code>https://api.modelarts-maas.com/openai/v1</code></td><td><code>https://api.modelarts-maas.com/anthropic</code></td></tr>
|
||||
</table></div>
|
||||
<p>The Token Plan's quota is spent only at the endpoints under <code>/plan</code>, so magpie uses the plan's by default; pay as you go bills apart. Both take a MaaS API key, made under the ModelArts console's authentication management. Each key in the provider names its plan. Neither serves Responses.</p>
|
||||
|
||||
<h2 id="models"><a class="anchor" href="#models">Models</a></h2>
|
||||
<p>Until its list is fetched, magpie gives the plan's models: glm-5.3, glm-5.1, kimi-k2.6, deepseek-v4.1-flash, deepseek-v4-flash, lowercase as Huawei's OpenClaw page writes them. Once the list is in, Huawei's own list is the one served.</p>
|
||||
|
||||
<h2 id="agents"><a class="anchor" href="#agents">In each agent</a></h2>
|
||||
<ul>
|
||||
<li><b>Claude Code</b> speaks Anthropic Messages, which the plan serves, so requests go as they are. See <a href="/docs/claude-code-models">Claude Code with other models</a>.</li>
|
||||
<li><b>Codex</b> speaks only OpenAI Responses, which Huawei Cloud doesn't serve, so magpie converts to Chat Completions; custom tools such as <code>apply_patch</code> go to the model as functions and come back as Codex can run them. See <a href="/docs/codex-models">Codex with other models</a>.</li>
|
||||
<li><b>Gemini CLI</b> speaks Gemini's API; magpie translates at the local gateway. See <a href="/docs/gemini-cli-models">Gemini CLI with other models</a>.</li>
|
||||
<li><b>OpenCode</b>: magpie writes the models into opencode.json. See <a href="/docs/opencode-models">OpenCode with other models</a>.</li>
|
||||
</ul>
|
||||
|
||||
<h2 id="faq"><a class="anchor" href="#faq">FAQ</a></h2>
|
||||
<h3>How do I use the Huawei Cloud Token Plan in Claude Code?</h3>
|
||||
<p>Add Huawei Cloud MaaS in magpie with the key's plan set to Token Plan, then pick glm-5.3 on Claude Code's row, or run magpie claude huaweicloud/glm-5.3. Requests go to the plan's Anthropic endpoint, https://api.modelarts-maas.com/plan/anthropic.</p>
|
||||
<h3>Does Huawei Cloud MaaS work in Codex?</h3>
|
||||
<p>Yes. Huawei Cloud has no Responses endpoint, so magpie converts Codex's requests to Chat Completions, custom tools included. Run magpie codex huaweicloud/deepseek-v4.1-flash.</p>
|
||||
<h3>Why the endpoints under /plan?</h3>
|
||||
<p>The Token Plan's quota is spent only at /plan/v2 and /plan/anthropic; requests to pay as you go's /openai/v1 bill apart. magpie uses the plan's endpoints by default.</p>
|
||||
<h3>Which models does the Huawei Cloud Token Plan have?</h3>
|
||||
<p>magpie gives glm-5.3, glm-5.1, kimi-k2.6, deepseek-v4.1-flash and deepseek-v4-flash until Huawei's list is fetched, and then serves that list.</p>
|
||||
|
||||
<p style="margin-top:48px">The same for other providers: <a href="/docs/tencent-cloud">Tencent Cloud</a>, <a href="/docs/baidu-qianfan">Baidu Qianfan</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>
|
||||
@@ -308,7 +308,7 @@ magpie provider add anthropic <key> 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/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><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/huaweicloud">Huawei Cloud MaaS</a> · <a href="/docs/ja/xiaomi-mimo">Xiaomi MiMo</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>
|
||||
|
||||
@@ -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/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>
|
||||
<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/huaweicloud">Huawei Cloud MaaS</a> · <a href="/docs/ja/xiaomi-mimo">Xiaomi MiMo</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>
|
||||
|
||||
@@ -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/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>
|
||||
<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/huaweicloud">Huawei Cloud MaaS</a> · <a href="/docs/ja/xiaomi-mimo">Xiaomi MiMo</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>
|
||||
|
||||
@@ -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/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>
|
||||
<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/huaweicloud">Huawei Cloud MaaS</a> · <a href="/docs/ja/xiaomi-mimo">Xiaomi MiMo</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>
|
||||
|
||||
@@ -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/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><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/huaweicloud">Huawei Cloud MaaS</a> · <a href="/docs/ja/xiaomi-mimo">Xiaomi MiMo</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>
|
||||
|
||||
@@ -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/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><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/huaweicloud">Huawei Cloud MaaS</a> · <a href="/docs/ja/xiaomi-mimo">Xiaomi MiMo</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>
|
||||
|
||||
@@ -0,0 +1,273 @@
|
||||
<!doctype html>
|
||||
<html lang="ja">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>Huawei Cloud MaaS Token Plan を Claude Code、Codex、OpenCode で使う:GLM、Kimi、DeepSeek を任意のエージェントで · magpie</title>
|
||||
<meta name="description" content="Huawei Cloud ModelArts MaaS の Token Plan や従量課金キーを magpie に追加し、Claude Code、Codex、Gemini CLI、OpenCode で GLM-5.3、Kimi K2.6、DeepSeek V4 を使う方法:プランと従量課金のエンドポイント、プランのモデル、Responses なしでの Codex。">
|
||||
<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/huaweicloud">
|
||||
<link rel="alternate" hreflang="zh" href="https://usemagpie.ai/docs/zh/huaweicloud">
|
||||
<link rel="alternate" hreflang="ja" href="https://usemagpie.ai/docs/ja/huaweicloud">
|
||||
<link rel="alternate" hreflang="x-default" href="https://usemagpie.ai/docs/huaweicloud">
|
||||
<link rel="canonical" href="https://usemagpie.ai/docs/ja/huaweicloud">
|
||||
<link rel="stylesheet" href="/docs.css">
|
||||
<meta property="og:site_name" content="magpie">
|
||||
<meta property="og:title" content="Huawei Cloud MaaS Token Plan を Claude Code と Codex で">
|
||||
<meta property="og:description" content="Huawei Cloud ModelArts MaaS の Token Plan や従量課金キーを magpie に追加し、Claude Code、Codex、Gemini CLI、OpenCode で GLM-5.3、Kimi K2.6、DeepSeek V4 を使う方法:プランと従量課金のエンドポイント、プランのモデル、Responses なしでの Codex。">
|
||||
<meta property="og:image" content="https://usemagpie.ai/img/og.png">
|
||||
<meta property="og:url" content="https://usemagpie.ai/docs/ja/huaweicloud">
|
||||
<meta name="twitter:card" content="summary_large_image">
|
||||
<script type="application/ld+json">
|
||||
{
|
||||
"@context": "https://schema.org",
|
||||
"@graph": [
|
||||
{
|
||||
"@type": "TechArticle",
|
||||
"headline": "Huawei Cloud MaaS Token Plan を Claude Code と Codex で",
|
||||
"description": "Huawei Cloud ModelArts MaaS の Token Plan や従量課金キーを magpie に追加し、Claude Code、Codex、Gemini CLI、OpenCode で GLM-5.3、Kimi K2.6、DeepSeek V4 を使う方法:プランと従量課金のエンドポイント、プランのモデル、Responses なしでの Codex。",
|
||||
"inLanguage": "ja",
|
||||
"url": "https://usemagpie.ai/docs/ja/huaweicloud",
|
||||
"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": "Huawei Cloud Token Plan を Claude Code で使うには?",
|
||||
"acceptedAnswer": {
|
||||
"@type": "Answer",
|
||||
"text": "magpie に Huawei Cloud MaaS を追加してキーのプランを Token Plan にし、Claude Code の行で glm-5.3 を選ぶか、magpie claude huaweicloud/glm-5.3 を実行します。リクエストは https://api.modelarts-maas.com/plan/anthropic に送られます。"
|
||||
}
|
||||
},
|
||||
{
|
||||
"@type": "Question",
|
||||
"name": "Huawei Cloud MaaS は Codex で使えますか?",
|
||||
"acceptedAnswer": {
|
||||
"@type": "Answer",
|
||||
"text": "使えます。Responses エンドポイントがないため、magpie が Codex のリクエストを Chat Completions に変換します。magpie codex huaweicloud/deepseek-v4.1-flash を実行してください。"
|
||||
}
|
||||
},
|
||||
{
|
||||
"@type": "Question",
|
||||
"name": "なぜ /plan 以下のエンドポイントなのですか?",
|
||||
"acceptedAnswer": {
|
||||
"@type": "Answer",
|
||||
"text": "Token Plan の枠は /plan/v2 と /plan/anthropic でのみ消費され、/openai/v1 など従量課金のエンドポイントは別請求です。magpie は既定でプランのものを使います。"
|
||||
}
|
||||
},
|
||||
{
|
||||
"@type": "Question",
|
||||
"name": "Huawei Cloud Token Plan のモデルは?",
|
||||
"acceptedAnswer": {
|
||||
"@type": "Answer",
|
||||
"text": "一覧を取得するまで glm-5.3、glm-5.1、kimi-k2.6、deepseek-v4.1-flash、deepseek-v4-flash を示し、取得後は Huawei の一覧を使います。"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"@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": "Huawei Cloud MaaS Token Plan を Claude Code と Codex で",
|
||||
"item": "https://usemagpie.ai/docs/ja/huaweicloud"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
</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/huaweicloud" hreflang="en" lang="en">English</a>
|
||||
<a href="/docs/zh/huaweicloud" hreflang="zh" lang="zh">中文</a>
|
||||
<a href="/docs/ja/huaweicloud" 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>Huawei Cloud MaaS</p>
|
||||
<a href="#overview">概要</a>
|
||||
<a href="#add">Huawei Cloud を追加</a>
|
||||
<a href="#plans">プランとエンドポイント</a>
|
||||
<a href="#models">モデル</a>
|
||||
<a href="#agents">各エージェントで</a>
|
||||
<a href="#faq">よくある質問</a>
|
||||
</aside>
|
||||
|
||||
<article>
|
||||
<p class="eyebrow" id="overview">ドキュメント · プロバイダー</p>
|
||||
<h1>Huawei Cloud MaaS Token Plan を Claude Code と Codex で</h1>
|
||||
<p class="lede">Huawei Cloud ModelArts MaaS の Token Plan は個人アカウント向けで西南-貴陽一リージョンにあり、GLM、Kimi、DeepSeek を Chat Completions と Anthropic Messages で提供します。magpie に Huawei Cloud を追加してプランを選べば、Claude Code、Codex、Gemini CLI、OpenCode が 127.0.0.1:3425 のローカルゲートウェイ経由で使えます。</p>
|
||||
|
||||
<h2 id="add"><a class="anchor" href="#add">Huawei Cloud を追加</a></h2>
|
||||
<ol class="steps">
|
||||
<li><b>プロバイダーを追加してプランを選ぶ</b><span class="ui">プロバイダー</span> で <span class="ui">+ プロバイダーを追加</span> を押し、<span class="ui">Huawei Cloud MaaS</span> を選び、キーのプランを <span class="ui">Token Plan</span>か<span class="ui">Pay as you go</span> から選んで保存します。</li>
|
||||
<li><b>ツールで選ぶ</b><span class="ui">エージェント</span> でツールの行に glm-5.3 などを選びます。</li>
|
||||
</ol>
|
||||
<div class="code"><span class="lang">ターミナル</span><button class="copy" data-copy="hw-cli">コピー</button><pre id="hw-cli">magpie claude huaweicloud/glm-5.3
|
||||
magpie codex huaweicloud/deepseek-v4.1-flash
|
||||
magpie opencode huaweicloud/kimi-k2.6</pre></div>
|
||||
|
||||
<h2 id="plans"><a class="anchor" href="#plans">プランとエンドポイント</a></h2>
|
||||
<div class="table-wrap"><table>
|
||||
<tr><th>プラン</th><th>Chat Completions</th><th>Anthropic Messages</th></tr>
|
||||
<tr><td>Token Plan</td><td><code>https://api.modelarts-maas.com/plan/v2</code></td><td><code>https://api.modelarts-maas.com/plan/anthropic</code></td></tr>
|
||||
<tr><td>従量課金</td><td><code>https://api.modelarts-maas.com/openai/v1</code></td><td><code>https://api.modelarts-maas.com/anthropic</code></td></tr>
|
||||
</table></div>
|
||||
<p>Token Plan の枠は <code>/plan</code> 以下のエンドポイントでのみ消費されるため、magpie は既定でプランのエンドポイントを使います。従量課金は別請求です。どちらも ModelArts コンソールの認証管理で作る MaaS API キーを使います。プロバイダー内の各キーが自分のプランを持ちます。どちらも Responses はありません。</p>
|
||||
|
||||
<h2 id="models"><a class="anchor" href="#models">モデル</a></h2>
|
||||
<p>一覧を取得するまで、magpie はプランのモデルを示します:glm-5.3、glm-5.1、kimi-k2.6、deepseek-v4.1-flash、deepseek-v4-flash。Huawei の OpenClaw ページと同じく小文字です。一覧を取得した後は Huawei の一覧が使われます。</p>
|
||||
|
||||
<h2 id="agents"><a class="anchor" href="#agents">各エージェントで</a></h2>
|
||||
<ul>
|
||||
<li><b>Claude Code</b> は Anthropic Messages を話し、プランにあるのでそのまま送られます。<a href="/docs/ja/claude-code-models">Claude Code で他のモデル</a>。</li>
|
||||
<li><b>Codex</b> は OpenAI Responses だけを話しますが Huawei Cloud にはないため、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 がローカルゲートウェイで変換します。<a href="/docs/ja/gemini-cli-models">Gemini CLI で他のモデル</a>。</li>
|
||||
<li><b>OpenCode</b>:magpie がモデルを opencode.json に書きます。<a href="/docs/ja/opencode-models">OpenCode で他のモデル</a>。</li>
|
||||
</ul>
|
||||
|
||||
<h2 id="faq"><a class="anchor" href="#faq">よくある質問</a></h2>
|
||||
<h3>Huawei Cloud Token Plan を Claude Code で使うには?</h3>
|
||||
<p>magpie に Huawei Cloud MaaS を追加してキーのプランを Token Plan にし、Claude Code の行で glm-5.3 を選ぶか、magpie claude huaweicloud/glm-5.3 を実行します。リクエストは https://api.modelarts-maas.com/plan/anthropic に送られます。</p>
|
||||
<h3>Huawei Cloud MaaS は Codex で使えますか?</h3>
|
||||
<p>使えます。Responses エンドポイントがないため、magpie が Codex のリクエストを Chat Completions に変換します。magpie codex huaweicloud/deepseek-v4.1-flash を実行してください。</p>
|
||||
<h3>なぜ /plan 以下のエンドポイントなのですか?</h3>
|
||||
<p>Token Plan の枠は /plan/v2 と /plan/anthropic でのみ消費され、/openai/v1 など従量課金のエンドポイントは別請求です。magpie は既定でプランのものを使います。</p>
|
||||
<h3>Huawei Cloud Token Plan のモデルは?</h3>
|
||||
<p>一覧を取得するまで glm-5.3、glm-5.1、kimi-k2.6、deepseek-v4.1-flash、deepseek-v4-flash を示し、取得後は Huawei の一覧を使います。</p>
|
||||
|
||||
<p style="margin-top:48px">ほかのプロバイダーも同じ方法で:<a href="/docs/ja/tencent-cloud">Tencent Cloud</a>、<a href="/docs/ja/baidu-qianfan">Baidu Qianfan</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>
|
||||
@@ -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/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><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/huaweicloud">Huawei Cloud MaaS</a> · <a href="/docs/ja/xiaomi-mimo">Xiaomi MiMo</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>
|
||||
|
||||
@@ -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/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><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/huaweicloud">Huawei Cloud MaaS</a> · <a href="/docs/ja/xiaomi-mimo">Xiaomi MiMo</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>
|
||||
|
||||
@@ -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/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><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/huaweicloud">Huawei Cloud MaaS</a> · <a href="/docs/ja/xiaomi-mimo">Xiaomi MiMo</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>
|
||||
|
||||
@@ -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/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>
|
||||
<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/huaweicloud">Huawei Cloud MaaS</a> · <a href="/docs/ja/xiaomi-mimo">Xiaomi MiMo</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>
|
||||
|
||||
@@ -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/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><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/huaweicloud">Huawei Cloud MaaS</a> · <a href="/docs/ja/xiaomi-mimo">Xiaomi MiMo</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>
|
||||
|
||||
@@ -0,0 +1,279 @@
|
||||
<!doctype html>
|
||||
<html lang="ja">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>Xiaomi MiMo Token Plan を Claude Code、Codex、OpenCode で使う:MiMo V2.6 Pro を任意のエージェントで · magpie</title>
|
||||
<meta name="description" content="Xiaomi MiMo プラットフォームの Token Plan(中国、シンガポール、欧州)や従量課金キーを magpie に追加し、Claude Code、Codex、Gemini CLI、OpenCode で mimo-v2.6-pro、mimo-v2.6-flash を使う方法:リージョンごとのエンドポイント、プランモデルの価格表示、MiMo アプリのサブスクとの違い。">
|
||||
<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/xiaomi-mimo">
|
||||
<link rel="alternate" hreflang="zh" href="https://usemagpie.ai/docs/zh/xiaomi-mimo">
|
||||
<link rel="alternate" hreflang="ja" href="https://usemagpie.ai/docs/ja/xiaomi-mimo">
|
||||
<link rel="alternate" hreflang="x-default" href="https://usemagpie.ai/docs/xiaomi-mimo">
|
||||
<link rel="canonical" href="https://usemagpie.ai/docs/ja/xiaomi-mimo">
|
||||
<link rel="stylesheet" href="/docs.css">
|
||||
<meta property="og:site_name" content="magpie">
|
||||
<meta property="og:title" content="Xiaomi MiMo Token Plan を Claude Code と Codex で">
|
||||
<meta property="og:description" content="Xiaomi MiMo プラットフォームの Token Plan(中国、シンガポール、欧州)や従量課金キーを magpie に追加し、Claude Code、Codex、Gemini CLI、OpenCode で mimo-v2.6-pro、mimo-v2.6-flash を使う方法:リージョンごとのエンドポイント、プランモデルの価格表示、MiMo アプリのサブスクとの違い。">
|
||||
<meta property="og:image" content="https://usemagpie.ai/img/og.png">
|
||||
<meta property="og:url" content="https://usemagpie.ai/docs/ja/xiaomi-mimo">
|
||||
<meta name="twitter:card" content="summary_large_image">
|
||||
<script type="application/ld+json">
|
||||
{
|
||||
"@context": "https://schema.org",
|
||||
"@graph": [
|
||||
{
|
||||
"@type": "TechArticle",
|
||||
"headline": "Xiaomi MiMo Token Plan を Claude Code と Codex で",
|
||||
"description": "Xiaomi MiMo プラットフォームの Token Plan(中国、シンガポール、欧州)や従量課金キーを magpie に追加し、Claude Code、Codex、Gemini CLI、OpenCode で mimo-v2.6-pro、mimo-v2.6-flash を使う方法:リージョンごとのエンドポイント、プランモデルの価格表示、MiMo アプリのサブスクとの違い。",
|
||||
"inLanguage": "ja",
|
||||
"url": "https://usemagpie.ai/docs/ja/xiaomi-mimo",
|
||||
"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": "Xiaomi MiMo を Claude Code で使うには?",
|
||||
"acceptedAnswer": {
|
||||
"@type": "Answer",
|
||||
"text": "magpie に Xiaomi MiMo を追加して tp- キーのリージョン(例:Plan · China)を選び、Claude Code の行で mimo-v2.6-pro を選ぶか、magpie claude xiaomi/mimo-v2.6-pro を実行します。"
|
||||
}
|
||||
},
|
||||
{
|
||||
"@type": "Question",
|
||||
"name": "MiMo Token Plan のキーは別リージョンで使えますか?",
|
||||
"acceptedAnswer": {
|
||||
"@type": "Answer",
|
||||
"text": "使えません。tp- キーは購入したリージョンのホストでのみ消費されます。magpie で各キーのリージョンを選んでください。"
|
||||
}
|
||||
},
|
||||
{
|
||||
"@type": "Question",
|
||||
"name": "MiMo は Codex で使えますか?",
|
||||
"acceptedAnswer": {
|
||||
"@type": "Answer",
|
||||
"text": "使えます。各リージョンが OpenAI Responses を提供するので、magpie は Codex のリクエストをそのまま送ります。magpie codex xiaomi/mimo-v2.6-pro を実行してください。"
|
||||
}
|
||||
},
|
||||
{
|
||||
"@type": "Question",
|
||||
"name": "MiMo アプリのサブスクも使えますか?",
|
||||
"acceptedAnswer": {
|
||||
"@type": "Answer",
|
||||
"text": "使えますが、このプロバイダーではありません。Xiaomi アカウントでサインインする MiMo アプリのサブスクはコミュニティプラグイン @magpie-community/opencode-mimo-auth が提供し、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": "Xiaomi MiMo Token Plan を Claude Code と Codex で",
|
||||
"item": "https://usemagpie.ai/docs/ja/xiaomi-mimo"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
</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/xiaomi-mimo" hreflang="en" lang="en">English</a>
|
||||
<a href="/docs/zh/xiaomi-mimo" hreflang="zh" lang="zh">中文</a>
|
||||
<a href="/docs/ja/xiaomi-mimo" 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>Xiaomi MiMo</p>
|
||||
<a href="#overview">概要</a>
|
||||
<a href="#add">Xiaomi MiMo を追加</a>
|
||||
<a href="#regions">リージョンとエンドポイント</a>
|
||||
<a href="#models">モデル</a>
|
||||
<a href="#agents">各エージェントで</a>
|
||||
<a href="#app">MiMo アプリのサブスク</a>
|
||||
<a href="#faq">よくある質問</a>
|
||||
</aside>
|
||||
|
||||
<article>
|
||||
<p class="eyebrow" id="overview">ドキュメント · プロバイダー</p>
|
||||
<h1>Xiaomi MiMo Token Plan を Claude Code と Codex で</h1>
|
||||
<p class="lede">Xiaomi の MiMo プラットフォームには Token Plan と従量課金があります。Token Plan の tp- キーはそのリージョン(中国、シンガポール、欧州)のホストでのみ使え、従量課金は api.xiaomimimo.com です。どれも Chat Completions、Responses、Anthropic Messages を提供するので、Claude Code、Codex、OpenCode のリクエストはそのまま送られ、127.0.0.1:3425 の magpie ローカルゲートウェイがルーティングとキーを受け持ちます。</p>
|
||||
|
||||
<h2 id="add"><a class="anchor" href="#add">Xiaomi MiMo を追加</a></h2>
|
||||
<ol class="steps">
|
||||
<li><b>プロバイダーを追加してプランを選ぶ</b><span class="ui">プロバイダー</span> で <span class="ui">+ プロバイダーを追加</span> を押し、<span class="ui">Xiaomi MiMo</span> を選び、キーのプランを <span class="ui">Plan · China</span>、<span class="ui">Plan · Singapore</span>、<span class="ui">Plan · Europe</span>、<span class="ui">Pay as you go</span> から選んで保存します。</li>
|
||||
<li><b>ツールで選ぶ</b><span class="ui">エージェント</span> でツールの行に mimo-v2.6-pro などを選びます。</li>
|
||||
</ol>
|
||||
<div class="code"><span class="lang">ターミナル</span><button class="copy" data-copy="mm-cli">コピー</button><pre id="mm-cli">magpie claude xiaomi/mimo-v2.6-pro
|
||||
magpie codex xiaomi/mimo-v2.6-pro
|
||||
magpie opencode xiaomi/mimo-v2.6-flash</pre></div>
|
||||
|
||||
<h2 id="regions"><a class="anchor" href="#regions">リージョンとエンドポイント</a></h2>
|
||||
<div class="table-wrap"><table>
|
||||
<tr><th>プラン</th><th>Chat Completions と Responses</th><th>Anthropic Messages</th></tr>
|
||||
<tr><td>Token Plan · 中国</td><td><code>https://token-plan-cn.xiaomimimo.com/v1</code></td><td><code>https://token-plan-cn.xiaomimimo.com/anthropic</code></td></tr>
|
||||
<tr><td>Token Plan · シンガポール</td><td><code>https://token-plan-sgp.xiaomimimo.com/v1</code></td><td><code>https://token-plan-sgp.xiaomimimo.com/anthropic</code></td></tr>
|
||||
<tr><td>Token Plan · 欧州</td><td><code>https://token-plan-ams.xiaomimimo.com/v1</code></td><td><code>https://token-plan-ams.xiaomimimo.com/anthropic</code></td></tr>
|
||||
<tr><td>従量課金</td><td><code>https://api.xiaomimimo.com/v1</code></td><td><code>https://api.xiaomimimo.com/anthropic</code></td></tr>
|
||||
</table></div>
|
||||
<p>Token Plan の tp- キーは購入したリージョンのホストでのみ枠を消費します。プロバイダー内の各キーがリージョンを持つので、複数リージョンと従量課金のキーを 1 つのプロバイダーに並べられます。プランとキーは platform.xiaomimimo.com/token-plan にあります。</p>
|
||||
|
||||
<h2 id="models"><a class="anchor" href="#models">モデル</a></h2>
|
||||
<p>リージョンごとにカタログがあり、プランのリージョンはプランのモデルを Xiaomi の公開カタログより先に並べ、従量課金は公開カタログだけを使います。主なチャットモデルは mimo-v2.6-pro、mimo-v2.6-flash、mimo-v2.5-pro、mimo-v2.5 です。プランのカタログはモデルを $0 としていますが、magpie はそれを価格として使わないため、従量課金のリクエストは $0 ではなく Xiaomi 自身の価格で数えられます。モデル一覧は api.xiaomimimo.com から読みます。</p>
|
||||
|
||||
<h2 id="agents"><a class="anchor" href="#agents">各エージェントで</a></h2>
|
||||
<ul>
|
||||
<li><b>Claude Code</b> は Anthropic Messages を話します。MiMo の各リージョンに Anthropic エンドポイントがあり、リクエストはそのまま送られます。<a href="/docs/ja/claude-code-models">Claude Code で他のモデル</a>。</li>
|
||||
<li><b>Codex</b> は OpenAI Responses だけを話します。MiMo の各リージョンは Responses を提供するので、Codex のリクエストはそのまま送られます。モデルは <code>/model</code> に出ます。<a href="/docs/ja/codex-models">Codex で他のモデル</a>。</li>
|
||||
<li><b>Gemini CLI</b> は Gemini の API を話し、magpie がローカルゲートウェイで変換します。<a href="/docs/ja/gemini-cli-models">Gemini CLI で他のモデル</a>。</li>
|
||||
<li><b>OpenCode</b>:magpie がモデルを opencode.json に書きます。<a href="/docs/ja/opencode-models">OpenCode で他のモデル</a>。</li>
|
||||
</ul>
|
||||
|
||||
<h2 id="app"><a class="anchor" href="#app">MiMo アプリのサブスク</a></h2>
|
||||
<p>このページはプラットフォームの API キーについてです。Xiaomi アカウントでサインインする MiMo アプリのサブスク(mimo-app)は別物で、magpie の組み込みからコミュニティプラグイン <code>@magpie-community/opencode-mimo-auth</code> に移りました。magpie のプラグインページでインストールしてサインインします。</p>
|
||||
|
||||
<h2 id="faq"><a class="anchor" href="#faq">よくある質問</a></h2>
|
||||
<h3>Xiaomi MiMo を Claude Code で使うには?</h3>
|
||||
<p>magpie に Xiaomi MiMo を追加して tp- キーのリージョン(例:Plan · China)を選び、Claude Code の行で mimo-v2.6-pro を選ぶか、magpie claude xiaomi/mimo-v2.6-pro を実行します。</p>
|
||||
<h3>MiMo Token Plan のキーは別リージョンで使えますか?</h3>
|
||||
<p>使えません。tp- キーは購入したリージョンのホストでのみ消費されます。magpie で各キーのリージョンを選んでください。</p>
|
||||
<h3>MiMo は Codex で使えますか?</h3>
|
||||
<p>使えます。各リージョンが OpenAI Responses を提供するので、magpie は Codex のリクエストをそのまま送ります。magpie codex xiaomi/mimo-v2.6-pro を実行してください。</p>
|
||||
<h3>MiMo アプリのサブスクも使えますか?</h3>
|
||||
<p>使えますが、このプロバイダーではありません。Xiaomi アカウントでサインインする MiMo アプリのサブスクはコミュニティプラグイン @magpie-community/opencode-mimo-auth が提供し、magpie のプラグインページでインストールします。</p>
|
||||
|
||||
<p style="margin-top:48px">ほかのプロバイダーも同じ方法で:<a href="/docs/ja/tencent-cloud">Tencent Cloud</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>
|
||||
@@ -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/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><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/huaweicloud">Huawei Cloud MaaS</a> · <a href="/docs/xiaomi-mimo">Xiaomi MiMo</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>
|
||||
|
||||
@@ -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/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><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/huaweicloud">Huawei Cloud MaaS</a> · <a href="/docs/xiaomi-mimo">Xiaomi MiMo</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>
|
||||
|
||||
@@ -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/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><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/huaweicloud">Huawei Cloud MaaS</a> · <a href="/docs/xiaomi-mimo">Xiaomi MiMo</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>
|
||||
|
||||
@@ -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/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>
|
||||
<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/huaweicloud">Huawei Cloud MaaS</a> · <a href="/docs/xiaomi-mimo">Xiaomi MiMo</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>
|
||||
|
||||
@@ -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/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><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/huaweicloud">Huawei Cloud MaaS</a> · <a href="/docs/xiaomi-mimo">Xiaomi MiMo</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>
|
||||
|
||||
@@ -0,0 +1,279 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>Xiaomi MiMo Token Plan in Claude Code, Codex and OpenCode: MiMo V2.6 Pro in any agent · magpie</title>
|
||||
<meta name="description" content="Add a Xiaomi MiMo platform Token Plan (China, Singapore, Europe) or pay-as-you-go key to magpie and use mimo-v2.6-pro and mimo-v2.6-flash in Claude Code, Codex, Gemini CLI and OpenCode: each region's endpoints, how plan models are priced, and how it differs from the MiMo app subscription.">
|
||||
<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/xiaomi-mimo">
|
||||
<link rel="alternate" hreflang="zh" href="https://usemagpie.ai/docs/zh/xiaomi-mimo">
|
||||
<link rel="alternate" hreflang="ja" href="https://usemagpie.ai/docs/ja/xiaomi-mimo">
|
||||
<link rel="alternate" hreflang="x-default" href="https://usemagpie.ai/docs/xiaomi-mimo">
|
||||
<link rel="canonical" href="https://usemagpie.ai/docs/xiaomi-mimo">
|
||||
<link rel="stylesheet" href="/docs.css">
|
||||
<meta property="og:site_name" content="magpie">
|
||||
<meta property="og:title" content="Xiaomi MiMo Token Plan in Claude Code and Codex">
|
||||
<meta property="og:description" content="Add a Xiaomi MiMo platform Token Plan (China, Singapore, Europe) or pay-as-you-go key to magpie and use mimo-v2.6-pro and mimo-v2.6-flash in Claude Code, Codex, Gemini CLI and OpenCode: each region's endpoints, how plan models are priced, and how it differs from the MiMo app subscription.">
|
||||
<meta property="og:image" content="https://usemagpie.ai/img/og.png">
|
||||
<meta property="og:url" content="https://usemagpie.ai/docs/xiaomi-mimo">
|
||||
<meta name="twitter:card" content="summary_large_image">
|
||||
<script type="application/ld+json">
|
||||
{
|
||||
"@context": "https://schema.org",
|
||||
"@graph": [
|
||||
{
|
||||
"@type": "TechArticle",
|
||||
"headline": "Xiaomi MiMo Token Plan in Claude Code and Codex",
|
||||
"description": "Add a Xiaomi MiMo platform Token Plan (China, Singapore, Europe) or pay-as-you-go key to magpie and use mimo-v2.6-pro and mimo-v2.6-flash in Claude Code, Codex, Gemini CLI and OpenCode: each region's endpoints, how plan models are priced, and how it differs from the MiMo app subscription.",
|
||||
"inLanguage": "en",
|
||||
"url": "https://usemagpie.ai/docs/xiaomi-mimo",
|
||||
"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 Xiaomi MiMo in Claude Code?",
|
||||
"acceptedAnswer": {
|
||||
"@type": "Answer",
|
||||
"text": "Add Xiaomi MiMo in magpie with your tp- key's region (say Plan · China), then pick mimo-v2.6-pro on Claude Code's row, or run magpie claude xiaomi/mimo-v2.6-pro. Requests go to that region's Anthropic endpoint, such as https://token-plan-cn.xiaomimimo.com/anthropic."
|
||||
}
|
||||
},
|
||||
{
|
||||
"@type": "Question",
|
||||
"name": "Does a MiMo Token Plan key work in another region?",
|
||||
"acceptedAnswer": {
|
||||
"@type": "Answer",
|
||||
"text": "No. A tp- key is spent only at its own region's host. Set each key's region in magpie; keys from several regions can share one provider."
|
||||
}
|
||||
},
|
||||
{
|
||||
"@type": "Question",
|
||||
"name": "Does MiMo work in Codex?",
|
||||
"acceptedAnswer": {
|
||||
"@type": "Answer",
|
||||
"text": "Yes. Each MiMo region serves OpenAI Responses, so magpie passes Codex's requests through. Run magpie codex xiaomi/mimo-v2.6-pro."
|
||||
}
|
||||
},
|
||||
{
|
||||
"@type": "Question",
|
||||
"name": "Can I use the MiMo app subscription too?",
|
||||
"acceptedAnswer": {
|
||||
"@type": "Answer",
|
||||
"text": "Yes, but not in this provider. The MiMo app subscription signed in with a Xiaomi account is served by the community plugin @magpie-community/opencode-mimo-auth; install it from magpie's Plugins page."
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"@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": "Xiaomi MiMo Token Plan in Claude Code and Codex",
|
||||
"item": "https://usemagpie.ai/docs/xiaomi-mimo"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
</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/xiaomi-mimo" hreflang="en" lang="en">English</a>
|
||||
<a href="/docs/zh/xiaomi-mimo" hreflang="zh" lang="zh">中文</a>
|
||||
<a href="/docs/ja/xiaomi-mimo" 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>Xiaomi MiMo</p>
|
||||
<a href="#overview">Overview</a>
|
||||
<a href="#add">Add Xiaomi MiMo</a>
|
||||
<a href="#regions">Regions and endpoints</a>
|
||||
<a href="#models">Models</a>
|
||||
<a href="#agents">In each agent</a>
|
||||
<a href="#app">The MiMo app subscription</a>
|
||||
<a href="#faq">FAQ</a>
|
||||
</aside>
|
||||
|
||||
<article>
|
||||
<p class="eyebrow" id="overview">Docs · Providers</p>
|
||||
<h1>Xiaomi MiMo Token Plan in Claude Code and Codex</h1>
|
||||
<p class="lede">Xiaomi's MiMo platform has a Token Plan and pay as you go. A Token Plan's tp- key works only at its region's own host (China, Singapore or Europe); pay as you go is api.xiaomimimo.com. Each serves Chat Completions, Responses and Anthropic Messages, so Claude Code's, Codex's and OpenCode's requests go as they are, with magpie's local gateway on 127.0.0.1:3425 routing them and holding the key.</p>
|
||||
|
||||
<h2 id="add"><a class="anchor" href="#add">Add Xiaomi MiMo</a></h2>
|
||||
<ol class="steps">
|
||||
<li><b>Add the provider and pick the plan</b>On <span class="ui">Providers</span>, click <span class="ui">+ Add provider</span>, pick <span class="ui">Xiaomi MiMo</span>, set the key's plan to <span class="ui">Plan · China</span>, <span class="ui">Plan · Singapore</span>, <span class="ui">Plan · Europe</span>, <span class="ui">Pay as you go</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 mimo-v2.6-pro on a tool's row.</li>
|
||||
</ol>
|
||||
<div class="code"><span class="lang">Terminal</span><button class="copy" data-copy="mm-cli">Copy</button><pre id="mm-cli">magpie claude xiaomi/mimo-v2.6-pro
|
||||
magpie codex xiaomi/mimo-v2.6-pro
|
||||
magpie opencode xiaomi/mimo-v2.6-flash</pre></div>
|
||||
|
||||
<h2 id="regions"><a class="anchor" href="#regions">Regions and endpoints</a></h2>
|
||||
<div class="table-wrap"><table>
|
||||
<tr><th>Plan</th><th>Chat Completions and Responses</th><th>Anthropic Messages</th></tr>
|
||||
<tr><td>Token Plan · China</td><td><code>https://token-plan-cn.xiaomimimo.com/v1</code></td><td><code>https://token-plan-cn.xiaomimimo.com/anthropic</code></td></tr>
|
||||
<tr><td>Token Plan · Singapore</td><td><code>https://token-plan-sgp.xiaomimimo.com/v1</code></td><td><code>https://token-plan-sgp.xiaomimimo.com/anthropic</code></td></tr>
|
||||
<tr><td>Token Plan · Europe</td><td><code>https://token-plan-ams.xiaomimimo.com/v1</code></td><td><code>https://token-plan-ams.xiaomimimo.com/anthropic</code></td></tr>
|
||||
<tr><td>Pay as you go</td><td><code>https://api.xiaomimimo.com/v1</code></td><td><code>https://api.xiaomimimo.com/anthropic</code></td></tr>
|
||||
</table></div>
|
||||
<p>A Token Plan's tp- key is spent only at the host of the region it was bought in. Each key in the provider names its region, so keys from several regions and pay as you go can share one provider. Plans and their keys are at platform.xiaomimimo.com/token-plan.</p>
|
||||
|
||||
<h2 id="models"><a class="anchor" href="#models">Models</a></h2>
|
||||
<p>Each region names its own catalog: a plan's region lists the plan's models before Xiaomi's public catalog, and pay as you go uses the public one alone. The main chat models are mimo-v2.6-pro, mimo-v2.6-flash, mimo-v2.5-pro and mimo-v2.5. The plan catalogs price their models at $0, which magpie doesn't take as a price, so a pay-as-you-go call is counted at Xiaomi's own prices, not at $0. The model list is read from api.xiaomimimo.com.</p>
|
||||
|
||||
<h2 id="agents"><a class="anchor" href="#agents">In each agent</a></h2>
|
||||
<ul>
|
||||
<li><b>Claude Code</b> speaks Anthropic Messages. Each MiMo region has an Anthropic endpoint, so requests go as they are. See <a href="/docs/claude-code-models">Claude Code with other models</a>.</li>
|
||||
<li><b>Codex</b> speaks only OpenAI Responses. Each MiMo region serves Responses, so Codex's requests go as they are. The models show in Codex's <code>/model</code>. See <a href="/docs/codex-models">Codex with other models</a>.</li>
|
||||
<li><b>Gemini CLI</b> speaks Gemini's API; magpie points it at the local gateway and translates. See <a href="/docs/gemini-cli-models">Gemini CLI with other models</a>.</li>
|
||||
<li><b>OpenCode</b>: magpie writes the models into opencode.json. See <a href="/docs/opencode-models">OpenCode with other models</a>.</li>
|
||||
</ul>
|
||||
|
||||
<h2 id="app"><a class="anchor" href="#app">The MiMo app subscription</a></h2>
|
||||
<p>This page is about the platform's API keys. The MiMo app subscription you sign in to with a Xiaomi account (mimo-app) is another thing: it moved out of magpie's built-ins into the community plugin <code>@magpie-community/opencode-mimo-auth</code>; install it from magpie's Plugins page and sign in.</p>
|
||||
|
||||
<h2 id="faq"><a class="anchor" href="#faq">FAQ</a></h2>
|
||||
<h3>How do I use Xiaomi MiMo in Claude Code?</h3>
|
||||
<p>Add Xiaomi MiMo in magpie with your tp- key's region (say Plan · China), then pick mimo-v2.6-pro on Claude Code's row, or run magpie claude xiaomi/mimo-v2.6-pro. Requests go to that region's Anthropic endpoint, such as https://token-plan-cn.xiaomimimo.com/anthropic.</p>
|
||||
<h3>Does a MiMo Token Plan key work in another region?</h3>
|
||||
<p>No. A tp- key is spent only at its own region's host. Set each key's region in magpie; keys from several regions can share one provider.</p>
|
||||
<h3>Does MiMo work in Codex?</h3>
|
||||
<p>Yes. Each MiMo region serves OpenAI Responses, so magpie passes Codex's requests through. Run magpie codex xiaomi/mimo-v2.6-pro.</p>
|
||||
<h3>Can I use the MiMo app subscription too?</h3>
|
||||
<p>Yes, but not in this provider. The MiMo app subscription signed in with a Xiaomi account is served by the community plugin @magpie-community/opencode-mimo-auth; install it from magpie's Plugins page.</p>
|
||||
|
||||
<p style="margin-top:48px">The same for other providers: <a href="/docs/tencent-cloud">Tencent Cloud</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>
|
||||
@@ -308,7 +308,7 @@ magpie provider add anthropic <key> 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/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><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/huaweicloud">华为云 MaaS</a> · <a href="/docs/zh/xiaomi-mimo">小米 MiMo</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>
|
||||
|
||||
@@ -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/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>
|
||||
<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/huaweicloud">华为云 MaaS</a> · <a href="/docs/zh/xiaomi-mimo">小米 MiMo</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>
|
||||
|
||||
@@ -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/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>
|
||||
<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/huaweicloud">华为云 MaaS</a> · <a href="/docs/zh/xiaomi-mimo">小米 MiMo</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>
|
||||
|
||||
@@ -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/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>
|
||||
<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/huaweicloud">华为云 MaaS</a> · <a href="/docs/zh/xiaomi-mimo">小米 MiMo</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>
|
||||
|
||||
@@ -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/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><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/huaweicloud">华为云 MaaS</a> · <a href="/docs/zh/xiaomi-mimo">小米 MiMo</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>
|
||||
|
||||
@@ -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/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><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/huaweicloud">华为云 MaaS</a> · <a href="/docs/zh/xiaomi-mimo">小米 MiMo</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>
|
||||
|
||||
@@ -0,0 +1,273 @@
|
||||
<!doctype html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>华为云 MaaS Token Plan 接入 Claude Code、Codex、OpenCode:GLM、Kimi、DeepSeek 用在任意 Agent · magpie</title>
|
||||
<meta name="description" content="在 magpie 里添加华为云 ModelArts MaaS 的 Token Plan 或按量付费 Key,让 Claude Code、Codex、Gemini CLI、OpenCode 用上 GLM-5.3、Kimi K2.6、DeepSeek V4:套餐和按量付费的接口地址、套餐里的模型,以及没有 Responses 时 Codex 怎么用。">
|
||||
<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/huaweicloud">
|
||||
<link rel="alternate" hreflang="zh" href="https://usemagpie.ai/docs/zh/huaweicloud">
|
||||
<link rel="alternate" hreflang="ja" href="https://usemagpie.ai/docs/ja/huaweicloud">
|
||||
<link rel="alternate" hreflang="x-default" href="https://usemagpie.ai/docs/huaweicloud">
|
||||
<link rel="canonical" href="https://usemagpie.ai/docs/zh/huaweicloud">
|
||||
<link rel="stylesheet" href="/docs.css">
|
||||
<meta property="og:site_name" content="magpie">
|
||||
<meta property="og:title" content="华为云 MaaS Token Plan 接入 Claude Code 和 Codex">
|
||||
<meta property="og:description" content="在 magpie 里添加华为云 ModelArts MaaS 的 Token Plan 或按量付费 Key,让 Claude Code、Codex、Gemini CLI、OpenCode 用上 GLM-5.3、Kimi K2.6、DeepSeek V4:套餐和按量付费的接口地址、套餐里的模型,以及没有 Responses 时 Codex 怎么用。">
|
||||
<meta property="og:image" content="https://usemagpie.ai/img/og.png">
|
||||
<meta property="og:url" content="https://usemagpie.ai/docs/zh/huaweicloud">
|
||||
<meta name="twitter:card" content="summary_large_image">
|
||||
<script type="application/ld+json">
|
||||
{
|
||||
"@context": "https://schema.org",
|
||||
"@graph": [
|
||||
{
|
||||
"@type": "TechArticle",
|
||||
"headline": "华为云 MaaS Token Plan 接入 Claude Code 和 Codex",
|
||||
"description": "在 magpie 里添加华为云 ModelArts MaaS 的 Token Plan 或按量付费 Key,让 Claude Code、Codex、Gemini CLI、OpenCode 用上 GLM-5.3、Kimi K2.6、DeepSeek V4:套餐和按量付费的接口地址、套餐里的模型,以及没有 Responses 时 Codex 怎么用。",
|
||||
"inLanguage": "zh-CN",
|
||||
"url": "https://usemagpie.ai/docs/zh/huaweicloud",
|
||||
"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": "华为云 Token Plan 怎么接入 Claude Code?",
|
||||
"acceptedAnswer": {
|
||||
"@type": "Answer",
|
||||
"text": "在 magpie 里添加 Huawei Cloud MaaS,把 Key 的套餐选成 Token Plan,然后在 Claude Code 那一行选 glm-5.3 这类模型,或运行 magpie claude huaweicloud/glm-5.3。请求走套餐的 Anthropic 接口 https://api.modelarts-maas.com/plan/anthropic。"
|
||||
}
|
||||
},
|
||||
{
|
||||
"@type": "Question",
|
||||
"name": "华为云 MaaS 能在 Codex 里用吗?",
|
||||
"acceptedAnswer": {
|
||||
"@type": "Answer",
|
||||
"text": "能。华为云没有 Responses 接口,magpie 把 Codex 的请求转换成 Chat Completions,自定义工具也照常能用。运行 magpie codex huaweicloud/deepseek-v4.1-flash。"
|
||||
}
|
||||
},
|
||||
{
|
||||
"@type": "Question",
|
||||
"name": "为什么要用 /plan 下的地址?",
|
||||
"acceptedAnswer": {
|
||||
"@type": "Answer",
|
||||
"text": "Token Plan 的额度只在 /plan/v2 和 /plan/anthropic 上扣,发到 /openai/v1 等按量付费接口的请求会另外计费。magpie 默认用套餐的接口。"
|
||||
}
|
||||
},
|
||||
{
|
||||
"@type": "Question",
|
||||
"name": "华为云 Token Plan 有哪些模型?",
|
||||
"acceptedAnswer": {
|
||||
"@type": "Answer",
|
||||
"text": "magpie 先给出 glm-5.3、glm-5.1、kimi-k2.6、deepseek-v4.1-flash 和 deepseek-v4-flash,拿到华为云的模型列表后以列表为准。"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"@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": "华为云 MaaS Token Plan 接入 Claude Code 和 Codex",
|
||||
"item": "https://usemagpie.ai/docs/zh/huaweicloud"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
</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/huaweicloud" hreflang="en" lang="en">English</a>
|
||||
<a href="/docs/zh/huaweicloud" hreflang="zh" lang="zh">中文</a>
|
||||
<a href="/docs/ja/huaweicloud" 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>华为云 MaaS</p>
|
||||
<a href="#overview">概览</a>
|
||||
<a href="#add">添加华为云</a>
|
||||
<a href="#plans">套餐与接口地址</a>
|
||||
<a href="#models">模型</a>
|
||||
<a href="#agents">在各个工具里用</a>
|
||||
<a href="#faq">常见问题</a>
|
||||
</aside>
|
||||
|
||||
<article>
|
||||
<p class="eyebrow" id="overview">文档 · 供应商</p>
|
||||
<h1>华为云 MaaS Token Plan 接入 Claude Code 和 Codex</h1>
|
||||
<p class="lede">华为云 ModelArts MaaS 的 Token Plan 面向个人账号,开在西南-贵阳一,提供 GLM、Kimi、DeepSeek,接口是 Chat Completions 和 Anthropic Messages。在 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">Huawei Cloud MaaS</span>,给 Key 选 <span class="ui">Token Plan</span>或<span class="ui">Pay as you go</span>,粘贴 Key 并保存。</li>
|
||||
<li><b>给工具选上</b>在 <span class="ui">Agent</span> 页给某个工具选 glm-5.3 这类模型。</li>
|
||||
</ol>
|
||||
<div class="code"><span class="lang">终端</span><button class="copy" data-copy="hw-cli">复制</button><pre id="hw-cli">magpie claude huaweicloud/glm-5.3
|
||||
magpie codex huaweicloud/deepseek-v4.1-flash
|
||||
magpie opencode huaweicloud/kimi-k2.6</pre></div>
|
||||
|
||||
<h2 id="plans"><a class="anchor" href="#plans">套餐与接口地址</a></h2>
|
||||
<div class="table-wrap"><table>
|
||||
<tr><th>套餐</th><th>Chat Completions</th><th>Anthropic Messages</th></tr>
|
||||
<tr><td>Token Plan</td><td><code>https://api.modelarts-maas.com/plan/v2</code></td><td><code>https://api.modelarts-maas.com/plan/anthropic</code></td></tr>
|
||||
<tr><td>按量付费</td><td><code>https://api.modelarts-maas.com/openai/v1</code></td><td><code>https://api.modelarts-maas.com/anthropic</code></td></tr>
|
||||
</table></div>
|
||||
<p>Token Plan 的额度只在 <code>/plan</code> 下的接口上扣,所以 magpie 默认用套餐的接口;按量付费的接口单独计费。两者都用 MaaS 的 API Key,在 ModelArts 控制台的鉴权管理里创建。供应商里的每个 Key 都标明自己的套餐。华为云两种接口都不提供 Responses。</p>
|
||||
|
||||
<h2 id="models"><a class="anchor" href="#models">模型</a></h2>
|
||||
<p>拿到模型列表之前,magpie 先给出套餐的模型:glm-5.3、glm-5.1、kimi-k2.6、deepseek-v4.1-flash、deepseek-v4-flash。模型名都是小写,和华为云 OpenClaw 文档里的写法一样。列表拿到后,以华为云返回的为准。</p>
|
||||
|
||||
<h2 id="agents"><a class="anchor" href="#agents">在各个工具里用</a></h2>
|
||||
<ul>
|
||||
<li><b>Claude Code</b> 说的是 Anthropic Messages,华为云套餐有 Anthropic 接口,请求原样转过去。见 <a href="/docs/zh/claude-code-models">Claude Code 接入国产模型</a>。</li>
|
||||
<li><b>Codex</b> 只说 OpenAI 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 在本地网关做转换。见 <a href="/docs/zh/gemini-cli-models">Gemini CLI 接入其他模型</a>。</li>
|
||||
<li><b>OpenCode</b>:magpie 把模型写进 opencode.json。见 <a href="/docs/zh/opencode-models">OpenCode 接入其他模型</a>。</li>
|
||||
</ul>
|
||||
|
||||
<h2 id="faq"><a class="anchor" href="#faq">常见问题</a></h2>
|
||||
<h3>华为云 Token Plan 怎么接入 Claude Code?</h3>
|
||||
<p>在 magpie 里添加 Huawei Cloud MaaS,把 Key 的套餐选成 Token Plan,然后在 Claude Code 那一行选 glm-5.3 这类模型,或运行 magpie claude huaweicloud/glm-5.3。请求走套餐的 Anthropic 接口 https://api.modelarts-maas.com/plan/anthropic。</p>
|
||||
<h3>华为云 MaaS 能在 Codex 里用吗?</h3>
|
||||
<p>能。华为云没有 Responses 接口,magpie 把 Codex 的请求转换成 Chat Completions,自定义工具也照常能用。运行 magpie codex huaweicloud/deepseek-v4.1-flash。</p>
|
||||
<h3>为什么要用 /plan 下的地址?</h3>
|
||||
<p>Token Plan 的额度只在 /plan/v2 和 /plan/anthropic 上扣,发到 /openai/v1 等按量付费接口的请求会另外计费。magpie 默认用套餐的接口。</p>
|
||||
<h3>华为云 Token Plan 有哪些模型?</h3>
|
||||
<p>magpie 先给出 glm-5.3、glm-5.1、kimi-k2.6、deepseek-v4.1-flash 和 deepseek-v4-flash,拿到华为云的模型列表后以列表为准。</p>
|
||||
|
||||
<p style="margin-top:48px">同一套方法用在其他国产模型:<a href="/docs/zh/tencent-cloud">腾讯云</a>、<a href="/docs/zh/baidu-qianfan">百度千帆</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>
|
||||
@@ -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/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><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/huaweicloud">华为云 MaaS</a> · <a href="/docs/zh/xiaomi-mimo">小米 MiMo</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>
|
||||
|
||||
@@ -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/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><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/huaweicloud">华为云 MaaS</a> · <a href="/docs/zh/xiaomi-mimo">小米 MiMo</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>
|
||||
|
||||
@@ -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/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><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/huaweicloud">华为云 MaaS</a> · <a href="/docs/zh/xiaomi-mimo">小米 MiMo</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>
|
||||
|
||||
@@ -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/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>
|
||||
<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/huaweicloud">华为云 MaaS</a> · <a href="/docs/zh/xiaomi-mimo">小米 MiMo</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>
|
||||
|
||||
@@ -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/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><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/huaweicloud">华为云 MaaS</a> · <a href="/docs/zh/xiaomi-mimo">小米 MiMo</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>
|
||||
|
||||
@@ -0,0 +1,279 @@
|
||||
<!doctype html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>小米 MiMo Token Plan 接入 Claude Code、Codex、OpenCode:MiMo V2.6 Pro 用在任意 Agent · magpie</title>
|
||||
<meta name="description" content="在 magpie 里添加小米 MiMo 开放平台的 Token Plan(中国、新加坡、欧洲)或按量付费 Key,让 Claude Code、Codex、Gemini CLI、OpenCode 用上 mimo-v2.6-pro、mimo-v2.6-flash:各区域的接口地址、套餐模型的价格显示,以及和 MiMo 网页版订阅的区别。">
|
||||
<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/xiaomi-mimo">
|
||||
<link rel="alternate" hreflang="zh" href="https://usemagpie.ai/docs/zh/xiaomi-mimo">
|
||||
<link rel="alternate" hreflang="ja" href="https://usemagpie.ai/docs/ja/xiaomi-mimo">
|
||||
<link rel="alternate" hreflang="x-default" href="https://usemagpie.ai/docs/xiaomi-mimo">
|
||||
<link rel="canonical" href="https://usemagpie.ai/docs/zh/xiaomi-mimo">
|
||||
<link rel="stylesheet" href="/docs.css">
|
||||
<meta property="og:site_name" content="magpie">
|
||||
<meta property="og:title" content="小米 MiMo Token Plan 接入 Claude Code 和 Codex">
|
||||
<meta property="og:description" content="在 magpie 里添加小米 MiMo 开放平台的 Token Plan(中国、新加坡、欧洲)或按量付费 Key,让 Claude Code、Codex、Gemini CLI、OpenCode 用上 mimo-v2.6-pro、mimo-v2.6-flash:各区域的接口地址、套餐模型的价格显示,以及和 MiMo 网页版订阅的区别。">
|
||||
<meta property="og:image" content="https://usemagpie.ai/img/og.png">
|
||||
<meta property="og:url" content="https://usemagpie.ai/docs/zh/xiaomi-mimo">
|
||||
<meta name="twitter:card" content="summary_large_image">
|
||||
<script type="application/ld+json">
|
||||
{
|
||||
"@context": "https://schema.org",
|
||||
"@graph": [
|
||||
{
|
||||
"@type": "TechArticle",
|
||||
"headline": "小米 MiMo Token Plan 接入 Claude Code 和 Codex",
|
||||
"description": "在 magpie 里添加小米 MiMo 开放平台的 Token Plan(中国、新加坡、欧洲)或按量付费 Key,让 Claude Code、Codex、Gemini CLI、OpenCode 用上 mimo-v2.6-pro、mimo-v2.6-flash:各区域的接口地址、套餐模型的价格显示,以及和 MiMo 网页版订阅的区别。",
|
||||
"inLanguage": "zh-CN",
|
||||
"url": "https://usemagpie.ai/docs/zh/xiaomi-mimo",
|
||||
"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": "小米 MiMo 怎么接入 Claude Code?",
|
||||
"acceptedAnswer": {
|
||||
"@type": "Answer",
|
||||
"text": "在 magpie 里添加 Xiaomi MiMo,给 tp- Key 选所在区域(比如 Plan · China),然后在 Claude Code 那一行选 mimo-v2.6-pro,或运行 magpie claude xiaomi/mimo-v2.6-pro。请求走该区域的 Anthropic 接口,比如 https://token-plan-cn.xiaomimimo.com/anthropic。"
|
||||
}
|
||||
},
|
||||
{
|
||||
"@type": "Question",
|
||||
"name": "MiMo Token Plan 的 Key 能跨区域用吗?",
|
||||
"acceptedAnswer": {
|
||||
"@type": "Answer",
|
||||
"text": "不能。tp- Key 只在购买时所在区域的地址上扣额度。在 magpie 里给每个 Key 选对区域即可,几个区域的 Key 可以放在同一个供应商里。"
|
||||
}
|
||||
},
|
||||
{
|
||||
"@type": "Question",
|
||||
"name": "MiMo 能在 Codex 里用吗?",
|
||||
"acceptedAnswer": {
|
||||
"@type": "Answer",
|
||||
"text": "能。MiMo 每个区域都提供 OpenAI Responses,magpie 把 Codex 的请求原样转过去。运行 magpie codex xiaomi/mimo-v2.6-pro。"
|
||||
}
|
||||
},
|
||||
{
|
||||
"@type": "Question",
|
||||
"name": "MiMo 网页版的订阅也能用吗?",
|
||||
"acceptedAnswer": {
|
||||
"@type": "Answer",
|
||||
"text": "能,但不在这个供应商里。用小米账号登录的 MiMo 网页版订阅由社区插件 @magpie-community/opencode-mimo-auth 提供,在 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": "小米 MiMo Token Plan 接入 Claude Code 和 Codex",
|
||||
"item": "https://usemagpie.ai/docs/zh/xiaomi-mimo"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
</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/xiaomi-mimo" hreflang="en" lang="en">English</a>
|
||||
<a href="/docs/zh/xiaomi-mimo" hreflang="zh" lang="zh">中文</a>
|
||||
<a href="/docs/ja/xiaomi-mimo" 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>小米 MiMo</p>
|
||||
<a href="#overview">概览</a>
|
||||
<a href="#add">添加小米 MiMo</a>
|
||||
<a href="#regions">区域与接口地址</a>
|
||||
<a href="#models">模型</a>
|
||||
<a href="#agents">在各个工具里用</a>
|
||||
<a href="#app">MiMo 网页版订阅</a>
|
||||
<a href="#faq">常见问题</a>
|
||||
</aside>
|
||||
|
||||
<article>
|
||||
<p class="eyebrow" id="overview">文档 · 供应商</p>
|
||||
<h1>小米 MiMo Token Plan 接入 Claude Code 和 Codex</h1>
|
||||
<p class="lede">小米 MiMo 开放平台有 Token Plan 和按量付费。Token Plan 的 Key 以 tp- 开头,只能用在所在区域(中国、新加坡、欧洲)自己的地址上;按量付费用 api.xiaomimimo.com。每个地址都提供 Chat Completions、Responses 和 Anthropic Messages,所以 Claude Code、Codex 和 OpenCode 的请求都能原样转过去,magpie 的本地网关 127.0.0.1:3425 只负责路由和 Key。</p>
|
||||
|
||||
<h2 id="add"><a class="anchor" href="#add">添加小米 MiMo</a></h2>
|
||||
<ol class="steps">
|
||||
<li><b>添加供应商并选套餐</b>在 <span class="ui">供应商</span> 页点 <span class="ui">+ 添加供应商</span>,选 <span class="ui">Xiaomi MiMo</span>,给 Key 选 <span class="ui">Plan · China</span>、<span class="ui">Plan · Singapore</span>、<span class="ui">Plan · Europe</span>、<span class="ui">Pay as you go</span>,粘贴 Key 并保存。</li>
|
||||
<li><b>给工具选上</b>在 <span class="ui">Agent</span> 页给某个工具选 mimo-v2.6-pro 这类模型。</li>
|
||||
</ol>
|
||||
<div class="code"><span class="lang">终端</span><button class="copy" data-copy="mm-cli">复制</button><pre id="mm-cli">magpie claude xiaomi/mimo-v2.6-pro
|
||||
magpie codex xiaomi/mimo-v2.6-pro
|
||||
magpie opencode xiaomi/mimo-v2.6-flash</pre></div>
|
||||
|
||||
<h2 id="regions"><a class="anchor" href="#regions">区域与接口地址</a></h2>
|
||||
<div class="table-wrap"><table>
|
||||
<tr><th>套餐</th><th>Chat Completions 与 Responses</th><th>Anthropic Messages</th></tr>
|
||||
<tr><td>Token Plan · 中国</td><td><code>https://token-plan-cn.xiaomimimo.com/v1</code></td><td><code>https://token-plan-cn.xiaomimimo.com/anthropic</code></td></tr>
|
||||
<tr><td>Token Plan · 新加坡</td><td><code>https://token-plan-sgp.xiaomimimo.com/v1</code></td><td><code>https://token-plan-sgp.xiaomimimo.com/anthropic</code></td></tr>
|
||||
<tr><td>Token Plan · 欧洲</td><td><code>https://token-plan-ams.xiaomimimo.com/v1</code></td><td><code>https://token-plan-ams.xiaomimimo.com/anthropic</code></td></tr>
|
||||
<tr><td>按量付费</td><td><code>https://api.xiaomimimo.com/v1</code></td><td><code>https://api.xiaomimimo.com/anthropic</code></td></tr>
|
||||
</table></div>
|
||||
<p>Token Plan 的 tp- Key 只在购买时所在区域的地址上扣额度。供应商里的每个 Key 都标明自己的区域,几个区域和按量付费的 Key 可以放在同一个供应商里。套餐在 platform.xiaomimimo.com/token-plan 购买和取 Key。</p>
|
||||
|
||||
<h2 id="models"><a class="anchor" href="#models">模型</a></h2>
|
||||
<p>每个区域用自己的目录:套餐区域先列套餐里的模型,再列小米的公共目录;按量付费只用公共目录。主要的对话模型是 mimo-v2.6-pro、mimo-v2.6-flash、mimo-v2.5-pro 和 mimo-v2.5。套餐目录里的模型标价为 0,magpie 不拿这个 0 当价格,按量付费的请求按小米自己的价格计费,不会记成 0 元。模型列表从 api.xiaomimimo.com 读取。</p>
|
||||
|
||||
<h2 id="agents"><a class="anchor" href="#agents">在各个工具里用</a></h2>
|
||||
<ul>
|
||||
<li><b>Claude Code</b> 说的是 Anthropic Messages。MiMo 每个区域都有 Anthropic 接口,请求原样转过去。见 <a href="/docs/zh/claude-code-models">Claude Code 接入国产模型</a>。</li>
|
||||
<li><b>Codex</b> 只说 OpenAI Responses。MiMo 每个区域都提供 Responses,Codex 的请求原样转过去。模型会出现在 Codex 的 <code>/model</code> 里。见 <a href="/docs/zh/codex-models">Codex 接入第三方模型</a>。</li>
|
||||
<li><b>Gemini CLI</b> 说 Gemini 的 API,magpie 把它指向本地网关并做转换。见 <a href="/docs/zh/gemini-cli-models">Gemini CLI 接入其他模型</a>。</li>
|
||||
<li><b>OpenCode</b>:magpie 把模型写进 opencode.json。见 <a href="/docs/zh/opencode-models">OpenCode 接入其他模型</a>。</li>
|
||||
</ul>
|
||||
|
||||
<h2 id="app"><a class="anchor" href="#app">MiMo 网页版订阅</a></h2>
|
||||
<p>这一页讲的是开放平台的 API Key。用小米账号登录的 MiMo 网页版订阅(mimo-app)是另一回事:它已从 magpie 内置移到社区插件 <code>@magpie-community/opencode-mimo-auth</code>,在 magpie 的插件页安装后登录即可。</p>
|
||||
|
||||
<h2 id="faq"><a class="anchor" href="#faq">常见问题</a></h2>
|
||||
<h3>小米 MiMo 怎么接入 Claude Code?</h3>
|
||||
<p>在 magpie 里添加 Xiaomi MiMo,给 tp- Key 选所在区域(比如 Plan · China),然后在 Claude Code 那一行选 mimo-v2.6-pro,或运行 magpie claude xiaomi/mimo-v2.6-pro。请求走该区域的 Anthropic 接口,比如 https://token-plan-cn.xiaomimimo.com/anthropic。</p>
|
||||
<h3>MiMo Token Plan 的 Key 能跨区域用吗?</h3>
|
||||
<p>不能。tp- Key 只在购买时所在区域的地址上扣额度。在 magpie 里给每个 Key 选对区域即可,几个区域的 Key 可以放在同一个供应商里。</p>
|
||||
<h3>MiMo 能在 Codex 里用吗?</h3>
|
||||
<p>能。MiMo 每个区域都提供 OpenAI Responses,magpie 把 Codex 的请求原样转过去。运行 magpie codex xiaomi/mimo-v2.6-pro。</p>
|
||||
<h3>MiMo 网页版的订阅也能用吗?</h3>
|
||||
<p>能,但不在这个供应商里。用小米账号登录的 MiMo 网页版订阅由社区插件 @magpie-community/opencode-mimo-auth 提供,在 magpie 的插件页安装。</p>
|
||||
|
||||
<p style="margin-top:48px">同一套方法用在其他国产模型:<a href="/docs/zh/tencent-cloud">腾讯云</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>
|
||||
+135
-11
@@ -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) · [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)
|
||||
**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) · [Huawei Cloud MaaS](https://usemagpie.ai/docs/huaweicloud) · [Xiaomi MiMo](https://usemagpie.ai/docs/xiaomi-mimo) · [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) · [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)
|
||||
**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) · [Huawei Cloud MaaS](https://usemagpie.ai/docs/huaweicloud) · [Xiaomi MiMo](https://usemagpie.ai/docs/xiaomi-mimo) · [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) · [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)
|
||||
**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) · [Huawei Cloud MaaS](https://usemagpie.ai/docs/huaweicloud) · [Xiaomi MiMo](https://usemagpie.ai/docs/xiaomi-mimo) · [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) · [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)
|
||||
**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) · [Huawei Cloud MaaS](https://usemagpie.ai/docs/huaweicloud) · [Xiaomi MiMo](https://usemagpie.ai/docs/xiaomi-mimo) · [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
|
||||
|
||||
@@ -1811,6 +1811,130 @@ The same for other providers: [SiliconFlow](https://usemagpie.ai/docs/siliconflo
|
||||
|
||||
---
|
||||
|
||||
Source: https://usemagpie.ai/docs/huaweicloud
|
||||
|
||||
# Huawei Cloud MaaS Token Plan in Claude Code and Codex
|
||||
|
||||
Huawei Cloud ModelArts MaaS's Token Plan is for personal accounts in 西南-贵阳一 (Guiyang) and serves GLM, Kimi and DeepSeek over Chat Completions and Anthropic Messages. Add Huawei Cloud in magpie with the plan, and Claude Code, Codex, Gemini CLI and OpenCode use them through magpie's local gateway on 127.0.0.1:3425.
|
||||
|
||||
## Add Huawei Cloud
|
||||
|
||||
1. **Add the provider and pick the plan.** On Providers, click + Add provider, pick Huawei Cloud MaaS, set the key's plan to Token Plan or Pay as you go, paste the key and save.
|
||||
2. **Pick it for a tool.** On Agents, pick a model such as glm-5.3 on a tool's row.
|
||||
|
||||
```
|
||||
magpie claude huaweicloud/glm-5.3
|
||||
magpie codex huaweicloud/deepseek-v4.1-flash
|
||||
magpie opencode huaweicloud/kimi-k2.6
|
||||
```
|
||||
|
||||
## Plans and endpoints
|
||||
|
||||
| Plan | Chat Completions | Anthropic Messages |
|
||||
| --- | --- | --- |
|
||||
| Token Plan | `https://api.modelarts-maas.com/plan/v2` | `https://api.modelarts-maas.com/plan/anthropic` |
|
||||
| Pay as you go | `https://api.modelarts-maas.com/openai/v1` | `https://api.modelarts-maas.com/anthropic` |
|
||||
|
||||
The Token Plan's quota is spent only at the endpoints under `/plan`, so magpie uses the plan's by default; pay as you go bills apart. Both take a MaaS API key, made under the ModelArts console's authentication management. Each key in the provider names its plan. Neither serves Responses.
|
||||
|
||||
## Models
|
||||
|
||||
Until its list is fetched, magpie gives the plan's models: glm-5.3, glm-5.1, kimi-k2.6, deepseek-v4.1-flash, deepseek-v4-flash, lowercase as Huawei's OpenClaw page writes them. Once the list is in, Huawei's own list is the one served.
|
||||
|
||||
## In each agent
|
||||
|
||||
- **Claude Code.** speaks Anthropic Messages, which the plan serves, so requests go as they are. See [Claude Code with other models](https://usemagpie.ai/docs/claude-code-models).
|
||||
- **Codex.** speaks only OpenAI Responses, which Huawei Cloud doesn't serve, so magpie converts to Chat Completions; custom tools such as `apply_patch` go to the model as functions and come back as Codex can run them. See [Codex with other models](https://usemagpie.ai/docs/codex-models).
|
||||
- **Gemini CLI.** speaks Gemini's API; magpie translates at the local gateway. See [Gemini CLI with other models](https://usemagpie.ai/docs/gemini-cli-models).
|
||||
- **OpenCode.** : magpie writes the models into opencode.json. See [OpenCode with other models](https://usemagpie.ai/docs/opencode-models).
|
||||
|
||||
## FAQ
|
||||
|
||||
### How do I use the Huawei Cloud Token Plan in Claude Code?
|
||||
|
||||
Add Huawei Cloud MaaS in magpie with the key's plan set to Token Plan, then pick glm-5.3 on Claude Code's row, or run magpie claude huaweicloud/glm-5.3. Requests go to the plan's Anthropic endpoint, https://api.modelarts-maas.com/plan/anthropic.
|
||||
|
||||
### Does Huawei Cloud MaaS work in Codex?
|
||||
|
||||
Yes. Huawei Cloud has no Responses endpoint, so magpie converts Codex's requests to Chat Completions, custom tools included. Run magpie codex huaweicloud/deepseek-v4.1-flash.
|
||||
|
||||
### Why the endpoints under /plan?
|
||||
|
||||
The Token Plan's quota is spent only at /plan/v2 and /plan/anthropic; requests to pay as you go's /openai/v1 bill apart. magpie uses the plan's endpoints by default.
|
||||
|
||||
### Which models does the Huawei Cloud Token Plan have?
|
||||
|
||||
magpie gives glm-5.3, glm-5.1, kimi-k2.6, deepseek-v4.1-flash and deepseek-v4-flash until Huawei's list is fetched, and then serves that list.
|
||||
|
||||
The same for other providers: [Tencent Cloud](https://usemagpie.ai/docs/tencent-cloud), [Baidu Qianfan](https://usemagpie.ai/docs/baidu-qianfan), [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/xiaomi-mimo
|
||||
|
||||
# Xiaomi MiMo Token Plan in Claude Code and Codex
|
||||
|
||||
Xiaomi's MiMo platform has a Token Plan and pay as you go. A Token Plan's tp- key works only at its region's own host (China, Singapore or Europe); pay as you go is api.xiaomimimo.com. Each serves Chat Completions, Responses and Anthropic Messages, so Claude Code's, Codex's and OpenCode's requests go as they are, with magpie's local gateway on 127.0.0.1:3425 routing them and holding the key.
|
||||
|
||||
## Add Xiaomi MiMo
|
||||
|
||||
1. **Add the provider and pick the plan.** On Providers, click + Add provider, pick Xiaomi MiMo, set the key's plan to Plan · China, Plan · Singapore, Plan · Europe, Pay as you go, paste the key and save.
|
||||
2. **Pick it for a tool.** On Agents, pick a model such as mimo-v2.6-pro on a tool's row.
|
||||
|
||||
```
|
||||
magpie claude xiaomi/mimo-v2.6-pro
|
||||
magpie codex xiaomi/mimo-v2.6-pro
|
||||
magpie opencode xiaomi/mimo-v2.6-flash
|
||||
```
|
||||
|
||||
## Regions and endpoints
|
||||
|
||||
| Plan | Chat Completions and Responses | Anthropic Messages |
|
||||
| --- | --- | --- |
|
||||
| Token Plan · China | `https://token-plan-cn.xiaomimimo.com/v1` | `https://token-plan-cn.xiaomimimo.com/anthropic` |
|
||||
| Token Plan · Singapore | `https://token-plan-sgp.xiaomimimo.com/v1` | `https://token-plan-sgp.xiaomimimo.com/anthropic` |
|
||||
| Token Plan · Europe | `https://token-plan-ams.xiaomimimo.com/v1` | `https://token-plan-ams.xiaomimimo.com/anthropic` |
|
||||
| Pay as you go | `https://api.xiaomimimo.com/v1` | `https://api.xiaomimimo.com/anthropic` |
|
||||
|
||||
A Token Plan's tp- key is spent only at the host of the region it was bought in. Each key in the provider names its region, so keys from several regions and pay as you go can share one provider. Plans and their keys are at platform.xiaomimimo.com/token-plan.
|
||||
|
||||
## Models
|
||||
|
||||
Each region names its own catalog: a plan's region lists the plan's models before Xiaomi's public catalog, and pay as you go uses the public one alone. The main chat models are mimo-v2.6-pro, mimo-v2.6-flash, mimo-v2.5-pro and mimo-v2.5. The plan catalogs price their models at $0, which magpie doesn't take as a price, so a pay-as-you-go call is counted at Xiaomi's own prices, not at $0. The model list is read from api.xiaomimimo.com.
|
||||
|
||||
## In each agent
|
||||
|
||||
- **Claude Code.** speaks Anthropic Messages. Each MiMo region has an Anthropic endpoint, so requests go as they are. See [Claude Code with other models](https://usemagpie.ai/docs/claude-code-models).
|
||||
- **Codex.** speaks only OpenAI Responses. Each MiMo region serves Responses, so Codex's requests go as they are. The models show in Codex's `/model`. See [Codex with other models](https://usemagpie.ai/docs/codex-models).
|
||||
- **Gemini CLI.** speaks Gemini's API; magpie points it at the local gateway and translates. See [Gemini CLI with other models](https://usemagpie.ai/docs/gemini-cli-models).
|
||||
- **OpenCode.** : magpie writes the models into opencode.json. See [OpenCode with other models](https://usemagpie.ai/docs/opencode-models).
|
||||
|
||||
## The MiMo app subscription
|
||||
|
||||
This page is about the platform's API keys. The MiMo app subscription you sign in to with a Xiaomi account (mimo-app) is another thing: it moved out of magpie's built-ins into the community plugin `@magpie-community/opencode-mimo-auth`; install it from magpie's Plugins page and sign in.
|
||||
|
||||
## FAQ
|
||||
|
||||
### How do I use Xiaomi MiMo in Claude Code?
|
||||
|
||||
Add Xiaomi MiMo in magpie with your tp- key's region (say Plan · China), then pick mimo-v2.6-pro on Claude Code's row, or run magpie claude xiaomi/mimo-v2.6-pro. Requests go to that region's Anthropic endpoint, such as https://token-plan-cn.xiaomimimo.com/anthropic.
|
||||
|
||||
### Does a MiMo Token Plan key work in another region?
|
||||
|
||||
No. A tp- key is spent only at its own region's host. Set each key's region in magpie; keys from several regions can share one provider.
|
||||
|
||||
### Does MiMo work in Codex?
|
||||
|
||||
Yes. Each MiMo region serves OpenAI Responses, so magpie passes Codex's requests through. Run magpie codex xiaomi/mimo-v2.6-pro.
|
||||
|
||||
### Can I use the MiMo app subscription too?
|
||||
|
||||
Yes, but not in this provider. The MiMo app subscription signed in with a Xiaomi account is served by the community plugin @magpie-community/opencode-mimo-auth; install it from magpie's Plugins page.
|
||||
|
||||
The same for other providers: [Tencent Cloud](https://usemagpie.ai/docs/tencent-cloud), [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
|
||||
@@ -2123,7 +2247,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) · [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)
|
||||
**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) · [Huawei Cloud MaaS](https://usemagpie.ai/docs/huaweicloud) · [Xiaomi MiMo](https://usemagpie.ai/docs/xiaomi-mimo) · [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.
|
||||
|
||||
@@ -2426,7 +2550,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) · [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)
|
||||
**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) · [Huawei Cloud MaaS](https://usemagpie.ai/docs/huaweicloud) · [Xiaomi MiMo](https://usemagpie.ai/docs/xiaomi-mimo) · [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.
|
||||
|
||||
@@ -2564,7 +2688,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) · [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)
|
||||
**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) · [Huawei Cloud MaaS](https://usemagpie.ai/docs/huaweicloud) · [Xiaomi MiMo](https://usemagpie.ai/docs/xiaomi-mimo) · [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.
|
||||
|
||||
@@ -2697,7 +2821,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) · [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)
|
||||
**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) · [Huawei Cloud MaaS](https://usemagpie.ai/docs/huaweicloud) · [Xiaomi MiMo](https://usemagpie.ai/docs/xiaomi-mimo) · [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.
|
||||
|
||||
@@ -2881,7 +3005,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) · [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)
|
||||
**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) · [Huawei Cloud MaaS](https://usemagpie.ai/docs/huaweicloud) · [Xiaomi MiMo](https://usemagpie.ai/docs/xiaomi-mimo) · [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.
|
||||
|
||||
@@ -3025,7 +3149,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) · [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)
|
||||
**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) · [Huawei Cloud MaaS](https://usemagpie.ai/docs/huaweicloud) · [Xiaomi MiMo](https://usemagpie.ai/docs/xiaomi-mimo) · [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.
|
||||
|
||||
@@ -3176,7 +3300,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) · [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)
|
||||
**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) · [Huawei Cloud MaaS](https://usemagpie.ai/docs/huaweicloud) · [Xiaomi MiMo](https://usemagpie.ai/docs/xiaomi-mimo) · [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.
|
||||
|
||||
|
||||
@@ -53,6 +53,8 @@ DeepSeek, Kimi (Moonshot), GLM (Zhipu), Qwen, MiniMax, Anthropic (Claude), OpenA
|
||||
- [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.
|
||||
- [Huawei Cloud MaaS Token Plan in Claude Code and Codex](https://usemagpie.ai/docs/huaweicloud): the Token Plan and pay as you go endpoints at api.modelarts-maas.com, GLM, Kimi and DeepSeek, Codex converted to Chat Completions.
|
||||
- [Xiaomi MiMo Token Plan in Claude Code and Codex](https://usemagpie.ai/docs/xiaomi-mimo): tp- keys per region (China, Singapore, Europe) and pay as you go, Chat, Responses and Anthropic at each host, mimo-v2.6-pro.
|
||||
- [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.
|
||||
|
||||
@@ -51,6 +51,8 @@
|
||||
<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/huaweicloud</loc></url>
|
||||
<url><loc>https://usemagpie.ai/docs/xiaomi-mimo</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>
|
||||
@@ -108,6 +110,8 @@
|
||||
<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/huaweicloud</loc></url>
|
||||
<url><loc>https://usemagpie.ai/docs/zh/xiaomi-mimo</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>
|
||||
@@ -164,6 +168,8 @@
|
||||
<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/huaweicloud</loc></url>
|
||||
<url><loc>https://usemagpie.ai/docs/ja/xiaomi-mimo</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>
|
||||
|
||||
Reference in New Issue
Block a user