- Claude Code
- Codex CLI
- OpenCode
- Grok CLI
- Hermes Agent
- Pi
Before you begin
Make sure you have:- Node.js 18 or newer, with
npxavailable in your terminal - A valid MiniMax API Key
- Network access to npm, MiniMax services, and the tools’ official download sources
How to install Node.js
How to install Node.js
Visit the Node.js website, then download and install the current LTS version.When installation finishes, reopen your terminal and run:If both commands show a version number, the installation was successful.
Bring MiniMax into your coding workflow
1
Get an API Key
Token Plan keys (
sk-cp-...) and pay-as-you-go keys (sk-api-...) use separate quotas. The wizard accepts both and asks you to select the key type.2
Let the wizard handle setup
PATH, a second multi-select asks which tools to install. Then choose the service region and API Key type, and paste your key.After confirmation, the wizard verifies the key, then shows and runs the official package or installer script. It checks each installed tool with --version before writing the MiniMax configuration. If installation fails, you can skip installation and continue with configuration.3
Return to your usual workflow
After setup succeeds, start the selected tool, such as
claude, codex, or opencode. MiniMax M3 is now its default model.View installer sources and commands
View installer sources and commands
- macOS / Linux
- Windows
Claude CodeCodex CLIGrok CLIOpenCodePiFor Hermes Agent, mmx runs the non-interactive core CLI stages from the official installer and skips optional flows such as
setup and gateway.Bring setup into your scripts
Passing any command option switches the setup command to non-interactive mode. Non-interactive mode only writes configuration and does not install tools. You must specify the tools, API Key, and service region:--dry-run does not make network requests, install tools, or write files.
Available models are
MiniMax-M3, MiniMax-M2.7, and MiniMax-M2.7-highspeed.
See which files the wizard changes
View configuration file paths
View configuration file paths
- Keeps settings unrelated to MiniMax
- Creates a timestamped
.bakbackup before changing an existing file - Restricts configuration files to the current user, except on Windows
- Restores files changed during the current run if a later write fails
Setup updates the MiniMax provider for each selected tool and changes its default model to the model you selected. Other providers and unrelated settings are preserved.
If something goes wrong
The agent setup command is missing
The agent setup command is missing
Make sure Node.js 18 or newer is installed, then run
npx -y mmx-cli@latest agent setup again. If a local mmx command is outdated, you can use this npx command instead.A tool shows not detected on PATH
A tool shows not detected on PATH
The wizard did not find the tool in the current terminal’s
PATH. In interactive mode, it checks the installer requirements and asks whether to install each eligible tool.The installation choices do not appear
The installation choices do not appear
The install list is skipped when the tool is already present, the command is running non-interactively, or the current environment does not meet the installer requirements. The wizard lists missing commands or unsupported architectures; Pi also requires Node.js 22.19 or newer.
Installation fails
Installation fails
The wizard shows the command and error. For npm permission errors with Codex, OpenCode, or Pi, see the npm documentation. You can also skip installation and continue writing the configuration.
The tool still connects to another service
The tool still connects to another service
Check for environment variables that override configuration files. Examples include
ANTHROPIC_AUTH_TOKEN and ANTHROPIC_BASE_URL for Claude Code, or OPENAI_API_KEY and OPENAI_BASE_URL for Grok CLI.Codex already uses a custom model catalog
Codex already uses a custom model catalog
If
model_catalog_json in ~/.codex/config.toml points to a custom file, the wizard stops without changing any files. Keep the catalog and follow the manual Codex setup, or remove that setting and try again.