Docs · Guide

Use DeepSeek, Kimi, GLM, Claude or any model in Codex

Codex speaks one API, OpenAI Responses. packinggoods puts a gateway on your computer that speaks it for every provider you add, and writes Codex’s config.toml for you. The models then show in Codex’s /model, with their reasoning efforts.

The gateway runs at 127.0.0.1:3425. When a provider serves the Responses API itself, as DeepSeek and the Zhipu GLM Coding Plan do, Codex’s request is passed on as it is. When it serves only Chat Completions or Anthropic Messages, as Kimi, MiniMax and Qwen do, or a Claude subscription, 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.

Claude

Your Claude subscription’s models, or an Anthropic key’s.

Anything else

Any OpenAI- or Anthropic-compatible URL and key, Copilot and Antigravity accounts, 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 CodexIn the Agents tab, click the model on the Codex row and choose one, such as deepseek/deepseek-v4-pro. The effort slider under the list sets its reasoning effort. packinggoods writes both into ~/.codex/config.toml.
  3. Restart CodexCodex builds its model list when it starts. Restart the Codex app, and open new codex sessions, after a switch.

The same from a terminal:

Terminal
packinggoods provider add deepseek sk-…
packinggoods models                        # every model, as provider/model
packinggoods codex deepseek/deepseek-v4-pro
packinggoods codex effort high
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.

The models in Codex’s /model

packinggoods’s models are listed in Codex’s /model beside its own, so you can switch there too. Each one carries what Codex needs to run it: its reasoning efforts and default effort, its context window and the base instructions Codex sends with it.

How they get there depends on how Codex is signed in:

What changes in config.toml

packinggoods changes only the keys it needs in ~/.codex/config.toml. Comments, ordering and your other settings stay.

KeySet to
modelThe model you picked
model_reasoning_effortThe effort, when you set one
openai_base_urlThe gateway’s address. A base URL of your own stays
model_provider"packinggoods", when packinggoods is the provider
model_catalog_jsonThe path of the catalog file, packinggoods-models.json, when packinggoods is the provider
[model_providers.pkgood]name, base_url (the gateway’s /v1), wire_api = "responses", and the gateway’s key. Your vendor keys stay in packinggoods
~/.codex/config.toml
model = "deepseek/deepseek-v4-pro"
model_provider = "pkgood"
model_catalog_json = "/Users/you/.codex/packinggoods-models.json"

[model_providers.pkgood]
name = "packinggoods"
base_url = "http://127.0.0.1:3425/v1"
wire_api = "responses"

That is the shape when packinggoods is the provider; the table also carries the gateway’s key and a header. Signed in to ChatGPT, only openai_base_url and model are set at the top. The [model_providers.pkgood] table stays once written. A Codex thread keeps the provider it was started on, and a thread started on packinggoods can’t be opened again without it.

Going back to OpenAI’s models

Pick one of Codex’s own models on its row, or run packinggoods codex default. packinggoods takes model_provider, model_catalog_json and the base URL back out and puts back the provider and model you had. A provider of your own at the top stays. Threads started on packinggoods are moved back to the provider Codex is on, so Codex lists them, and a copy is kept in packinggoods’s trash.

Claude in Codex

Sign in to your Claude subscription in packinggoods: + Add provider, then the Claude tile. Its models are claude/… in Codex’s picker. packinggoods translates Codex’s Responses requests into Anthropic Messages and the replies back.

Terminal
packinggoods accounts add claude     # sign in to a Claude account
packinggoods models | grep '^claude/'
packinggoods codex claude/…

Requests on a Claude subscription run through the Claude Code installed on your computer, so keep it installed. An Anthropic API key works too: add Anthropic as a vendor and pick an anthropic/… model.

Routing over several keys

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 write [model_providers] myself?

No. packinggoods writes Codex’s config.toml when you pick a model. You don’t export OPENAI_BASE_URL either.

Does my ChatGPT sign-in still work?

Yes. Signed in to ChatGPT, Codex keeps its own provider and sign-in. Its own models go to OpenAI on your account, and packinggoods’s are added beside them.

I picked a model, but Codex’s /model doesn’t show it.

Codex reads its model list when it starts. Restart the Codex app and open a new codex session.

Can I set the reasoning effort?

Yes, on the Codex row’s effort slider, with packinggoods codex effort high, or in Codex’s /model, which lists each model’s efforts.

Which Chinese models can Codex use?

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

Does packinggoods have to be running?

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

How do I undo it?

Pick one of Codex’s own models in packinggoods, or run packinggoods codex default. packinggoods’s keys come out, and your provider and model come back.

Using Claude Code too? See Use any model in Claude Code. Stuck? Ask on Discord.