Skip to content
Coding agents

Claude Code with any model

Claude Code talks to the Anthropic Messages API, and every model in our catalog answers on it. Set two variables and Claude Code runs on your Inferray key — on Claude, or on Kimi, GLM, DeepSeek or GPT — with no 5-hour or weekly windows.

Two variables

export ANTHROPIC_BASE_URL="https://api.inferray.com"
export ANTHROPIC_AUTH_TOKEN="inferray_..."
export ANTHROPIC_MODEL="claude-sonnet-5-5"

That is the whole change. Claude Code keeps working the way it does; it bills to your key instead of your Claude plan. The setup guide covers the settings file, the VS Code extension, and how to check it worked.

Pick a model

ModelInput / 1MCached / 1MOutput / 1MContextToken Plans
Claude Opus 5.5$4$0.2$201MIncluded
Claude Sonnet 5.5$2$0.1$101MIncluded
Claude Haiku 5.5$0.1$0.01$0.51MIncluded
Kimi K3$3$0.3$151.0MIncluded
GLM-5.3$0.77$0.143$2.42262KIncluded
DeepSeek V4.1 Flash$0.15$0.003$0.61MIncluded
GPT-6.1 Sol$2$0.1$101.1MIncluded

Change ANTHROPIC_MODEL to switch. A common split is a frontier model for planning and hard bugs and a lower-priced one for the bulk of the edits.

Pay for it with a Token Plan

PlanYou pay / monthUsage at list price≈ tokens on Claude Sonnet 5.5≈ tokens on Kimi K3≈ tokens on GLM-5.3
Solo$20$6096M56M210M
Pro$100$300480M280M1B
Max$200$600960M560M2.1B

Token estimates assume coding-agent traffic: 85% cached input, 12% fresh input, 3% output.

No 5-hour session limit, no weekly cap: the month's credit is there from day one, and every request shows what it cost.

Claude Code with Kimi

Kimi K3 is Moonshot AI's model for long-horizon coding, with a 1.0M context. Set ANTHROPIC_MODEL="kimi-k3". It costs $3 per 1M input tokens and $15 per 1M output tokens; $60 of plan credit is about 56M tokens of agent traffic. More on the Kimi K3 page.

Claude Code with GLM

GLM-5.3 is Z.ai's coding-first flagship, with a 262K context. Set ANTHROPIC_MODEL="glm-5.3". It costs $0.77 in and $2.42 out per 1M tokens — about 210M tokens of agent traffic for $60. Compare it with Z.ai's own GLM Coding Plan.

Claude Code with DeepSeek

DeepSeek V4.1 Flash is the lowest-priced model here: $0.15 in and $0.6 out per 1M tokens. Set ANTHROPIC_MODEL="deepseek-v4.1-flash" for high-volume edits and refactors. See the DeepSeek API page.

Claude Code with GPT

GPT-6.1 Sol runs in Claude Code the same way: ANTHROPIC_MODEL="gpt-6.1-sol", at $2 in and $10 out per 1M tokens. If you would rather use OpenAI's own agent, see Codex with any model.

Prices on this page come from the model catalog and were current on November 12, 2026.

Questions

Can Claude Code use models other than Claude?
Yes. Point ANTHROPIC_BASE_URL at the Inferray API and set ANTHROPIC_MODEL to any catalog id — kimi-k3, glm-5.3, deepseek-v4.1-flash, gpt-6.1-sol — and Claude Code runs on that model.
Does this replace my Claude subscription?
While the variables are set, Claude Code bills to your Inferray key and your Claude plan's limits don't apply. Unset them and it goes back to the subscription.
How far does a Token Plan go in Claude Code?
The $20 Solo plan carries $60 of usage at list price: roughly 96M tokens of Claude Sonnet 5.5 coding-agent traffic, or 56M on Kimi K3, with no 5-hour or weekly windows.
Which Claude models are not on Token Plans?
Claude Fable 5.1 and Claude Fable 5. They stay on pay-as-you-go.

Keep reading