MiniMax-AI/minimax-code
An open-source coding agent for your terminal, powered by MiniMax.
MiniMax Code (short: MCode) is a command-line program that takes a task written in plain English and does the coding work for you: it reads your project files, makes edits, runs tests, and keeps iterating until the task is done. You can use MiniMax's own AI models, or plug in any model that speaks the OpenAI- or Anthropic-compatible API formats.
What it actually does
- Edits and verifies code — reads files, shows diffs, runs shell commands and tests, with permission controls and sandboxing.
- Lets you choose the model — either a MiniMax account (Token Plan) or a custom provider via API key.
- Keeps work moving — resumes past sessions, plans tasks, uses subagents, and extends itself with plugins and built-in skills.
- Fits your workflow — runs interactively in a terminal UI, headlessly in scripts/CI, or through editors that support the Agent Client Protocol (ACP).
How you use it
| Entry point | Command | Best for |
|---|---|---|
| Interactive TUI | mcode [prompt] |
Exploring code, chatting, reviewing changes |
| Headless | mcode exec [prompt] |
Shell scripts, CI, batch jobs |
| ACP | mcode acp |
Editors and clients that support Agent Client Protocol |
| TypeScript SDK | @minimax-ai/code-sdk |
Driving mcode exec from Node.js code |
There's also a lightweight mode (mcode --mode lightweight) for simple Q&A — it sends a small prompt with no tool schemas, so it can't touch your files.
Getting started
- Install — run the official installer script (macOS/Linux/WSL or Windows PowerShell), or
npm install -g @minimax-ai/codeif you already have Node.js 22.19+, 24.2+, 25, or 26. Nosudoneeded. - Sign in or bring your own key —
mcode loginfor a MiniMax account, or setMCODE_PROVIDER_API_KEYand add a custom provider withmcode provider add. - Try the demo — clone the repo, run
node examples/pocket-pet/setup.mjs, and watch a blinking "pocket pet" become a working focus timer from two plain-language prompts. No hardware or frontend dependencies required.
Notable details
- Works in your own project —
cd /path/to/your/project && mcode, then describe the task. Usemcode init .to generate anAGENTS.mdguidance file. - Uninstall — the installer has no uninstall flag; you remove the install directory and the PATH line it added. User data (sessions, config) lives separately in
~/.minimaxand must be deleted manually if you want it gone. - Build from source — needs Git, Node.js 22.19+/24.2+/25/26, and pnpm 9.12.0; run
pnpm install --frozen-lockfile && pnpm build && pnpm mcode. - License — first-party code is MIT; third-party notices are listed separately.
- Scope — the published source covers the terminal TUI, headless CLI, and ACP, but not the desktop app (which is a separate download).
Where to get help
GitHub Issues for bugs/features, Discord for community chat, and a Feishu group for Chinese-language feedback. Security issues go to a private email address.
Related
- Project
- Project
- Project
- Project
- Project