Skip to main content
MiniMax Code CLI brings MiniMax Code into your terminal and code repositories. Use the interactive TUI for long-running work, or mcode exec for Shell and CI automation.

Choose an entry point

Requirements

Manual installation requires one of these Node.js versions:
  • Node.js 22.19.0 or later in the 22.x line;
  • Node.js 24, 25, or 26.
The one-command installer prepares a compatible Node.js runtime when needed. Alpine and other musl-based Linux distributions are not currently supported by the installer.

Install

Official installer

The installer installs the latest CLI without requiring sudo or administrator privileges:

npm

If a compatible Node.js is already installed:
Reopen your terminal and verify the command:

Sign in

For a mainland China account:
For a Global account:
Sign-in is completed in your browser. After returning to the terminal, run /status in the TUI to check your account, model, and runtime status. Sign out with:
To use a custom provider or MiniMax API key, configure a provider as described in Features and configuration.

Complete your first task

Open the project directory you want to work in:
You can submit the first task as part of startup:
MCode reads project rules, relevant implementation, and test entry points from the current workspace before making and verifying changes. Include the expected outcome, change boundaries, and validation method in your prompt whenever possible.When entering a repository for the first time, generate or update project instructions:
init analyzes the directory structure, project rules, and available scripts, then generates or updates AGENTS.md.

Continue an existing session

--session, --continue, and the compatibility alias --resume cannot be combined. In the TUI, use /sessions [query] to search and manage sessions.

First TUI actions

Run /help to see the complete command and shortcut list for the installed version. While a task runs, press Enter or use /steer <message> to guide the current response, and press Alt+Enter to queue a follow-up.

Next steps

Features and configuration

Learn about TUI, Headless, ACP, providers, plugins, and the complete command reference.

Troubleshooting

Troubleshoot installation, sign-in, configuration, automation output, sessions, and terminal compatibility.