Blog5 min read

Claude Code with other models: DeepSeek, GLM and Kimi

Run Claude Code on DeepSeek, GLM or Kimi through one Anthropic-compatible endpoint. The two setups, the exact commands, the model IDs and what a turn costs.

Contents

Claude Code runs on other models when you point it at an endpoint that speaks Anthropic’s Messages API. SolCard Inference is one: its API answers /v1/messages, and behind it are models from DeepSeek, GLM and Kimi.

There are two ways to set it up:

Two environment variablesOne-sentence install
What it doesSends the whole session to SolCard InferenceAdds our models next to your Claude models
Your Claude modelsUnavailable until you unset the variablesStill there, on your own Claude plan
Installs anythingNoA small local proxy

The models you can pick

USD per 1M tokens, as the API’s model list returned them on November 17, 2026.

Model IDWhat it isInputCached inputOutput
solcard-inference-fast-standardDeepSeek V4.1 Flash$0.345$0.0575$1.38
solcard-inference-large-standardGLM-5.3$1.61$0.299$5.06
solcard-inference-pro-standardKimi K3.1 Pro$2.30$0.23$11.50
solcard-inference-fastBuilt on DeepSeek V4.1 Flash, refusal training removed$1.25$0.125$2.50
solcard-inference-largeBuilt on GLM-5.3, refusal training removed$3.75$0.375$6.25

The three Standard models are the originals as their makers release them. solcard-inference-fast and solcard-inference-large are builds with the refusal training removed, for work a stock model declines: security research, malware analysis for defense, red-team test data.

Setup 1: two environment variables

First get a key: create an account, open API keys, and create one. It starts with sk-si- and is shown once.

Then start Claude Code with the endpoint, the key and a model:

ANTHROPIC_BASE_URL=https://api.solcardinference.ai \
ANTHROPIC_AUTH_TOKEN=sk-si-... \
claude --model solcard-inference-fast-standard
  • No /v1 on the URL. Claude Code adds /v1/messages itself.
  • Swap the model ID for any row in the table above.

We ran this on November 17, 2026 with each of the five models. On each, Claude Code read a file with its Read tool and answered from it.

Expect one log line: [claude-code:unrecognized_model]. Claude Code prints it because the model name isn’t on its built-in list. The session works.

This replaces Claude for that session. Anthropic’s gateway guide says your requests then “use a gateway credential variable rather than a saved claude.ai login.” To go back:

unset ANTHROPIC_BASE_URL ANTHROPIC_AUTH_TOKEN

Point Claude Code at SolCard Inference with two environment variables covers making it permanent, the settings.json form and what stops working.

Setup 2: keep Claude, add other models

Paste this into Claude Code:

Add SolCard Inference to my models: solcardinference.ai/install

Claude Code reads that page, asks before it changes anything, and installs a small local proxy. Requests for your Claude models still go to Anthropic on your own plan. Requests for ours go to SolCard Inference. After a restart, /model lists both. The install guide shows each step and how to remove it.

Pick this one if you want Claude for some turns and a cheaper or less restricted model for others.

What a turn costs

Claude Code resends the conversation every turn, so most input is read from the prompt cache at a lower rate. Take a turn that sends 80,000 tokens, 75,000 of them cached, and writes 1,500:

ModelCached inputNew inputOutputTurn
DeepSeek V4.1 Flash (-fast-standard)$0.0043$0.0017$0.0021about $0.008
GLM-5.3 (-large-standard)$0.0224$0.0081$0.0076about $0.04
Kimi K3.1 Pro (-pro-standard)$0.0173$0.0115$0.0173about $0.05
solcard-inference-fast$0.0094$0.0063$0.0038about $0.02
solcard-inference-large$0.0281$0.0188$0.0094about $0.06

How much is cached varies. The first turn of a session has nothing cached, and in our run the first turn on -fast-standard and -pro-standard reported no cached tokens. The reply’s usage shows the real split, and your usage page lists every request with its cost.

Every request is paid from a prepaid balance. A new email sign-up may get $1 of free credit; after that you top up any amount, and the balance doesn’t expire. How billing works has the rest.

What to know before you switch

  • Claude Code is built for Claude. OpenRouter’s own Claude Code guide says the tool “is optimized for Anthropic models and may not work correctly with other providers” (source). The same caution applies here. File reads worked on five models in our run; long agent sessions may behave differently from Claude.
  • Text only. Our models don’t take image input, so pasting a screenshot won’t work.
  • GLM-5.3 always reasons, so its turns are slower and its output count includes reasoning tokens.
  • Some Claude-only features stop while a gateway is set. Anthropic’s guide says Remote Control “is also disabled while ANTHROPIC_BASE_URL points at a non-Anthropic host.”
  • Output is capped at 32,768 tokens per request.

FAQ

Can Claude Code use DeepSeek? Yes. Set the two variables above and pass --model solcard-inference-fast-standard, which is DeepSeek V4.1 Flash.

Can Claude Code use GLM? Yes. --model solcard-inference-large-standard is GLM-5.3. The GLM API guide covers the GLM models.

Does this need a Claude subscription? Not for setup 1: the session bills your SolCard Inference balance, not Anthropic. Setup 2 keeps using your Claude plan for Claude models.

Is it cheaper than Claude? It depends on the model and your usage, and we don’t publish a comparison. The table above gives the cost of one turn on each model so you can set it against what you pay now.

Are my prompts stored? No. Prompts and replies are not logged or stored on any model. Keeps nothing explains how.

Bring the prompt that got refused.

Private. No refusals. In the app, or in the tools you already use.

Pay in crypto. No KYC.