Sunday, October 25, 2026

Claude Code on the Subscriptions You Already Pay For

Claude Code on the Subscriptions You Already Pay For

Last time I showed a team of Claude Code sessions with a different vendor behind each seat, paid for with API keys. API keys get expensive. If you already have a subscriber account with a quota, you might as well use it. So I did, with Claude and with Kimi. Here are the steps.


Why

The diversity post ran every non-Anthropic seat on a per-token key: OpenRouter, Ollama Cloud, the vendors' own APIs. The bill for a day of demos was two dollars and change. A team that works all day, every day, does not stay at two dollars. And I was already paying flat rates for three coding subscriptions, Claude Max, Kimi Code and SuperGrok, with quota I was not using.

The result is a nine-seat team, four on Claude Max, five on the Kimi Code plan, nothing on a meter. Grok could not join, and step 1 says why.

What follows is the order I would do it in next time, not the order I stumbled through it.


Step 1: find out which plans will issue a key that bills the plan

This is the step I got wrong first, so it goes first.

Claude Code needs one of two things to talk to a provider: a login, or a key plus a base URL. Your Claude subscription is the login case and needs nothing. Every other vendor is the key case, and the question is not "does the vendor issue keys" but "what does the key bill against."

A key is a credential. It says who you are. The meter is what the vendor charges when that credential is used. Moonshot's developer platform issues keys that bill per token. The Kimi Code plan issues keys from its own console, and those bill against the plan's quota, the same five-hour rolling window the kimi command-line tool draws from. Same key format, different meter.

The console at kimi.com/code/console says so:

API Keys
We only show the key once—save it immediately. Don't share it or expose it in client-side code. If we detect a leak, we'll disable the key to protect your account. You can create up to 5 API Keys

API ID    Key    Name    Created    Last active    Status    Action
19b49397-...    sk-ki...qAUFm    ApocryiaAI_KIMI    2025-12-23 11:21:02    -    Enabled

I had created that key in December and never used it, because I assumed it was the metered kind. It is not. Five keys per plan, and the only thing they can be billed to is the plan.

The endpoint for plan keys is https://api.kimi.ai/coding/. It speaks the Anthropic Messages dialect, which is what Claude Code sends. GET /coding/v1/models with the plan key returns four ids, and they match the "Kimi Code" group in the kimi tool's picker:

Picker name Model id
K3 k3
K3-256k k3-256k
K2.8 Preview kimi-for-coding
K2.7 Code Highspeed kimi-for-coding-highspeed

Below those the picker lists kimi-k3:cloud and three others under "ollama." That is the metered Ollama Cloud shelf from the last post. The line in the picker is the line between the two meters.

Grok fails this step. SuperGrok sign-in is accepted by xAI's own Grok Build tool and by Warp, and nothing else. The xAI API is per-token. There is a community proxy that fronts the subscription, and it is unofficial, so it is not going behind a seat on my machine. If xAI ever issues plan keys the way Moonshot does, the roster grows by one line.

One thing I did not do and will not: lift the OAuth tokens the kimi tool stores after sign-in and feed them to Claude Code. Anthropic published a policy in February that subscription OAuth is for Claude Code and claude.ai only, and I treat Moonshot's sign-in the same way. The console key exists so you do not have to.


Step 2: write the roster

One file, one seat per line, the model written the way the vendor's picker shows it:

DEVELOPER | K3-256k
DEVELOPER_2 | K2.7 Code Highspeed
DEVELOPER_3 | Claude Sonnet
DEVELOPER_4 | K2.7 Code Highspeed
DEVELOPER_5 | K2.7 Code Highspeed
DBA | K2.8 Preview
REVIEWER | Claude Opus
CRITIC   | Claude Fable
PMO  | Claude Sonnet <-- this will be my base

Each seat gets a folder of the same name with an AGENTS.md that says what the role is and how to sign messages. The PMO line is me, the interactive terminal I sit in. It shares the roster with the eight background seats because they all run under the same config directory, and the launcher skips it.

Five developers on Kimi and the judges on Claude is not an accident. The developers do the volume, and the Kimi plan had the headroom. The Reviewer and the Critic have to disagree with the developers, so they run on a different lab's weights. That rule has not changed since the first team I wrote about.


Step 3: one seat file per provider

A Claude seat needs no file. It is logged in through the subscription like any session.

A Kimi seat needs this, mode 0600, and the key lives here and nowhere else:

{
  "env": {
    "ANTHROPIC_BASE_URL": "https://api.kimi.ai/coding/",
    "ANTHROPIC_API_KEY": "",
    "ANTHROPIC_AUTH_TOKEN": "<Kimi Code console key>",
    "ANTHROPIC_DEFAULT_HAIKU_MODEL": "kimi-for-coding-highspeed",
    "ANTHROPIC_SMALL_FAST_MODEL": "kimi-for-coding-highspeed",
    "CLAUDE_CODE_DISABLE_UNKNOWN_MODEL_WINDOW_ENFORCEMENT": "1"
  },
  "crossSessionInbound": "accept",
  "dialogExpiry": "never"
}
mkdir -p ~/.claude-seats && chmod 700 ~/.claude-seats
chmod 600 ~/.claude-seats/kimi-code.json

Three choices in that file cost me time.

The key goes in ANTHROPIC_AUTH_TOKEN, not ANTHROPIC_API_KEY. Both work against the endpoint. The difference is what Claude Code does on startup. A value in ANTHROPIC_API_KEY triggers an approval dialog the first time, and the dialog masks every key as if Anthropic issued it:

  Detected a custom API key in your environment

  ANTHROPIC_API_KEY: sk-ant-...[last 20 characters of the Kimi key]

  Do you want to use this API key?

  ❯ Yes
    No (recommended)

That sk-ant- prefix is cosmetic. The Kimi key starts sk-kimi-, and I spent ten minutes convinced a dead Anthropic key had leaked in from my shell before I matched the suffix. A background seat has no terminal to answer that dialog in, so it would sit there forever. Bearer token: no dialog, no stall.

The small models point at the highspeed id. Claude Code uses a fast model for background work like summarising and title generation. Left at the default it asks Kimi's endpoint for a Haiku it does not have.

The window enforcement is off because Claude Code does not know the context size of k3-256k and would otherwise clamp it.

The two keys outside env are the same two the last post ended on: accept messages from other sessions without asking, and never expire that answer.


Step 4: the launcher

team_up.sh reads the roster, maps each picker name to a model id and a seat file, and launches a background session from inside the seat's folder.

#!/usr/bin/env bash
# team_up.sh — launch the seats listed in ./agents as background Claude Code sessions.
#
#   ./team_up.sh            launch every seat in ./agents (PMO is skipped: that is the human's terminal)
#   ./team_up.sh DBA CRITIC launch only these seats
#   ./team_down.sh          stop them all (conversations kept; `claude attach NAME` resumes)
#
# One config dir for the whole team (the default ~/.claude, so your PMO terminal shares the roster).
# Provider is set per seat:
#   Claude models  -> subscription login, no settings file
#   Kimi Code      -> ~/.claude-seats/kimi-code.json (0600, plan key inside; billed to the Kimi Code plan)
#   Ollama cloud   -> ~/.claude-seats/ollama.json
#
# ./agents format, one per line:   SEAT | Display model name
# Display names are mapped below. Add a row there when you add a model to the picker.

set -u
cd "$(dirname "$0")"
SEATS=${HOME}/.claude-seats

model_for() {            # display name -> "model-id seatfile-or-empty"
  case "$(echo "$1" | tr '[:upper:]' '[:lower:]' | xargs)" in
    k3-256k)                       echo "k3-256k kimi-code" ;;
    k3)                            echo "k3 kimi-code" ;;
    "k2.8 preview")                echo "kimi-for-coding kimi-code" ;;
    "k2.7 code highspeed")         echo "kimi-for-coding-highspeed kimi-code" ;;
    "claude sonnet")               echo "sonnet" ;;
    "claude opus")                 echo "opus" ;;
    "claude fable")                echo "fable" ;;
    kimi-k3:cloud|kimi-k2.7-code:cloud|deepseek-v4-pro:0813-cloud|deepseek-v4.1-flash:cloud)
                                   echo "$1 ollama" ;;
    *) return 1 ;;
  esac
}

want=("$@")
while IFS='|' read -r seat display; do
  seat=$(echo "$seat" | xargs); display=$(echo "${display%%<*}" | xargs)   # drop "<-- note" tails
  [ -z "$seat" ] && continue
  [ "$seat" = "PMO" ] && continue
  if [ ${#want[@]} -gt 0 ]; then printf '%s\n' "${want[@]}" | grep -qx "$seat" || continue; fi
  if ! spec=$(model_for "$display"); then echo "SKIP $seat: unknown model '$display'"; continue; fi
  set -- $spec; model=$1; provider=${2:-}
  sf=""; [ -n "$provider" ] && sf="$SEATS/$provider.json"
  if [ -n "$sf" ] && [ ! -r "$sf" ]; then echo "SKIP $seat: missing $sf"; continue; fi
  [ -d "$seat" ] || { echo "SKIP $seat: no folder"; continue; }
  printf '%-12s %-28s %s\n' "$seat" "$model" "${provider:-subscription}"
  ( cd "$seat" && env -u ANTHROPIC_API_KEY \
      claude --bg --name "$seat" --model "$model" --permission-mode auto \
      ${sf:+--settings "$sf"} \
      "Read AGENTS.md. Reply READY $seat and name the model you are running on. Then wait for messages." \
      2>&1 | grep -E 'logs|rror' | head -1 | sed 's/^/    /' )
done < agents

echo; echo "roster:"; claude agents 2>/dev/null || claude agents --json | python3 -c '
import json,sys
for a in json.load(sys.stdin): print(" ", a.get("name"), a.get("id"), a.get("state"))'

Four things in that launch line matter. The rest is plumbing.

  • env -u ANTHROPIC_API_KEY strips the stale key from my shell before Claude Code sees it. The Kimi seats would take it over the seat file, and the Claude seats would try to bill it instead of using the login.
  • --bg puts the session in the background under a supervisor that owns the config directory. The last post covered what that does to your environment. It is why the seat file carries the environment rather than the shell.
  • --name "$seat" is the name the other sessions message. --model is the id from the mapping. For the Claude seats, sonnet, opus and fable resolve to the current model of that tier.
  • --settings "$sf" is the whole provider switch. Leave it off and the session is an ordinary subscription session.

team_down.sh is twelve lines that stop the same seats by id with their conversations kept, so claude attach DBA later picks up where it left off. The unknown-name branch in the mapping is deliberate. When the picker grows a model I want a SKIP line, not a guess.


Step 5: launch, then check the transcript, not the model

I launched DBA and REVIEWER first as a pilot, one from each plan, then the other six:

DEVELOPER    k3-256k                      kimi-code
      claude logs 2fe4891a      show recent output
DEVELOPER_2  kimi-for-coding-highspeed    kimi-code
      claude logs 6553636b      show recent output
DEVELOPER_3  sonnet                       subscription
      claude logs d44d55f3      show recent output
DEVELOPER_4  kimi-for-coding-highspeed    kimi-code
      claude logs dfd7cd13      show recent output
DEVELOPER_5  kimi-for-coding-highspeed    kimi-code
      claude logs a12fd128      show recent output
CRITIC       fable                        subscription
      claude logs c4913ca2      show recent output

Each seat's first job was to read its role file and say what it was running on. The replies, trimmed, from each seat's own transcript:

DEVELOPER    **READY DEVELOPER** — running on **Kimi K3-256k** (`k3-256k`). AGENTS.md read ...
DEVELOPER_2  [Kimi] READY DEVELOPER_2 — running **K2.7 Code Highspeed** (`kimi-for-coding-highspeed`). Waiting for messages.
DEVELOPER_3  READY DEVELOPER_3. I'm running as Claude Sonnet 5.5 (`claude-sonnet-5-5`), ROLE_CLIENT `DEVELOPER_3_CLAUDE`. ...
DEVELOPER_4  READY DEVELOPER_4  Model: **Kimi K2.7 Code Highspeed** (`kimi-for-coding-highspeed`)
DEVELOPER_5  READY DEVELOPER_5. Running on **Kimi K2.7 Code Highspeed** (`kimi-for-coding-highspeed`). Waiting for messages.
DBA          READY DBA — running on **Kimi** (model: `kimi-for-coding`, seat role_client `DBA_KIMI`). ...
REVIEWER     READY REVIEWER. I'm running on Claude Opus 5.5 (`claude-opus-5-5`), which matches the "REVIEWER | Claude Opus" line in your roster. I'll sign as `[Claude / Reviewer]` ...
CRITIC       **READY CRITIC** — running on **Claude Fable 5.1** (`claude-fable-5-1`). Seat confirmed by `pwd` ...

A model telling you what it is running on is not proof. The transcript is. Every session writes a JSONL file under the config directory's projects folder, and the first assistant turn records the model id the server answered with:

rg -m1 '"model"' ~/.claude/projects/-<seat-folder-path-with-slashes-as-dashes>/*.jsonl

One tag per seat:

Seat model in its transcript Plan
DEVELOPER k3-256k Kimi Code
DEVELOPER_2 kimi-for-coding-highspeed Kimi Code
DEVELOPER_3 claude-sonnet-5-5 Claude Max
DEVELOPER_4 kimi-for-coding-highspeed Kimi Code
DEVELOPER_5 kimi-for-coding-highspeed Kimi Code
DBA kimi-for-coding Kimi Code
REVIEWER claude-opus-5-5 Claude Max
CRITIC claude-fable-5-1 Claude Max

Nine sessions on one machine, two plans, zero per-token meters, and /list-agents from my terminal shows all eight of the others.

One small thing in the READY lines that is not small. DEVELOPER_2 signed as [Kimi]. REVIEWER said it would sign as [Claude / Reviewer]. DEVELOPER_4 signed nothing. All eight read the same signing rule in the same shared file, and three models read it three ways. If you write role files for a mixed-vendor team, write the signature rule like a regex, not like a suggestion.


What it cost, and what will bite

Nothing on a meter. The Kimi console's usage page is the only place to see what the five seats drew, because the endpoint sends no rate-limit headers in its responses. I checked.

What will bite first is the window. Five Kimi seats and my own kimi terminal share one plan's five-hour quota. During the launch, with every seat running its full start-up sweep at once, one seat hit this:

✻ 429 The engine is currently overloaded, please try again later · Retrying in 0s · attempt 3/10
If it persists, check your inference gateway (api.kimi.ai).

It cleared on retry, and five probes against the endpoint in the same minute all returned 200, so I read it as load on their side under a burst from mine, not the quota. But a team that works all day on one plan will meet the quota, and when it does the Kimi seats stall together while the Claude seats keep going. Sizing the roster is sizing the window.


Related reading


Keith is a database consultant and infrastructure engineer with 25+ years of open-source experience. He writes about MySQL, Proxmox, AI memory, and building technology you can actually inspect.


Thursday, October 22, 2026

Claude Code Just Got Diversity

Claude Code Just Got Diversity

Claude Code sessions have been able to message each other since August. What I have not seen anyone doing yet is putting a different vendor's model behind each session and keeping the messaging working: Claude on my subscription, open weights through Ollama, ten vendors through OpenRouter, a model on my own GPU, seventeen seats in one roster, each with a role, getting work done and validated among themselves.


What is new here, and what is not

Cross-session messaging shipped in Claude Code v2.1.224, the week of August 3 to 7, 2026. Claude discovers your other sessions on the machine with a ListAgents tool and sends with SendMessage. The message is text one Claude writes for another, delivered over a per-session Unix socket that never touches Anthropic's servers. Two months on, that is table stakes, and the docs cover it well.

What the docs assume, quietly, is that every session on the far end is Claude.

It does not have to be. In July I wrote about running Claude Code against Ollama. Claude Code is an agent harness that happens to ship pointed at Anthropic. Change the base URL and it is the same harness, same tool loop, same skills, with a different brain behind it. Any provider that speaks the Anthropic Messages API can sit behind a session, and Ollama and OpenRouter both do, natively.

Put the two together and you get something no vendor has an incentive to build: a team of Claude Code sessions where each seat runs a different lab's weights, and the harness's own messaging lets them coordinate without you in the middle. The messaging is the harness's job, not the model's.

The reason I care is not the plumbing. It is the point of view each seat brings. My last post, on October 4, was about the Developer, Reviewer, Critic team I have run across providers for over a year, with a Security seat and a PMO alongside. The value was never that one model is smarter. It is that a Reviewer on one lab's weights does not share the Developer's blind spots, and a Critic on a third lab's weights refuses to inherit either of their trust. Until now the handoffs between those seats went through me or through a database. Now the Developer messages the Reviewer, the Reviewer re-runs it and messages the Critic, and the Critic rules, each in its own session with its own brain.


The roster

This is ListAgents as seen by a coordinator session I named DESK, running Claude Sonnet on my Max subscription, in a fresh config directory set up for the demo:

This session is DESK [9cf94c] — the name other sessions use to message it.

Peer sessions (17):
  OLLAMA_KIMI [a2b9de]      ·  bg           ·  idle  ·  started 4m ago
  OLLAMA_GLM [a55b4d]       ·  bg           ·  idle  ·  started 4m ago
  HAIKU [7548a8]            ·  bg           ·  idle  ·  started 4m ago
  OLLAMA_MISTRAL [065dae]   ·  bg           ·  idle  ·  started 4m ago
  MISTRAL [1b5bcc]          ·  bg           ·  idle  ·  started 5m ago
  3k1o-dc [c5700a]          ·  interactive  ·  idle  ·  started 34m ago
  GEMINI [36dad3]           ·  bg           ·  idle  ·  started 5m ago
  GPT [c48808]              ·  bg           ·  idle  ·  started 5m ago
  OLLAMA_DEEPSEEK [ea64fa]  ·  bg           ·  idle  ·  started 4m ago
  OPUS [c14fb0]             ·  bg           ·  idle  ·  started 6m ago
  LOCAL_GPTOSS [791bc3]     ·  bg           ·  idle  ·  started 4m ago
  DEEPSEEK [233cde]         ·  bg           ·  idle  ·  started 5m ago
  KIMI [8b7d6c]             ·  bg           ·  idle  ·  started 5m ago
  LLAMA [fda21a]            ·  bg           ·  idle  ·  started 5m ago
  GROK [c01747]             ·  bg           ·  idle  ·  started 5m ago
  GLM [ee1cae]              ·  bg           ·  idle  ·  started 4m ago
  QWEN [100b93]             ·  bg           ·  idle  ·  started 5m ago
Source Seats Model tags, from each seat's own transcript Meter
Anthropic, direct DESK, OPUS claude-sonnet-5-5, claude-opus-5-5 Claude Max subscription
Ollama Cloud OLLAMA_KIMI, OLLAMA_MISTRAL, OLLAMA_GLM, OLLAMA_DEEPSEEK kimi-k3:cloud, mistral-large-4:cloud, glm-5.3:cloud, deepseek-v4-pro:cloud Ollama Pro, $20/mo
Ollama, local LOCAL_GPTOSS gpt-oss:20b, 13 GB resident on the 4070 my GPU
OpenRouter GPT, GEMINI, GROK, LLAMA, MISTRAL, DEEPSEEK, QWEN, KIMI, GLM, HAIKU gpt-6-luna-pro, gemini-3.8-flash, grok-4.3, llama-4-maverick, mistral-small-2603, deepseek-v4.1-flash, qwen3.8-flash, kimi-k3, glm-5.3-flash, claude-haiku-5.5 OpenRouter credits
(me) 3k1o-dc the terminal I ran /login from, still open subscription

One claude binary, one config directory, one subscription login, one Ollama sign-in, one OpenRouter key. Kimi, DeepSeek and GLM each appear twice, once through Ollama and once through OpenRouter, which is the point: the seat does not care which road the weights came in on.

DESK sent all sixteen the same request: list your peers and message me back with your model and provider. Twelve did, in about two minutes:

ACK from OPUS:            model=claude-opus-5-5, provider=unknown, peers=17 [OPUS]
ACK from HAIKU:           model=claude-haiku-5.5, provider=anthropic, peers=17
ACK from DEEPSEEK:        model=deepseek/deepseek-v4.1-flash-1017, provider=unknown, peers=17
ACK from OLLAMA_DEEPSEEK: model=deepseek-v4-pro:cloud, provider=cloud, peers=17
ACK from GLM:             model=z-ai/glm-5.3-flash, provider=z.ai, peers=1
ACK from KIMI:            model=kimi-k3, provider=Moonshot AI (moonshotai), peers=17
ACK from OLLAMA_KIMI:     model=kimi-k3:cloud, provider=cloud, peers=17
ACK from OLLAMA_GLM:      model=glm-5.3:cloud, provider=cloud (glm-5.3:cloud), peers=17
ACK from QWEN:            model=qwen/qwen3.8-flash, provider=unknown, peers=17
ACK from GPT:             model=gpt-6-luna-pro, provider=OpenAI, peers=2
ACK from GEMINI:          model=google/gemini-3.8-flash, provider=Google, peers=17
ACK from OLLAMA_MISTRAL:  model=mistral-large-4:cloud, provider=ollama cloud, peers=17

All four Ollama Cloud seats answered. Opus, DeepSeek and Qwen wrote provider=unknown rather than guess, because nothing inside a session shows it the base URL. On an earlier pass Opus spelled it out: "per system prompt; endpoint not independently verified." A model declining to assert what it cannot see is the behavior I pay a Critic for, and it showed up unprompted in a ping test.

The message I actually wanted has no Claude in the middle of it. On a pass with the same seats I told GPT to message GEMINI, and GEMINI to forward whatever GPT sent. What arrived at DESK:

GEMINI forwarding: relay from GPT: hello Gemini, forward this line to DESK

OpenAI's model wrote to Google's model, which wrote to Anthropic's model, over a Unix socket on my desk, inside a tool Anthropic ships. When I pointed the same relay at an Ollama seat on the seventeen-peer run (GPT to OLLAMA_KIMI to DESK) it did not complete. OLLAMA_KIMI confirmed it was ready to forward, GPT sent its own ACK, and GPT's transcript says its send to OLLAMA_KIMI was "denied as an external system write." I did not see the denial from the harness side, only GPT's report of it, so I will say this much: each session's permission boundary is its own, a peer message cannot loosen it, and this time that cost me a relay. I would rather have that than the alternative.

The four that did not answer, run twice

I gave the four misses a second run an hour later, same seat files, same prompt, nothing else changed.

Seat First run Second run
GROK (grok-4.3, OpenRouter) Called SendFeedback three times to file reports about the mesh check, wrote a correct ACK line as plain text, never called SendMessage Same three SendFeedback calls, this time refused ("not enabled in this session"), then loaded SendMessage through ToolSearch on its own and ACKed properly: model=grok-4.3, provider=x-ai, peers=5
LLAMA (llama-4-maverick, OpenRouter) API Error: 502 Model call failed: upstream returned an invalid response Spawned two subagents instead of calling the tool itself. DESK received their stray hand-back lines, "[LLAMA] Ready" and "[LLAMA] ACK". The real ACK line was printed as text and never sent
MISTRAL (mistral-small-2603, OpenRouter) Composed the ACK as plain text with peers=0, never sent it ListAgents worked, then "tool call could not be parsed", twice. Mistral Large 4 through Ollama Cloud answered fine both times
LOCAL_GPTOSS (gpt-oss:20b, my GPU) Printed the keyboard-shortcut help, then an ACK as plain text identifying itself as claude-3-5-sonnet-20240630 Never processed the prompt. Answered "How can I help you today?" and sat there. No transcript written

Every one of those is the model, not the mesh. The sockets were bound, the names resolved, the messages were accepted into each inbox. What differed was whether the model on the far end could read a plain instruction, find the right tool among the hundred-plus a Claude Code session exposes, and call it with the right shape. The frontier and strong mid-tier models did it in seconds, through either road. The small or older ones composed the right words and put them in the wrong place. Grok is the instructive one: a frontier model that got there on the second try, by a detour, once its first wrong tool was closed off. That is a seat I would keep, with a shorter leash. Joining the roster is free. Holding a job is a property of the model, and the cheapest way I know to measure it for my work is to put the candidate in a chair next to the incumbent and send it one message.


The team that does work

Pings prove reachability. The point is the roles. Same config directory, six seats counting DESK, each launched from a folder holding a one-paragraph seat file:

Seat Model Served by
DESK claude-sonnet-5-5 Anthropic, Max subscription
CRITIC claude-opus-5-5 Anthropic, Max subscription
DEVELOPER deepseek-v4-pro:cloud Ollama Cloud
REVIEWER glm-5.3:cloud Ollama Cloud
SECURITY openai/gpt-6-luna-pro OpenRouter
DBA gpt-oss:20b Ollama, local GPU

Four of five ACKed. DBA, the local gpt-oss:20b seat, did not, the same way LOCAL_GPTOSS did not in the table above.

ACK from REVIEWER:  model=glm-5.3:cloud, provider=cloud (GLM), peers=DBA, DEVELOPER, 3k1o-dc, SECURITY, DESK, CRITIC
ACK from CRITIC:    model=claude-opus-5-5, provider=Anthropic, peers=DBA, DEVELOPER, REVIEWER, 3k1o-dc, SECURITY, DESK [CRITIC]
ACK from DEVELOPER: model=deepseek-v4-pro, provider=cloud, peers=DBA,REVIEWER,3k1o-dc,SECURITY,DESK,CRITIC
ACK from SECURITY:  model=openai/gpt-6-luna-pro, provider=OpenAI, peers=DBA, DEVELOPER, REVIEWER, 3k1o-dc, DESK, CRITIC

Start with the smallest job that still has three hops. On a later run I swapped REVIEWER's chair to openai/gpt-6-luna-pro through OpenRouter, so this chain is three vendors on three roads: DeepSeek through Ollama Cloud, OpenAI through a broker, Anthropic on the subscription. DESK sent DEVELOPER one message: write print_arg.py, a script that takes exactly one argument and prints it, exits 2 with a usage line on stderr for zero or two arguments, run it three ways, and send the code and outputs to REVIEWER. Seventy-five seconds later the ruling was in DESK's inbox.

DEVELOPER (DeepSeek, Ollama Cloud) to REVIEWER:

#!/usr/bin/env python3
import sys


def main():
    if len(sys.argv) != 2:
        print("Usage: print_arg.py <argument>", file=sys.stderr)
        sys.exit(2)
    print(sys.argv[1])


if __name__ == "__main__":
    main()
Tested three ways (exit codes in parens):

$ python3 print_arg.py hello
hello
(exit=0)

$ python3 print_arg.py
Usage: print_arg.py <argument>
(exit=2)

$ python3 print_arg.py foo bar
Usage: print_arg.py <argument>
(exit=2)

[DEVELOPER]

REVIEWER (GPT-6, OpenRouter) to CRITIC:

Code reviewed at the path given: checks len(sys.argv) != 2, writes usage to stderr and exits 2, otherwise prints sole argument. I ran the three reported invocations: hello exit 0; no arg and two args each usage + exit 2. No real finding. REVIEWER VERDICT: PASS expected argument handling confirmed. [REVIEWER]

CRITIC (Opus, Anthropic subscription) to DESK:

CRITIC RULING: PASS. print_arg.py re-derived independently: exactly one arg prints it (exit 0); 0 or 2+ args print usage to stderr only, exit 2. Also checked: "" prints empty line, "a b" and "-h" pass through verbatim, exit 0. [CRITIC]

Three things to notice before the harder one. The Reviewer did not take the Developer's word for the test output; it read the file and ran the three cases itself. The Critic did not take the Reviewer's word either; it ran them again and added three cases nobody asked for, the empty string, an argument with a space, and -h, which a lazier script would have swallowed as a flag. And every message is signed with the seat, not the model, so you can swap any chair tomorrow and the audit trail still reads the same. That is a passing grade from three companies that do not share a server, and it cost less than a cent on the broker side.

Now the one that earns its keep. DESK handed DEVELOPER a second task, with REVIEWER back on GLM through Ollama Cloud: write safe_div(a, b) that returns a/b, returns None on a zero divisor, raises TypeError on non-numeric input, with three edge-case asserts, and send it to REVIEWER. Nobody relayed anything after that. Each hop below is lifted from the sending seat's transcript.

DEVELOPER (DeepSeek, Ollama) to REVIEWER:

import numbers

def safe_div(a, b):
    if not isinstance(a, numbers.Number) or not isinstance(b, numbers.Number):
        raise TypeError("non-numeric input")
    if b == 0:
        return None
    return a / b

Tested: ran it with three edge-case asserts, normal division (10/2 == 5.0), zero divisor (10/0 is None), and non-numeric ("a", 2) raises TypeError. All passed.

REVIEWER (GLM, Ollama) to CRITIC:

I ran it myself: DEVELOPER's three asserts pass. Extra traces also behave: 0.0 and -0.0 divisors give None, Decimal(0) divisor gives None, None input raises TypeError, complex/Fraction fine. Only quirk: bools are numbers.Number (True/2==0.5), standard Python semantics, not a defect. No real finding. REVIEWER VERDICT: PASS verified by execution; behavior matches spec on all traced edge cases.

CRITIC (Opus, Anthropic subscription) to DESK:

CRITIC RULING: FAIL. safe_div still raises on numeric inputs that pass its own guard: safe_div(10**400, 1) raises OverflowError, and safe_div(Decimal(1), 2.0) or a Decimal/Fraction mix raises an uncaught TypeError from the division itself. Re-derived by running it myself. The 3 asserts pass, and so do 0, -0.0, Decimal(0), Fraction and complex. REVIEWER's PASS missed that numbers.Number lets through types that can't divide each other, and that int/int can overflow float. Whether 1/1e-320 returning inf counts as a defect depends on the spec, which only has 3 asserts. Spec owner should decide: catch (OverflowError, TypeError) and return None/raise, or narrow the accepted types.

Read that as a provider-diversity result, because that is what it is. Zhipu's model executed the code, traced seven extra cases, and passed it. Anthropic's model refused to inherit that trust, executed it again, and found two inputs that satisfy the function's own type guard and still blow up. Then it separated the real defects from the judgment calls and sent the judgment calls back to the spec owner instead of inventing a spec. I did not touch a keyboard between "send the task" and "read the ruling."

Two small things made that chain legible. Every seat file ends with "sign every message with this session's name, never with the harness name," because in my very first test every seat, Mistral and GLM and DeepSeek alike, signed as [Claude]; the harness identity leaked over the model identity, and in a mixed team that erases the diversity from the audit trail. And every seat is named for its role, so the transcript's model field, not the name, tells you which brain was in the chair.


The rule, and three traps

Peers are discovered per CLAUDE_CONFIG_DIR. Providers are set per seat. Everything else follows from that sentence.

I made it harder than it needed to be the first time by building profiles, and that itself limited me. My July setup is a separate config directory pointed at Ollama, and four cloud models launched through it found and messaged each other within nine minutes. Then I tried to message them from my everyday Claude session:

SendMessage → MISTRAL
{"success":false,"message":"No agent named 'MISTRAL' is reachable.\nUse ListAgents to see everyone you can message."}

Same Linux user, sockets side by side in /run/user/1000/cc-socks/, no visibility. Each config directory runs its own background daemon with its own roster, and ListAgents reads that roster. A profile buys isolation, and isolation was the problem.

The second half is what a config directory does not hold. ANTHROPIC_BASE_URL, ANTHROPIC_AUTH_TOKEN, and --model are read per session. Nothing says every session in a directory has to use the same provider. So: one directory for the whole team, the provider set per seat, and the subscription seats need nothing at all because the directory is logged in.

Trap 1: --bg throws away your environment

The obvious way to set a provider per seat is an environment prefix, and it fails silently:

env ANTHROPIC_BASE_URL=http://127.0.0.1:11434 ANTHROPIC_AUTH_TOKEN=ollama ANTHROPIC_API_KEY= \
  claude --bg --name KIMI --model kimi-k3:cloud ...
There's an issue with the selected model (kimi-k3:cloud). It may not exist or you may
not have access to it. Run /model to pick a different model.

The session went to api.anthropic.com and asked for a Kimi model. A --bg session is not a child of your shell. The directory's daemon spawns it, and it inherits the daemon's environment plus a short list of keys the dispatcher forwards by name. The daemon's roster file records what it passed: env passed to worker: {}. Pass the override as settings instead. --settings takes a file, the dispatcher carries it to the worker, and a 0600 file keeps the key off the command line:

kimi-k3:cloud · API Usage Billing
READY KIMI_BG2

Trap 2: a fresh directory has three gates

I built the demo in a brand-new config directory so the roster would hold only demo seats. Three gates, and I hit all three.

Workspace trust. Every --bg launch refused with "Workspace not trusted. Run claude in once and accept the trust prompt." Trust lives per config directory, per working directory, in that directory's .claude.json. Open each seat folder interactively once, or seed the flag the way I did in the NVIDIA post.

Login. The subscription seats came up "Not logged in · Please run /login." A new directory has no credentials, and your main directory's login does not carry over. One interactive /login in the new directory covers every seat launched there afterwards.

A stale key in your shell beats your login. After logging in, the subscription seats still failed: "Invalid API key · Fix external API key." My shell exports an ANTHROPIC_API_KEY from some long-dead experiment, the API returns 401 for it, and Claude Code gives an environment key precedence over a login. My everyday sessions had been working on OAuth while I ignored a warning about "connectors disabled because ANTHROPIC_API_KEY is set." Launch the team from a shell with it unset, because the daemon inherits that shell. The claude-opus-5-5 in CRITIC's transcript and the "Claude Max" banner are the proof that the subscription paid for that seat.

Trap 3: ~ does not expand inside ${...}

Fifteen of my sixteen seats died on launch when I wrapped the settings path in a parameter expansion: ${provider:+--settings ~/.claude-seats/$provider.json} hands Claude Code a literal tilde. The one seat without a provider file was fine. Use $HOME. Pure shell, nothing to do with Claude Code, and it will get you anyway.


The recipe

# 0. Claude Code 2.1.224+ and an Ollama that answers /v1/messages (0.33.3 here).
#    `ollama signin` once for the :cloud shelf; local models need nothing.

# 1. One config dir for the team. Fresh is fine. Log in once, with any stale key unset.
export CLAUDE_CONFIG_DIR=$HOME/.claude-team
cat > $CLAUDE_CONFIG_DIR/settings.json <<'JSON'
{"crossSessionInbound":"accept","dialogExpiry":"never","permissions":{"defaultMode":"auto"}}
JSON
env -u ANTHROPIC_API_KEY claude --model opus      # /login, /exit

# 2. One 0600 file per provider. The key lives here, never on a command line.
mkdir -p ~/.claude-seats && chmod 700 ~/.claude-seats
cat > ~/.claude-seats/ollama.json <<'JSON'
{"env":{"ANTHROPIC_BASE_URL":"http://127.0.0.1:11434","ANTHROPIC_AUTH_TOKEN":"ollama",
        "ANTHROPIC_API_KEY":"","ANTHROPIC_SMALL_FAST_MODEL":"qwen3:14b",
        "CLAUDE_CODE_DISABLE_UNKNOWN_MODEL_WINDOW_ENFORCEMENT":"1"}}
JSON
cat > ~/.claude-seats/openrouter.json <<'JSON'
{"env":{"ANTHROPIC_BASE_URL":"https://openrouter.ai/api","ANTHROPIC_AUTH_TOKEN":"sk-or-...",
        "ANTHROPIC_API_KEY":"","ANTHROPIC_SMALL_FAST_MODEL":"z-ai/glm-5.3-flash",
        "CLAUDE_CODE_DISABLE_UNKNOWN_MODEL_WINDOW_ENFORCEMENT":"1"}}
JSON
chmod 600 ~/.claude-seats/*.json

# 3. One folder per role, each with a short AGENTS.md. Trust them (Trap 2).

# 4. Launch. Provider per seat. Name the session after the role.
seat(){ local name=$1 model=$2 provider=${3:-}; local sf=""
  [ -n "$provider" ] && sf="$HOME/.claude-seats/$provider.json"   # $HOME, not ~ (Trap 3)
  ( cd team/$name && env -u ANTHROPIC_API_KEY \
    claude --bg --name $name --model $model --permission-mode auto \
    ${sf:+--settings "$sf"} \
    "Read AGENTS.md. Reply READY $name. Wait for messages." ); }

seat DEVELOPER deepseek-v4-pro:cloud  ollama
seat REVIEWER  glm-5.3:cloud          ollama
seat SECURITY  openai/gpt-6-luna-pro  openrouter
seat CRITIC    opus                            # subscription: no provider file
seat DESK      sonnet                          # subscription

# 5. Look, then confirm each seat is on the provider you meant. The banner line says.
claude agents
claude logs REVIEWER | head -3     # glm-5.3:cloud · API Usage Billing
claude logs CRITIC   | head -3     # Opus 5.5 · Claude Max

The ANTHROPIC_SMALL_FAST_MODEL line matters: without it the harness asks the provider for a Haiku it does not have whenever it wants a cheap side-call.

The seat file that produced the chain above, in full:

# REVIEWER seat
Never assume the Developer is correct. Trace or run the code. Send CRITIC one message:
the code, one real finding if any, and "REVIEWER VERDICT: PASS|FAIL <reason>".
Sign every message with this session's name, never with the harness name.

Then open any session in the same directory and type English. You never call the tools yourself:

❯ Ask @DEVELOPER to write safe_div(a, b) per the spec in its AGENTS.md and send it to @REVIEWER.

Doing it by hand

You do not need DESK. Any interactive session in the directory is a seat with you in the chair, and the human side of the mesh is four things you type. This is from my July run, four Ollama Cloud seats under the old profile, before I knew better about directories. The mechanics have not changed.

Name the session, so peers can address it:

❯ /rename KIMI1
  ⎿  Session renamed to: KIMI1

Ask it, in English, to talk to a peer. The session finds the tool; you never type SendMessage:

❯ can you message KIMI1

Yes. KIMI1 is reachable — I can see it as a live peer session (KIMI1, background, idle,
started ~5 min ago) ...
“Round-trip reply to KIMI1 connectivity test” → sent to KIMI1 — another Claude session on this machine
Allowed by auto mode classifier

Inbound mail shows up in your terminal between turns, folded to one line, and the session answers it without being asked:

› Message from @KIMI1: [Claude] Hello from session KIMI1 [03fd54] (Claude / Kimi K3, /opt/ai_workspace). Testing that all active agent session… (ctrl+o to expand)

That's a legit connectivity test from the KIMI1 peer session — I'll reply over the session channel so they can confirm the round-trip.

Park it and walk away. /bg sends the session to the background with its name and inbox intact, and claude agents is the room from the outside:

❯ /bg
backgrounded · f9609196

$ claude agents
Needs input
 ✻ DEEPSEEK      send a prompt to start                                   16s
 ✻ GLM           send a prompt to start                                   34s
 ✻ MISTRAL       send a prompt to start                                    1m

Completed
 ✻ KIMI1         Mesh test complete: MISTRAL, GLM, DEEPSEEK, and KIMI1 are mutually visible via SendMessage   7m

Note the [Claude] in KIMI1's greeting. That is Kimi K3 signing with the harness name, the leak I mentioned above, and the reason the seat files now say sign with the seat.

claude stop CRITIC parks a seat with its conversation intact, and a later message to a stopped seat resumes it, which is convenient and also the reason to stop seats you do not want woken by a chatty peer. My production tree is the same idea with a year of accumulated law in it: a shared AGENTS.md at the top, a folder per seat, and the line in every seat file that makes model-swapping possible at all, "Whoever opens this folder is Critic."


Two settings that decide whether any of this works

Inbound delivery. The receiving session decides what to do with each message based on crossSessionInbound: accept delivers, hold shows a notice and waits for a human, refuse drops. When nothing is set, Claude Code decides per message from the two sessions' permission modes, and a session that bypasses permissions holds messages from anyone who does not. In a background seat with no terminal attached, that approval dialog just sits there, and the sender sees nothing wrong. That is why the team directory's settings.json sets accept and a dialogExpiry of never.

The boundary that stays in place is the one you want. A message from another session arrives as plain text and the receiving Claude is told it came from a session, not from you. It cannot approve a pending permission prompt. It cannot change settings or CLAUDE.md. A slash command inside it is just text. And Claude is instructed never to ask a peer to do something its own session was denied, which the docs call permission laundering. Those limits are why I am comfortable leaving ten vendors' models in a room with my subscription seats.

Remote Control does not widen the room. It reaches your sessions on other machines and in the cloud, and only from a session whose active authentication is a claude.ai sign-in. The Ollama and OpenRouter seats authenticate with a bearer token, so they cannot join it, and on one machine it is not a bridge between config directories either. For this, the roster is the directory.


Optional: a database for what has to outlive a session

For most of the day the seats need nothing beyond the socket. Work gets done and validated in the conversation between them, and that is the design. You can stop reading here and have the whole thing.

I add a database because of what session messages are not. They are for now. They live in the receiving session's transcript and nowhere else; stop a seat and in flight is gone. The channel also caps at 50 queued and 100 held messages, refuses rapid bursts, and drops identical repeats so two seats cannot loop forever. Right for a conversation, wrong for a work queue.

So anything that has to be there tomorrow goes in a table. Mine is ai_comms in MySQL, fronted by a small MCP server so every seat gets the same five tools (inbox, read, send, reply, close) regardless of which model is behind it. The schema is a message id, from, to, subject, body, status, a parent id for threads, a priority, and three timestamps. You do not need the MCP server to start; Claude Code can run mysql in Bash, and a seat file that says "check your inbox with this SELECT, send with this INSERT" works on day one. It is also the honest answer to the directory problem: two config directories cannot message each other over the socket, but they can both read the same table. Mine has 7,902 rows going back to February 25, 2026. A session message is "the migration finished, rebase is safe." A table row is "something is wrong and someone must eventually own it."


What it cost, and what I am not claiming

Three meters ran today.

The subscription. CRITIC, DESK, and OPUS ran on Claude Max. The banner says "Claude Max," the transcripts say claude-opus-5-5 and claude-sonnet-5-5. Those seats drew from the plan I already pay for, which is the whole point of putting the expensive brain there and nowhere else.

Ollama Cloud, from their pricing page today: Free is $0 with starter credits and one concurrent request; Pro is $20 a month with $60 of credits and three concurrent requests; Max is $100 with $300 and ten. The concurrency column is the one that matters for a mesh. Four Ollama seats answering at once on Pro queue behind three slots, which is fine for a review flow where seats take turns. Local seats have no meter and no limit beyond the GPU.

OpenRouter. The key's own usage counter says today cost $2.29, for about forty broker seats launched across eight runs, the print_arg and safe_div chains included, most of them cheap flash-class tags doing one ping and one reply. A loaded Claude Code session sends tens of thousands of tokens of instructions and tool schemas on every turn, so the model you pick for a seat that mostly pings should be the cheap one, and the expensive tag belongs on the seat that has to be right.

Every delivered message bills like a prompt you typed, on whichever meter that seat runs.

And the open question. A team with real diversity in it leans on OpenRouter and Ollama far more than on subscriber accounts, because that is where the other labs' models are. Whether that is worth it, against paying for one good model and a lot of it, is yet to be seen. Today's run says the Critic on Anthropic caught what the Reviewer on Zhipu passed. One run is an anecdote. I will know what it is worth when the ledger has a few months of rulings in it.

Rented is still rented. The cloud weights run on someone else's GPUs behind someone else's limits, and the subscription seat is Anthropic's call to switch off. The messaging layer is the piece that is genuinely local: socket on my box, never through anyone's server, works with the internet unplugged if the seats are local too. That is the part I would build on.

What I am considering next. The products that shipped this autumn, OpenAI's Dots, xAI's Grok Bot, and this week Anthropic's Claude Duet, each give one agent its own cloud computer. The seats above share mine. I am now looking at a small Docker container per seat, so each has a computer of its own if it needs one: its own filesystem, its own tool versions, and above all its own egress, so the OpenRouter seat can reach openrouter.ai and nothing else. The mesh does not survive that for free. The sockets live in one runtime directory named by PID, and the roster lives in one config directory, so every container has to mount the same two paths and share a PID namespace, and seats run in the foreground inside their box rather than through --bg. Not tested yet. When it is, it gets its own post.

One directory, logged in once. A 0600 file per provider. A role folder per seat. Anthropic built the messaging, Ollama and OpenRouter built the compatible endpoints, and I have not seen any of them describe the part where their model sits in a room with the competition and has to answer to it. That part is yours, and it is a shell function.


Related reading


Keith is a database consultant and infrastructure engineer with 25+ years of open-source experience. He writes about MySQL, Proxmox, AI memory, and building technology you can actually inspect.

Sunday, October 4, 2026

AI CLI Tools, Provider Diversity, and the Consensus No Vendor Will Build You

AI CLI Tools, Provider Diversity, and the Consensus No Vendor Will Build You

I run several different AI CLI tools against the same work on purpose, not out of brand loyalty to any of them, and I've been doing it for real for over a year: multiple specialized agents, an independent Critic that rules pass or fail, production code shipping through it. This post is the concept and the setup, not a lab report, there's a short recipe near the end for checking the review step yourself.


Every AI vendor wants the same thing from you: stay on their model. That's not a conspiracy, it's just the business. Anthropic wants you on Claude, OpenAI wants you on GPT, xAI wants you on Grok. None of them has a roadmap line that reads "route 20% of calls to a competitor to catch our own mistakes." There's no product incentive for that. There's only a user incentive for it, and only if that user doesn't care which model is right, just that one of them is.

I do care about that, so I built it: different providers create, review, and rule on each other's work, held to a bar none of them set for themselves. Not a score, a ruling, pass or fail, with a reason attached that another person or another model can re-check. I've written about pieces of this system for over a year, but always from the outside, the hardware, the memory problem, the economics. This post is from the inside: the concept itself, how it actually works, and how I use it.

The industry already fights over who gets to train on whom, which is exactly why none of them would ever build this

I didn't have to speculate about whether vendors mind a competitor learning from their model: it's been a live fight. In August 2025, Anthropic revoked OpenAI's API access to Claude after discovering OpenAI was using it internally to benchmark GPT-5's responses against Claude's. Anthropic's terms ban exactly that: no access "to build a competing product or service, including to train competing AI models." OpenAI's defense was that benchmarking a rival is "industry standard." Both things can be true, and Anthropic cut the access anyway, its second such cutoff that year, after Windsurf during OpenAI's acquisition talks.

A messier, disputed version of the same fight is still running in 2026: a White House tech policy official publicly accused Moonshot AI of distilling Anthropic's Claude-Fable model to build Kimi K3, citing "millions of exchanges" identified by IP and metadata. I'm flagging that one as contested, not settled. Neither Anthropic nor the White House has published a query log, training manifest, or forensic analysis, and independent researchers argue the timeline doesn't work: Fable 5 had only been public a few weeks, not enough time to distill and train a model Kimi K3's size.

Worth being precise about what these fights actually are, so this post doesn't get lumped in with them: they're about training a rival frontier model on another lab's outputs at scale, without permission, straightforward IP extraction. Every major lab's terms ban it; OpenAI even sells a distillation product, restricted to teacher=OpenAI, student=OpenAI. What I'm doing in this post is categorically different: I'm a paying customer of several separate services, asking each one the same question and comparing their answers. That's not distillation, it's comparison shopping.

But notice what that proves beyond "no incentive." These aren't neutral competitors who simply haven't gotten around to building a shared comparison tool. They're actively revoking each other's API keys and getting the White House involved, in the same eighteen months. A consortium of Anthropic, OpenAI, and Moonshot jointly shipping a product that routes your question across all three and tells you when they disagree isn't a roadmap gap waiting to be filled. It's organizationally impossible between parties that ban each other's access and accuse each other of IP theft at a federal level. There is no boardroom where that feature gets greenlit. The only place a tool like that can exist is outside all of their walls, built by someone who's a paying customer of all of them and a competitor to none, which is exactly the position an end user, and only an end user, is in.

I'm not claiming this is new

I said as much the first time I put names on these roles, back in December 2025, running a four-role review loop (ProjectManager, Developer, Reviewer, and an adversarial critic I called "Lucifer" at the time, because it was the devil's advocate point of view, now I just call it the Critic) on local Ollama models:

"This is not novel in human teams. It's basic team dynamics. What's novel is making it work with open source models that fit in a local machine."

Dual-approval review teams and adversarial gates aren't my idea, and there's a real research lineage behind the pattern: MetaGPT (Aug 2023) assigned PM/Architect/Engineer/QA roles to GPT instances over a year before I named mine; AutoGen (Microsoft, same month) generalized multi-agent conversation as infrastructure; and a steady line of Multi-Agent Debate research since has been studying whether structured disagreement between models actually improves output over a single model's answer.

The closest match I found is current: an ICML 2026 DL4C workshop paper, "Adversarial Review: Structured Disagreement for Grounded Agentic Code Review," built around almost exactly my shape, a coding agent, a Reviewer, and a Critic who audits the Reviewer's findings through structured disagreement rather than trusting them. Their own stated motivation is the one my Critic's seat file was already built around, in their own words: "when two LLM agents are asked to agree on a joint output, they tend to agree with each other. They do not always find the truth." I use three roles throughout this post because three is the simplest version that demonstrates the mechanism, not because any specific benchmark says three is optimal; more on how far you can scale that past three, under "How it's actually built, briefly."

Why this works

Four things have to be true for a multi-model review loop to beat a single model, and I can point to a reason for each one instead of just asserting it. One more thing closes out the section afterward, not a fifth requirement, just the historical note that none of this is actually new.

Different labs make different mistakes. A model reviewing its own output, or output from a model trained the same way on similar data, shares its own blind spots with what it's checking. That's the whole reason to use multiple providers, DeepSeek, Zhipu's GLM, and Moonshot's Kimi for example, or Claude, or Grok, instead of three calls to the same model: a Reviewer with a genuinely different training lineage is more likely to notice something a same-lineage reviewer would also miss.

The persona has to be disciplined, not just adversarial. "Be adversarial, find bugs" sounds like the right instruction and isn't. A model told to find problems will find problems, real ones and manufactured ones, with no way to tell you which is which. A model told to prove every claim against a stated scope, and told explicitly not to penalize what's outside that scope, produces a ruling you can act on instead of a pile of busywork.

Re-verification has to be independent, not inherited. A Critic that reads "Reviewer says it's fine" and agrees has added nothing; it's just a second vote for the first model's blind spot. A Critic that re-derives the claim itself, from the code, and only then compares notes with the Reviewer, catches the specific failure where a Reviewer's reasoning was wrong but its conclusion happened to be right anyway. This isn't just my own rule, it's written into the team law every seat in my setup runs on: "if Developer, Reviewer, and Critic all agree without friction, look harder. Structured disagreement > comfortable consensus." The Critic's own file says the same thing in its own words: "When all three of us agree, look harder, that is when groupthink is most likely." Agreement is the moment to get more suspicious, not less, because three independent reads landing on the same wrong answer is a real failure mode, not a reassurance. This isn't just theory: the workshop paper named above, studying this exact reviewer-critic pattern, found naive agreement scoring worse than a single reviewer alone (F1 0.457 vs. 0.495), until the critic was forced to ground every disagreement in cited code, which pushed it to 0.533, the best of the methods tested. An undisciplined second opinion can make review worse than no second opinion at all.

The gate has to be a ruling, not a feeling. "Looks good to me" doesn't compose across models and doesn't survive someone asking "compared to what, measured how, what would prove this wrong?" A pass or fail that has to name its reasoning, and gets rejected and sent back if it can't, is falsifiable in a way "looks fine" never is. It's also the only version of "the team approved this" that another person, or another model, can actually audit after the fact, because there's a stated reason to check, not just a vibe.

As a note, this isn't new to engineering, it's just new to applying it to AI. Humans already run on this: when two people give different versions of the same story, the truth is usually somewhere in the middle, and that's exactly why no developer certifies their own code for production. The formal name for it is separation of duties, requirement, design, review, and production shouldn't sit with one person, and it's slower on purpose. The counterargument is real too, and worth taking seriously rather than ignoring: one study found overly specialized software teams can produce worse output once people stop sharing knowledge across tasks, which is part of why the industry also moved toward embedded QA and "you build it, you run it." The lesson isn't "more separation is always better," it's that the separation has to be structured, not just present, which is what an independent, falsifiable ruling is doing for a team of models instead of a team of people.

How it's actually built, briefly

This is architecture, simply put:

Picture a TechOps team: different people, different roles, a shared ticket queue. Swap "different people" for "different models" and the ticket queue for a ledger, and that's the whole architecture. The role, Developer, Reviewer, Critic, whoever, is a folder and a system prompt; the model sitting in it is the one thing allowed to change without anyone else noticing. That's not a metaphor, it's literally the folder layout, ten seats, each with a real AGENTS.md and a CLAUDE.md that's a 9-byte symlink to it (one file, two names, so Claude Code's convention and every other harness's convention both resolve to the same instructions):

AI_TEAM/: AGENTS.md, CLAUDE.md -> AGENTS.md
CRITIC/, DBA/, REVIEWER/, and 7 more seats, each the same two files

Three layers do three different jobs. Mind is the durable part: an append-only coordination ledger (a database trigger blocks UPDATE and DELETE at the engine level, trg_events_no_update/trg_events_no_delete, verified live) plus a separate knowledge store with three views, MySQL for structured facts, Neo4j for relationships, MemPalace for semantic recall. Cognition is a single model call, reasoning over whatever's in Mind, then ending; it has no memory of its own. Display is what a human watches through, a separate CLI channel per seat for me day to day, without becoming the coordination mechanism itself.

Seats are independent Cognition sessions, woken on their own schedule, reading and writing the ledger through MCP instead of a hand-off from one orchestrating thread, which is both what makes it decentralized and what makes it scale: adding a fourth or fifth seat means pointing another folder at the same ledger, not building new plumbing.

How I actually use this

This isn't a system I stood up to write a post about. It's been running for over a year, and the seats aren't a demo roster, they're doing real work: several Developer agents, not one, each with a narrow lane, a DBA agent for schema and migrations, a Security agent for auth and secrets, each with a sharper, narrower prompt than "review everything." JavaScript and Python work go to different Developer seats on purpose, because a model that's spent its whole context on one language's idioms writes better code in that language than one switching between three.

The CLI control isn't a feature I'm describing in the abstract, it's how I spend my day: a separate terminal per seat, and from each one I can run a seat on auto, step it one iteration at a time, or interrupt it mid-task, depending on how much I trust what it's doing right now. The gate applies to whatever's actually shipping that day, not a toy example picked for a blog post: the Critic rules pass or fail, with a reason, before anything goes in.

What a year of this has actually bought me: fewer surprises after something ships, and code I trust more by the time it clears the gate. That's not a number I can back with a single command, it's a year of living with it, which is a different kind of evidence than anything else in this post and I want to be clear about that difference rather than blur it. If you want to see the mechanism itself rather than take my word for the year, here's how to do that with whatever you've got.

Run this yourself, with whatever you've got

None of this needs my config, my ledger, or my seat files. It's three prompts and a loop. You don't need Ollama or any specific models; you need three genuinely different providers, any three, and a way to call each one with a system prompt. Here's the actual shape, trimmed down.

Pick a task with a clear, checkable scope, something you can run and look at the output of. Then three system prompts:

DEVELOPER:
"No placeholders, no 'fix later.' Quality over speed.
Write the code. Don't review or gate your own work."

REVIEWER:
"Never assume the Developer is correct. Prove every claim.
If you can't re-run it and see the output, it's not approved.
Don't penalize anything outside the stated scope.
End with exactly one line: VERDICT: PASS or VERDICT: FAIL, plus the reason."

CRITIC:
"Never guess, always validate. Every claim is a hypothesis
until you've independently re-derived it, not just trusted
the Reviewer's sign-off. Ask: compared to what? measured how?
what would failure look like? Don't rewrite the code, only rule.
End with exactly one line: VERDICT: PASS or VERDICT: FAIL, plus the reason."

Then the loop, plain language, not a specific framework:

Developer writes a draft.
Send draft to Reviewer.
  If Reviewer FAILs it: send the specific reason back to Developer, repeat.
  If Reviewer PASSes it: send draft + Reviewer's reasoning to Critic.
    If Critic FAILs it: send Critic's reason back to Developer, repeat.
    If Critic PASSes it: done.

There's no percentage to tune at the gate itself. The Critic's ruling stays pass, fail, and why, not a score crossing a line. Numbers do show up a layer down once you automate the deliberation that feeds the gate, agreement ratios, dissent counts, that kind of thing, in other automated pipelines I run, and that's fine; a number deciding whether a sub-step converged is a different thing than a number deciding whether the Critic approves. Don't let the second one quietly replace the first. If you automate this, cap the loop at a set number of rounds before raising it back to you, so a bad run doesn't repeat forever and run up a bill. Use at least three different models from three different labs, not three calls to the same one; the whole mechanism depends on that. Beyond that, the specific providers don't matter; I used Ollama's cloud tier because it was the cheapest way to reach DeepSeek, GLM, and Kimi from one script, but the same three prompts work against three API keys, three browser tabs, or three different vendors' free tiers.

Where this sits

This is my opinion on how AI should get used, for development, but for anything else too: if you lean on just one provider, for code or for a simple chat question, you're trusting only that provider's training data and whatever blind spots come with it. I don't, and my own workspace reflects that, a concept, a reason for each piece of why it works instead of just an assertion, and a short recipe for checking the review step yourself instead of taking my word for it. That's less dramatic than "AI team builds better code than any single model," and it's also the only version of the claim I can actually back, a year of living with it, kept separate from the parts that are still just argument rather than blurred together. None of it came from a vendor, and it couldn't have: this exists because someone outside all of their walls had a reason to build it that none of them do. Take the three prompts under "Run this yourself," point them at whatever three models you've already got, and see what it catches on something of yours. That's the only test that actually matters to you.


Related reading


Keith is a database consultant and infrastructure engineer with 25+ years of open-source experience. He builds the ApocryiaAI brand and DRAVEN work under 3k1o LLC (apocryia.com and related domains). He writes about MySQL, Proxmox, AI memory, multi-agent workflows, and building technology you can actually inspect.

Saturday, October 3, 2026

Claude Code at NVIDIA's Free Model Catalog. It Took a Proxy and Four Traps.

Claude Code at NVIDIA's Free Model Catalog. It Took a Proxy and Four Traps.

Claude Code only speaks Anthropic's Messages API. NVIDIA's hosted catalog at build.nvidia.com — free, no credit card, dozens of models — only speaks OpenAI chat-completions. Those two facts don't meet in the middle on their own. Here's the proxy that bridges them, a real /v1/models call to see what's actually on the shelf, and the four traps that will burn an afternoon if nobody warns you first.


Why bother with another backend

I've written before about running Claude Code against Ollama Cloud to get GLM and Kimi behind the same tooling for twenty bucks a month. NVIDIA's build.nvidia.com catalog is a different animal worth adding to the same rotation: it's free, it doesn't ask for a card, and the model list leans toward the NVIDIA-tuned Nemotron family plus a rotating cast of open-weight models — Kimi, GPT-OSS, and others — hosted on NVIDIA's own infrastructure. Sign up with the NVIDIA Developer Program, generate an API key, and you've got a bearer token against real inference with nothing charged to anything.

The catch is the shape of the API. Claude Code was built to talk to Anthropic's Messages API. NVIDIA's NIM endpoints speak OpenAI's chat-completions shape. Same idea — send messages, get a completion — different field names, different request structure. Claude Code doesn't know how to speak NVIDIA's dialect, and NVIDIA's validator doesn't know what to do with half of what Claude Code sends. You need a translator sitting in between, and once you add one, a few sharp edges show up that aren't obvious until you hit them.

The pieces

PieceRole
claude-code-router (ccr)Local daemon that speaks Anthropic's Messages API on one side and OpenAI chat-completions on the other
NVIDIA API keyFrom build.nvidia.com, used as a bearer token against integrate.api.nvidia.com
A small request-shape fixupNVIDIA validates request bodies strictly and rejects fields Claude Code sends by default
A profile wrapper (optional, recommended)Isolates config, trust state, and history per backend so NVIDIA doesn't tangle with your normal Claude install or your Ollama one

1. Install and start ccr

npm install -g @musistudio/claude-code-router   # verify the current package name on npm
ccr start

ccr listens on 127.0.0.1:3456 by default and proxies Anthropic-shaped requests out to whatever providers you configure.

2. Point it at NVIDIA

Edit ~/.claude-code-router/config.json:

{
  "Providers": [
    {
      "name": "nvidia",
      "api_base_url": "https://integrate.api.nvidia.com/v1/chat/completions",
      "api_key": "$NVIDIA_API_KEY",
      "models": [
        "moonshotai/kimi-k3",
        "nvidia/nemotron-3.5-lightning-30b-a3b",
        "openai/gpt-oss-20b"
      ],
      "transformer": {
        "use": ["nvidia-strip-unsupported"]
      }
    }
  ],
  "Router": {
    "default": "nvidia,moonshotai/kimi-k3"
  }
}

Two things worth calling out before you move on:

  • api_key: "$NVIDIA_API_KEY" — ccr interpolates environment variables in the config at request time. The key never sits in the file in plaintext; it just has to be present in the environment of the process that starts ccr.
  • The models list is a gate, not a hint. If a model isn't listed here, ccr quietly falls through to the Router default instead of calling it — see Trap #2 below. This bit me before I understood it.

3. Trap #1 — NVIDIA rejects Claude Code's thinking params

Claude Code sends a thinking block on nearly every turn. ccr's default transformer maps that onto an OpenAI-style reasoning parameter. NVIDIA's NIM validator rejects any parameter a given model hasn't explicitly declared support for:

HTTP 400 {"message":"Validation: Unsupported parameter(s): `reasoning`"}

Since Claude Code thinks on almost every request, this isn't an edge case — it kills the session on the first prompt. The bundled cerebras transformer that ships with ccr isn't a fix either: when the reasoning key is absent, it substitutes disable_reasoning: false, which several NVIDIA models reject just as hard.

Fix: a small custom ccr transformer plugin that strips the offending keys before the request leaves the box.

~/.claude-code-router/plugins/nvidia-strip-unsupported.js:

class NvidiaStripUnsupported {
  constructor(options = {}) {
    this.name = "nvidia-strip-unsupported";
    this.options = options || {};
    this.strip = this.options.strip ||
      ["reasoning", "disable_reasoning", "thinking", "enable_thinking"];
    this.keepReasoningFor = new Set(this.options.keepReasoningFor || []);
  }

  async transformRequestIn(request) {
    const body = { ...request };
    const exempt = this.keepReasoningFor.has(body.model);
    for (const key of this.strip) {
      if (!(key in body)) continue;
      if (exempt && (key === "reasoning" || key === "thinking")) continue;
      delete body[key];
    }
    return body;
  }

  async transformResponseOut(response) {
    return response;
  }
}

module.exports = NvidiaStripUnsupported;

Reference it from the provider's transformer.use list, as shown in step 2. You lose the thinking-budget hint for models that can't take it — a much cheaper cost than a dead session.

4. Trap #2 — bare model names silently fall through to the wrong provider

ccr only does a direct provider lookup when the model string contains a comma — its router checks for model.includes(","). A bare name like moonshotai/kimi-k3 doesn't match that, so it falls through to whatever Router.default is configured — which may be a different provider entirely if you're already running Ollama Cloud or OpenRouter through the same daemon. You will not get an error. You will just silently bill, and get answers from, the wrong backend.

Fix: always pass the provider-qualified form, nvidia,<model>:

claude --model nvidia,moonshotai/kimi-k3
# or mid-session:
/model nvidia,openai/gpt-oss-20b

If you want to keep typing bare model names on the CLI, wrap the invocation in a shell function that rewrites --model X to --model nvidia,X whenever the value doesn't already contain a comma. The profile script below does exactly that.

5. Trap #3 — the model also has to be in ccr's per-provider models[]

Separate from trap #2: even with the nvidia, prefix, if the model string isn't present in that provider's models array in config.json, ccr still falls back to the Router default instead of erroring. Keep that array current — NVIDIA's catalog changes, and retired model IDs get real deadlines: advance notice, then the ID starts 400/410ing. Re-check it against /v1/models (next section) periodically rather than trusting a list you wrote once.

6. See what's actually on the shelf: the /v1/models call

Before wiring anything into Claude Code, hit NVIDIA directly and get the real, current catalog — not a blog post's memory of it:

curl -sS https://integrate.api.nvidia.com/v1/models \
  -H "Authorization: Bearer $NVIDIA_API_KEY" | jq .

It comes back in the same OpenAI-compatible shape as /v1/chat/completions expects for the model field — a flat list with id, object, created, and owned_by. This is a real excerpt, pulled live against my own key while writing this:

{
  "object": "list",
  "data": [
    {
      "id": "deepseek-ai/deepseek-coder-6.7b-instruct",
      "object": "model",
      "created": 735790403,
      "owned_by": "deepseek-ai"
    },
    {
      "id": "deepseek-ai/deepseek-v4.1-flash",
      "object": "model",
      "created": 735790403,
      "owned_by": "deepseek-ai"
    },
    {
      "id": "moonshotai/kimi-k3",
      "object": "model",
      "created": 735790403,
      "owned_by": "moonshotai"
    },
    {
      "id": "nvidia/llama-3.1-nemotron-70b-instruct",
      "object": "model",
      "created": 735790403,
      "owned_by": "nvidia"
    },
    {
      "id": "nvidia/nemotron-3-ultra-550b-a55b",
      "object": "model",
      "created": 735790403,
      "owned_by": "nvidia"
    },
    {
      "id": "openai/gpt-oss-20b",
      "object": "model",
      "created": 735790403,
      "owned_by": "openai"
    },
    {
      "id": "z-ai/glm-5.3",
      "object": "model",
      "created": 735790403,
      "owned_by": "z-ai"
    },
    {
      "id": "z-ai/glm-5.3-flash",
      "object": "model",
      "created": 735790403,
      "owned_by": "z-ai"
    }
  ]
}

Notice created is identical — 735790403, which decodes to April 1993 — on every single one of the 80 models my key could see, not just these eight. That's not a copy-paste artifact in this post; it's the API itself. NVIDIA doesn't populate real per-model creation dates on this field, so don't use created to judge how new a model is — it's always the same placeholder epoch, for everything.

Filter it down to just the IDs when you're updating ccr's models[] array:

curl -sS https://integrate.api.nvidia.com/v1/models \
  -H "Authorization: Bearer $NVIDIA_API_KEY" | jq -r '.data[].id' | sort

Do this before you copy anyone's model list into your own config — including the one in this post. The catalog is not static; NVIDIA adds and retires IDs on its own schedule, and the only authoritative source is the endpoint itself.

7. What "free tier" actually means here

Worth being precise, because older write-ups about this catalog will mislead you. At 2024 launch, signups got roughly 1,000 API credits (one credit ≈ one call, not one token), extendable to 5,000 with a business email — that system was phased out by early 2025 in favor of a straight requests-per-minute ceiling, no balance, no card. Generate a key at build.nvidia.com and you're gated by RPM, not tokens or credits.

The ~40 RPM figure that gets quoted around applies per account key, not per model — it doesn't multiply when you add more models to the same key — and there's no self-serve way to raise it; the only path past it is self-hosting the NIM or NVIDIA AI Enterprise. You can watch developers hit that exact wall in NVIDIA's own forums (one thread, a second), since there's no single published limits page — the real number for your account is on your own dashboard. Check it live; don't trust a number here or anywhere else.

What that buys you: a lab, not a production backend. Right for "drive Claude Code without paying frontier rates" or "check a benchmark myself" — the same instinct behind the Ollama Cloud setup — not for paying-customer traffic.

How that stacks up against Groq's free tier

NVIDIA isn't the only free, no-card lab sandbox. Groq runs the same deal on different terms. Check your own numbers at console.groq.com/settings/limits or the community forum; these are the published numbers for its GPT-OSS-class free models:

NVIDIA build.nvidia.comGroq (gpt-oss-class free models)
Cost$0, no card$0, no card
Throttle shape~40 requests/min, per account key, shared across whatever models you call30 requests/min, 8,000 tokens/min, 1,000 requests/day, 200,000 tokens/day — per model
Self-serve increaseNone on the free tierNone on the free tier
Catalog size~80 models at last count (section 6), including NVIDIA's own Nemotron lineA much smaller curated set of open models
Production useNot permitted on the free key — deploy the NIM yourself or buy AI EnterpriseRate-limited, but it's the same real API you'd pay for at higher tiers

Neither is a free production API. NVIDIA wins on model quality — one key, frontier-class models (Kimi K3, GLM-5.3, Nemotron, DeepSeek) instead of Groq's smaller set. Groq wins if you want a ceiling that resets at midnight instead of a request-rate wall that's always just there. Pick based on which matters more for what you're building.

8. Set the environment and point Claude Code at ccr, not NVIDIA directly

export NVIDIA_API_KEY="nvapi-..."           # from build.nvidia.com
export ANTHROPIC_BASE_URL="http://127.0.0.1:3456"
export ANTHROPIC_AUTH_TOKEN="dummy"         # ccr doesn't check this; Claude Code requires it set
export ANTHROPIC_API_KEY=""                 # must be empty, or Claude Code prefers it over AUTH_TOKEN
export ANTHROPIC_MODEL="nvidia,moonshotai/kimi-k3"
export ANTHROPIC_SMALL_FAST_MODEL="nvidia,nvidia/nemotron-3.5-lightning-30b-a3b"

claude

ANTHROPIC_BASE_URL pointing at localhost is correct and intentional — the real outbound call to NVIDIA is made by ccr, using NVIDIA_API_KEY from its own environment. Claude Code itself never talks to NVIDIA directly.

Also worth setting, since Claude Code doesn't know third-party context windows and will otherwise assume 200k and warn about it:

export CLAUDE_CODE_MAX_CONTEXT_TOKENS=128000   # NVIDIA's /v1/models doesn't expose this; treat it as an estimate

9. Isolate it as a profile

Running multiple backends — NVIDIA, Ollama Cloud, OpenRouter — out of the same ~/.claude config directory gets confusing fast: history, trust state, and MCP config all mix together. A small wrapper that sources a per-backend env file into an isolated CLAUDE_CONFIG_DIR keeps them from stepping on each other:

~/bin/claude-profile:

#!/usr/bin/env bash
set -euo pipefail
PROFILE_DIR="${CLAUDE_PROFILE_DIR:-$HOME/.claude-profiles}"
name=$1; shift
env_file="$PROFILE_DIR/$name.env"
[[ -r $env_file ]] || { echo "no such profile: $name" >&2; exit 1; }
set -a; source "$env_file"; set +a
: "${CLAUDE_CONFIG_DIR:?profile '$name' did not set CLAUDE_CONFIG_DIR}"
mkdir -p "$CLAUDE_CONFIG_DIR"
exec claude "$@"

~/.claude-profiles/nvidia.env:

: "${NVIDIA_API_KEY:?NVIDIA_API_KEY not set}"

# Make sure ccr is actually running before Claude Code tries to talk to it.
if ! (exec 3<>/dev/tcp/127.0.0.1/3456) 2>/dev/null; then
    nohup ccr start >/tmp/ccr-start.log 2>&1 &
    for _ in $(seq 1 15); do
        sleep 1
        (exec 3<>/dev/tcp/127.0.0.1/3456) 2>/dev/null && break
    done
fi

# Close the bare-model-name trap (#2) automatically.
_ccr_fix_model_args() {
    local -a out=(); local n=$#; local i=1
    while (( i <= n )); do
        local a=${!i}
        case $a in
            --model)
                local j=$((i+1))
                if (( j <= n )); then
                    local v=${!j}
                    [[ $v == *,* ]] || v="nvidia,$v"
                    out+=("$a" "$v"); i=$((i+2)); continue
                fi ;;
            --model=*)
                local v=${a#--model=}
                [[ $v == *,* ]] || v="nvidia,$v"
                out+=("--model=$v"); i=$((i+1)); continue ;;
        esac
        out+=("$a"); i=$((i+1))
    done
    printf '%s\0' "${out[@]}"
}
if (( $# )); then
    _ccr_argv=()
    while IFS= read -r -d '' a; do _ccr_argv+=("$a"); done < <(_ccr_fix_model_args "$@")
    set -- "${_ccr_argv[@]}"
fi
unset -f _ccr_fix_model_args

CLAUDE_CONFIG_DIR=$HOME/.claude-nvidia
ANTHROPIC_BASE_URL=http://127.0.0.1:3456
ANTHROPIC_AUTH_TOKEN=dummy
ANTHROPIC_API_KEY=
ANTHROPIC_MODEL=nvidia,moonshotai/kimi-k3
ANTHROPIC_SMALL_FAST_MODEL=nvidia,nvidia/nemotron-3.5-lightning-30b-a3b
CLAUDE_CODE_MAX_CONTEXT_TOKENS=128000
alias claude-nvidia='claude-profile nvidia'

Then:

claude-nvidia --model moonshotai/kimi-k3 -p "say hi"

Trap #4 — each profile has its own workspace-trust store

Not NVIDIA-specific, but it will absolutely make a correctly wired-up profile look broken: CLAUDE_CONFIG_DIR isolation means each profile tracks workspace trust separately, per working directory, in its own .claude.json. Trusting a directory under your normal claude or your claude-ollama profile does not carry over to claude-nvidia — it's a different config dir with a blank trust table.

Symptom:

Ignoring N permissions.allow entries from .claude/settings.json:
this workspace has not been trusted.

When that fires, your permissions allowlist is silently ignored and tool calls get gated — which looks exactly like "the model/provider is broken," especially for an agentic model that calls tools on almost every turn.

Fix: run the profile interactively once in that directory and accept the trust dialog, or set it directly (back the file up first — it's hand-editable JSON, not a stable schema):

python3 -c "
import json
path = '$HOME/.claude-nvidia/.claude.json'
d = json.load(open(path))
d['projects']['$PWD']['hasTrustDialogAccepted'] = True
json.dump(d, open(path, 'w'), indent=2)
"

10. Verify end to end

Skip Claude Code for a moment and confirm NVIDIA itself is answering:

curl -sS https://integrate.api.nvidia.com/v1/chat/completions \
  -H "Authorization: Bearer $NVIDIA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"moonshotai/kimi-k3","messages":[{"role":"user","content":"say hi in 3 words"}],"max_tokens":20}'

A 200 with a choices[0].message.content means NVIDIA and the key are fine and any remaining problem is in ccr or Claude Code's config, not the provider. Then run the full path and check for a clean result with "is_error": false:

claude-nvidia --model moonshotai/kimi-k3 -p "reply with exactly: PONG" --output-format json

Three vendors, one call shape, live right now

Same curl, same prompt, same max_tokens, fired at three different vendors' models behind the one NVIDIA endpoint, run live while writing this:

curl -sS https://integrate.api.nvidia.com/v1/chat/completions \
  -H "Authorization: Bearer $NVIDIA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"moonshotai/kimi-k3","messages":[{"role":"user","content":"Reply with exactly one short sentence: which model are you, in your own words."}],"max_tokens":300}'
# Kimi (Moonshot AI) — HTTP 200
"content": "I’m Kimi, an AI assistant developed by Moonshot AI."
curl -sS https://integrate.api.nvidia.com/v1/chat/completions \
  -H "Authorization: Bearer $NVIDIA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"z-ai/glm-5.3","messages":[{"role":"user","content":"Reply with exactly one short sentence: which model are you, in your own words."}],"max_tokens":300}'
# GLM (Z.ai) — HTTP 200
"content": "I am GLM, a large language model developed by Z.ai."

Both clean, finish_reason: "stop", real content. DeepSeek didn't make it in either form I tried — full results in the table below. Listed in /v1/models isn't the same claim as callable right now, which is the entire reason to run the probe before trusting a model list, including this one.

Known-good / known-bad models, as of testing

Catalogs here churn — re-run the /v1/models call from section 6 before trusting this table in a post written more than a few weeks after you read it.

ModelStatus
moonshotai/kimi-k3Works, including tool calls. NVIDIA rate-limits it harder than most; can be slow (~2–110s observed, highly variable)
z-ai/glm-5.3Works, clean stop finish on a plain chat call
deepseek-ai/deepseek-v4.1-flashListed in /v1/models, but timed out on two separate live attempts (one 504, one 90s client timeout) — not usable as of testing
deepseek-ai/deepseek-coder-6.7b-instructListed in /v1/models, but the chat-completions call itself 404'd — present in the catalog, not actually callable
poolside/laguna-xs-2.1Works
nvidia/nemotron-3.5-lightning-30b-a3bWorks, fastest of the set
nvidia/nemotron-3-ultra-550b-a55bWorks, slow cold start (~45s+)
openai/gpt-oss-20bWorks
meta/llama-3.2-90b-vision-instructTimes out past ~120s
google/gemma-4-31b-itAnswers bare chat in ~120s but times out once tools are attached (Claude Code always attaches tools)
IDs not in NVIDIA's current catalog404, not a transient failure — don't retry, re-check the catalog
Deprecated/retired IDs410 Gone once NVIDIA's end-of-life date passes — drop them from models[] immediately, they won't come back

The failure modes, for the TL;DR crowd

  1. 400 "Unsupported parameter(s): reasoning" → strip thinking/reasoning params with a custom ccr transformer before they reach NVIDIA.
  2. Silently billing/answering from the wrong provider → always use the comma-qualified provider,model form; ccr's router keys off the comma.
  3. Falls back to Router default with no error → the model must also be listed in that provider's models[] in config.json. Verify against /v1/models, don't guess.
  4. "Workspace has not been trusted" / tool calls gated for no apparent reason → each CLAUDE_CONFIG_DIR profile has its own trust store; accept the dialog, or patch the flag, per profile, per directory.

Get past those four and NVIDIA's free catalog works in Claude Code like any other backend — full tool-call support, same CLI, same slash commands, just a different $ANTHROPIC_MODEL and nothing on the invoice.


Related reading


Keith is a database consultant and infrastructure engineer with 25+ years of open-source experience. He builds the ApocryiaAI brand and DRAVEN work under 3k1o LLC (apocryia.com and related domains). He writes about MySQL, Proxmox, AI memory, multi-agent workflows, and building technology you can actually inspect.