Claude Code
Route Claude Code through Inference.net's Anthropic-compatible endpoint.
fast claude on points Claude Code at Inference.net's Anthropic-compatible
/v1/messages endpoint by editing ~/.claude/settings.json.
Connect Claude Code
Install
bashnpm install -g @inference/fastActivate
bashfast claude onThe first run signs you in through the browser and creates an API key for this machine. The command backs up Claude Code's config before editing it.
Restart Claude Code
Restart Claude Code and send a prompt; the request appears under Usage.
Choose a model
Claude Code has a model override for each agent type. main, opus, and
sonnet default to kimi-k3-fast; haiku and subagents default to
deepseek-v4-flash-0731. Set every override to the same model with --model,
or set them individually with the per-role flags. Add --plan to connect with
an Inference Pass plan key (the default automatically picks a model included in
your plan). Any model catalog ID works on pay-as-you-go keys; with
--plan, explicit IDs must be included in your plan (from GET /v1/models
authenticated with your plan key).
# Set the model for every override
fast claude on --model kimi-k3-fast
# Connect with an Inference Pass plan key
fast claude on --plan
# Set each override individually
fast claude on \
--main kimi-k3-fast \
--opus kimi-k3-fast \
--sonnet kimi-k3-fast \
--haiku deepseek-v4-flash-0731 \
--subagents deepseek-v4-flash-0731Run on again to change the defaults. Restart Claude Code afterward.
Switch models in Claude Code
Every available model from the model catalog is in Claude Code's
/model picker; the built-in Anthropic entries are hidden because they all
route through the overrides above. Pick one and press Enter to make it the
default for new sessions, or s to use it for the current session only.
Check status
fast claude statusShows the connection, model, and config paths.
Disconnect
fast claude offRestores settings.json to the backup taken by on, so edits made after
connecting are lost. Restart Claude Code afterward.
Troubleshooting
fast claude statussaysoff— runfast claude onand restart Claude Code.- Requests return 401 — run
fast status, thenfast claude on. - Model rejected — pick an ID from the model catalog.