What Is MiMo Code?
MiMo Code is a terminal-native AI coding agent built by Xiaomi's MiMo team and open-sourced under the MIT license. It reads and writes code, runs shell commands, manages Git, and uses a persistent memory system to maintain project understanding across sessions. Designed for long-horizon automated programmingβtasks spanning dozens or hundreds of stepsβit builds on three pillars: computation, memory, and evolution.
β οΈ Independent guide. Not affiliated with Xiaomi or MiMo. See official GitHub for source code and docs.
AI Coding Agent Comparison
| Agent | License | Custom Models | Memory | MCP | GitHub Stars | Best For |
|---|---|---|---|---|---|---|
| MiMo Code | MIT | β Any OpenAI-compatible | β Persistent + Checkpoint | β Full | 6.4k+ | Long-horizon projects, multi-session work |
| Claude Code | Proprietary | β Anthropic only | β CLAUDE.md | β Full | β | Deep code understanding, Anthropic ecosystem |
| OpenCode | Apache 2.0 | β OpenAI-compatible | β οΈ Basic | β Partial | 6k+ | Lightweight, quick tasks, local models |
| Codex CLI | Apache 2.0 | β OpenAI + BYOK | β οΈ Session only | β Partial | 5k+ | OpenAI ecosystem, VS Code integration |
| Gemini CLI | Proprietary | β Google only | β οΈ Basic | β No | β | Google Cloud projects, Gemini models |
| Cline | Apache 2.0 | β Multi-provider | β Custom rules | β Full | 15k+ | VS Code users, multi-model switching |
View full agent directory with pricing, privacy & benchmark data β
MiMo Code Config Generator
Pick your OS, model provider, and preferences β get a ready-to-use install command and configuration.
Install Command
Environment Variables
First Prompt
Quick Troubleshooting
mimo: command not found
π§ npm install permission denied
π§ API key not working / 401 error
π§ Custom provider connection failed
π§ Windows Node.js version error
π§ Memory / checkpoint not updating
π§ Max Mode too expensive
π§ MCP server not detected
View all troubleshooting guides β
FAQ
What is MiMo Code?
MiMo Code is an open-source, terminal-native AI coding agent by Xiaomi MiMo team. It handles multi-step programming tasks with persistent memory and cross-session context.
MiMo Code vs Claude Code?
MiMo Code is open-source and supports custom models (DeepSeek, OpenRouter, local). Claude Code is proprietary, tied to Anthropic API, but has deeper Sonnet integration.
Full comparison β
Is it free?
The CLI tool is free and open-source. You pay for the model API you use. MiMo Token Plan starts at $6/month for hosted models.
Pricing details β
How do I install it?
npm install -g @mimo-ai/cli or curl -fsSL https://mimo.xiaomi.com/install.sh | bash. Requires Node.js 18+.
Full install guide β
Does it send my code to the cloud?
Telemetry is enabled by default. Set MIMOCODE_ENABLE_ANALYSIS=false to disable. With local models, code stays local. With cloud providers, context goes to the API.
Which model provider is best?
OpenRouter for flexibility (many models), DeepSeek for affordability, MiMo API for first-party support, local models for privacy.