diff --git a/site/public/docs/ja/modelscope.html b/site/public/docs/ja/modelscope.html index 6ee0c82b0..275607020 100644 --- a/site/public/docs/ja/modelscope.html +++ b/site/public/docs/ja/modelscope.html @@ -213,6 +213,8 @@ magpie opencode modelscope/Qwen/Qwen3-235B-A22B-Instruct-2507

画像

ModelScope の画像生成は独自の非同期タスクです。リクエストでタスクを始めて task_id を受け取り、成功か失敗まで問い合わせます。ユーザーごとに同時 1 タスクで、バーストには 429 を返すため、magpie は 1 枚ずつ頼み、混んでいるときは少し待ってから、結果をツールが読める画像として渡します。

+

NVIDIA NIM を Claude Code・Codex などのエージェントで使う

+

よくある質問

ModelScope を Claude Code で使うには?

magpie に ModelScope を追加してアクセストークンをキーに貼り、Claude Code の行で Qwen/Qwen3-Coder-30B-A3B-Instruct を選ぶか、magpie claude modelscope/Qwen/Qwen3-Coder-30B-A3B-Instruct を実行します。Anthropic エンドポイントがないため magpie が変換します。

diff --git a/site/public/docs/ja/nvidia.html b/site/public/docs/ja/nvidia.html new file mode 100644 index 000000000..9075e9ff6 --- /dev/null +++ b/site/public/docs/ja/nvidia.html @@ -0,0 +1,264 @@ + + + + + +NVIDIA NIM の無料 API を Claude Code・Codex などのエージェントで使う · magpie + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + +
+

ドキュメント · ガイド

+

NVIDIA NIM を Claude Code・Codex などのエージェントで使う

+

NVIDIA は build.nvidia.com で NIM のエンドポイントを提供しています。nvapi- で始まるキー 1 つで そこで提供される多くのモデルを呼べます。magpie の nvidia プリセットは、それを Claude Code・Codex・OpenCode などにつなぎます。

+

追加する

+
    +
  1. キーを作る。build.nvidia.com にサインインし、Settings → API Keys で作成します。
  2. +
  3. 追加する。アプリで NVIDIA NIM を選び、APIキー にキーを貼り付けるか、CLI で追加します。
  4. +
+
ターミナル
magpie provider add nvidia nvapi-…
+magpie provider test nvidia
+

プリセットは Chat Completions だけを https://integrate.api.nvidia.com/v1 に設定しています。NIM の /v1/responses は一部のモデルにしか答えず、ほかは 404 なので使いません。

+

エージェントで使う

+

モデル ID は nvidia/<NIM のモデル ID> で、一覧は NIM 自身が返します。

+
ターミナル
magpie claude nvidia/
+magpie codex nvidia/
+

Claude Code は Anthropic の API、Codex は Responses で話しますが、magpie はどちらも Chat Completions に変換して NIM に送り、答えをエージェントが読める形に戻します。

+

無料モデル

+

NIM で価格が 0 のモデルには、エージェントのモデル選択欄で 無料 と表示されます。これは NIM の価格だけで、同じモデルもほかのプロバイダーではそこでの価格で数え、NIM の $0 を提供元の価格とは見なしません。

+

たくさんのキー

+

CC Switch のようにキーごとに項目を持つアプリから取り込むと、「NVIDIA #001」から「NVIDIA #600」まで数百の項目になることがあります。magpie はキー以外が同じ項目を 1 つのプロバイダーにまとめ、各キーをそのアカウントにします。そうしないと、各モデルがすべてのエージェントの選択欄に数百回並んでいました。元の項目名はキーの名前になり、オフだったものはオフのままです。

+

補足

+ + +

よくある質問

+

magpie は NVIDIA NIM に対応していますか?

+

対応しています。nvidia プリセットに build.nvidia.com の API キーを入れると、integrate.api.nvidia.com/v1 の Chat Completions を使います。モデル ID は nvidia/<モデル> です。

+

Claude Code と Codex で NIM のモデルを使えますか?

+

使えます。NIM は Chat Completions だけで使い、magpie が Claude Code の Anthropic リクエストと Codex の Responses リクエストを Chat に変換し、答えを戻します。

+

どのモデルが無料か分かりますか?

+

NIM で価格が 0 のモデルは、エージェントのモデル選択欄で無料と表示されます。これは NIM の価格だけで、ほかのプロバイダーではそこでの価格になります。

+

NVIDIA の項目を数百取り込んでしまったら?

+

magpie はキー以外が同じ項目を 1 つのプロバイダーにまとめ、各キーをそのアカウントにするので、選択欄でモデルが重複しません。

+ +

関連ページ:ModelScope を Claude Code と Codex で、アカウント・キー・プロバイダーのローテーションとフェイルオーバー。エラーが出たら よくあるエラーの直し方:401・429・502・504 など を見るか、Discord で質問してください。

+
+
+ + + + + + + diff --git a/site/public/docs/modelscope.html b/site/public/docs/modelscope.html index 91c2d47c0..6adf221a1 100644 --- a/site/public/docs/modelscope.html +++ b/site/public/docs/modelscope.html @@ -213,6 +213,8 @@ magpie opencode modelscope/Qwen/Qwen3-235B-A22B-Instruct-2507

Images

ModelScope draws through async tasks of its own: a request starts a task and answers its task_id, which is asked about until it succeeds or fails. It runs one task of a user's at a time and answers bursts with 429, so magpie asks for one image at a time, waits a moment when it is busy, and hands the result to your tool as an image it can read.

+

NVIDIA NIM in Claude Code, Codex and other agents

+

FAQ

How do I use ModelScope in Claude Code?

Add ModelScope in magpie with your access token as the key, then pick Qwen/Qwen3-Coder-30B-A3B-Instruct on Claude Code's row, or run magpie claude modelscope/Qwen/Qwen3-Coder-30B-A3B-Instruct. ModelScope has no Anthropic endpoint, so magpie converts to Chat Completions.

diff --git a/site/public/docs/nvidia.html b/site/public/docs/nvidia.html new file mode 100644 index 000000000..3e5974c23 --- /dev/null +++ b/site/public/docs/nvidia.html @@ -0,0 +1,264 @@ + + + + + +NVIDIA NIM's free API in Claude Code, Codex and other agents · magpie + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + +
+

Docs · Guide

+

NVIDIA NIM in Claude Code, Codex and other agents

+

NVIDIA hosts NIM endpoints at build.nvidia.com: one nvapi- key reaches the many models it hosts. magpie's nvidia preset brings it to Claude Code, Codex, OpenCode and other agents.

+

Add it

+
    +
  1. Get a key.Sign in at build.nvidia.com and make one under Settings → API Keys.
  2. +
  3. Add it.Pick NVIDIA NIM in the app and paste the key into API key, or from the CLI:
  4. +
+
Terminal
magpie provider add nvidia nvapi-…
+magpie provider test nvidia
+

The preset sets Chat Completions alone, at https://integrate.api.nvidia.com/v1: NIM's /v1/responses answers for a few models and 404 for the rest, so magpie doesn't use it.

+

Use it in an agent

+

Model ids are nvidia/<NIM's model id>, from NIM's own list:

+
Terminal
magpie claude nvidia/
+magpie codex nvidia/
+

Claude Code speaks Anthropic's API and Codex speaks Responses; magpie translates both to Chat Completions for NIM and the answers back to what the agent reads.

+

Free models

+

A model NIM prices at 0 is marked free beside it in agents' model pickers. The price is NIM's alone: the same model on another provider costs what it costs there, and NIM's $0 isn't taken as the maker's price.

+

Many keys

+

Importing from an app that keeps an entry per key, as CC Switch does, often brings hundreds of entries, "NVIDIA #001" to "NVIDIA #600". magpie folds entries alike in all but their key into one provider, each key an account of it; otherwise every model showed hundreds of times in every agent's picker. Each entry's old name becomes its key's name, and one that was off stays off.

+

Notes

+ + +

FAQ

+

Does magpie support NVIDIA NIM?

+

Yes, with the nvidia preset. Give a build.nvidia.com API key; magpie asks Chat Completions at integrate.api.nvidia.com/v1, and a model id is nvidia/.

+

Can Claude Code and Codex use NIM's models?

+

Yes. NIM is asked on Chat Completions alone, and magpie translates Claude Code's Anthropic requests and Codex's Responses requests to Chat and the answers back.

+

How do I tell which models are free?

+

A model NIM prices at 0 is marked free beside it in agents' model pickers. That is NIM's price only; the same model costs what it costs on other providers.

+

I imported hundreds of NVIDIA entries. What now?

+

magpie folds entries alike in all but their key into one provider, each key an account of it, so models aren't repeated in the pickers.

+ +

Related: ModelScope in Claude Code and Codex, Round robin and failover across accounts, keys and providers. If something fails, see Fixing common errors: 401, 429, 502, 504 and more or ask on Discord.

+
+
+ + + + + + + diff --git a/site/public/docs/zh/modelscope.html b/site/public/docs/zh/modelscope.html index 77786c035..aa2955965 100644 --- a/site/public/docs/zh/modelscope.html +++ b/site/public/docs/zh/modelscope.html @@ -213,6 +213,8 @@ magpie opencode modelscope/Qwen/Qwen3-235B-A22B-Instruct-2507

画图

魔搭的画图接口是它自己的异步任务:先提交任务拿到 task_id,再查询到成功或失败。它每个用户同时只跑一个任务,突发请求会回 429,所以 magpie 一次只画一张,忙的时候稍等再试,再把结果变成工具能读的图片。

+

NVIDIA NIM 接入 Claude Code、Codex 等 Agent

+

常见问题

魔搭 ModelScope 怎么接入 Claude Code?

在 magpie 里添加 ModelScope,把访问令牌当 Key 粘贴,在 Claude Code 那一行选 Qwen/Qwen3-Coder-30B-A3B-Instruct 这类模型,或运行 magpie claude modelscope/Qwen/Qwen3-Coder-30B-A3B-Instruct。魔搭没有 Anthropic 接口,magpie 把请求转换成 Chat Completions。

diff --git a/site/public/docs/zh/nvidia.html b/site/public/docs/zh/nvidia.html new file mode 100644 index 000000000..73e4c134c --- /dev/null +++ b/site/public/docs/zh/nvidia.html @@ -0,0 +1,264 @@ + + + + + +NVIDIA NIM 免费 API 接入 Claude Code、Codex 等 Agent · magpie + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + +
+

文档 · 指南

+

NVIDIA NIM 接入 Claude Code、Codex 等 Agent

+

NVIDIA 在 build.nvidia.com 上托管 NIM 接口,用一把 nvapi- 开头的 Key 就能调用上面托管的许多模型。magpie 的 nvidia 预设把它接到 Claude Code、Codex、OpenCode 等 Agent。

+

添加

+
    +
  1. 拿一把 Key。登录 build.nvidia.com,在 Settings → API Keys 里生成一把。
  2. +
  3. 添加。在应用里选 NVIDIA NIM,把 Key 填进 API 密钥,或者在命令行:
  4. +
+
终端
magpie provider add nvidia nvapi-…
+magpie provider test nvidia
+

预设只配了 Chat Completions,地址是 https://integrate.api.nvidia.com/v1:NIM 的 /v1/responses 只对少数几个模型有回应,其余都是 404,所以 magpie 不去用它。

+

给 Agent 用

+

模型 id 写成 nvidia/<NIM 的模型 id>,模型列表由 NIM 自己给出:

+
终端
magpie claude nvidia/
+magpie codex nvidia/
+

Claude Code 说 Anthropic 协议,Codex 说 Responses,magpie 都把它们转成 Chat Completions 发给 NIM,再把回答转回 Agent 认得的格式。

+

免费模型

+

在 NIM 上标价为 0 的模型,Agent 的模型选择器里会在旁边标上 免费。这个价格只算 NIM 的:同一个模型在其他供应商那里照常按那里的价格计;NIM 的 $0 也不会被当作模型厂商的定价。

+

很多把 Key

+

从 CC Switch 这类「一把 Key 一个条目」的应用导入时,常见「NVIDIA #001」到「NVIDIA #600」这样几百个条目。magpie 会把除 Key 以外都一样的条目合成一个供应商,每把 Key 是它的一个账号:不然每个模型会在每个 Agent 的选择器里重复几百次。各条目原来的名字留作 Key 的名字,关着的还是关着。

+

几点说明

+ + +

常见问题

+

magpie 支持 NVIDIA NIM 吗?

+

支持,用 nvidia 预设。填一把 build.nvidia.com 的 API Key,magpie 走 integrate.api.nvidia.com/v1 的 Chat Completions,模型 id 写成 nvidia/<模型>。

+

Claude Code 和 Codex 能用 NIM 上的模型吗?

+

能。NIM 只用 Chat Completions,magpie 把 Claude Code 的 Anthropic 请求和 Codex 的 Responses 请求都转成 Chat,再把回答转回去。

+

怎么知道哪些模型免费?

+

NIM 标价为 0 的模型,在 Agent 的模型选择器里旁边标着免费。这只是 NIM 的价格,同一个模型在别的供应商那里照常计价。

+

导入了几百个 NVIDIA 条目怎么办?

+

magpie 会把除 Key 以外都一样的条目合成一个供应商,每把 Key 成为它的一个账号,模型不会在选择器里重复。

+ +

相关页面:魔搭 ModelScope 接入 Claude Code 和 Codex、多个账号、Key 和供应商轮询与故障切换。遇到错误请看 常见错误排查:401、429、502、504 等,或者到 Discord 提问。

+
+
+ + + + + + + diff --git a/site/public/llms-full.txt b/site/public/llms-full.txt index 5c650a1a9..e0cd8139a 100644 --- a/site/public/llms-full.txt +++ b/site/public/llms-full.txt @@ -1797,6 +1797,8 @@ ModelScope's model names carry their organisation, written as they are: Qwen/Qwe ModelScope draws through async tasks of its own: a request starts a task and answers its task_id, which is asked about until it succeeds or fails. It runs one task of a user's at a time and answers bursts with 429, so magpie asks for one image at a time, waits a moment when it is busy, and hands the result to your tool as an image it can read. +[NVIDIA NIM in Claude Code, Codex and other agents](https://usemagpie.ai/docs/nvidia) + ## FAQ ### How do I use ModelScope in Claude Code? @@ -9771,6 +9773,71 @@ Related: [OpenRouter in Claude Code, Codex, Gemini CLI and OpenCode](https://use --- +Source: https://usemagpie.ai/docs/nvidia + +# NVIDIA NIM in Claude Code, Codex and other agents + +NVIDIA hosts NIM endpoints at build.nvidia.com: one `nvapi-` key reaches the many models it hosts. magpie's `nvidia` preset brings it to Claude Code, Codex, OpenCode and other agents. + +## Add it + +1. **Get a key..** Sign in at build.nvidia.com and make one under Settings → API Keys. +2. **Add it..** Pick NVIDIA NIM in the app and paste the key into API key, or from the CLI: + +``` +magpie provider add nvidia nvapi-… +magpie provider test nvidia +``` + +The preset sets Chat Completions alone, at `https://integrate.api.nvidia.com/v1`: NIM's `/v1/responses` answers for a few models and 404 for the rest, so magpie doesn't use it. + +## Use it in an agent + +Model ids are `nvidia/`, from NIM's own list: + +``` +magpie claude nvidia/ +magpie codex nvidia/ +``` + +Claude Code speaks Anthropic's API and Codex speaks Responses; magpie translates both to Chat Completions for NIM and the answers back to what the agent reads. + +## Free models + +A model NIM prices at 0 is marked free beside it in agents' model pickers. The price is NIM's alone: the same model on another provider costs what it costs there, and NIM's $0 isn't taken as the maker's price. + +## Many keys + +Importing from an app that keeps an entry per key, as CC Switch does, often brings hundreds of entries, "NVIDIA #001" to "NVIDIA #600". magpie folds entries alike in all but their key into one provider, each key an account of it; otherwise every model showed hundreds of times in every agent's picker. Each entry's old name becomes its key's name, and one that was off stays off. + +## Notes + +- An `nvidia` provider set up in OpenCode becomes this preset when imported. +- When NIM's free use runs out or is rate-limited, put it in a routing group with other providers: when one fails, the group's next member answers. +- magpie can't tell a free NIM key from a paid one, so it doesn't say how a key bills. + +## FAQ + +### Does magpie support NVIDIA NIM? + +Yes, with the nvidia preset. Give a build.nvidia.com API key; magpie asks Chat Completions at integrate.api.nvidia.com/v1, and a model id is nvidia/. + +### Can Claude Code and Codex use NIM's models? + +Yes. NIM is asked on Chat Completions alone, and magpie translates Claude Code's Anthropic requests and Codex's Responses requests to Chat and the answers back. + +### How do I tell which models are free? + +A model NIM prices at 0 is marked free beside it in agents' model pickers. That is NIM's price only; the same model costs what it costs on other providers. + +### I imported hundreds of NVIDIA entries. What now? + +magpie folds entries alike in all but their key into one provider, each key an account of it, so models aren't repeated in the pickers. + +Related: [ModelScope in Claude Code and Codex](https://usemagpie.ai/docs/modelscope), [Round robin and failover across accounts, keys and providers](https://usemagpie.ai/docs/routing-groups). If something fails, see [Fixing common errors: 401, 429, 502, 504 and more](https://usemagpie.ai/docs/troubleshooting) or ask on [Discord](https://discord.gg/vGSnD3ZKQF). + +--- + Source: https://usemagpie.ai/docs/library # Library diff --git a/site/public/llms.txt b/site/public/llms.txt index 5c1755bee..1f70fb343 100644 --- a/site/public/llms.txt +++ b/site/public/llms.txt @@ -147,6 +147,7 @@ DeepSeek, Kimi (Moonshot), GLM (Zhipu), Qwen, MiniMax, Anthropic (Claude), OpenA - [Azure OpenAI in Codex, Claude Code and other agents](https://usemagpie.ai/docs/azure): the azure preset at your own resource, its v1 API under /openai/v1, the key in api-key, deployments as model ids, API Management gateways and headers. - [Groq in Claude Code, Codex and other agents](https://usemagpie.ai/docs/groq): the groq preset with one key, Claude Code translated to Chat with the cache counted, per-model rate limits, overflows that make the agent compact, Whisper and speech. - [Vercel AI Gateway in Claude Code, Codex and other agents](https://usemagpie.ai/docs/vercel): the vercel preset with Chat, Responses and Anthropic Messages set, Claude models kept on Messages for the cache, and the model list sorted by Vercel's own types. +- [NVIDIA NIM in Claude Code, Codex and other agents](https://usemagpie.ai/docs/nvidia): the nvidia preset on Chat Completions at integrate.api.nvidia.com, Claude Code and Codex translated, free models marked in the pickers, imported keys folded into one provider. - [Library](https://usemagpie.ai/docs/library): instructions, MCP servers, skills, hooks and subagents for each agent. - [MCP router](https://usemagpie.ai/docs/mcp-router): one magpie MCP server per agent. - [Remote magpie](https://usemagpie.ai/docs/remote): use one magpie from several computers. diff --git a/site/public/sitemap.xml b/site/public/sitemap.xml index aa30e08b2..966b8f3a0 100644 --- a/site/public/sitemap.xml +++ b/site/public/sitemap.xml @@ -99,6 +99,7 @@ https://usemagpie.ai/docs/azure https://usemagpie.ai/docs/groq https://usemagpie.ai/docs/vercel +https://usemagpie.ai/docs/nvidia https://usemagpie.ai/docs/local-models https://usemagpie.ai/docs/opencode-models https://usemagpie.ai/docs/alternatives @@ -219,6 +220,7 @@ https://usemagpie.ai/docs/zh/azure https://usemagpie.ai/docs/zh/groq https://usemagpie.ai/docs/zh/vercel +https://usemagpie.ai/docs/zh/nvidia https://usemagpie.ai/docs/zh/local-models https://usemagpie.ai/docs/zh/opencode-models https://usemagpie.ai/docs/zh/alternatives @@ -338,6 +340,7 @@ https://usemagpie.ai/docs/ja/azure https://usemagpie.ai/docs/ja/groq https://usemagpie.ai/docs/ja/vercel +https://usemagpie.ai/docs/ja/nvidia https://usemagpie.ai/docs/ja/local-models https://usemagpie.ai/docs/ja/opencode-models https://usemagpie.ai/docs/ja/alternatives