Docs · Provider

MiniMax and the MiniMax Coding Plan in Claude Code, Codex, Gemini CLI and OpenCode

MiniMax serves an OpenAI-compatible Chat API and an Anthropic-compatible one, on a global site and a China site, for pay-as-you-go keys and Coding Plan keys alike. Add your key to packinggoods once, and Claude Code, Codex, Gemini CLI, OpenCode and every other agent you connect can use models such as MiniMax-M3 and MiniMax-M2.7 through packinggoods’s gateway at 127.0.0.1:3425.

Add MiniMax

  1. Get a keyCreate one at platform.minimax.io, or platform.minimaxi.com for the China site. A Coding Plan key starts with sk-cp-.
  2. Add the providerIn packinggoods’s Providers tab, press + Add provider, pick MiniMax or MiniMax (China), paste the key and save. A pay-as-you-go key and a Coding Plan key go in the same way.
  3. Pick it for an agentIn the Agents tab, click the model on the agent’s row and choose a MiniMax model.
Terminal
packinggoods provider add minimax sk-…        # platform.minimax.io
packinggoods provider add minimax-cn sk-cp-…  # Coding Plan, platform.minimaxi.com

Plans and endpoints

PresetSiteChat CompletionsAnthropic Messages
MiniMax minimaxplatform.minimax.iohttps://api.minimax.io/v1https://api.minimax.io/anthropic
MiniMax (China) minimax-cnplatform.minimaxi.comhttps://api.minimaxi.com/v1https://api.minimaxi.com/anthropic

The Coding Plan uses the same endpoints as pay as you go; the key decides which one a request is billed to. A global key and a China key are different accounts, so each goes under its own site’s preset.

In each agent

Pick the model on an agent’s row in the Agents tab, or from a terminal. Each guide says what packinggoods writes in that agent’s config and how to switch back.

Terminal
packinggoods claude minimax/MiniMax-M3
packinggoods codex minimax/MiniMax-M3
packinggoods gemini model minimax/MiniMax-M2.7
packinggoods opencode minimax/MiniMax-M3

MiniMax Code is one of the agents packinggoods connects too: its row takes MiniMax’s models or any other vendor’s.

Thinking and effort

Coding Plan windows and usage

FAQ

How do I use MiniMax M2.7 or M3 in Claude Code?

Add your MiniMax key in packinggoods (Providers, Add provider, MiniMax or MiniMax (China)), then pick a model such as MiniMax-M3 on Claude Code’s row, or run packinggoods claude minimax/MiniMax-M3. packinggoods writes Claude Code’s settings.json and passes its requests to MiniMax’s Anthropic endpoint, https://api.minimax.io/anthropic.

How do I use the MiniMax Coding Plan?

Add the Coding Plan key (sk-cp-…) to the MiniMax preset of the site you bought it on, the same as a pay-as-you-go key. packinggoods tells the two apart by what MiniMax says about the key, and shows a Coding Plan key’s usage windows on its row.

Can Codex use MiniMax?

Yes. MiniMax serves Chat Completions and Anthropic Messages but not Responses, so packinggoods translates Codex’s requests and MiniMax’s replies. Pick the model on Codex’s row or run packinggoods codex minimax/MiniMax-M3; it shows in Codex’s /model list.

Can MiniMax Code use other models?

Yes. MiniMax Code is one of the agents packinggoods connects, so its row in the Agents tab takes any model you have added, MiniMax’s or another vendor’s.

Why does MiniMax’s thinking show up in the text?

MiniMax’s Chat API puts a model’s thinking in the reply text between <think> tags. packinggoods takes it out and gives it to the agent as thinking, then puts it back on the next turns, where MiniMax wants it.

Can I use several MiniMax keys?

Yes. Add them all to the MiniMax provider and tick each one. packinggoods spreads requests over them, and weighs and rests Coding Plan keys by their windows, so a key that has used up its window sits out until it resets.

Every agent: Models in Claude Code, Models in Codex, Models in Gemini CLI, Models in OpenCode. Ask on Discord if you get stuck.