MiniMax Code CLI is the terminal entry point for repositories, scripts, CI, and editor integrations. The three entry points share sessions, models, providers, plugins, and permission controls, while exposing different interaction boundaries.The TUI can read and write code and documentation, run terminal commands, inspect diffs, execute tests, and request permission before sensitive tool actions. Use Use The side conversation retains the current tool permissions, but tools that can modify data always require your explicit confirmation, including in Full access mode. Its composer shows the main task’s status so you can see when that task finishes or needs approval.For a MiniMax API key, set an environment variable and then save and select it. The default variable is Use Supported API formats are The MiniMax OAuth provider is managed with Use Install, enable, disable, or uninstall a plugin:When names collide, specify ACP stdin/stdout is reserved for protocol messages; logs and diagnostics go to stderr. Do not write natural language directly to the ACP process, and do not let a wrapper mix logs into stdout. The ACP host can handle permission prompts, questions, cancellation, model controls, and Plan capabilities.A generic editor Agent configuration looks like this:If the editor cannot find
Three ways to use the CLI
Interactive TUI
Understand and change a workspace
MCode uses the current workspace as context. It reads project rules, the directory structure, relevant implementation, and available scripts before acting.@ to reference workspace files or directories, and Ctrl+V to paste image or video files from the clipboard.Plan Mode and permission modes
Plan Mode controls whether the agent plans before execution. Permission mode controls how tool actions are handled. They are independent settings.The TUI picker provides Ask, Auto, and Full access. Use
/permission status to inspect the current mode. Headless does not support ask; use the TUI or ACP when a human must approve an action.Sessions, goals, and long-running work
Sessions support creation, search, resume, fork, rewind, rename, compaction, export, and copy. While a response is running, pressEnter or use /steer <message> to guide it, and press Alt+Enter to queue a follow-up.Goals keep one objective active across multiple turns:/goal edit to change the objective and /goal clear to remove it. Goal budgets accept positive integers with optional K or M suffixes; use budget=clear to remove the cap.Ask a side question while the main task runs
Starting in 0.3.2, use/btw [question] or /side [question] to open a temporary side conversation. It inherits context from the main conversation’s most recent committed boundary while the main task keeps running.Temporary side conversations do not appear in
/sessions or /resume. Switching to another Session automatically cleans them up. Shortcut availability depends on your terminal emulator and its configuration.Slash command reference
Type/ to open autocomplete. Contextual commands appear only when the relevant session or run state exists.Inspect status and quotas
Run/status in the TUI to inspect the running version, current directory, model, permissions, account and plan, instruction file sources, and Default/Plan mode, including pending transitions. Signed-in accounts also show available 5-hour and weekly quota summaries with remaining percentages and reset countdowns. Use /usage for detailed usage.The status panel wraps long paths and keeps local configuration visible while account details load or when the account request fails.Providers and models
The CLI supports MiniMax Token Plan, MiniMax API Key, and custom providers using compatible Anthropic or OpenAI API shapes.MiniMax credential source
MCODE_PROVIDER_API_KEY:--api-key-env <name> to select another variable. The CLI reads the variable but does not print the key.Add a custom provider
anthropic-messages, openai-completions, and openai-responses. Pass --model more than once to add multiple models; --use selects the first model as the default.Other operations:mcode login or /login, rather than provider test.Model references
Model references useprovider/model and can include a variant:/model [filter] in the TUI. In Headless mode, --model overrides only the current run and does not change global configuration.Plugins
Plugins come from an official marketplace or a local marketplace. List sources, installed plugins, and available plugins:@official or @local, or pass -m, --marketplace official|local. Add --json for scripts. mcode plugin marketplace upgrade refreshes all marketplace snapshots; the local source is the plugins directory under the data directory.ACP
Start the ACP stdio server:mcode, use the absolute path to the executable and restart the editor to refresh PATH.