Skip to main content
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.

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 neither sudo nor administrator privileges.
After installation, reopen your terminal and verify that the command is available:
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:
You can also run /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:
For a Global account, use:
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. 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:
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.

Continue an Existing Session

In the TUI, you can also use /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.