site: Tencent Cloud and Baidu Qianfan docs pages in en, zh and ja
/docs/tencent-cloud says how to use Tencent Cloud's TokenHub in Claude
Code, Codex, Gemini CLI and OpenCode through magpie: the Token Plan
(个人版 and 企业版, one set of endpoints under /plan, the key telling
the plan) and pay as you go (/v1, China and Global), and the enterprise
plan in Singapore; a plan per key; the plans' models given by magpie
since models.dev names only their Hy ones; the move from
api.lkeap.cloud.tencent.com; the enterprise quota read with the
account's SecretId and SecretKey onto the Usage page, the personal plan
having no API for it. From internal/provider/presets.go (tencent-cloud
and its comment) and tencent_usage.go's header and test.
/docs/baidu-qianfan says the same for Baidu Qianfan: Token Plan
Personal and Enterprise at /v2/tokenplan/{personal,team} and
/anthropic/tokenplan/{personal,team}, pay as you go at /v2 with its
list at /v2/models, the plans' /models being 404; the models magpie
gives, deepseek-v4-flash, deepseek-v3.2 and glm-5 the enterprise plan's
alone; qianfan-code-latest as the console's pick. From presets.go's
baidu-qianfan preset and comment.
Both linked from each language's "By provider" line after Volcengine
Ark (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 Tencent Cloud or Qianfan 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/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/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>
|
||||
|
||||
@@ -0,0 +1,274 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>Baidu Qianfan Token Plan in Claude Code, Codex and OpenCode: DeepSeek and GLM in any agent · magpie</title>
|
||||
<meta name="description" content="Add a Baidu Qianfan Token Plan (personal or enterprise) or pay-as-you-go key to magpie and use Qianfan's DeepSeek and GLM in Claude Code, Codex, Gemini CLI and OpenCode: each plan's endpoints, the plans' models, qianfan-code-latest and pay as you go's model list.">
|
||||
<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/baidu-qianfan">
|
||||
<link rel="alternate" hreflang="zh" href="https://usemagpie.ai/docs/zh/baidu-qianfan">
|
||||
<link rel="alternate" hreflang="ja" href="https://usemagpie.ai/docs/ja/baidu-qianfan">
|
||||
<link rel="alternate" hreflang="x-default" href="https://usemagpie.ai/docs/baidu-qianfan">
|
||||
<link rel="canonical" href="https://usemagpie.ai/docs/baidu-qianfan">
|
||||
<link rel="stylesheet" href="/docs.css">
|
||||
<meta property="og:site_name" content="magpie">
|
||||
<meta property="og:title" content="Baidu Qianfan Token Plan in Claude Code and Codex">
|
||||
<meta property="og:description" content="Add a Baidu Qianfan Token Plan (personal or enterprise) or pay-as-you-go key to magpie and use Qianfan's DeepSeek and GLM in Claude Code, Codex, Gemini CLI and OpenCode: each plan's endpoints, the plans' models, qianfan-code-latest and pay as you go's model list.">
|
||||
<meta property="og:image" content="https://usemagpie.ai/img/og.png">
|
||||
<meta property="og:url" content="https://usemagpie.ai/docs/baidu-qianfan">
|
||||
<meta name="twitter:card" content="summary_large_image">
|
||||
<script type="application/ld+json">
|
||||
{
|
||||
"@context": "https://schema.org",
|
||||
"@graph": [
|
||||
{
|
||||
"@type": "TechArticle",
|
||||
"headline": "Baidu Qianfan Token Plan in Claude Code and Codex",
|
||||
"description": "Add a Baidu Qianfan Token Plan (personal or enterprise) or pay-as-you-go key to magpie and use Qianfan's DeepSeek and GLM in Claude Code, Codex, Gemini CLI and OpenCode: each plan's endpoints, the plans' models, qianfan-code-latest and pay as you go's model list.",
|
||||
"inLanguage": "en",
|
||||
"url": "https://usemagpie.ai/docs/baidu-qianfan",
|
||||
"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 Baidu Qianfan Token Plan in Claude Code?",
|
||||
"acceptedAnswer": {
|
||||
"@type": "Answer",
|
||||
"text": "Add Baidu Qianfan in magpie with the key's plan set to Token Plan Personal or Enterprise, then pick qianfan-code-latest on Claude Code's row, or run magpie claude baidu-qianfan/qianfan-code-latest. Requests go to the plan's Anthropic endpoint, such as https://qianfan.baidubce.com/anthropic/tokenplan/personal."
|
||||
}
|
||||
},
|
||||
{
|
||||
"@type": "Question",
|
||||
"name": "Which model is qianfan-code-latest?",
|
||||
"acceptedAnswer": {
|
||||
"@type": "Answer",
|
||||
"text": "The one you picked for the plan in Qianfan's console. Change it there; the name in magpie and your tools stays the same."
|
||||
}
|
||||
},
|
||||
{
|
||||
"@type": "Question",
|
||||
"name": "Do the personal and enterprise plans have the same models?",
|
||||
"acceptedAnswer": {
|
||||
"@type": "Answer",
|
||||
"text": "Mostly. deepseek-v4-flash, deepseek-v3.2 and glm-5 are the enterprise plan's alone; deepseek-v4-pro, glm-5.3 and the others are in both."
|
||||
}
|
||||
},
|
||||
{
|
||||
"@type": "Question",
|
||||
"name": "Does Baidu Qianfan work in Codex?",
|
||||
"acceptedAnswer": {
|
||||
"@type": "Answer",
|
||||
"text": "Yes. Qianfan's plan endpoints serve OpenAI Responses, so magpie passes Codex's requests through. Run magpie codex baidu-qianfan/deepseek-v4-pro, or pick it on Codex's row."
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"@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": "Baidu Qianfan Token Plan in Claude Code and Codex",
|
||||
"item": "https://usemagpie.ai/docs/baidu-qianfan"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
</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/baidu-qianfan" hreflang="en" lang="en">English</a>
|
||||
<a href="/docs/zh/baidu-qianfan" hreflang="zh" lang="zh">中文</a>
|
||||
<a href="/docs/ja/baidu-qianfan" 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>Baidu Qianfan</p>
|
||||
<a href="#overview">Overview</a>
|
||||
<a href="#add">Add Baidu Qianfan</a>
|
||||
<a href="#plans">Plans and endpoints</a>
|
||||
<a href="#models">The plans' 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>Baidu Qianfan Token Plan in Claude Code and Codex</h1>
|
||||
<p class="lede">Baidu Qianfan (百度千帆) has two Token Plans, personal and enterprise, and pay as you go, each with endpoints and keys of its own. Add Baidu Qianfan in magpie with each key's plan, and Claude Code, Codex, Gemini CLI, OpenCode and other tools use Qianfan's DeepSeek and GLM through magpie's local gateway on 127.0.0.1:3425.</p>
|
||||
|
||||
<h2 id="add"><a class="anchor" href="#add">Add Baidu Qianfan</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">Baidu Qianfan</span>, set the key's plan to <span class="ui">Token Plan Personal</span>, <span class="ui">Token Plan Enterprise</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 qianfan-code-latest or deepseek-v4-pro on a tool's row.</li>
|
||||
</ol>
|
||||
<div class="code"><span class="lang">Terminal</span><button class="copy" data-copy="qf-cli">Copy</button><pre id="qf-cli">magpie claude baidu-qianfan/qianfan-code-latest
|
||||
magpie codex baidu-qianfan/deepseek-v4-pro
|
||||
magpie opencode baidu-qianfan/glm-5.3</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 and Responses</th><th>Anthropic Messages</th></tr>
|
||||
<tr><td>Token Plan personal</td><td><code>https://qianfan.baidubce.com/v2/tokenplan/personal</code></td><td><code>https://qianfan.baidubce.com/anthropic/tokenplan/personal</code></td></tr>
|
||||
<tr><td>Token Plan enterprise</td><td><code>https://qianfan.baidubce.com/v2/tokenplan/team</code></td><td><code>https://qianfan.baidubce.com/anthropic/tokenplan/team</code></td></tr>
|
||||
<tr><td>Pay as you go</td><td><code>https://qianfan.baidubce.com/v2</code></td><td><code>https://qianfan.baidubce.com/anthropic</code></td></tr>
|
||||
</table></div>
|
||||
<p>Each plan's key works at its own endpoints. Each key in the provider names its plan, so personal, enterprise and pay-as-you-go keys can share one provider, and each key's requests go to its own plan's endpoint.</p>
|
||||
|
||||
<h2 id="models"><a class="anchor" href="#models">The plans' models</a></h2>
|
||||
<p>The plans' <code>/models</code> answers 404, so magpie gives the models from both plans' docs: qianfan-code-latest, deepseek-v4.1-flash, deepseek-v4-pro, deepseek-v4-pro-0813, deepseek-v4-flash-0731, glm-5.3, glm-5.3-flash, glm-5.2, glm-5.1, among others. deepseek-v4-flash, deepseek-v3.2 and glm-5 are the enterprise plan's alone. qianfan-code-latest is whichever model the console has picked. A pay-as-you-go key reads Qianfan's <code>/v2/models</code>.</p>
|
||||
|
||||
<h2 id="agents"><a class="anchor" href="#agents">In each agent</a></h2>
|
||||
<ul>
|
||||
<li><b>Claude Code</b> speaks Anthropic Messages. Qianfan's plans and pay as you go have Anthropic endpoints, 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. Qianfan's plan endpoints serve Responses too, 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="faq"><a class="anchor" href="#faq">FAQ</a></h2>
|
||||
<h3>How do I use the Baidu Qianfan Token Plan in Claude Code?</h3>
|
||||
<p>Add Baidu Qianfan in magpie with the key's plan set to Token Plan Personal or Enterprise, then pick qianfan-code-latest on Claude Code's row, or run magpie claude baidu-qianfan/qianfan-code-latest. Requests go to the plan's Anthropic endpoint, such as https://qianfan.baidubce.com/anthropic/tokenplan/personal.</p>
|
||||
<h3>Which model is qianfan-code-latest?</h3>
|
||||
<p>The one you picked for the plan in Qianfan's console. Change it there; the name in magpie and your tools stays the same.</p>
|
||||
<h3>Do the personal and enterprise plans have the same models?</h3>
|
||||
<p>Mostly. deepseek-v4-flash, deepseek-v3.2 and glm-5 are the enterprise plan's alone; deepseek-v4-pro, glm-5.3 and the others are in both.</p>
|
||||
<h3>Does Baidu Qianfan work in Codex?</h3>
|
||||
<p>Yes. Qianfan's plan endpoints serve OpenAI Responses, so magpie passes Codex's requests through. Run magpie codex baidu-qianfan/deepseek-v4-pro, or pick it on Codex's row.</p>
|
||||
|
||||
<p style="margin-top:48px">The same for other providers: <a href="/docs/volcengine">Volcengine Ark</a>, <a href="/docs/tencent-cloud">Tencent Cloud</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>
|
||||
@@ -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/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/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/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/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/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/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/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/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/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/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>
|
||||
|
||||
@@ -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/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/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>
|
||||
|
||||
@@ -0,0 +1,274 @@
|
||||
<!doctype html>
|
||||
<html lang="ja">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>Baidu Qianfan(百度千帆)Token Plan を Claude Code、Codex、OpenCode で使う:DeepSeek と GLM を任意のエージェントで · magpie</title>
|
||||
<meta name="description" content="Baidu Qianfan の Token Plan(個人版・企業版)や従量課金キーを magpie に追加し、Claude Code、Codex、Gemini CLI、OpenCode で Qianfan の DeepSeek と GLM を使う方法:プランごとのエンドポイント、プランのモデル、qianfan-code-latest、従量課金のモデル一覧。">
|
||||
<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/baidu-qianfan">
|
||||
<link rel="alternate" hreflang="zh" href="https://usemagpie.ai/docs/zh/baidu-qianfan">
|
||||
<link rel="alternate" hreflang="ja" href="https://usemagpie.ai/docs/ja/baidu-qianfan">
|
||||
<link rel="alternate" hreflang="x-default" href="https://usemagpie.ai/docs/baidu-qianfan">
|
||||
<link rel="canonical" href="https://usemagpie.ai/docs/ja/baidu-qianfan">
|
||||
<link rel="stylesheet" href="/docs.css">
|
||||
<meta property="og:site_name" content="magpie">
|
||||
<meta property="og:title" content="Baidu Qianfan Token Plan を Claude Code と Codex で">
|
||||
<meta property="og:description" content="Baidu Qianfan の Token Plan(個人版・企業版)や従量課金キーを magpie に追加し、Claude Code、Codex、Gemini CLI、OpenCode で Qianfan の DeepSeek と GLM を使う方法:プランごとのエンドポイント、プランのモデル、qianfan-code-latest、従量課金のモデル一覧。">
|
||||
<meta property="og:image" content="https://usemagpie.ai/img/og.png">
|
||||
<meta property="og:url" content="https://usemagpie.ai/docs/ja/baidu-qianfan">
|
||||
<meta name="twitter:card" content="summary_large_image">
|
||||
<script type="application/ld+json">
|
||||
{
|
||||
"@context": "https://schema.org",
|
||||
"@graph": [
|
||||
{
|
||||
"@type": "TechArticle",
|
||||
"headline": "Baidu Qianfan Token Plan を Claude Code と Codex で",
|
||||
"description": "Baidu Qianfan の Token Plan(個人版・企業版)や従量課金キーを magpie に追加し、Claude Code、Codex、Gemini CLI、OpenCode で Qianfan の DeepSeek と GLM を使う方法:プランごとのエンドポイント、プランのモデル、qianfan-code-latest、従量課金のモデル一覧。",
|
||||
"inLanguage": "ja",
|
||||
"url": "https://usemagpie.ai/docs/ja/baidu-qianfan",
|
||||
"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": "Baidu Qianfan Token Plan を Claude Code で使うには?",
|
||||
"acceptedAnswer": {
|
||||
"@type": "Answer",
|
||||
"text": "magpie に Baidu Qianfan を追加してキーのプランを Token Plan Personal か Enterprise にし、Claude Code の行で qianfan-code-latest を選ぶか、magpie claude baidu-qianfan/qianfan-code-latest を実行します。"
|
||||
}
|
||||
},
|
||||
{
|
||||
"@type": "Question",
|
||||
"name": "qianfan-code-latest はどのモデル?",
|
||||
"acceptedAnswer": {
|
||||
"@type": "Answer",
|
||||
"text": "Qianfan のコンソールでプランに選んだモデルです。コンソールで変えれば、magpie やツール側の名前は変わりません。"
|
||||
}
|
||||
},
|
||||
{
|
||||
"@type": "Question",
|
||||
"name": "個人版と企業版のモデルは同じ?",
|
||||
"acceptedAnswer": {
|
||||
"@type": "Answer",
|
||||
"text": "ほぼ同じです。deepseek-v4-flash、deepseek-v3.2、glm-5 は企業版のみで、deepseek-v4-pro や glm-5.3 などは両方にあります。"
|
||||
}
|
||||
},
|
||||
{
|
||||
"@type": "Question",
|
||||
"name": "Baidu Qianfan は Codex で使えますか?",
|
||||
"acceptedAnswer": {
|
||||
"@type": "Answer",
|
||||
"text": "使えます。プランのエンドポイントが OpenAI Responses を提供するので、magpie は Codex のリクエストをそのまま送ります。magpie codex baidu-qianfan/deepseek-v4-pro を実行してください。"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"@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": "Baidu Qianfan Token Plan を Claude Code と Codex で",
|
||||
"item": "https://usemagpie.ai/docs/ja/baidu-qianfan"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
</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/baidu-qianfan" hreflang="en" lang="en">English</a>
|
||||
<a href="/docs/zh/baidu-qianfan" hreflang="zh" lang="zh">中文</a>
|
||||
<a href="/docs/ja/baidu-qianfan" 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>Baidu Qianfan</p>
|
||||
<a href="#overview">概要</a>
|
||||
<a href="#add">Baidu Qianfan を追加</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>Baidu Qianfan Token Plan を Claude Code と Codex で</h1>
|
||||
<p class="lede">Baidu Qianfan(百度千帆)には個人版と企業版の 2 つの Token Plan と従量課金があり、それぞれ専用のエンドポイントとキーを持ちます。magpie に Baidu Qianfan を追加して各キーのプランを選べば、Claude Code、Codex、Gemini CLI、OpenCode などが 127.0.0.1:3425 のローカルゲートウェイ経由で Qianfan の DeepSeek と GLM を使えます。</p>
|
||||
|
||||
<h2 id="add"><a class="anchor" href="#add">Baidu Qianfan を追加</a></h2>
|
||||
<ol class="steps">
|
||||
<li><b>プロバイダーを追加してプランを選ぶ</b><span class="ui">プロバイダー</span> で <span class="ui">+ プロバイダーを追加</span> を押し、<span class="ui">Baidu Qianfan</span> を選び、キーのプランを <span class="ui">Token Plan Personal</span>、<span class="ui">Token Plan Enterprise</span>、<span class="ui">Pay as you go</span> から選んで保存します。</li>
|
||||
<li><b>ツールで選ぶ</b><span class="ui">エージェント</span> でツールの行に qianfan-code-latest や deepseek-v4-pro などを選びます。</li>
|
||||
</ol>
|
||||
<div class="code"><span class="lang">ターミナル</span><button class="copy" data-copy="qf-cli">コピー</button><pre id="qf-cli">magpie claude baidu-qianfan/qianfan-code-latest
|
||||
magpie codex baidu-qianfan/deepseek-v4-pro
|
||||
magpie opencode baidu-qianfan/glm-5.3</pre></div>
|
||||
|
||||
<h2 id="plans"><a class="anchor" href="#plans">プランとエンドポイント</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://qianfan.baidubce.com/v2/tokenplan/personal</code></td><td><code>https://qianfan.baidubce.com/anthropic/tokenplan/personal</code></td></tr>
|
||||
<tr><td>Token Plan 企業版</td><td><code>https://qianfan.baidubce.com/v2/tokenplan/team</code></td><td><code>https://qianfan.baidubce.com/anthropic/tokenplan/team</code></td></tr>
|
||||
<tr><td>従量課金</td><td><code>https://qianfan.baidubce.com/v2</code></td><td><code>https://qianfan.baidubce.com/anthropic</code></td></tr>
|
||||
</table></div>
|
||||
<p>各プランのキーは自分のエンドポイントでだけ使えます。プロバイダー内の各キーが自分のプランを持つので、個人版、企業版、従量課金のキーを 1 つのプロバイダーに並べられます。</p>
|
||||
|
||||
<h2 id="models"><a class="anchor" href="#models">プランのモデル</a></h2>
|
||||
<p>プランの <code>/models</code> は 404 を返すため、magpie は両プランの資料にあるモデルを使います:qianfan-code-latest, deepseek-v4.1-flash, deepseek-v4-pro, deepseek-v4-pro-0813, deepseek-v4-flash-0731, glm-5.3, glm-5.3-flash, glm-5.2, glm-5.1 など。deepseek-v4-flash、deepseek-v3.2、glm-5 は企業版のみです。qianfan-code-latest はコンソールで選ばれているモデルです。従量課金キーは Qianfan の <code>/v2/models</code> を読みます。</p>
|
||||
|
||||
<h2 id="agents"><a class="anchor" href="#agents">各エージェントで</a></h2>
|
||||
<ul>
|
||||
<li><b>Claude Code</b> は Anthropic Messages を話します。Qianfan のプランと従量課金には Anthropic エンドポイントがあり、リクエストはそのまま送られます。<a href="/docs/ja/claude-code-models">Claude Code で他のモデル</a>。</li>
|
||||
<li><b>Codex</b> は OpenAI Responses だけを話します。Qianfan のプランのエンドポイントは 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="faq"><a class="anchor" href="#faq">よくある質問</a></h2>
|
||||
<h3>Baidu Qianfan Token Plan を Claude Code で使うには?</h3>
|
||||
<p>magpie に Baidu Qianfan を追加してキーのプランを Token Plan Personal か Enterprise にし、Claude Code の行で qianfan-code-latest を選ぶか、magpie claude baidu-qianfan/qianfan-code-latest を実行します。</p>
|
||||
<h3>qianfan-code-latest はどのモデル?</h3>
|
||||
<p>Qianfan のコンソールでプランに選んだモデルです。コンソールで変えれば、magpie やツール側の名前は変わりません。</p>
|
||||
<h3>個人版と企業版のモデルは同じ?</h3>
|
||||
<p>ほぼ同じです。deepseek-v4-flash、deepseek-v3.2、glm-5 は企業版のみで、deepseek-v4-pro や glm-5.3 などは両方にあります。</p>
|
||||
<h3>Baidu Qianfan は Codex で使えますか?</h3>
|
||||
<p>使えます。プランのエンドポイントが OpenAI Responses を提供するので、magpie は Codex のリクエストをそのまま送ります。magpie codex baidu-qianfan/deepseek-v4-pro を実行してください。</p>
|
||||
|
||||
<p style="margin-top:48px">ほかのプロバイダーも同じ方法で:<a href="/docs/ja/volcengine">Volcengine Ark</a>、<a href="/docs/ja/tencent-cloud">Tencent Cloud</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>
|
||||
@@ -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/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/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/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/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/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/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/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/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/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/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>
|
||||
|
||||
@@ -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/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/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/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/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/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/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/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/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/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/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,280 @@
|
||||
<!doctype html>
|
||||
<html lang="ja">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>Tencent Cloud Token Plan(TokenHub)を Claude Code、Codex、OpenCode で使う:Hunyuan、GLM、Kimi、DeepSeek、MiniMax を任意のエージェントで · magpie</title>
|
||||
<meta name="description" content="Tencent Cloud TokenHub の Token Plan(個人版・企業版)や従量課金キーを magpie に追加し、Claude Code、Codex、Gemini CLI、OpenCode で Hy、GLM、Kimi、DeepSeek、MiniMax、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/tencent-cloud">
|
||||
<link rel="alternate" hreflang="zh" href="https://usemagpie.ai/docs/zh/tencent-cloud">
|
||||
<link rel="alternate" hreflang="ja" href="https://usemagpie.ai/docs/ja/tencent-cloud">
|
||||
<link rel="alternate" hreflang="x-default" href="https://usemagpie.ai/docs/tencent-cloud">
|
||||
<link rel="canonical" href="https://usemagpie.ai/docs/ja/tencent-cloud">
|
||||
<link rel="stylesheet" href="/docs.css">
|
||||
<meta property="og:site_name" content="magpie">
|
||||
<meta property="og:title" content="Tencent Cloud Token Plan を Claude Code と Codex で">
|
||||
<meta property="og:description" content="Tencent Cloud TokenHub の Token Plan(個人版・企業版)や従量課金キーを magpie に追加し、Claude Code、Codex、Gemini CLI、OpenCode で Hy、GLM、Kimi、DeepSeek、MiniMax、MiMo を使う方法:プランごとのエンドポイント、モデル、企業版の枠、旧ホストからの移行。">
|
||||
<meta property="og:image" content="https://usemagpie.ai/img/og.png">
|
||||
<meta property="og:url" content="https://usemagpie.ai/docs/ja/tencent-cloud">
|
||||
<meta name="twitter:card" content="summary_large_image">
|
||||
<script type="application/ld+json">
|
||||
{
|
||||
"@context": "https://schema.org",
|
||||
"@graph": [
|
||||
{
|
||||
"@type": "TechArticle",
|
||||
"headline": "Tencent Cloud Token Plan を Claude Code と Codex で",
|
||||
"description": "Tencent Cloud TokenHub の Token Plan(個人版・企業版)や従量課金キーを magpie に追加し、Claude Code、Codex、Gemini CLI、OpenCode で Hy、GLM、Kimi、DeepSeek、MiniMax、MiMo を使う方法:プランごとのエンドポイント、モデル、企業版の枠、旧ホストからの移行。",
|
||||
"inLanguage": "ja",
|
||||
"url": "https://usemagpie.ai/docs/ja/tencent-cloud",
|
||||
"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": "Tencent Cloud Token Plan を Claude Code で使うには?",
|
||||
"acceptedAnswer": {
|
||||
"@type": "Answer",
|
||||
"text": "magpie に Tencent Cloud を追加してキーのプランを Plan · China にし、Claude Code の行で tc-code-latest や glm-5.3 を選ぶか、magpie claude tencent-cloud/tc-code-latest を実行します。リクエストはプランの Anthropic エンドポイント https://tokenhub.tencentmaas.com/plan/anthropic に送られます。"
|
||||
}
|
||||
},
|
||||
{
|
||||
"@type": "Question",
|
||||
"name": "Token Plan のキーと TokenHub 従量課金のキーの違いは?",
|
||||
"acceptedAnswer": {
|
||||
"@type": "Answer",
|
||||
"text": "プランキーは sk-tp- で始まり /plan のエンドポイントでのみ使えます。従量課金は TokenHub の API キーで /v1 です。magpie で各キーのプランを選べば、1 つのプロバイダーに両方置けます。"
|
||||
}
|
||||
},
|
||||
{
|
||||
"@type": "Question",
|
||||
"name": "個人版の旧ホスト api.lkeap.cloud.tencent.com は使えますか?",
|
||||
"acceptedAnswer": {
|
||||
"@type": "Answer",
|
||||
"text": "Tencent は個人版を tokenhub.tencentmaas.com に移しました。旧ホストで保存された magpie のプロバイダーは自動で移されます。"
|
||||
}
|
||||
},
|
||||
{
|
||||
"@type": "Question",
|
||||
"name": "Tencent Cloud のプランの残りを magpie で見られますか?",
|
||||
"acceptedAnswer": {
|
||||
"@type": "Answer",
|
||||
"text": "企業版なら見られます。プロバイダーの編集画面でアカウントの SecretId と SecretKey を入力すると、使用量ページにサイクルの使用量とリセットが表示されます。個人版は API がなくコンソールで確認します。"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"@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": "Tencent Cloud Token Plan を Claude Code と Codex で",
|
||||
"item": "https://usemagpie.ai/docs/ja/tencent-cloud"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
</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/tencent-cloud" hreflang="en" lang="en">English</a>
|
||||
<a href="/docs/zh/tencent-cloud" hreflang="zh" lang="zh">中文</a>
|
||||
<a href="/docs/ja/tencent-cloud" 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>Tencent Cloud</p>
|
||||
<a href="#overview">概要</a>
|
||||
<a href="#add">Tencent Cloud を追加</a>
|
||||
<a href="#plans">プランとエンドポイント</a>
|
||||
<a href="#models">プランのモデル</a>
|
||||
<a href="#agents">各エージェントで</a>
|
||||
<a href="#usage">企業版の枠</a>
|
||||
<a href="#faq">よくある質問</a>
|
||||
</aside>
|
||||
|
||||
<article>
|
||||
<p class="eyebrow" id="overview">ドキュメント · プロバイダー</p>
|
||||
<h1>Tencent Cloud Token Plan を Claude Code と Codex で</h1>
|
||||
<p class="lede">Tencent Cloud のモデルは TokenHub にあります。Token Plan(個人版と企業版)と従量課金で、キーも別です(プランは sk-tp- で始まるキー、従量課金は TokenHub の API キー)。magpie に Tencent Cloud を 1 つ追加して各キーのプランを選べば、Claude Code、Codex、Gemini CLI、OpenCode などが 127.0.0.1:3425 のローカルゲートウェイ経由で Hy、GLM、Kimi、DeepSeek、MiniMax を使えます。</p>
|
||||
|
||||
<h2 id="add"><a class="anchor" href="#add">Tencent Cloud を追加</a></h2>
|
||||
<ol class="steps">
|
||||
<li><b>プロバイダーを追加してプランを選ぶ</b><span class="ui">プロバイダー</span> で <span class="ui">+ プロバイダーを追加</span> を押し、<span class="ui">Tencent Cloud</span> を選び、キーのプランを <span class="ui">Plan · China</span>、<span class="ui">Pay as you go · China</span>、<span class="ui">Pay as you go · Global</span>、<span class="ui">Enterprise plan · Global</span> から選んで保存します。</li>
|
||||
<li><b>ツールで選ぶ</b><span class="ui">エージェント</span> でツールの行に tc-code-latest や glm-5.3 などを選びます。</li>
|
||||
</ol>
|
||||
<div class="code"><span class="lang">ターミナル</span><button class="copy" data-copy="tc-cli">コピー</button><pre id="tc-cli">magpie claude tencent-cloud/tc-code-latest
|
||||
magpie codex tencent-cloud/glm-5.3
|
||||
magpie opencode tencent-cloud/kimi-k3</pre></div>
|
||||
|
||||
<h2 id="plans"><a class="anchor" href="#plans">プランとエンドポイント</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://tokenhub.tencentmaas.com/plan/v3</code></td><td><code>https://tokenhub.tencentmaas.com/plan/anthropic</code></td></tr>
|
||||
<tr><td>従量課金 · China</td><td><code>https://tokenhub.tencentmaas.com/v1</code></td><td><code>https://tokenhub.tencentmaas.com</code></td></tr>
|
||||
<tr><td>従量課金 · Global</td><td><code>https://tokenhub-intl.tencentmaas.com/v1</code></td><td><code>https://tokenhub-intl.tencentmaas.com</code></td></tr>
|
||||
<tr><td>企業版 · シンガポール</td><td><code>https://tokenhub-intl.tencentmaas.com/plan/v3</code></td><td><code>https://tokenhub-intl.tencentmaas.com/plan/anthropic</code></td></tr>
|
||||
</table></div>
|
||||
<p>個人版と企業版は同じエンドポイントで、プランはキーで決まります。中国は両方とも同じリージョンなので、モデルは 2 つのプランの合計です。シンガポールは企業版のみです。プロバイダー内の各キーが自分のプランを持つので、従量課金とプランのキーを 1 つのプロバイダーに並べられます。</p>
|
||||
<p>個人版は以前 <code>api.lkeap.cloud.tencent.com</code> にありましたが、Tencent が TokenHub に移しました。旧ホストで保存されたプロバイダーは新しいホストに移されます。</p>
|
||||
|
||||
<h2 id="models"><a class="anchor" href="#models">プランのモデル</a></h2>
|
||||
<p>プランは自分のモデル一覧を返さず、公開カタログにもプランの Hy モデルしかないため、magpie は Tencent のプラン資料にあるモデルを使います:tc-code-latest, auto, glm-5.3, glm-5.3-flash, kimi-k3, kimi-k2.7-code, deepseek-v4-pro, deepseek-v4.1-flash, minimax-m3, hy4-preview, hy3, mimo-v2.6-pro など。tc-code-latest はコンソールで選ばれているモデルです。従量課金キーは TokenHub の <code>/v1/models</code> を読み、Qwen などほかのメーカーのモデルもあります。</p>
|
||||
|
||||
<h2 id="agents"><a class="anchor" href="#agents">各エージェントで</a></h2>
|
||||
<ul>
|
||||
<li><b>Claude Code</b> は Anthropic Messages を話します。プランと従量課金の両方に Anthropic エンドポイントがあり、リクエストはそのまま送られます。<a href="/docs/ja/claude-code-models">Claude Code で他のモデル</a>。</li>
|
||||
<li><b>Codex</b> は OpenAI Responses だけを話します。TokenHub のプランと従量課金はどちらも 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="usage"><a class="anchor" href="#usage">企業版の枠</a></h2>
|
||||
<p>企業版のサイクルごとの枠(専業套餐はクレジット、軽享套餐はトークン)は、アカウントの SecretId と SecretKey で署名した Tencent Cloud API にだけ伝えられ、プランキーでは取れません。プロバイダーの編集画面でそれらを入力すると、magpie の使用量ページに SecretId が見える企業版プランごとのカードが出て、サイクルの使用量とリセット時刻がわかります。個人版には API がなくコンソールでのみ確認でき、従量課金には枠がありません。</p>
|
||||
|
||||
<h2 id="faq"><a class="anchor" href="#faq">よくある質問</a></h2>
|
||||
<h3>Tencent Cloud Token Plan を Claude Code で使うには?</h3>
|
||||
<p>magpie に Tencent Cloud を追加してキーのプランを Plan · China にし、Claude Code の行で tc-code-latest や glm-5.3 を選ぶか、magpie claude tencent-cloud/tc-code-latest を実行します。リクエストはプランの Anthropic エンドポイント https://tokenhub.tencentmaas.com/plan/anthropic に送られます。</p>
|
||||
<h3>Token Plan のキーと TokenHub 従量課金のキーの違いは?</h3>
|
||||
<p>プランキーは sk-tp- で始まり /plan のエンドポイントでのみ使えます。従量課金は TokenHub の API キーで /v1 です。magpie で各キーのプランを選べば、1 つのプロバイダーに両方置けます。</p>
|
||||
<h3>個人版の旧ホスト api.lkeap.cloud.tencent.com は使えますか?</h3>
|
||||
<p>Tencent は個人版を tokenhub.tencentmaas.com に移しました。旧ホストで保存された magpie のプロバイダーは自動で移されます。</p>
|
||||
<h3>Tencent Cloud のプランの残りを magpie で見られますか?</h3>
|
||||
<p>企業版なら見られます。プロバイダーの編集画面でアカウントの SecretId と SecretKey を入力すると、使用量ページにサイクルの使用量とリセットが表示されます。個人版は API がなくコンソールで確認します。</p>
|
||||
|
||||
<p style="margin-top:48px">ほかのプロバイダーも同じ方法で:<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/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/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/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/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/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/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/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/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/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/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,280 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>Tencent Cloud Token Plan (TokenHub) in Claude Code, Codex and OpenCode: Hunyuan, GLM, Kimi, DeepSeek and MiniMax in any agent · magpie</title>
|
||||
<meta name="description" content="Add a Tencent Cloud TokenHub Token Plan (personal or enterprise) or pay-as-you-go key to magpie and use Hy, GLM, Kimi, DeepSeek, MiniMax and MiMo in Claude Code, Codex, Gemini CLI and OpenCode: each plan's endpoints, its models, the enterprise plan's quota, and the move from the old host.">
|
||||
<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/tencent-cloud">
|
||||
<link rel="alternate" hreflang="zh" href="https://usemagpie.ai/docs/zh/tencent-cloud">
|
||||
<link rel="alternate" hreflang="ja" href="https://usemagpie.ai/docs/ja/tencent-cloud">
|
||||
<link rel="alternate" hreflang="x-default" href="https://usemagpie.ai/docs/tencent-cloud">
|
||||
<link rel="canonical" href="https://usemagpie.ai/docs/tencent-cloud">
|
||||
<link rel="stylesheet" href="/docs.css">
|
||||
<meta property="og:site_name" content="magpie">
|
||||
<meta property="og:title" content="Tencent Cloud Token Plan in Claude Code and Codex">
|
||||
<meta property="og:description" content="Add a Tencent Cloud TokenHub Token Plan (personal or enterprise) or pay-as-you-go key to magpie and use Hy, GLM, Kimi, DeepSeek, MiniMax and MiMo in Claude Code, Codex, Gemini CLI and OpenCode: each plan's endpoints, its models, the enterprise plan's quota, and the move from the old host.">
|
||||
<meta property="og:image" content="https://usemagpie.ai/img/og.png">
|
||||
<meta property="og:url" content="https://usemagpie.ai/docs/tencent-cloud">
|
||||
<meta name="twitter:card" content="summary_large_image">
|
||||
<script type="application/ld+json">
|
||||
{
|
||||
"@context": "https://schema.org",
|
||||
"@graph": [
|
||||
{
|
||||
"@type": "TechArticle",
|
||||
"headline": "Tencent Cloud Token Plan in Claude Code and Codex",
|
||||
"description": "Add a Tencent Cloud TokenHub Token Plan (personal or enterprise) or pay-as-you-go key to magpie and use Hy, GLM, Kimi, DeepSeek, MiniMax and MiMo in Claude Code, Codex, Gemini CLI and OpenCode: each plan's endpoints, its models, the enterprise plan's quota, and the move from the old host.",
|
||||
"inLanguage": "en",
|
||||
"url": "https://usemagpie.ai/docs/tencent-cloud",
|
||||
"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 Tencent Cloud Token Plan in Claude Code?",
|
||||
"acceptedAnswer": {
|
||||
"@type": "Answer",
|
||||
"text": "Add Tencent Cloud in magpie with the key's plan set to Plan · China, then pick tc-code-latest or glm-5.3 on Claude Code's row, or run magpie claude tencent-cloud/tc-code-latest. Requests go to the plan's Anthropic endpoint, https://tokenhub.tencentmaas.com/plan/anthropic."
|
||||
}
|
||||
},
|
||||
{
|
||||
"@type": "Question",
|
||||
"name": "What is the difference between a Token Plan key and a TokenHub pay-as-you-go key?",
|
||||
"acceptedAnswer": {
|
||||
"@type": "Answer",
|
||||
"text": "A plan key starts with sk-tp- and works only at the plan endpoints under /plan; pay as you go uses TokenHub's own API key at /v1. Set each key's plan in magpie; both can share one provider."
|
||||
}
|
||||
},
|
||||
{
|
||||
"@type": "Question",
|
||||
"name": "Does the personal plan's old host api.lkeap.cloud.tencent.com still work?",
|
||||
"acceptedAnswer": {
|
||||
"@type": "Answer",
|
||||
"text": "Tencent moved the personal plan to tokenhub.tencentmaas.com. A provider in magpie saved at the old host is moved to the new one by itself."
|
||||
}
|
||||
},
|
||||
{
|
||||
"@type": "Question",
|
||||
"name": "Can magpie show what is left of a Tencent Cloud plan?",
|
||||
"acceptedAnswer": {
|
||||
"@type": "Answer",
|
||||
"text": "For the enterprise plan, yes: add the account's SecretId and SecretKey in the provider's editor, and the Usage page shows the cycle's use and its reset. The personal plan has no API for it; see Tencent Cloud's console."
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"@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": "Tencent Cloud Token Plan in Claude Code and Codex",
|
||||
"item": "https://usemagpie.ai/docs/tencent-cloud"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
</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/tencent-cloud" hreflang="en" lang="en">English</a>
|
||||
<a href="/docs/zh/tencent-cloud" hreflang="zh" lang="zh">中文</a>
|
||||
<a href="/docs/ja/tencent-cloud" 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>Tencent Cloud</p>
|
||||
<a href="#overview">Overview</a>
|
||||
<a href="#add">Add Tencent Cloud</a>
|
||||
<a href="#plans">Plans and endpoints</a>
|
||||
<a href="#models">The plans' models</a>
|
||||
<a href="#agents">In each agent</a>
|
||||
<a href="#usage">Enterprise quota</a>
|
||||
<a href="#faq">FAQ</a>
|
||||
</aside>
|
||||
|
||||
<article>
|
||||
<p class="eyebrow" id="overview">Docs · Providers</p>
|
||||
<h1>Tencent Cloud Token Plan in Claude Code and Codex</h1>
|
||||
<p class="lede">Tencent Cloud's models are on TokenHub: the Token Plan subscription (personal and enterprise) and pay as you go, each on keys of its own — an sk-tp- plan key, or TokenHub's own API key. Add one Tencent Cloud provider in magpie with each key's plan, and Claude Code, Codex, Gemini CLI, OpenCode and other tools use Hy, GLM, Kimi, DeepSeek and MiniMax through magpie's local gateway on 127.0.0.1:3425.</p>
|
||||
|
||||
<h2 id="add"><a class="anchor" href="#add">Add Tencent 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">Tencent Cloud</span>, set the key's plan to <span class="ui">Plan · China</span>, <span class="ui">Pay as you go · China</span>, <span class="ui">Pay as you go · Global</span>, <span class="ui">Enterprise plan · Global</span>, paste the key and save.</li>
|
||||
<li><b>Pick it for a tool</b>On <span class="ui">Agents</span>, pick a model such as tc-code-latest or glm-5.3 on a tool's row.</li>
|
||||
</ol>
|
||||
<div class="code"><span class="lang">Terminal</span><button class="copy" data-copy="tc-cli">Copy</button><pre id="tc-cli">magpie claude tencent-cloud/tc-code-latest
|
||||
magpie codex tencent-cloud/glm-5.3
|
||||
magpie opencode tencent-cloud/kimi-k3</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 and Responses</th><th>Anthropic Messages</th></tr>
|
||||
<tr><td>Token Plan (personal, enterprise) · China</td><td><code>https://tokenhub.tencentmaas.com/plan/v3</code></td><td><code>https://tokenhub.tencentmaas.com/plan/anthropic</code></td></tr>
|
||||
<tr><td>Pay as you go · China</td><td><code>https://tokenhub.tencentmaas.com/v1</code></td><td><code>https://tokenhub.tencentmaas.com</code></td></tr>
|
||||
<tr><td>Pay as you go · Global</td><td><code>https://tokenhub-intl.tencentmaas.com/v1</code></td><td><code>https://tokenhub-intl.tencentmaas.com</code></td></tr>
|
||||
<tr><td>Enterprise · Singapore</td><td><code>https://tokenhub-intl.tencentmaas.com/plan/v3</code></td><td><code>https://tokenhub-intl.tencentmaas.com/plan/anthropic</code></td></tr>
|
||||
</table></div>
|
||||
<p>The personal and enterprise plans share endpoints; the key tells the plan. China is one region for both, so its models are the two plans' together; Singapore sells the enterprise plan alone. Each key in the provider names its plan, so pay-as-you-go and plan keys can share one provider.</p>
|
||||
<p>The personal plan used to be at <code>api.lkeap.cloud.tencent.com</code> until Tencent moved it to TokenHub. A provider saved at the old host is moved to the new one.</p>
|
||||
|
||||
<h2 id="models"><a class="anchor" href="#models">The plans' models</a></h2>
|
||||
<p>The plans give no model list of their own, and the public catalog names only their Hy models, so magpie gives the models from Tencent's plan docs: tc-code-latest, auto, glm-5.3, glm-5.3-flash, kimi-k3, kimi-k2.7-code, deepseek-v4-pro, deepseek-v4.1-flash, minimax-m3, hy4-preview, hy3, mimo-v2.6-pro, among others. tc-code-latest is whichever model the console has picked. A pay-as-you-go key reads TokenHub's <code>/v1/models</code>, which has other makers' models such as Qwen too.</p>
|
||||
|
||||
<h2 id="agents"><a class="anchor" href="#agents">In each agent</a></h2>
|
||||
<ul>
|
||||
<li><b>Claude Code</b> speaks Anthropic Messages. The plan and pay as you go both have Anthropic endpoints, 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. TokenHub's plan and pay as you go both serve 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="usage"><a class="anchor" href="#usage">Enterprise quota</a></h2>
|
||||
<p>The enterprise plan's cycle quota (credits on 专业套餐, tokens on 轻享套餐) is told only to Tencent Cloud's API, signed with the account's SecretId and SecretKey, never to the plan key. Add them in the provider's editor, and magpie's Usage page shows a card for each enterprise plan the SecretId can see: what the cycle has used and when it resets. The personal plan has no API for its usage, only the console; pay as you go has no windows.</p>
|
||||
|
||||
<h2 id="faq"><a class="anchor" href="#faq">FAQ</a></h2>
|
||||
<h3>How do I use the Tencent Cloud Token Plan in Claude Code?</h3>
|
||||
<p>Add Tencent Cloud in magpie with the key's plan set to Plan · China, then pick tc-code-latest or glm-5.3 on Claude Code's row, or run magpie claude tencent-cloud/tc-code-latest. Requests go to the plan's Anthropic endpoint, https://tokenhub.tencentmaas.com/plan/anthropic.</p>
|
||||
<h3>What is the difference between a Token Plan key and a TokenHub pay-as-you-go key?</h3>
|
||||
<p>A plan key starts with sk-tp- and works only at the plan endpoints under /plan; pay as you go uses TokenHub's own API key at /v1. Set each key's plan in magpie; both can share one provider.</p>
|
||||
<h3>Does the personal plan's old host api.lkeap.cloud.tencent.com still work?</h3>
|
||||
<p>Tencent moved the personal plan to tokenhub.tencentmaas.com. A provider in magpie saved at the old host is moved to the new one by itself.</p>
|
||||
<h3>Can magpie show what is left of a Tencent Cloud plan?</h3>
|
||||
<p>For the enterprise plan, yes: add the account's SecretId and SecretKey in the provider's editor, and the Usage page shows the cycle's use and its reset. The personal plan has no API for it; see Tencent Cloud's console.</p>
|
||||
|
||||
<p style="margin-top:48px">The same for other providers: <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/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/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>
|
||||
|
||||
@@ -0,0 +1,274 @@
|
||||
<!doctype html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>百度千帆 Token Plan 接入 Claude Code、Codex、OpenCode:DeepSeek、GLM 用在任意 Agent · magpie</title>
|
||||
<meta name="description" content="在 magpie 里添加百度千帆的 Token Plan(个人版、企业版)或按量付费 Key,让 Claude Code、Codex、Gemini CLI、OpenCode 用上千帆里的 DeepSeek 和 GLM:各套餐的接口地址、套餐里的模型、qianfan-code-latest,以及按量付费的模型列表。">
|
||||
<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/baidu-qianfan">
|
||||
<link rel="alternate" hreflang="zh" href="https://usemagpie.ai/docs/zh/baidu-qianfan">
|
||||
<link rel="alternate" hreflang="ja" href="https://usemagpie.ai/docs/ja/baidu-qianfan">
|
||||
<link rel="alternate" hreflang="x-default" href="https://usemagpie.ai/docs/baidu-qianfan">
|
||||
<link rel="canonical" href="https://usemagpie.ai/docs/zh/baidu-qianfan">
|
||||
<link rel="stylesheet" href="/docs.css">
|
||||
<meta property="og:site_name" content="magpie">
|
||||
<meta property="og:title" content="百度千帆 Token Plan 接入 Claude Code 和 Codex">
|
||||
<meta property="og:description" content="在 magpie 里添加百度千帆的 Token Plan(个人版、企业版)或按量付费 Key,让 Claude Code、Codex、Gemini CLI、OpenCode 用上千帆里的 DeepSeek 和 GLM:各套餐的接口地址、套餐里的模型、qianfan-code-latest,以及按量付费的模型列表。">
|
||||
<meta property="og:image" content="https://usemagpie.ai/img/og.png">
|
||||
<meta property="og:url" content="https://usemagpie.ai/docs/zh/baidu-qianfan">
|
||||
<meta name="twitter:card" content="summary_large_image">
|
||||
<script type="application/ld+json">
|
||||
{
|
||||
"@context": "https://schema.org",
|
||||
"@graph": [
|
||||
{
|
||||
"@type": "TechArticle",
|
||||
"headline": "百度千帆 Token Plan 接入 Claude Code 和 Codex",
|
||||
"description": "在 magpie 里添加百度千帆的 Token Plan(个人版、企业版)或按量付费 Key,让 Claude Code、Codex、Gemini CLI、OpenCode 用上千帆里的 DeepSeek 和 GLM:各套餐的接口地址、套餐里的模型、qianfan-code-latest,以及按量付费的模型列表。",
|
||||
"inLanguage": "zh-CN",
|
||||
"url": "https://usemagpie.ai/docs/zh/baidu-qianfan",
|
||||
"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 里添加 Baidu Qianfan,把 Key 的套餐选成 Token Plan Personal 或 Enterprise,然后在 Claude Code 那一行选 qianfan-code-latest 这类模型,或运行 magpie claude baidu-qianfan/qianfan-code-latest。请求走套餐的 Anthropic 接口,比如 https://qianfan.baidubce.com/anthropic/tokenplan/personal。"
|
||||
}
|
||||
},
|
||||
{
|
||||
"@type": "Question",
|
||||
"name": "qianfan-code-latest 是哪个模型?",
|
||||
"acceptedAnswer": {
|
||||
"@type": "Answer",
|
||||
"text": "是你在千帆控制台为套餐选定的模型。换模型在控制台改,magpie 和工具里的名字不用变。"
|
||||
}
|
||||
},
|
||||
{
|
||||
"@type": "Question",
|
||||
"name": "千帆个人版和企业版的模型一样吗?",
|
||||
"acceptedAnswer": {
|
||||
"@type": "Answer",
|
||||
"text": "大部分一样。deepseek-v4-flash、deepseek-v3.2 和 glm-5 只在企业版里,其他如 deepseek-v4-pro、glm-5.3 两个套餐都有。"
|
||||
}
|
||||
},
|
||||
{
|
||||
"@type": "Question",
|
||||
"name": "百度千帆能在 Codex 里用吗?",
|
||||
"acceptedAnswer": {
|
||||
"@type": "Answer",
|
||||
"text": "能。千帆的套餐地址提供 OpenAI Responses,magpie 把 Codex 的请求原样转过去。运行 magpie codex baidu-qianfan/deepseek-v4-pro,或在 Codex 那一行选上。"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"@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": "百度千帆 Token Plan 接入 Claude Code 和 Codex",
|
||||
"item": "https://usemagpie.ai/docs/zh/baidu-qianfan"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
</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/baidu-qianfan" hreflang="en" lang="en">English</a>
|
||||
<a href="/docs/zh/baidu-qianfan" hreflang="zh" lang="zh">中文</a>
|
||||
<a href="/docs/ja/baidu-qianfan" hreflang="ja" lang="ja">日本語</a>
|
||||
</div>
|
||||
</div>
|
||||
<a class="icon-btn" href="https://discord.gg/vGSnD3ZKQF" aria-label="magpie on Discord" title="Join us on Discord"><svg viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M20.317 4.3698a19.7913 19.7913 0 00-4.8851-1.5152.0741.0741 0 00-.0785.0371c-.211.3753-.4447.8648-.6083 1.2495-1.8447-.2762-3.68-.2762-5.4868 0-.1636-.3933-.4058-.8742-.6177-1.2495a.077.077 0 00-.0785-.037 19.7363 19.7363 0 00-4.8852 1.515.0699.0699 0 00-.0321.0277C.5334 9.0458-.319 13.5799.0992 18.0578a.0824.0824 0 00.0312.0561c2.0528 1.5076 4.0413 2.4228 5.9929 3.0294a.0777.0777 0 00.0842-.0276c.4616-.6304.8731-1.2952 1.226-1.9942a.076.076 0 00-.0416-.1057c-.6528-.2476-1.2743-.5495-1.8722-.8923a.077.077 0 01-.0076-.1277c.1258-.0943.2517-.1923.3718-.2914a.0743.0743 0 01.0776-.0105c3.9278 1.7933 8.18 1.7933 12.0614 0a.0739.0739 0 01.0785.0095c.1202.099.246.1981.3728.2924a.077.077 0 01-.0066.1276 12.2986 12.2986 0 01-1.873.8914.0766.0766 0 00-.0407.1067c.3604.698.7719 1.3628 1.225 1.9932a.076.076 0 00.0842.0286c1.961-.6067 3.9495-1.5219 6.0023-3.0294a.077.077 0 00.0313-.0552c.5004-5.177-.8382-9.6739-3.5485-13.6604a.061.061 0 00-.0312-.0286zM8.02 15.3312c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9555-2.4189 2.157-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.9555 2.4189-2.1569 2.4189zm7.9748 0c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9554-2.4189 2.1569-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.946 2.4189-2.1568 2.4189Z"/></svg></a>
|
||||
<a class="icon-btn" href="https://github.com/yetone/magpie" aria-label="magpie on GitHub" title="Source on GitHub"><svg viewBox="0 0 16 16" fill="currentColor" aria-hidden="true"><path d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0 0 16 8c0-4.42-3.58-8-8-8Z"/></svg></a>
|
||||
<button class="icon-btn theme" type="button" aria-label="Theme" title="Theme: system"><svg class="i-system" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5"><rect x="1.75" y="2.75" width="12.5" height="8.5" rx="1.5"/><path d="M5.5 14h5M8 11.25V14"/></svg><svg class="i-light" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"><circle cx="8" cy="8" r="3"/><path d="M8 1v1.5M8 13.5V15M1 8h1.5M13.5 8H15M3 3l1 1M12 12l1 1M3 13l1-1M12 4l1-1"/></svg><svg class="i-dark" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linejoin="round"><path d="M13.5 9.5A5.5 5.5 0 0 1 6.5 2.5a5.5 5.5 0 1 0 7 7Z"/></svg></button>
|
||||
<a class="btn small" href="/#get">下载</a>
|
||||
</div></nav>
|
||||
|
||||
<main class="wrap doc">
|
||||
<aside class="toc">
|
||||
<p>百度千帆</p>
|
||||
<a href="#overview">概览</a>
|
||||
<a href="#add">添加百度千帆</a>
|
||||
<a href="#plans">套餐与接口地址</a>
|
||||
<a href="#models">套餐里的模型</a>
|
||||
<a href="#agents">在各个工具里用</a>
|
||||
<a href="#faq">常见问题</a>
|
||||
</aside>
|
||||
|
||||
<article>
|
||||
<p class="eyebrow" id="overview">文档 · 供应商</p>
|
||||
<h1>百度千帆 Token Plan 接入 Claude Code 和 Codex</h1>
|
||||
<p class="lede">百度千帆有两种 Token Plan(个人版和企业版)和按量付费,各自有接口地址和 Key。在 magpie 里添加百度千帆并给每个 Key 选好套餐,Claude Code、Codex、Gemini CLI、OpenCode 和其他工具就都能通过本地网关 127.0.0.1:3425 用上千帆里的 DeepSeek 和 GLM。</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">Baidu Qianfan</span>,给 Key 选 <span class="ui">Token Plan Personal</span>、<span class="ui">Token Plan Enterprise</span>、<span class="ui">Pay as you go</span>,粘贴 Key 并保存。</li>
|
||||
<li><b>给工具选上</b>在 <span class="ui">Agent</span> 页给某个工具选 qianfan-code-latest 或 deepseek-v4-pro 这类模型。</li>
|
||||
</ol>
|
||||
<div class="code"><span class="lang">终端</span><button class="copy" data-copy="qf-cli">复制</button><pre id="qf-cli">magpie claude baidu-qianfan/qianfan-code-latest
|
||||
magpie codex baidu-qianfan/deepseek-v4-pro
|
||||
magpie opencode baidu-qianfan/glm-5.3</pre></div>
|
||||
|
||||
<h2 id="plans"><a class="anchor" href="#plans">套餐与接口地址</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://qianfan.baidubce.com/v2/tokenplan/personal</code></td><td><code>https://qianfan.baidubce.com/anthropic/tokenplan/personal</code></td></tr>
|
||||
<tr><td>Token Plan 企业版</td><td><code>https://qianfan.baidubce.com/v2/tokenplan/team</code></td><td><code>https://qianfan.baidubce.com/anthropic/tokenplan/team</code></td></tr>
|
||||
<tr><td>按量付费</td><td><code>https://qianfan.baidubce.com/v2</code></td><td><code>https://qianfan.baidubce.com/anthropic</code></td></tr>
|
||||
</table></div>
|
||||
<p>每个套餐的 Key 只用在自己的地址上。供应商里的每个 Key 都标明自己的套餐,所以个人版、企业版和按量付费的 Key 可以放在同一个供应商里,每个 Key 的请求发到它自己套餐的地址。</p>
|
||||
|
||||
<h2 id="models"><a class="anchor" href="#models">套餐里的模型</a></h2>
|
||||
<p>套餐的 <code>/models</code> 返回 404,所以 magpie 按千帆两个套餐的文档给出模型:qianfan-code-latest, deepseek-v4.1-flash, deepseek-v4-pro, deepseek-v4-pro-0813, deepseek-v4-flash-0731, glm-5.3, glm-5.3-flash, glm-5.2, glm-5.1 等。deepseek-v4-flash、deepseek-v3.2 和 glm-5 只在企业版里。qianfan-code-latest 是控制台当前选定的模型。按量付费的 Key 读取千帆的 <code>/v2/models</code>。</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。千帆的套餐地址也提供 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="faq"><a class="anchor" href="#faq">常见问题</a></h2>
|
||||
<h3>百度千帆 Token Plan 怎么接入 Claude Code?</h3>
|
||||
<p>在 magpie 里添加 Baidu Qianfan,把 Key 的套餐选成 Token Plan Personal 或 Enterprise,然后在 Claude Code 那一行选 qianfan-code-latest 这类模型,或运行 magpie claude baidu-qianfan/qianfan-code-latest。请求走套餐的 Anthropic 接口,比如 https://qianfan.baidubce.com/anthropic/tokenplan/personal。</p>
|
||||
<h3>qianfan-code-latest 是哪个模型?</h3>
|
||||
<p>是你在千帆控制台为套餐选定的模型。换模型在控制台改,magpie 和工具里的名字不用变。</p>
|
||||
<h3>千帆个人版和企业版的模型一样吗?</h3>
|
||||
<p>大部分一样。deepseek-v4-flash、deepseek-v3.2 和 glm-5 只在企业版里,其他如 deepseek-v4-pro、glm-5.3 两个套餐都有。</p>
|
||||
<h3>百度千帆能在 Codex 里用吗?</h3>
|
||||
<p>能。千帆的套餐地址提供 OpenAI Responses,magpie 把 Codex 的请求原样转过去。运行 magpie codex baidu-qianfan/deepseek-v4-pro,或在 Codex 那一行选上。</p>
|
||||
|
||||
<p style="margin-top:48px">同一套方法用在其他国产模型:<a href="/docs/zh/volcengine">火山方舟</a>、<a href="/docs/zh/tencent-cloud">腾讯云</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>
|
||||
@@ -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/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/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/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/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/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/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/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/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/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/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>
|
||||
|
||||
@@ -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/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/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/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/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/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/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/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/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/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/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,280 @@
|
||||
<!doctype html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>腾讯云 Token Plan(TokenHub)接入 Claude Code、Codex、OpenCode:混元、GLM、Kimi、DeepSeek、MiniMax 用在任意 Agent · magpie</title>
|
||||
<meta name="description" content="在 magpie 里添加腾讯云 TokenHub 的 Token Plan(个人版、企业版)或按量付费 Key,让 Claude Code、Codex、Gemini CLI、OpenCode 用上混元 Hy、GLM、Kimi、DeepSeek、MiniMax、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/tencent-cloud">
|
||||
<link rel="alternate" hreflang="zh" href="https://usemagpie.ai/docs/zh/tencent-cloud">
|
||||
<link rel="alternate" hreflang="ja" href="https://usemagpie.ai/docs/ja/tencent-cloud">
|
||||
<link rel="alternate" hreflang="x-default" href="https://usemagpie.ai/docs/tencent-cloud">
|
||||
<link rel="canonical" href="https://usemagpie.ai/docs/zh/tencent-cloud">
|
||||
<link rel="stylesheet" href="/docs.css">
|
||||
<meta property="og:site_name" content="magpie">
|
||||
<meta property="og:title" content="腾讯云 Token Plan 接入 Claude Code 和 Codex">
|
||||
<meta property="og:description" content="在 magpie 里添加腾讯云 TokenHub 的 Token Plan(个人版、企业版)或按量付费 Key,让 Claude Code、Codex、Gemini CLI、OpenCode 用上混元 Hy、GLM、Kimi、DeepSeek、MiniMax、MiMo:各套餐的接口地址、模型列表、企业版额度,以及从旧地址迁移。">
|
||||
<meta property="og:image" content="https://usemagpie.ai/img/og.png">
|
||||
<meta property="og:url" content="https://usemagpie.ai/docs/zh/tencent-cloud">
|
||||
<meta name="twitter:card" content="summary_large_image">
|
||||
<script type="application/ld+json">
|
||||
{
|
||||
"@context": "https://schema.org",
|
||||
"@graph": [
|
||||
{
|
||||
"@type": "TechArticle",
|
||||
"headline": "腾讯云 Token Plan 接入 Claude Code 和 Codex",
|
||||
"description": "在 magpie 里添加腾讯云 TokenHub 的 Token Plan(个人版、企业版)或按量付费 Key,让 Claude Code、Codex、Gemini CLI、OpenCode 用上混元 Hy、GLM、Kimi、DeepSeek、MiniMax、MiMo:各套餐的接口地址、模型列表、企业版额度,以及从旧地址迁移。",
|
||||
"inLanguage": "zh-CN",
|
||||
"url": "https://usemagpie.ai/docs/zh/tencent-cloud",
|
||||
"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 里添加 Tencent Cloud,把 Key 的套餐选成 Plan · China,然后在 Claude Code 那一行选 tc-code-latest、glm-5.3 这类模型,或运行 magpie claude tencent-cloud/tc-code-latest。请求走套餐的 Anthropic 接口 https://tokenhub.tencentmaas.com/plan/anthropic。"
|
||||
}
|
||||
},
|
||||
{
|
||||
"@type": "Question",
|
||||
"name": "Token Plan 的 Key 和 TokenHub 按量付费的 Key 有什么区别?",
|
||||
"acceptedAnswer": {
|
||||
"@type": "Answer",
|
||||
"text": "套餐 Key 以 sk-tp- 开头,只能用在 /plan 下的套餐接口;按量付费用 TokenHub 自己的 API Key,接口是 /v1。在 magpie 里给每个 Key 选对套餐即可,两种 Key 可以放在同一个供应商里。"
|
||||
}
|
||||
},
|
||||
{
|
||||
"@type": "Question",
|
||||
"name": "个人版原来的地址 api.lkeap.cloud.tencent.com 还能用吗?",
|
||||
"acceptedAnswer": {
|
||||
"@type": "Answer",
|
||||
"text": "腾讯已把个人版迁到 tokenhub.tencentmaas.com。magpie 里存着旧地址的供应商会自动改到新地址,不用手动改。"
|
||||
}
|
||||
},
|
||||
{
|
||||
"@type": "Question",
|
||||
"name": "能在 magpie 里看到腾讯云套餐的剩余额度吗?",
|
||||
"acceptedAnswer": {
|
||||
"@type": "Answer",
|
||||
"text": "企业版可以:在供应商编辑页填账号的 SecretId 和 SecretKey,用量页就显示本周期的用量和重置时间。个人版没有查询 API,只能在腾讯云控制台看。"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"@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": "腾讯云 Token Plan 接入 Claude Code 和 Codex",
|
||||
"item": "https://usemagpie.ai/docs/zh/tencent-cloud"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
</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/tencent-cloud" hreflang="en" lang="en">English</a>
|
||||
<a href="/docs/zh/tencent-cloud" hreflang="zh" lang="zh">中文</a>
|
||||
<a href="/docs/ja/tencent-cloud" hreflang="ja" lang="ja">日本語</a>
|
||||
</div>
|
||||
</div>
|
||||
<a class="icon-btn" href="https://discord.gg/vGSnD3ZKQF" aria-label="magpie on Discord" title="Join us on Discord"><svg viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M20.317 4.3698a19.7913 19.7913 0 00-4.8851-1.5152.0741.0741 0 00-.0785.0371c-.211.3753-.4447.8648-.6083 1.2495-1.8447-.2762-3.68-.2762-5.4868 0-.1636-.3933-.4058-.8742-.6177-1.2495a.077.077 0 00-.0785-.037 19.7363 19.7363 0 00-4.8852 1.515.0699.0699 0 00-.0321.0277C.5334 9.0458-.319 13.5799.0992 18.0578a.0824.0824 0 00.0312.0561c2.0528 1.5076 4.0413 2.4228 5.9929 3.0294a.0777.0777 0 00.0842-.0276c.4616-.6304.8731-1.2952 1.226-1.9942a.076.076 0 00-.0416-.1057c-.6528-.2476-1.2743-.5495-1.8722-.8923a.077.077 0 01-.0076-.1277c.1258-.0943.2517-.1923.3718-.2914a.0743.0743 0 01.0776-.0105c3.9278 1.7933 8.18 1.7933 12.0614 0a.0739.0739 0 01.0785.0095c.1202.099.246.1981.3728.2924a.077.077 0 01-.0066.1276 12.2986 12.2986 0 01-1.873.8914.0766.0766 0 00-.0407.1067c.3604.698.7719 1.3628 1.225 1.9932a.076.076 0 00.0842.0286c1.961-.6067 3.9495-1.5219 6.0023-3.0294a.077.077 0 00.0313-.0552c.5004-5.177-.8382-9.6739-3.5485-13.6604a.061.061 0 00-.0312-.0286zM8.02 15.3312c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9555-2.4189 2.157-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.9555 2.4189-2.1569 2.4189zm7.9748 0c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9554-2.4189 2.1569-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.946 2.4189-2.1568 2.4189Z"/></svg></a>
|
||||
<a class="icon-btn" href="https://github.com/yetone/magpie" aria-label="magpie on GitHub" title="Source on GitHub"><svg viewBox="0 0 16 16" fill="currentColor" aria-hidden="true"><path d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0 0 16 8c0-4.42-3.58-8-8-8Z"/></svg></a>
|
||||
<button class="icon-btn theme" type="button" aria-label="Theme" title="Theme: system"><svg class="i-system" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5"><rect x="1.75" y="2.75" width="12.5" height="8.5" rx="1.5"/><path d="M5.5 14h5M8 11.25V14"/></svg><svg class="i-light" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"><circle cx="8" cy="8" r="3"/><path d="M8 1v1.5M8 13.5V15M1 8h1.5M13.5 8H15M3 3l1 1M12 12l1 1M3 13l1-1M12 4l1-1"/></svg><svg class="i-dark" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linejoin="round"><path d="M13.5 9.5A5.5 5.5 0 0 1 6.5 2.5a5.5 5.5 0 1 0 7 7Z"/></svg></button>
|
||||
<a class="btn small" href="/#get">下载</a>
|
||||
</div></nav>
|
||||
|
||||
<main class="wrap doc">
|
||||
<aside class="toc">
|
||||
<p>腾讯云</p>
|
||||
<a href="#overview">概览</a>
|
||||
<a href="#add">添加腾讯云</a>
|
||||
<a href="#plans">套餐与接口地址</a>
|
||||
<a href="#models">套餐里的模型</a>
|
||||
<a href="#agents">在各个工具里用</a>
|
||||
<a href="#usage">企业版额度</a>
|
||||
<a href="#faq">常见问题</a>
|
||||
</aside>
|
||||
|
||||
<article>
|
||||
<p class="eyebrow" id="overview">文档 · 供应商</p>
|
||||
<h1>腾讯云 Token Plan 接入 Claude Code 和 Codex</h1>
|
||||
<p class="lede">腾讯云的模型都在 TokenHub 上:Token Plan 订阅(个人版和企业版)和按量付费。两者用不同的 Key:套餐是 sk-tp- 开头的套餐 Key,按量付费是 TokenHub 自己的 API Key。在 magpie 里添加一个腾讯云供应商,给每个 Key 选好套餐,Claude Code、Codex、Gemini CLI、OpenCode 和其他工具就都能通过本地网关 127.0.0.1:3425 用上混元、GLM、Kimi、DeepSeek 和 MiniMax。</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">Tencent Cloud</span>,给 Key 选 <span class="ui">Plan · China</span>、<span class="ui">Pay as you go · China</span>、<span class="ui">Pay as you go · Global</span>、<span class="ui">Enterprise plan · Global</span>,粘贴 Key 并保存。</li>
|
||||
<li><b>给工具选上</b>在 <span class="ui">Agent</span> 页给某个工具选 tc-code-latest 或 glm-5.3 这类模型。</li>
|
||||
</ol>
|
||||
<div class="code"><span class="lang">终端</span><button class="copy" data-copy="tc-cli">复制</button><pre id="tc-cli">magpie claude tencent-cloud/tc-code-latest
|
||||
magpie codex tencent-cloud/glm-5.3
|
||||
magpie opencode tencent-cloud/kimi-k3</pre></div>
|
||||
|
||||
<h2 id="plans"><a class="anchor" href="#plans">套餐与接口地址</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://tokenhub.tencentmaas.com/plan/v3</code></td><td><code>https://tokenhub.tencentmaas.com/plan/anthropic</code></td></tr>
|
||||
<tr><td>按量付费 · China</td><td><code>https://tokenhub.tencentmaas.com/v1</code></td><td><code>https://tokenhub.tencentmaas.com</code></td></tr>
|
||||
<tr><td>按量付费 · Global</td><td><code>https://tokenhub-intl.tencentmaas.com/v1</code></td><td><code>https://tokenhub-intl.tencentmaas.com</code></td></tr>
|
||||
<tr><td>企业版 · 新加坡</td><td><code>https://tokenhub-intl.tencentmaas.com/plan/v3</code></td><td><code>https://tokenhub-intl.tencentmaas.com/plan/anthropic</code></td></tr>
|
||||
</table></div>
|
||||
<p>个人版和企业版用同一组接口,套餐由 Key 决定。中国站的个人版和企业版是同一个地域,所以那里的模型是两种套餐的合集;新加坡只卖企业版。供应商里的每个 Key 都标明自己的套餐,按量付费和套餐的 Key 可以放在同一个供应商里。</p>
|
||||
<p>个人版以前在 <code>api.lkeap.cloud.tencent.com</code>,腾讯已把它迁到 TokenHub。存在旧地址上的供应商,magpie 会自动改到新地址。</p>
|
||||
|
||||
<h2 id="models"><a class="anchor" href="#models">套餐里的模型</a></h2>
|
||||
<p>套餐不返回自己的模型列表,公共目录也只列出套餐里的混元模型,所以 magpie 按腾讯云套餐文档给出模型:tc-code-latest, auto, glm-5.3, glm-5.3-flash, kimi-k3, kimi-k2.7-code, deepseek-v4-pro, deepseek-v4.1-flash, minimax-m3, hy4-preview, hy3, mimo-v2.6-pro 等。tc-code-latest 是控制台当前选定的模型。按量付费的 Key 读取 TokenHub 的 <code>/v1/models</code>,那里还有通义千问等其他厂商的模型。</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。TokenHub 的套餐和按量付费都提供 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="usage"><a class="anchor" href="#usage">企业版额度</a></h2>
|
||||
<p>企业版每个周期的额度(专业套餐按积分、轻享套餐按 token)只能通过腾讯云 API 查询,要用账号的 SecretId 和 SecretKey 签名,套餐 Key 查不到。所以在供应商的编辑页填上 SecretId 和 SecretKey 后,magpie 的用量页会为这个账号能看到的每个企业版套餐显示一张卡片:本周期已用多少、何时重置。个人版没有查询额度的 API,只能在控制台看;按量付费没有额度窗口。</p>
|
||||
|
||||
<h2 id="faq"><a class="anchor" href="#faq">常见问题</a></h2>
|
||||
<h3>腾讯云 Token Plan 怎么接入 Claude Code?</h3>
|
||||
<p>在 magpie 里添加 Tencent Cloud,把 Key 的套餐选成 Plan · China,然后在 Claude Code 那一行选 tc-code-latest、glm-5.3 这类模型,或运行 magpie claude tencent-cloud/tc-code-latest。请求走套餐的 Anthropic 接口 https://tokenhub.tencentmaas.com/plan/anthropic。</p>
|
||||
<h3>Token Plan 的 Key 和 TokenHub 按量付费的 Key 有什么区别?</h3>
|
||||
<p>套餐 Key 以 sk-tp- 开头,只能用在 /plan 下的套餐接口;按量付费用 TokenHub 自己的 API Key,接口是 /v1。在 magpie 里给每个 Key 选对套餐即可,两种 Key 可以放在同一个供应商里。</p>
|
||||
<h3>个人版原来的地址 api.lkeap.cloud.tencent.com 还能用吗?</h3>
|
||||
<p>腾讯已把个人版迁到 tokenhub.tencentmaas.com。magpie 里存着旧地址的供应商会自动改到新地址,不用手动改。</p>
|
||||
<h3>能在 magpie 里看到腾讯云套餐的剩余额度吗?</h3>
|
||||
<p>企业版可以:在供应商编辑页填账号的 SecretId 和 SecretKey,用量页就显示本周期的用量和重置时间。个人版没有查询 API,只能在腾讯云控制台看。</p>
|
||||
|
||||
<p style="margin-top:48px">同一套方法用在其他国产模型:<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>
|
||||
+138
-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) · [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) · [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) · [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) · [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) · [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) · [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) · [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) · [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
|
||||
|
||||
@@ -1558,6 +1558,133 @@ The same for other providers: [GLM Coding Plan](https://usemagpie.ai/docs/glm),
|
||||
|
||||
---
|
||||
|
||||
Source: https://usemagpie.ai/docs/tencent-cloud
|
||||
|
||||
# Tencent Cloud Token Plan in Claude Code and Codex
|
||||
|
||||
Tencent Cloud's models are on TokenHub: the Token Plan subscription (personal and enterprise) and pay as you go, each on keys of its own — an sk-tp- plan key, or TokenHub's own API key. Add one Tencent Cloud provider in magpie with each key's plan, and Claude Code, Codex, Gemini CLI, OpenCode and other tools use Hy, GLM, Kimi, DeepSeek and MiniMax through magpie's local gateway on 127.0.0.1:3425.
|
||||
|
||||
## Add Tencent Cloud
|
||||
|
||||
1. **Add the provider and pick the plan.** On Providers, click + Add provider, pick Tencent Cloud, set the key's plan to Plan · China, Pay as you go · China, Pay as you go · Global, Enterprise plan · Global, paste the key and save.
|
||||
2. **Pick it for a tool.** On Agents, pick a model such as tc-code-latest or glm-5.3 on a tool's row.
|
||||
|
||||
```
|
||||
magpie claude tencent-cloud/tc-code-latest
|
||||
magpie codex tencent-cloud/glm-5.3
|
||||
magpie opencode tencent-cloud/kimi-k3
|
||||
```
|
||||
|
||||
## Plans and endpoints
|
||||
|
||||
| Plan | Chat Completions and Responses | Anthropic Messages |
|
||||
| --- | --- | --- |
|
||||
| Token Plan (personal, enterprise) · China | `https://tokenhub.tencentmaas.com/plan/v3` | `https://tokenhub.tencentmaas.com/plan/anthropic` |
|
||||
| Pay as you go · China | `https://tokenhub.tencentmaas.com/v1` | `https://tokenhub.tencentmaas.com` |
|
||||
| Pay as you go · Global | `https://tokenhub-intl.tencentmaas.com/v1` | `https://tokenhub-intl.tencentmaas.com` |
|
||||
| Enterprise · Singapore | `https://tokenhub-intl.tencentmaas.com/plan/v3` | `https://tokenhub-intl.tencentmaas.com/plan/anthropic` |
|
||||
|
||||
The personal and enterprise plans share endpoints; the key tells the plan. China is one region for both, so its models are the two plans' together; Singapore sells the enterprise plan alone. Each key in the provider names its plan, so pay-as-you-go and plan keys can share one provider.
|
||||
|
||||
The personal plan used to be at `api.lkeap.cloud.tencent.com` until Tencent moved it to TokenHub. A provider saved at the old host is moved to the new one.
|
||||
|
||||
## The plans' models
|
||||
|
||||
The plans give no model list of their own, and the public catalog names only their Hy models, so magpie gives the models from Tencent's plan docs: tc-code-latest, auto, glm-5.3, glm-5.3-flash, kimi-k3, kimi-k2.7-code, deepseek-v4-pro, deepseek-v4.1-flash, minimax-m3, hy4-preview, hy3, mimo-v2.6-pro, among others. tc-code-latest is whichever model the console has picked. A pay-as-you-go key reads TokenHub's `/v1/models`, which has other makers' models such as Qwen too.
|
||||
|
||||
## In each agent
|
||||
|
||||
- **Claude Code.** speaks Anthropic Messages. The plan and pay as you go both have Anthropic endpoints, so requests go as they are. See [Claude Code with other models](https://usemagpie.ai/docs/claude-code-models).
|
||||
- **Codex.** speaks only OpenAI Responses. TokenHub's plan and pay as you go both serve 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).
|
||||
|
||||
## Enterprise quota
|
||||
|
||||
The enterprise plan's cycle quota (credits on 专业套餐, tokens on 轻享套餐) is told only to Tencent Cloud's API, signed with the account's SecretId and SecretKey, never to the plan key. Add them in the provider's editor, and magpie's Usage page shows a card for each enterprise plan the SecretId can see: what the cycle has used and when it resets. The personal plan has no API for its usage, only the console; pay as you go has no windows.
|
||||
|
||||
## FAQ
|
||||
|
||||
### How do I use the Tencent Cloud Token Plan in Claude Code?
|
||||
|
||||
Add Tencent Cloud in magpie with the key's plan set to Plan · China, then pick tc-code-latest or glm-5.3 on Claude Code's row, or run magpie claude tencent-cloud/tc-code-latest. Requests go to the plan's Anthropic endpoint, https://tokenhub.tencentmaas.com/plan/anthropic.
|
||||
|
||||
### What is the difference between a Token Plan key and a TokenHub pay-as-you-go key?
|
||||
|
||||
A plan key starts with sk-tp- and works only at the plan endpoints under /plan; pay as you go uses TokenHub's own API key at /v1. Set each key's plan in magpie; both can share one provider.
|
||||
|
||||
### Does the personal plan's old host api.lkeap.cloud.tencent.com still work?
|
||||
|
||||
Tencent moved the personal plan to tokenhub.tencentmaas.com. A provider in magpie saved at the old host is moved to the new one by itself.
|
||||
|
||||
### Can magpie show what is left of a Tencent Cloud plan?
|
||||
|
||||
For the enterprise plan, yes: add the account's SecretId and SecretKey in the provider's editor, and the Usage page shows the cycle's use and its reset. The personal plan has no API for it; see Tencent Cloud's console.
|
||||
|
||||
The same for other providers: [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/baidu-qianfan
|
||||
|
||||
# Baidu Qianfan Token Plan in Claude Code and Codex
|
||||
|
||||
Baidu Qianfan (百度千帆) has two Token Plans, personal and enterprise, and pay as you go, each with endpoints and keys of its own. Add Baidu Qianfan in magpie with each key's plan, and Claude Code, Codex, Gemini CLI, OpenCode and other tools use Qianfan's DeepSeek and GLM through magpie's local gateway on 127.0.0.1:3425.
|
||||
|
||||
## Add Baidu Qianfan
|
||||
|
||||
1. **Add the provider and pick the plan.** On Providers, click + Add provider, pick Baidu Qianfan, set the key's plan to Token Plan Personal, Token Plan Enterprise, Pay as you go, paste the key and save.
|
||||
2. **Pick it for a tool.** On Agents, pick a model such as qianfan-code-latest or deepseek-v4-pro on a tool's row.
|
||||
|
||||
```
|
||||
magpie claude baidu-qianfan/qianfan-code-latest
|
||||
magpie codex baidu-qianfan/deepseek-v4-pro
|
||||
magpie opencode baidu-qianfan/glm-5.3
|
||||
```
|
||||
|
||||
## Plans and endpoints
|
||||
|
||||
| Plan | Chat Completions and Responses | Anthropic Messages |
|
||||
| --- | --- | --- |
|
||||
| Token Plan personal | `https://qianfan.baidubce.com/v2/tokenplan/personal` | `https://qianfan.baidubce.com/anthropic/tokenplan/personal` |
|
||||
| Token Plan enterprise | `https://qianfan.baidubce.com/v2/tokenplan/team` | `https://qianfan.baidubce.com/anthropic/tokenplan/team` |
|
||||
| Pay as you go | `https://qianfan.baidubce.com/v2` | `https://qianfan.baidubce.com/anthropic` |
|
||||
|
||||
Each plan's key works at its own endpoints. Each key in the provider names its plan, so personal, enterprise and pay-as-you-go keys can share one provider, and each key's requests go to its own plan's endpoint.
|
||||
|
||||
## The plans' models
|
||||
|
||||
The plans' `/models` answers 404, so magpie gives the models from both plans' docs: qianfan-code-latest, deepseek-v4.1-flash, deepseek-v4-pro, deepseek-v4-pro-0813, deepseek-v4-flash-0731, glm-5.3, glm-5.3-flash, glm-5.2, glm-5.1, among others. deepseek-v4-flash, deepseek-v3.2 and glm-5 are the enterprise plan's alone. qianfan-code-latest is whichever model the console has picked. A pay-as-you-go key reads Qianfan's `/v2/models`.
|
||||
|
||||
## In each agent
|
||||
|
||||
- **Claude Code.** speaks Anthropic Messages. Qianfan's plans and pay as you go have Anthropic endpoints, so requests go as they are. See [Claude Code with other models](https://usemagpie.ai/docs/claude-code-models).
|
||||
- **Codex.** speaks only OpenAI Responses. Qianfan's plan endpoints serve Responses too, 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).
|
||||
|
||||
## FAQ
|
||||
|
||||
### How do I use the Baidu Qianfan Token Plan in Claude Code?
|
||||
|
||||
Add Baidu Qianfan in magpie with the key's plan set to Token Plan Personal or Enterprise, then pick qianfan-code-latest on Claude Code's row, or run magpie claude baidu-qianfan/qianfan-code-latest. Requests go to the plan's Anthropic endpoint, such as https://qianfan.baidubce.com/anthropic/tokenplan/personal.
|
||||
|
||||
### Which model is qianfan-code-latest?
|
||||
|
||||
The one you picked for the plan in Qianfan's console. Change it there; the name in magpie and your tools stays the same.
|
||||
|
||||
### Do the personal and enterprise plans have the same models?
|
||||
|
||||
Mostly. deepseek-v4-flash, deepseek-v3.2 and glm-5 are the enterprise plan's alone; deepseek-v4-pro, glm-5.3 and the others are in both.
|
||||
|
||||
### Does Baidu Qianfan work in Codex?
|
||||
|
||||
Yes. Qianfan's plan endpoints serve OpenAI Responses, so magpie passes Codex's requests through. Run magpie codex baidu-qianfan/deepseek-v4-pro, or pick it on Codex's row.
|
||||
|
||||
The same for other providers: [Volcengine Ark](https://usemagpie.ai/docs/volcengine), [Tencent Cloud](https://usemagpie.ai/docs/tencent-cloud), [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
|
||||
@@ -1870,7 +1997,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) · [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) · [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.
|
||||
|
||||
@@ -2173,7 +2300,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) · [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) · [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.
|
||||
|
||||
@@ -2311,7 +2438,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) · [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) · [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.
|
||||
|
||||
@@ -2444,7 +2571,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) · [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) · [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.
|
||||
|
||||
@@ -2628,7 +2755,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) · [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) · [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.
|
||||
|
||||
@@ -2772,7 +2899,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) · [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) · [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.
|
||||
|
||||
@@ -2923,7 +3050,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) · [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) · [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.
|
||||
|
||||
|
||||
@@ -49,6 +49,8 @@ DeepSeek, Kimi (Moonshot), GLM (Zhipu), Qwen, MiniMax, Anthropic (Claude), OpenA
|
||||
- [Kimi K2 and Kimi Code in every agent](https://usemagpie.ai/docs/kimi): Kimi API or Kimi Code membership keys, global and China endpoints, in Claude Code, Codex, Gemini CLI and OpenCode; usage windows and web search.
|
||||
- [GLM Coding Plan in every agent](https://usemagpie.ai/docs/glm): Zhipu GLM and Z.ai, pay as you go or Coding Plan, each plan's endpoints, the 1113 "insufficient balance" fix, thinking and plan windows.
|
||||
- [Volcengine Ark Coding Plan in every agent](https://usemagpie.ai/docs/volcengine): 火山方舟 Coding Plan, Agent Plan and pay as you go, each plan's endpoints, its Doubao, GLM, DeepSeek and Kimi models, Ark's own web search, Seedream and Seedance, and the plan windows through an AccessKey.
|
||||
- [Tencent Cloud Token Plan in Claude Code and Codex](https://usemagpie.ai/docs/tencent-cloud): TokenHub's personal and enterprise Token Plan and pay as you go, their endpoints and models, and the enterprise quota read with a SecretId and SecretKey.
|
||||
- [Baidu Qianfan Token Plan in Claude Code and Codex](https://usemagpie.ai/docs/baidu-qianfan): Qianfan's personal and enterprise Token Plans and pay as you go, their endpoints, and the DeepSeek and GLM models each plan has.
|
||||
- [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.
|
||||
|
||||
@@ -47,6 +47,8 @@
|
||||
<url><loc>https://usemagpie.ai/docs/kimi</loc></url>
|
||||
<url><loc>https://usemagpie.ai/docs/glm</loc></url>
|
||||
<url><loc>https://usemagpie.ai/docs/volcengine</loc></url>
|
||||
<url><loc>https://usemagpie.ai/docs/tencent-cloud</loc></url>
|
||||
<url><loc>https://usemagpie.ai/docs/baidu-qianfan</loc></url>
|
||||
<url><loc>https://usemagpie.ai/docs/qwen</loc></url>
|
||||
<url><loc>https://usemagpie.ai/docs/minimax</loc></url>
|
||||
<url><loc>https://usemagpie.ai/docs/openrouter</loc></url>
|
||||
@@ -100,6 +102,8 @@
|
||||
<url><loc>https://usemagpie.ai/docs/zh/kimi</loc></url>
|
||||
<url><loc>https://usemagpie.ai/docs/zh/glm</loc></url>
|
||||
<url><loc>https://usemagpie.ai/docs/zh/volcengine</loc></url>
|
||||
<url><loc>https://usemagpie.ai/docs/zh/tencent-cloud</loc></url>
|
||||
<url><loc>https://usemagpie.ai/docs/zh/baidu-qianfan</loc></url>
|
||||
<url><loc>https://usemagpie.ai/docs/zh/qwen</loc></url>
|
||||
<url><loc>https://usemagpie.ai/docs/zh/minimax</loc></url>
|
||||
<url><loc>https://usemagpie.ai/docs/zh/openrouter</loc></url>
|
||||
@@ -152,6 +156,8 @@
|
||||
<url><loc>https://usemagpie.ai/docs/ja/kimi</loc></url>
|
||||
<url><loc>https://usemagpie.ai/docs/ja/glm</loc></url>
|
||||
<url><loc>https://usemagpie.ai/docs/ja/volcengine</loc></url>
|
||||
<url><loc>https://usemagpie.ai/docs/ja/tencent-cloud</loc></url>
|
||||
<url><loc>https://usemagpie.ai/docs/ja/baidu-qianfan</loc></url>
|
||||
<url><loc>https://usemagpie.ai/docs/ja/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