Setup guide - Documented by MiniMax
Use MiniMax in Codex CLI
MiniMax documents a Codex setup that adds a custom model provider in ~/.codex/config.toml pointing at https://api.minimax.io/v1 with the Responses wire API, or a one-click mmx-cli wizard that writes the same config.
Last verified 4 steps3 official sources
Steps
- Step 1.
Option 1 (one-click setup wizard): run the wizard and select Codex. Codex CLI 0.146.0 or newer is recommended. The wizard configures ~/.codex/config.toml and ~/.codex/mmx-model-catalog.json. Close Codex and any editor that has ~/.codex/config.toml open first, then restart Codex after setup.
Terminalnpx -y mmx-cli@latest agent setup - Step 2.
Option 2 (manual): open ~/.codex/config.toml and add or update these entries, replacing <MINIMAX_API_KEY> with your key.
TOMLmodel = "MiniMax-M3.1-Flash-Preview" model_provider = "minimax" model_context_window = 524288 preferred_auth_method = "apikey" forced_login_method = "api" [model_providers.minimax] name = "MiniMax" base_url = "https://api.minimax.io/v1" experimental_bearer_token = "<MINIMAX_API_KEY>" wire_api = "responses" - Step 3.
Optional: to show the model and its reasoning levels in /model, add a model catalog line to ~/.codex/config.toml and create ~/.codex/model-catalogs/custom-catalog.json with the catalog JSON from the MiniMax guide (slug MiniMax-M3.1-Flash-Preview, supported_reasoning_levels low/medium/high/xhigh/max, context_window 524288).
TOMLmodel_catalog_json = "~/.codex/model-catalogs/custom-catalog.json" - Step 4.
Restart Codex to start using MiniMax-M3.1-Flash-Preview.
Caveats
- The guide is written for M Plan with a Subscription Key; MiniMax-M3.1-Flash-Preview is available only through M Plan and MiniMax Code for now. Pay-as-you-go users would need a different model id; MiniMax does not show that variant in the Codex guide.
- Do not add { "effort": "none" } to supported_reasoning_levels: MiniMax-M3.1-Flash-Preview always thinks, so Codex sends reasoning: {"effort": "none"} and the API returns 400.
- MiniMax's page describes Codex as the desktop app but also references Codex CLI 0.146.0+ and ~/.codex/config.toml, which the CLI shares.
- The API key is stored inline via experimental_bearer_token as documented by MiniMax; no env var is used in this guide.
More setup guides
Same tool, other providers
Related reading
- MiniMax M2.5 and M2.7 Retirement: How to Move to M3 Before November 18MiniMax closes M2.5 and M2.7 to new users on October 19, 2026 and retires them on November 18. Which model id to switch to, what it costs, and the exact API change.
- MiniMax H3: Omni-Modal Video, Native Audio, Open WeightsMiniMax H3 turns text, image, video and audio into video with native stereo sound. API from 0.80 CNY per second at 2K, and open weights are on Hugging Face.
- MiniMax M2.5 for Developers: The Anthropic-Compatible Budget Frontier ModelMiniMax M2.5 hits 80.2% on SWE-bench Verified and plugs into the Anthropic SDK with two environment variables. Here is what you need to know before switching.
- Codex Training Setting Re-Enabled? Two Switches to CheckDevelopers report Codex model training turning itself back on. What OpenAI documents, the second "Include environments" switch most people miss, and a five-minute check.
- OpenAI Pando: The Git Backend Built for Codex-Scale PushesOpenAI built Pando, a Git-compatible backend, after Codex flooded its monorepo with pushes. What it changed, the trade-offs, and what it means for your agent fleet.
- T3 Code: Open-Source GUI for Claude Code and CodexT3 Code is a free, MIT-licensed desktop, web and mobile app that drives Claude Code, Codex, Cursor, OpenCode and more. What it is, how remote access works, and what to check first.
FAQ
How do I use MiniMax in Codex CLI?
MiniMax documents a Codex setup that adds a custom model provider in ~/.codex/config.toml pointing at https://api.minimax.io/v1 with the Responses wire API, or a one-click mmx-cli wizard that writes the same config.
Which MiniMax model ids work in Codex CLI?
The official docs read for this guide list MiniMax-M3.1-Flash-Preview, MiniMax-M3, MiniMax-M2.7, MiniMax-M2.7-highspeed, MiniMax-M2.5 and MiniMax-M2.5-highspeed. Requests go to https://api.minimax.io/v1.
Is this an official MiniMax and Codex CLI setup?
MiniMax documents this setup in its own docs. It was last checked against 3 official pages on October 17, 2026.
Sources
Last verified against 3 official pages.
- platform.minimax.iohttps://platform.minimax.io/docs/m-plan/codex.md
- platform.minimax.iohttps://platform.minimax.io/docs/api-reference/text-openai-api.md
- platform.minimax.iohttps://platform.minimax.io/docs/faq/models.md
Newsletter
New models, set up the day they ship
One email per week. New model releases, the coding tools that support them and how to wire them up.