Docs · Guide

Use DeepSeek, Kimi, GLM, Qwen or any model in Claude Code

Claude Code speaks one API, Anthropic Messages. packinggoods puts a gateway on your computer that speaks it for every provider you add, and points Claude Code at it. You pick the model in packinggoods or in Claude Code’s /model.

The gateway runs at 127.0.0.1:3425. It speaks the Anthropic, OpenAI and Gemini APIs. When a provider speaks Anthropic Messages itself, as DeepSeek, Kimi, Zhipu GLM, MiniMax and Qwen do, Claude Code’s request is passed on as it is. When it doesn’t, as with a GPT model from your ChatGPT plan, packinggoods translates the request and the reply, streaming and tool calls included.

Chinese models

DeepSeek, Kimi and Kimi Code, Zhipu GLM (pay as you go or Coding Plan), Z.ai, MiniMax and Qwen, each with its China endpoint where it has one.

Subscriptions

The models of a ChatGPT, Copilot or Antigravity account you sign in to in packinggoods.

Anything else

Any OpenAI- or Anthropic-compatible URL and key, Ollama and LM Studio.

Set it up

  1. Add the providerIn packinggoods’s Providers tab, press + Add provider, pick DeepSeek, Kimi, Zhipu GLM, MiniMax or Qwen, paste your API key and save. packinggoods asks the vendor which models it serves.
  2. Pick the model for Claude CodeIn the Agents tab, click the model on the Claude Code row and choose one, such as deepseek/deepseek-v4-pro. packinggoods writes it into ~/.claude/settings.json.
  3. Start a new sessionClaude Code reads its settings when it starts. A session already open keeps the model it started with.

The same from a terminal:

Terminal
packinggoods provider add deepseek sk-…
packinggoods models                       # every model, as provider/model
packinggoods claude deepseek/deepseek-v4-pro

Model ids are packinggoods’s, provider/model. Inside Claude Code, /model lists packinggoods’s models too, marked “via packinggoods”, so you can switch there.

Zhipu GLM Coding Plan. When you add Zhipu GLM or Z.ai, pick the plan your key is for. A Coding Plan key has its own endpoints, and sent to the pay-as-you-go one it is told it has no balance.
Keep claude on your own account. Leave Claude Code unconnected in packinggoods and run claude-packinggoods when you want it on another model. It starts the same claude with packinggoods’s settings for that session only, and settings.json is not rewritten. See Get started.

How Opus, Sonnet and Haiku map

Claude Code asks for models by tier: opus, sonnet, haiku and fable. Its own small jobs, such as a session’s title and Explore subagents, go to the haiku tier. packinggoods writes a model into each tier’s variable:

TierVariable in envBy default
opusANTHROPIC_DEFAULT_OPUS_MODELThe main model
sonnetANTHROPIC_DEFAULT_SONNET_MODELThe main model
haikuANTHROPIC_DEFAULT_HAIKU_MODEL, ANTHROPIC_SMALL_FAST_MODELThe main model; on a Claude model, the Haiku its provider serves
fableANTHROPIC_DEFAULT_FABLE_MODELLeft unset unless the main model is a Fable model

So with DeepSeek as the main model, every tier runs on DeepSeek. To give a tier a model of its own, say a cheaper one for haiku, set it on the Claude Code row in packinggoods, or from a terminal:

Terminal
packinggoods claude haiku deepseek/deepseek-v4-flash   # one tier on its own model
packinggoods claude haiku ""                           # back to the main model

A tier takes a model through packinggoods, and only once the main model is one.

What changes in settings.json

Claude Code reads its endpoint from the env block of ~/.claude/settings.json. packinggoods changes only the keys it needs there. Comments and your other settings stay.

KeySet to
env.ANTHROPIC_BASE_URLThe gateway’s address
env.ANTHROPIC_AUTH_TOKENThe gateway’s key (not your vendor key; that stays in packinggoods)
modelThe main model
env.ANTHROPIC_DEFAULT_*_MODEL, env.ANTHROPIC_SMALL_FAST_MODELThe tiers, as above
env.CLAUDE_CODE_MAX_OUTPUT_TOKENSThe longest reply the model can write. Claude Code asks a model it doesn’t know for 32000 at most
env.CLAUDE_CODE_MAX_CONTEXT_TOKENS, env.CLAUDE_CODE_AUTO_COMPACT_WINDOWWhere needed, the model’s window and where to compact. Claude Code takes a model it doesn’t know for 200K. A 1M model is marked [1m]
modelPickerpackinggoods’s models, for /model. A picker you wrote yourself is left alone

A value you set yourself, such as your own output limit, stays yours. ANTHROPIC_MODEL is taken out, because it would outrank a pick in /model. A cloud switch in that file, such as CLAUDE_CODE_USE_BEDROCK, is set aside while Claude Code runs through packinggoods and put back afterwards.

Going back to Claude’s own models

Pick one of Claude Code’s own models on its row, or run packinggoods claude default. packinggoods takes out what it wrote and puts back what it replaced the first time: your own base URL, token and tier models. You don’t edit the file by hand.

GPT models from a ChatGPT or Copilot subscription

Sign in to the subscription in packinggoods: + Add provider, then the ChatGPT or Copilot tile. packinggoods opens the vendor’s own sign-in page. The account’s models then show in Claude Code’s picker as codex/… or copilot/….

Terminal
packinggoods accounts add codex      # sign in to a ChatGPT account
packinggoods claude codex/gpt-5.5

Claude Code still speaks Anthropic Messages. packinggoods translates each request for the GPT model and the reply back, tool calls included. Antigravity accounts work the same way, as antigravity/…. For a ChatGPT plan in full, tiers, effort and limits included, see ChatGPT in Claude Code.

Routing over several keys

With several keys or accounts, packinggoods can spread Claude Code’s requests over them and move on when one runs out.

The routing modes are in Get started.

By provider: DeepSeek · Kimi and Kimi Code · GLM Coding Plan · Volcengine Ark · Tencent Cloud · Baidu Qianfan · SiliconFlow · ModelScope · Huawei Cloud MaaS · Xiaomi MiMo · StepFun · LongCat · Qwen · MiniMax · Anthropic · OpenAI · Gemini · Grok · Mistral · OpenRouter · GitHub Copilot · Ollama

FAQ

Do I set ANTHROPIC_BASE_URL myself?

No. packinggoods writes it into Claude Code’s settings.json. If CLAUDE_CODE_USE_BEDROCK, CLAUDE_CODE_USE_VERTEX or another cloud switch is set in your shell’s environment, Claude Code sends its requests to that cloud and not to packinggoods; packinggoods tells you so, and you take it out of your shell profile.

Can I switch models inside Claude Code?

Yes. While Claude Code runs through packinggoods, /model lists packinggoods’s models and routing groups, and a pick there persists.

Which Chinese models can Claude Code use?

Any that a provider you add serves. packinggoods has presets for DeepSeek, Kimi, Kimi Code, Zhipu GLM, Z.ai, MiniMax and Qwen, with China endpoints for Kimi, Kimi Code, MiniMax and Qwen. Others can be added as a custom URL.

Does packinggoods have to be running?

Yes, while Claude Code is on a model through packinggoods: the gateway runs with the app. packinggoods daemon install keeps it running as a service with no window.

Can I keep my claude.ai sign-in?

The Claude Code row has a sign-in setting. With packinggoods’s key, the default, Claude Code is signed out of claude.ai while it runs through packinggoods, so the plan limits in /usage, connectors, voice and /teleport are off. With claude.ai it keeps its sign-in, which packinggoods never passes on. Remote Control and ultrareview stay off either way.

Can I use my Claude subscription and DeepSeek side by side?

Yes. Sign in to Claude in packinggoods and its models are claude/… in the same picker. Requests on a Claude subscription run through the Claude Code installed on your computer.

How do I undo it?

Pick one of Claude Code’s own models in packinggoods, or run packinggoods claude default. What packinggoods wrote comes out, and what it replaced comes back.

Using Codex too? See Use any model in Codex. On Claude Desktop? See Claude Desktop on any model. Stuck? Ask on Discord.