Xiaomi's terminal AI coding agent, a fork of OpenCode with persistent memory, subagents and autonomous goal loops
open sourceMITfree
Forked from OpenCode. Xiaomi built MiMoCode on OpenCode to add persistent memory, context management, subagents and autonomous loops.
MiMoCode is Xiaomi's terminal-native AI coding assistant: it reads and writes code, runs commands, manages Git and keeps a persistent memory of your project across sessions. It's a fork of OpenCode that keeps OpenCode's providers, TUI, LSP, MCP and plugins, and adds intelligent context management, subagent orchestration, goal-driven autonomous loops, Dynamic Workflows and self-improvement. It connects to any mainstream LLM provider: Xiaomi's MiMo platform, a ChatGPT Plus or Pro login through Codex, credentials imported from Claude Code, catalog providers by API key, or any OpenAI-compatible API. It installs with a script on macOS, Linux and Windows, can run as a server for a remote host, and is MIT licensed.
Ways to install
Package managers
Problems it solves
- I want an open source terminal coding agent that remembers my project between sessions
- I need a coding agent that can use my ChatGPT subscription
- I want a coding agent that can run long autonomous tasks toward a goal
Features
- Reads and writes code, runs commands and manages Git
- Persistent project memory across sessions
- Subagent orchestration and goal-driven autonomous loops
- Dynamic Workflows
- OpenCode's providers, TUI, LSP, MCP and plugins
- Connects to MiMo, ChatGPT via Codex login, Claude Code credentials or any OpenAI-compatible API
- Server mode for remote hosts
Limitations
- It doesn't support macOS's built-in Terminal app; use iTerm2 or another terminal.2
Alternatives
The same job
These do what MiMoCode does.
- OpenCode The open source coding agent.
- Prime Agent Self-improving coding and research agent built on a persistent Python REPL
- Codex Lightweight coding agent that runs in your terminal
- Letta Build stateful agents with memory that can learn and improve over time
- Amp A coding agent and development environment built for the frontier
- Crush Glamourous agentic coding for all