This page describes the configuration users can control from the CLI. Use The default region is mainland China; pass Use Supported API formats are:Pass Supported names are Install and manage them with:When names collide, append In the TUI, run
/status, /doctor, and /model in the TUI to inspect the effective state, or run a command with --help.Configuration layers
Command-line overrides apply only to the current run and do not silently rewrite global configuration.
Data directory
The default data root is~/.minimax. It stores configuration, sessions, logs, plugins, skills, and other runtime data. Choose another directory with:MAVIS_DATA_DIR is a compatibility fallback; MINIMAX_DATA_DIR wins when both are set. The configuration file is:Runtime settings
Models can use
provider/model#variant. Use /model [filter] in the TUI or --model for a one-run override.Context capacity and status line
New sessions inherit the selected model’s context capacity. Starting with 0.4.12, the default status line shows the known total capacity, such asContext 1M or Context 512K, until valid usage is available. It then switches to the remaining percentage, such as Context 80% left, without showing both indicators. Shorter labels retain Ctx when space is limited.If you already customized the status line, run /statusline and enable context-window, or restore the default configuration. This item shows total capacity; context-remaining shows the remaining percentage. Explicitly configured items can both be enabled together and do not follow the default automatic switching rule. When the current session’s capacity is unavailable, the capacity item is hidden instead of displaying another session’s value.Sign-in and MiniMax credentials
--region global for a Global account.Running mcode logout or /logout in the TUI clears the local sign-in state, prints a complete browser sign-out link, and tries to open the page for the current account region and environment. On a remote or headless machine, copy the link from the terminal into your own browser. Command completion does not wait for the browser or page result.When using Token Plan, the CLI checks the managed login. When using an API key, set the variable first:--api-key-env <name> to select another variable. The CLI reads the key but does not print it.Custom providers
Adding a provider requires at least one model:anthropic-messagesopenai-completionsopenai-responses
--model more than once to add multiple models. --use selects the first model as the default. Manage the MiniMax OAuth provider with mcode login, not provider test.Proxy
The CLI supports these variables and lowercase variants:HTTP_PROXY, HTTPS_PROXY, ALL_PROXY, and NO_PROXY. The CLI always bypasses localhost, 127.0.0.1, and ::1 for login callbacks and local services.Skills and MCP
In the TUI:/skills searches available skills and /mcp searches MCP configuration. Available entries depend on the data directory, project, and host. Run /doctor to inspect configuration and /status to inspect runtime state.Starting with 0.4.5, models that support web search use a built-in search tool without requiring a separate search MCP server. User-configured MCP servers are unaffected.Plugins
Plugins come from an official or local marketplace:@official or @local, or pass -m, --marketplace official|local. Add --json for scripts. The local source is the plugins directory under the data directory.Configuration checks
/doctor for configuration checks, /status for account and model state, and /model for available models. Confirm that minimaxModelSource matches the login or API-key configuration.