MiniMax Code CLI brings MiniMax Code into your terminal and code repositories. This page walks you through installing the CLI, signing in, launching the interactive TUI, and completing your first task.After installation, reopen your terminal and verify that the command is available:You can also run For a Global account, use:Sign-in is completed in your browser. After returning to the terminal, run You can also submit a task when launching the CLI:When entering a repository for the first time, you can generate or update its project instructions:MCode reads the directory structure, project rules, relevant implementation, and available scripts before working toward your goal. When describing a task, include the expected outcome, change boundaries, and validation method whenever possible.In the TUI, you can also use
One-Command Installation
The installer reuses a compatible Node.js installation when available. If your system does not have a compatible version, it installs a self-contained runtime in your user directory. The entire process requires neithersudo nor administrator privileges.- macOS / Linux / WSL
- Windows
One-command installation supports macOS, Windows, common Linux distributions,
and WSL. Alpine and other musl-based Linux distributions are not currently
supported.
Update the CLI
After installing MCode, run the following command in your terminal to update it:/update in the TUI. Restart the current MCode process after the update completes.Sign In
Sign in before using MiniMax-hosted models or a Token Plan:/status in the TUI to check your account, model, and runtime status. To use a custom provider or API key, configure the model source with mcode provider.Start Your First Task
Open the project directory you want to work in, then launch the interactive TUI:Continue an Existing Session
/sessions [query] to search, resume, and manage sessions.Common Interactions
Common Slash Commands
Features
Explore the interactive TUI, Headless mode, ACP, providers, skills, MCP, and
plugins.
FAQ
Troubleshoot installation, sign-in, PATH, terminal compatibility, and
automation output.