An open-source coding agent that reads your project, edits files and runs tests from your terminal, desktop, browser or editor.
MiniMax-AI/minimax-code
An open-source coding agent for the terminal that reads, edits, and tests code, works with MiniMax models or your own compatible API.
Open-source alternative to:Claude Code
- Stars
- 2,185
- Forks
- 285
- Open issues
- 162
- Last commit
- 24 hours ago
What is it?
MiniMax Code (MCode) is a command-line coding agent. You describe a task in plain language, and it reads files, inspects diffs, runs shell commands and tests, and makes changes in your project. It can be used interactively in a terminal UI, run headless in scripts and CI with `mcode exec`, or connect to editors that support the Agent Client Protocol (ACP).
Models can come from a MiniMax account or from your own provider. Custom providers can use OpenAI-compatible or Anthropic-compatible API formats, including self-hosted or local endpoints. Sessions can be resumed, tasks can be planned, subagents can be used, and the agent can be extended with plugins and skills. Permissions and sandboxing control which tool actions run.
The repository also includes a pocket pet example that shows a prompt turning into a small browser app, and a TypeScript SDK (`@minimax-ai/code-sdk`) for driving `mcode exec` from Node.js code.
Key features
- 01Reads files, inspects diffs, and runs shell commands and tests in your project.
- 02Supports MiniMax accounts and custom providers with OpenAI- or Anthropic-compatible APIs.
- 03Offers an interactive terminal UI, a headless `mcode exec` mode, and ACP support for editors.
- 04Resumes previous sessions and lets you plan tasks and use subagents.
- 05Controls tool execution with permission modes and sandboxing.
- 06Provides a TypeScript SDK for driving the CLI from Node.js.
Use cases
- Fixing a failing test or implementing a small feature in a local repository from the terminal.
- Running coding tasks in shell scripts, batch jobs, or CI pipelines via `mcode exec`.
- Using a self-hosted or local model through an OpenAI- or Anthropic-compatible endpoint.
- Connecting a compatible editor to a coding agent through ACP.
In collections
Topics
FAQ
- What is minimax-code?
- An open-source coding agent for the terminal that reads, edits, and tests code, works with MiniMax models or your own compatible API. MiniMax Code (MCode) is a command-line coding agent. You describe a task in plain language, and it reads files, inspects diffs, runs shell commands and tests, and makes changes in your project. It can be used interactively in a terminal UI, run headless in scripts and CI with `mcode exec`, or connect to editors that support the Agent Client Protocol (ACP).
- Is minimax-code free to use? What license does it have?
- minimax-code is open source under the MIT license. Check the license terms before using it in commercial products.
- Is minimax-code still maintained?
- Actively maintained. The last commit to minimax-code was on Nov 6, 2026.
- What can I use minimax-code for?
- Fixing a failing test or implementing a small feature in a local repository from the terminal. Running coding tasks in shell scripts, batch jobs, or CI pipelines via `mcode exec`. Using a self-hosted or local model through an OpenAI- or Anthropic-compatible endpoint. Connecting a compatible editor to a coding agent through ACP.
- Where can I get minimax-code?
- The source code and installation instructions are on GitHub: https://github.com/MiniMax-AI/minimax-code
Summary generated by AI from the project's README. GitHub stats refresh daily.
Related projects
A lightweight terminal coding assistant with a Claude Code-like tool loop and TUI, built as a small codebase for learning and experimentation.
A terminal and desktop coding agent runtime that keeps goals, evidence and verification outside the chat history, built around a cognitive execution layer called CVM.
A local-first, evidence-first AI coding terminal that connects LLMs to real project files, tools, permissions, verification and context.
An open-source AI coding agent that runs in your terminal, with companion desktop, web, editor, and chat interfaces.
Pi, the AI coding agent, compiled ahead of time to native code so it starts faster and uses less CPU than Pi on Bun or Node.