MiniMax Code CLI brings MiniMax Code into your terminal and code repositories. Use the interactive TUI for long-running work, or Reopen your terminal and verify the command:For a Global account:Sign-in is completed in your browser. After returning to the terminal, run To use a custom provider or MiniMax API key, configure a provider as described in Features and configuration.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:
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.0or later in the 22.x line; - Node.js 24, 25, or 26.
Install
Official installer
The installer installs the latest CLI without requiringsudo or administrator privileges:- macOS / Linux / WSL
- Windows
npm
If a compatible Node.js is already installed:Sign in
For a mainland China account:/status in the TUI to check your account, model, and runtime status. Sign out with:Complete your first task
Open the project directory you want to work in: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.