From e6fe481b3da77eb3a32581bc0e071557b7617c8e Mon Sep 17 00:00:00 2001 From: yetone Date: Wed, 11 Nov 2026 22:36:28 +0800 Subject: [PATCH] site: a T3 Code docs page in en, zh and ja MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit /docs/t3-code says how magpie runs T3 Code (pingdotgg/t3code) on magpie's models: the two provider instances written into ~/.t3/userdata/settings.json ($T3CODE_HOME/userdata), which T3's server watches and reloads; magpie, a claudeAgent instance running Claude Code with ANTHROPIC_BASE_URL and the gateway token, every magpie model a custom model, 1M ones marked [1m], T3's own Claude binary and home carried over; magpie · Codex, a codex instance whose launchArgs are Codex -c overrides with magpie-codex-models.json as catalog, ~/.codex/config.toml not written, not brought back by a sync once removed; the Reasoning pick (medium first, else the lowest) and the Thinking switch (alwaysThinkingEnabled); the user's names, enabled state, autoCompactWindow, accentColor and env kept; ~/.claude/settings.json env and CLAUDE_CODE_USE_BEDROCK; switching back. Each claim is from internal/agent/t3code.go (its header, t3Capabilities, the Codex instance). Linked from each language's CodeBuddy page; in the sitemap, llms.txt and llms-full.txt. Run: the three 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: T3 Code itself on magpie for this page; it names only what magpie's source says. --- site/public/docs/codebuddy.html | 2 +- site/public/docs/ja/codebuddy.html | 2 +- site/public/docs/ja/t3-code.html | 276 +++++++++++++++++++++++++++++ site/public/docs/t3-code.html | 276 +++++++++++++++++++++++++++++ site/public/docs/zh/codebuddy.html | 2 +- site/public/docs/zh/t3-code.html | 276 +++++++++++++++++++++++++++++ site/public/llms-full.txt | 81 ++++++++- site/public/llms.txt | 1 + site/public/sitemap.xml | 3 + 9 files changed, 915 insertions(+), 4 deletions(-) create mode 100644 site/public/docs/ja/t3-code.html create mode 100644 site/public/docs/t3-code.html create mode 100644 site/public/docs/zh/t3-code.html diff --git a/site/public/docs/codebuddy.html b/site/public/docs/codebuddy.html index d737b6255..7afa12ac3 100644 --- a/site/public/docs/codebuddy.html +++ b/site/public/docs/codebuddy.html @@ -222,7 +222,7 @@ magpie codebuddy # show what it is set to

I changed the model and nothing happened.

CodeBuddy Code reads its model when a session starts. Restart codebuddy or run /clear. In the IDE, pick the model in its model picker.

-

More agents on the same models: Models in Claude Code, Kimi Code on any model and Qwen Code on any model. Tencent Cloud's models: Tencent Cloud. Notes on the same models: Obsidian on any model. Something fails? See Fixing common errors, or ask on Discord.

+

More agents on the same models: Models in Claude Code, Kimi Code on any model, Qwen Code on any model and T3 Code on any model. Tencent Cloud's models: Tencent Cloud. Notes on the same models: Obsidian on any model. Something fails? See Fixing common errors, or ask on Discord.

diff --git a/site/public/docs/ja/codebuddy.html b/site/public/docs/ja/codebuddy.html index 72618ce00..b5159ffa6 100644 --- a/site/public/docs/ja/codebuddy.html +++ b/site/public/docs/ja/codebuddy.html @@ -222,7 +222,7 @@ magpie codebuddy # 現在の設定を表示

モデルを変えても反映されません。

CodeBuddy Code はセッション開始時にモデルを読みます。codebuddy を再起動するか /clear を実行してください。IDE ではモデル選択で選びます。

-

同じモデルを他のエージェントでも:Claude Code で他のモデル、Kimi Code を任意のモデルで、Qwen Code を任意のモデルで。Tencent Cloud のモデルは Tencent Cloud。ノートでも同じモデルを:Obsidian を任意のモデルで。エラーが出るときは よくあるエラーの直し方、または Discord で質問してください。

+

同じモデルを他のエージェントでも:Claude Code で他のモデル、Kimi Code を任意のモデルで、Qwen Code を任意のモデルで、T3 Code を任意のモデルで。Tencent Cloud のモデルは Tencent Cloud。ノートでも同じモデルを:Obsidian を任意のモデルで。エラーが出るときは よくあるエラーの直し方、または Discord で質問してください。

diff --git a/site/public/docs/ja/t3-code.html b/site/public/docs/ja/t3-code.html new file mode 100644 index 000000000..47246c90f --- /dev/null +++ b/site/public/docs/ja/t3-code.html @@ -0,0 +1,276 @@ + + + + + +T3 Code で DeepSeek、GLM、Kimi、Qwen、GPT、Claude、ChatGPT サブスクリプションを使う:magpie で T3 Code の Claude Code と Codex を任意のモデルに · magpie + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + +
+

ドキュメント · ガイド

+

T3 Code を任意のモデルで

+

T3 Code(pingdotgg/t3code)は Claude Code、Codex、Cursor などを動かす GUI です。プロバイダーはそれぞれドライバーの「インスタンス」で、自分のインスタンスも追加できます。magpie は Claude Code で動く magpie と、Codex で動く magpie · Codex の二つを加えます。そのため T3 Code のモデル選択に magpie のすべてのモデル(DeepSeek、GLM、Kimi、Qwen、OpenAI や Anthropic のキー、ChatGPT や Copilot のサブスクリプション)が並び、動かすハーネスも選べます。

+

T3 Code の設定

+
    +
  1. magpie にプロバイダーを追加プロバイダー ページで API キーを追加するか、サブスクリプションにサインインします。
  2. +
  3. T3 Code の行で magpie を選ぶエージェント ページで magpie を選ぶと、二つのインスタンスが T3 Code の settings.json に書かれます。
  4. +
  5. T3 Code でモデルを選ぶT3 Code のサーバーはファイルを監視し、外部の変更で再読み込みします。モデル選択で magpie の下のモデルは Claude Code で、magpie · Codex の下のモデルは Codex で動きます。
  6. +
+
ターミナル
magpie t3code provider magpie
+

設定ファイルは ~/.t3/userdata/settings.json(T3CODE_HOME があれば $T3CODE_HOME/userdata)です。magpie が書く二つのインスタンス:

+
ターミナル
"providerInstances": {
+  "magpie": {"driver": "claudeAgent", "displayName": "magpie",
+    "environment": [{"name": "ANTHROPIC_BASE_URL", "value": "http://127.0.0.1:3425", …}, …],
+    "config": {"customModels": [{"slug": "deepseek/deepseek-v4-pro", "name": …,
+      "capabilities": {"optionDescriptors": […]}}, …]}},
+  "magpie-codex": {"driver": "codex", "displayName": "magpie · Codex",
+    "config": {"launchArgs": […]}}
+}
+

magpie(Claude Code)

+

magpie インスタンスは claudeAgent インスタンスです。T3 Code は Anthropic の Agent SDK で Claude Code を動かし、~/.claude の設定を読み、インスタンスの環境変数を加えます。magpie は ANTHROPIC_BASE_URL をゲートウェイに、Claude Code が magpie 経由で使うトークンを設定するので、リクエストは Claude Code からゲートウェイへのものになります。magpie の各モデルはカスタムモデルになり、1M のモデルには Claude Code 向けと同じく [1m] が付きます。T3 自身の Claude に実行ファイルのパスや Claude のホームを指定していれば引き継ぐので、同じ Claude Code が動きます。

+

magpie · Codex(Codex)

+

T3 Code はスレッドを、モデルを選んだインスタンスのハーネスで動かします。Claude Code のインスタンスだけでは magpie のモデルはすべて Claude Code で動くため、magpie は codex インスタンス magpie · Codex も加えます。その launchArgs は T3 が codex app-server と codex exec に渡す Codex 自身の -c 上書きで、magpie をモデルプロバイダーに、settings.json の隣の magpie-codex-models.json をカタログにします。~/.codex/config.toml は書き換えず、T3 自身の Codex もそのままです。T3 でこのインスタンスを消すと同期では戻らず、magpie で行をもう一度オンにすると戻ります。

+

推論レベル

+

能力の記述がないと、T3 Code はカスタムモデルに選択肢を出さず、推論レベルも送りません。そこで magpie は各カスタムモデルに、そのモデルが受け付ける Claude Code のレベルの Reasoning 選択を付け、既定は medium(なければ最低)です。T3 は選んだレベルをそのまま Claude Code に渡します。思考するモデルには Thinking スイッチ(最初はオン)も付き、T3 はそれで Claude Code の alwaysThinkingEnabled を設定します。

+

自分の設定

+

インスタンスの名前、オンかどうか、magpie が書かないキー(autoCompactWindow、accentColor など)はあなたのもので、T3 Code で変えた値は保たれます。magpie のインスタンスに自分で加えた環境変数も残ります。自分のインスタンス、そのカスタムモデル、T3 のほかの設定には触れません。magpie のものはカスタムモデル、ゲートウェイの環境変数、Codex インスタンスの起動引数とカタログだけです。

+

Claude Code 自身のルーティング

+

~/.claude/settings.json の env はプロセスの環境変数より優先されます。Claude Code が自分の設定で別の場所へルーティングされていれば、magpie インスタンスのリクエストもそこへ行きます。magpie 経由かルーティングなしならゲートウェイへ行きます。CLAUDE_CODE_USE_BEDROCK などのクラウドのスイッチがオンならそのクラウドへ行き、magpie のチェックがそれを知らせます。

+

元に戻す

+

magpie で行をオフにすると、magpie は自分の二つのインスタンスだけを外し、ほかのインスタンスと設定はそのままです。

+
ターミナル
magpie t3code default
+ +

よくある質問

+

T3 Code で DeepSeek、GLM、Kimi、Qwen は使えますか?

+

使えます。magpie が T3 Code の settings.json に二つのプロバイダーインスタンスを加え、magpie のすべてのモデルが T3 のモデル選択に、Claude Code 用と Codex 用で並びます。

+

magpie と magpie · Codex の違いは?

+

モデルは同じでハーネスが違います。magpie の下は Claude Code、magpie · Codex の下は Codex で動きます。

+

~/.codex/config.toml や T3 自身の Claude、Codex は変わりますか?

+

いいえ。Codex の設定は magpie · Codex インスタンスの起動引数だけで、T3 自身のインスタンスやあなたのインスタンスはそのままです。

+

リクエストが magpie を通りません。

+

~/.claude/settings.json の env を確認してください。そこで別の場所にルーティングされているか、Bedrock などのスイッチがオンだと、magpie インスタンスのリクエストもそこへ行きます。

+ +

同じモデルを他のエージェントでも:Claude Code で他のモデル、Codex で他のモデル、CodeBuddy を任意のモデルで。エラーが出るときは よくあるエラーの直し方、または Discord で質問してください。

+
+
+ + + + + + + diff --git a/site/public/docs/t3-code.html b/site/public/docs/t3-code.html new file mode 100644 index 000000000..3050d9784 --- /dev/null +++ b/site/public/docs/t3-code.html @@ -0,0 +1,276 @@ + + + + + +T3 Code with DeepSeek, GLM, Kimi, Qwen, GPT, Claude or a ChatGPT subscription: any model on T3 Code's Claude Code and Codex through magpie · magpie + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + +
+

Docs · Guide

+

T3 Code on any model

+

T3 Code (pingdotgg/t3code) is a GUI that drives Claude Code, Codex, Cursor and others. Each provider it lists is an instance of a driver, and it takes instances of your own. magpie adds two: magpie, on Claude Code, and magpie · Codex, on Codex. So T3 Code's model picker lists every model you have in magpie: DeepSeek, GLM, Kimi, Qwen, an OpenAI or Anthropic key, or a ChatGPT or Copilot subscription, on the harness you choose.

+

Set up T3 Code

+
    +
  1. Add a provider in magpieAdd an API key on the Providers page, or sign in to a subscription.
  2. +
  3. Pick magpie on T3 Code's rowOn the Agents page, pick magpie. magpie writes both instances into T3 Code's settings.json.
  4. +
  5. Pick a model in T3 CodeT3 Code's server watches the file and reloads it on an outside edit. In the model picker, models under magpie run on Claude Code, those under magpie · Codex on Codex.
  6. +
+
Terminal
magpie t3code provider magpie
+

The settings file is ~/.t3/userdata/settings.json ($T3CODE_HOME/userdata when set). These are the two instances magpie writes:

+
Terminal
"providerInstances": {
+  "magpie": {"driver": "claudeAgent", "displayName": "magpie",
+    "environment": [{"name": "ANTHROPIC_BASE_URL", "value": "http://127.0.0.1:3425", …}, …],
+    "config": {"customModels": [{"slug": "deepseek/deepseek-v4-pro", "name": …,
+      "capabilities": {"optionDescriptors": […]}}, …]}},
+  "magpie-codex": {"driver": "codex", "displayName": "magpie · Codex",
+    "config": {"launchArgs": […]}}
+}
+

magpie, on Claude Code

+

The magpie instance is a claudeAgent instance: T3 Code runs Claude Code through Anthropic's Agent SDK, reading your ~/.claude settings, with the instance's environment added. magpie sets ANTHROPIC_BASE_URL to the gateway and the token Claude Code is routed with, so its requests are Claude Code's to the gateway. Every magpie model is one of its custom models, a 1M one marked [1m] as magpie marks it for Claude Code. A binary path or Claude home you gave T3's own Claude is carried over, so it runs the same Claude Code.

+

magpie · Codex, on Codex

+

T3 Code runs each thread on the harness of the instance its model is picked from, so with the Claude Code instance alone every magpie model ran there. So magpie adds a codex instance, magpie · Codex. Its launchArgs, which T3 passes to codex app-server and codex exec, are Codex's own -c overrides: magpie as its model provider, and magpie-codex-models.json beside settings.json as its catalog, so T3 lists every magpie model under it from Codex's model list. Your ~/.codex/config.toml isn't written, and T3's own Codex stays as it is. If you remove the instance in T3, a sync doesn't bring it back; turning T3 Code's row on again in magpie does.

+

Reasoning

+

Without capabilities, T3 Code shows no picks beside a custom model and sends no effort. So each of magpie's custom models gets a Reasoning pick of the Claude Code levels it takes, medium first (else the lowest), which T3 hands to Claude Code as it is. A model that thinks also gets a Thinking switch, on at first; T3 sets Claude Code's alwaysThinkingEnabled by it, and with it off requests ask for no thinking.

+

Your own settings

+

The instances' names, whether they are on, and every key magpie doesn't write (such as autoCompactWindow and accentColor) are yours, and what you change in T3 Code stays. Environment variables you add on magpie's instance stay too. Your own instances, their custom models and T3's other settings are untouched. magpie's are only the custom models, the gateway's variables, and the Codex instance's launch arguments and catalog.

+

Claude Code's own routing

+

The env in ~/.claude/settings.json is applied over the process', so a Claude Code routed elsewhere in its own settings takes the magpie instance's requests there; one routed through magpie or not routed at all asks the gateway. A provider switch on there, such as CLAUDE_CODE_USE_BEDROCK, takes it to that cloud, and magpie's check says so.

+

Switching back

+

Turn the row off in magpie. magpie takes out only its two instances; your others and your settings stay.

+
Terminal
magpie t3code default
+ +

FAQ

+

Can T3 Code use DeepSeek, GLM, Kimi or Qwen?

+

Yes. magpie adds two provider instances to T3 Code's settings.json, and every model you have in magpie is in T3's model picker, on Claude Code or on Codex.

+

What is the difference between magpie and magpie · Codex?

+

The same models on a different harness: those under magpie run on Claude Code, those under magpie · Codex on Codex.

+

Does it change my ~/.codex/config.toml or T3's own Claude and Codex?

+

No. Codex's settings are launch arguments of the magpie · Codex instance alone; T3's own instances and yours stay as they are.

+

Why don't requests go through magpie?

+

Check the env in ~/.claude/settings.json: a Claude Code routed elsewhere there, or with a cloud switch such as Bedrock on, takes the magpie instance's requests there.

+ +

More agents on the same models: Models in Claude Code, Models in Codex and CodeBuddy on any model. Something fails? See Fixing common errors, or ask on Discord.

+
+
+ + + + + + + diff --git a/site/public/docs/zh/codebuddy.html b/site/public/docs/zh/codebuddy.html index aecb47ebc..67f0ab54c 100644 --- a/site/public/docs/zh/codebuddy.html +++ b/site/public/docs/zh/codebuddy.html @@ -222,7 +222,7 @@ magpie codebuddy # 查看当前设置

换了模型为什么没生效?

CodeBuddy Code 在会话开始时读取模型。重启 codebuddy,或在会话里运行 /clear。IDE 里的模型要在 IDE 的模型选择器里选。

-

更多 Agent 用同样的模型:Claude Code 接入其他模型、让 Kimi Code 用任意模型、让 Qwen Code 用任意模型。腾讯云的模型见 腾讯云。笔记里用同样的模型:让 Obsidian 用任意模型。遇到报错?见 常见错误排查,或到 Discord 提问。

+

更多 Agent 用同样的模型:Claude Code 接入其他模型、让 Kimi Code 用任意模型、让 Qwen Code 用任意模型、让 T3 Code 用任意模型。腾讯云的模型见 腾讯云。笔记里用同样的模型:让 Obsidian 用任意模型。遇到报错?见 常见错误排查,或到 Discord 提问。

diff --git a/site/public/docs/zh/t3-code.html b/site/public/docs/zh/t3-code.html new file mode 100644 index 000000000..f87402281 --- /dev/null +++ b/site/public/docs/zh/t3-code.html @@ -0,0 +1,276 @@ + + + + + +T3 Code 接入 DeepSeek、GLM、Kimi、Qwen、GPT、Claude 或 ChatGPT 订阅:通过 magpie 让 T3 Code 的 Claude Code 和 Codex 用任意模型 · magpie + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + +
+

文档 · 指南

+

让 T3 Code 用任意模型

+

T3 Code(pingdotgg/t3code)是一个图形界面,驱动 Claude Code、Codex、Cursor 等 Agent。它的每个供应商都是某个驱动的“实例”,也接受你自己加的实例。magpie 加两个实例:在 Claude Code 上运行的 magpie,和在 Codex 上运行的 magpie · Codex。于是 T3 Code 的模型选择器里能选你在 magpie 里的任何模型:DeepSeek、GLM、Kimi、Qwen、OpenAI 或 Anthropic Key,或 ChatGPT、Copilot 订阅,并且可以自己决定用哪个 harness 跑。

+

接入 T3 Code

+
    +
  1. 在 magpie 里添加供应商在 供应商 页添加 API Key,或登录一个订阅。
  2. +
  3. 在 T3 Code 那一行选 magpie在 Agent 页选 magpie。magpie 把两个实例写进 T3 Code 的 settings.json。
  4. +
  5. 在 T3 Code 里选模型T3 Code 的服务监视这个文件,外部修改后自动重新加载。在模型选择器里,magpie 下的模型在 Claude Code 上跑,magpie · Codex 下的在 Codex 上跑。
  6. +
+
终端
magpie t3code provider magpie
+

设置文件是 ~/.t3/userdata/settings.json(设了 T3CODE_HOME 时是 $T3CODE_HOME/userdata)。magpie 写入的是这两个实例:

+
终端
"providerInstances": {
+  "magpie": {"driver": "claudeAgent", "displayName": "magpie",
+    "environment": [{"name": "ANTHROPIC_BASE_URL", "value": "http://127.0.0.1:3425", …}, …],
+    "config": {"customModels": [{"slug": "deepseek/deepseek-v4-pro", "name": …,
+      "capabilities": {"optionDescriptors": […]}}, …]}},
+  "magpie-codex": {"driver": "codex", "displayName": "magpie · Codex",
+    "config": {"launchArgs": […]}}
+}
+

magpie:在 Claude Code 上

+

magpie 实例是一个 claudeAgent 实例:T3 Code 用 Anthropic 的 Agent SDK 运行 Claude Code,读取你的 ~/.claude 设置,再加上实例的环境变量。magpie 在这里设 ANTHROPIC_BASE_URL 指向网关,以及 Claude Code 走 magpie 时用的 token,所以这些请求就是 Claude Code 发给网关的请求。每个 magpie 模型都是它的一个自定义模型,上下文为 1M 的模型标上 [1m],和 magpie 给 Claude Code 的标法一样。如果你给 T3 自带的 Claude 设过可执行文件路径或 Claude 主目录,magpie 实例沿用它们,跑的是同一个 Claude Code。

+

magpie · Codex:在 Codex 上

+

T3 Code 用模型所属实例的 harness 运行线程。只有 Claude Code 实例时,所有 magpie 模型都只能在 Claude Code 上跑,所以 magpie 还加了一个 codex 实例 magpie · Codex。它的 launchArgs 是 Codex 自己的 -c 覆盖参数,T3 会传给 codex app-server 和 codex exec:把 magpie 设为模型供应商,并把 settings.json 旁边的 magpie-codex-models.json 设为模型目录,于是 T3 从 Codex 的模型列表里列出每个 magpie 模型。你的 ~/.codex/config.toml 不会被改,T3 自带的 Codex 也照旧。如果你在 T3 里删了这个实例,同步不会把它加回来,只有在 magpie 里重新打开 T3 Code 那一行才会。

+

思考强度

+

没有能力描述时,T3 Code 不显示任何选项,也不发思考强度。所以 magpie 给每个自定义模型加上 Reasoning 选择,列出这个模型支持的 Claude Code 强度,默认 medium(没有 medium 就用最低的),T3 把选中的强度原样交给 Claude Code。会思考的模型还有一个 Thinking 开关,默认打开;T3 用它设置 Claude Code 的 alwaysThinkingEnabled,关掉时请求不带思考。

+

你自己的设置

+

两个实例的名字、是否启用,以及 magpie 不写的键(如 autoCompactWindow、accentColor)都归你,你在 T3 Code 里改过的不会被改回去。magpie 实例上你自己加的环境变量也保留。你自己的实例、它们的自定义模型和 T3 的其他设置都不受影响。属于 magpie 的只有:自定义模型、网关的环境变量,以及 Codex 实例的启动参数和模型目录。

+

Claude Code 自己的路由

+

~/.claude/settings.json 里的 env 会覆盖进程的环境变量。所以如果你的 Claude Code 在自己的设置里路由到了别处,magpie 实例的请求也会去那里;路由到 magpie 或没有路由的,请求发到网关。如果那里开了 CLAUDE_CODE_USE_BEDROCK 这类云厂商开关,请求会去那个云,magpie 的检查会提示这一点。

+

切回

+

在 magpie 里把那一行取消,magpie 只拿掉它自己的两个实例,你的其他实例和设置不变。

+
终端
magpie t3code default
+ +

常见问题

+

T3 Code 能用 DeepSeek、GLM、Kimi 或 Qwen 吗?

+

能。magpie 在 T3 Code 的 settings.json 里加两个供应商实例,你在 magpie 里的所有模型都在 T3 的模型选择器里,可以选在 Claude Code 还是 Codex 上运行。

+

magpie 和 magpie · Codex 有什么区别?

+

模型一样,harness 不同:magpie 下的模型在 Claude Code 上运行,magpie · Codex 下的在 Codex 上运行。

+

会改我的 ~/.codex/config.toml 或 T3 自带的 Claude、Codex 吗?

+

不会。Codex 的设置以启动参数的形式只用在 magpie · Codex 实例上,T3 自带的实例和你的其他实例都不变。

+

为什么请求没走 magpie?

+

检查 ~/.claude/settings.json 的 env:如果 Claude Code 在那里路由到别处,或开了 Bedrock 等云厂商开关,magpie 实例的请求会去那里。

+ +

更多 Agent 用同样的模型:Claude Code 接入其他模型、Codex 接入其他模型、让 CodeBuddy 用任意模型。遇到报错?见 常见错误排查,或到 Discord 提问。

+
+
+ + + + + + + diff --git a/site/public/llms-full.txt b/site/public/llms-full.txt index 2c21fb1ca..71459c3e0 100644 --- a/site/public/llms-full.txt +++ b/site/public/llms-full.txt @@ -4882,7 +4882,7 @@ Yes. Both CLI editions are one npm package, and CodeBuddy.app and CodeBuddy CN.a CodeBuddy Code reads its model when a session starts. Restart codebuddy or run /clear. In the IDE, pick the model in its model picker. -More agents on the same models: [Models in Claude Code](https://usemagpie.ai/docs/claude-code-models), [Kimi Code on any model](https://usemagpie.ai/docs/kimi-code) and [Qwen Code on any model](https://usemagpie.ai/docs/qwen-code). Tencent Cloud's models: [Tencent Cloud](https://usemagpie.ai/docs/tencent-cloud). Notes on the same models: [Obsidian on any model](https://usemagpie.ai/docs/obsidian). Something fails? See [Fixing common errors](https://usemagpie.ai/docs/troubleshooting), or ask on [Discord](https://discord.gg/vGSnD3ZKQF). +More agents on the same models: [Models in Claude Code](https://usemagpie.ai/docs/claude-code-models), [Kimi Code on any model](https://usemagpie.ai/docs/kimi-code), [Qwen Code on any model](https://usemagpie.ai/docs/qwen-code) and [T3 Code on any model](https://usemagpie.ai/docs/t3-code). Tencent Cloud's models: [Tencent Cloud](https://usemagpie.ai/docs/tencent-cloud). Notes on the same models: [Obsidian on any model](https://usemagpie.ai/docs/obsidian). Something fails? See [Fixing common errors](https://usemagpie.ai/docs/troubleshooting), or ask on [Discord](https://discord.gg/vGSnD3ZKQF). --- @@ -4964,6 +4964,85 @@ More apps on the same models: [Raycast](https://usemagpie.ai/docs/raycast), [Che --- +Source: https://usemagpie.ai/docs/t3-code + +# T3 Code on any model + +T3 Code (pingdotgg/t3code) is a GUI that drives Claude Code, Codex, Cursor and others. Each provider it lists is an instance of a driver, and it takes instances of your own. magpie adds two: **magpie**, on Claude Code, and **magpie · Codex**, on Codex. So T3 Code's model picker lists every model you have in magpie: DeepSeek, GLM, Kimi, Qwen, an OpenAI or Anthropic key, or a ChatGPT or Copilot subscription, on the harness you choose. + +## Set up T3 Code + +1. **Add a provider in magpie.** Add an API key on the Providers page, or sign in to a subscription. +2. **Pick magpie on T3 Code's row.** On the Agents page, pick magpie. magpie writes both instances into T3 Code's settings.json. +3. **Pick a model in T3 Code.** T3 Code's server watches the file and reloads it on an outside edit. In the model picker, models under magpie run on Claude Code, those under magpie · Codex on Codex. + +``` +magpie t3code provider magpie +``` + +The settings file is `~/.t3/userdata/settings.json` (`$T3CODE_HOME/userdata` when set). These are the two instances magpie writes: + +``` +"providerInstances": { + "magpie": {"driver": "claudeAgent", "displayName": "magpie", + "environment": [{"name": "ANTHROPIC_BASE_URL", "value": "http://127.0.0.1:3425", …}, …], + "config": {"customModels": [{"slug": "deepseek/deepseek-v4-pro", "name": …, + "capabilities": {"optionDescriptors": […]}}, …]}}, + "magpie-codex": {"driver": "codex", "displayName": "magpie · Codex", + "config": {"launchArgs": […]}} +} +``` + +## magpie, on Claude Code + +The magpie instance is a `claudeAgent` instance: T3 Code runs Claude Code through Anthropic's Agent SDK, reading your `~/.claude` settings, with the instance's environment added. magpie sets `ANTHROPIC_BASE_URL` to the gateway and the token Claude Code is routed with, so its requests are Claude Code's to the gateway. Every magpie model is one of its custom models, a 1M one marked `[1m]` as magpie marks it for Claude Code. A binary path or Claude home you gave T3's own Claude is carried over, so it runs the same Claude Code. + +## magpie · Codex, on Codex + +T3 Code runs each thread on the harness of the instance its model is picked from, so with the Claude Code instance alone every magpie model ran there. So magpie adds a `codex` instance, magpie · Codex. Its `launchArgs`, which T3 passes to `codex app-server` and `codex exec`, are Codex's own `-c` overrides: magpie as its model provider, and `magpie-codex-models.json` beside settings.json as its catalog, so T3 lists every magpie model under it from Codex's model list. Your `~/.codex/config.toml` isn't written, and T3's own Codex stays as it is. If you remove the instance in T3, a sync doesn't bring it back; turning T3 Code's row on again in magpie does. + +## Reasoning + +Without capabilities, T3 Code shows no picks beside a custom model and sends no effort. So each of magpie's custom models gets a Reasoning pick of the Claude Code levels it takes, medium first (else the lowest), which T3 hands to Claude Code as it is. A model that thinks also gets a Thinking switch, on at first; T3 sets Claude Code's `alwaysThinkingEnabled` by it, and with it off requests ask for no thinking. + +## Your own settings + +The instances' names, whether they are on, and every key magpie doesn't write (such as `autoCompactWindow` and `accentColor`) are yours, and what you change in T3 Code stays. Environment variables you add on magpie's instance stay too. Your own instances, their custom models and T3's other settings are untouched. magpie's are only the custom models, the gateway's variables, and the Codex instance's launch arguments and catalog. + +## Claude Code's own routing + +The `env` in `~/.claude/settings.json` is applied over the process', so a Claude Code routed elsewhere in its own settings takes the magpie instance's requests there; one routed through magpie or not routed at all asks the gateway. A provider switch on there, such as `CLAUDE_CODE_USE_BEDROCK`, takes it to that cloud, and magpie's check says so. + +## Switching back + +Turn the row off in magpie. magpie takes out only its two instances; your others and your settings stay. + +``` +magpie t3code default +``` + +## FAQ + +### Can T3 Code use DeepSeek, GLM, Kimi or Qwen? + +Yes. magpie adds two provider instances to T3 Code's settings.json, and every model you have in magpie is in T3's model picker, on Claude Code or on Codex. + +### What is the difference between magpie and magpie · Codex? + +The same models on a different harness: those under magpie run on Claude Code, those under magpie · Codex on Codex. + +### Does it change my ~/.codex/config.toml or T3's own Claude and Codex? + +No. Codex's settings are launch arguments of the magpie · Codex instance alone; T3's own instances and yours stay as they are. + +### Why don't requests go through magpie? + +Check the env in ~/.claude/settings.json: a Claude Code routed elsewhere there, or with a cloud switch such as Bedrock on, takes the magpie instance's requests there. + +More agents on the same models: [Models in Claude Code](https://usemagpie.ai/docs/claude-code-models), [Models in Codex](https://usemagpie.ai/docs/codex-models) and [CodeBuddy on any model](https://usemagpie.ai/docs/codebuddy). Something fails? See [Fixing common errors](https://usemagpie.ai/docs/troubleshooting), or ask on [Discord](https://discord.gg/vGSnD3ZKQF). + +--- + Source: https://usemagpie.ai/docs/cherry-studio # Every model in Cherry Studio, through magpie diff --git a/site/public/llms.txt b/site/public/llms.txt index 70e1475f9..18a46e446 100644 --- a/site/public/llms.txt +++ b/site/public/llms.txt @@ -88,6 +88,7 @@ DeepSeek, Kimi (Moonshot), GLM (Zhipu), Qwen, MiniMax, Anthropic (Claude), OpenA - [JetBrains Air on any model](https://usemagpie.ai/docs/jetbrains-air): run JetBrains Air and Air in JetBrains IDEs on DeepSeek, GLM, Qwen, GPT, Claude or a ChatGPT subscription through magpie: the Magpie ACP agent in acp.json, OpenCode's ACP server, the model menu, WSL projects, provider keys in the environment, switching back. - [CodeBuddy on any model](https://usemagpie.ai/docs/codebuddy): run Tencent's CodeBuddy Code CLI and CodeBuddy IDE (codebuddy.ai and codebuddy.cn) on DeepSeek, GLM, Kimi, Qwen, GPT, Claude or a ChatGPT subscription through the custom models magpie writes to ~/.codebuddy/models.json; no CodeBuddy sign-in, settings.json's model, the IDE's picker, your own models kept, WSL and switching back. - [Obsidian on any model](https://usemagpie.ai/docs/obsidian): run Obsidian's Copilot for Obsidian plugin on DeepSeek, GLM, Kimi, Qwen, GPT, Claude or a ChatGPT subscription through the magpie provider magpie writes into every vault with Copilot; no API key to enter, the model list, your own models and default kept, reloading Copilot, Copilot 3 and switching back. +- [T3 Code on any model](https://usemagpie.ai/docs/t3-code): run T3 Code (pingdotgg/t3code) on DeepSeek, GLM, Kimi, Qwen, GPT, Claude or a ChatGPT subscription through two provider instances magpie writes into its settings.json, magpie on Claude Code and magpie · Codex on Codex; reasoning levels, the Thinking switch, your own instances kept, Claude Code's own routing and switching back. - [Cherry Studio](https://usemagpie.ai/docs/cherry-studio): add magpie to Cherry Studio as one OpenAI-compatible provider in one click, confirmed in Cherry Studio, and use every magpie model there, Claude, ChatGPT and Copilot subscriptions included; model list, status and usage. - [Fixing common errors](https://usemagpie.ai/docs/troubleshooting): what the gateway's errors mean and the fix: 401 and 403, 429 and rest periods, 502 and 504, model not found, an agent that doesn't show a model, port 3425 in use, agents in WSL, use from another computer and subscriptions moved to plugins. - [Library](https://usemagpie.ai/docs/library): instructions, MCP servers, skills, hooks and subagents for each agent. diff --git a/site/public/sitemap.xml b/site/public/sitemap.xml index 2a6385c3a..a1481a3ae 100644 --- a/site/public/sitemap.xml +++ b/site/public/sitemap.xml @@ -42,6 +42,7 @@ https://usemagpie.ai/docs/jetbrains-air https://usemagpie.ai/docs/codebuddy https://usemagpie.ai/docs/obsidian +https://usemagpie.ai/docs/t3-code https://usemagpie.ai/docs/local-models https://usemagpie.ai/docs/opencode-models https://usemagpie.ai/docs/alternatives @@ -105,6 +106,7 @@ https://usemagpie.ai/docs/zh/jetbrains-air https://usemagpie.ai/docs/zh/codebuddy https://usemagpie.ai/docs/zh/obsidian +https://usemagpie.ai/docs/zh/t3-code https://usemagpie.ai/docs/zh/local-models https://usemagpie.ai/docs/zh/opencode-models https://usemagpie.ai/docs/zh/alternatives @@ -167,6 +169,7 @@ https://usemagpie.ai/docs/ja/jetbrains-air https://usemagpie.ai/docs/ja/codebuddy https://usemagpie.ai/docs/ja/obsidian +https://usemagpie.ai/docs/ja/t3-code https://usemagpie.ai/docs/ja/local-models https://usemagpie.ai/docs/ja/opencode-models https://usemagpie.ai/docs/ja/alternatives