MiMo-Code: Xiaomi's answer to Claude Code
What MiMo-Code actually is: Xiaomi's MIT-licensed terminal coding agent, forked from OpenCode. Read the self-reported benchmark claims before you switch.
What is MiMo-Code?
MiMo-Code is a terminal coding agent built by Xiaomi's MiMo team and released as open source in June 2026 under the MIT license. Xiaomi's launch write-up, dated 10 June 2026, already describes it as open-sourced. It runs as a CLI (command line interface) tool in your shell. It reads and edits files in a project, runs shell commands, drives git, and keeps notes about the codebase between sessions.
The shape is the same as Claude Code. You describe a task in plain language, the agent proposes edits and commands, and you approve them. Two differences matter. The source is open, so you can read exactly what the agent sends to the model. And the model is a separate choice from the agent, so the same harness can point at Xiaomi's models, at an OpenAI-compatible endpoint, or at a model you host yourself.
The repository is called MiMo-Code and the command it installs is mimo. Both names appear in the documentation, so a search for either one finds the same tool.
Where MiMo-Code came from, and why that matters
MiMo-Code is a fork of OpenCode, the open-source terminal agent from the sst project. The LICENSE file keeps the original Copyright (c) 2025 opencode line, and the README carries a short section on the relationship. There is an open issue on the repository asking Xiaomi to credit the OpenCode contributors more fully than a preserved license line does.
Knowing this explains something that otherwise looks impossible. A project first released in June 2026 already ships a polished TUI (text user interface), a plugin system, a provider abstraction that speaks to many model APIs, MCP (model context protocol) support and LSP (language server protocol) integration. That work was not done in a few weeks. It arrived with the fork. What is new from Xiaomi is the memory layer and the tie to Xiaomi's own models.
If you have already run OpenCode on a VPS, the layout and the keybindings will feel familiar, because it is the same code underneath.
What "models and agents co-evolve" actually means
The repository tagline is "Where Models and Agents Co-Evolve". That phrase carries two separate claims, and only one of them is backed by published detail.
The first claim is about runtime, and it is documented. MiMo-Code keeps a persistent memory store for each project, backed by SQLite full-text search, alongside session state and task progress. Two slash commands drive it. /dream pulls durable knowledge out of recent sessions and writes it into project memory. /distill turns a repeated procedure into a reusable skill. Xiaomi's own engineering write-up says Dream triggers automatically every 7 days and Distill every 30 days, rather than after every session. So the agent's behaviour on your repository changes over time while the model file stays identical. That store fills itself, but it does not replace the instruction files you write by hand, and in a monorepo those are better kept as one small file per package rather than a single root file the agent loads whichever directory it is working in. Writing those files is the easy half, and when the agent sails past a rule you were sure was clear, the reasons an instruction gets ignored are more mechanical than mysterious. Memory distilled from past sessions is only one way to stop an agent relearning a project from scratch, and a tree-sitter map of the repository the agent can query over MCP attacks the same waste from the other end, by handing it the structure instead of making it read its way back to it.
The second claim is about training, and here you should be careful. Xiaomi describes the post-training of MiMo-V2.5 as a three-stage pipeline: supervised fine-tuning, then large-scale agentic reinforcement learning (RL), then on-policy distillation from several specialist teacher models into one student. Agentic RL means the model was trained on multi-step tool-calling episodes instead of single question-and-answer pairs. That is real, and it is why the model holds together across long tool sequences. What Xiaomi has not published is a training report showing the model optimised inside this specific harness, with the harness changing in response.
So read "co-evolve" as a statement of intent from a team that owns both halves. The benefit you can actually observe is narrower and still worth something: the same people write the tool schemas and the system prompt and ship the model, so they fit each other. Claude Code cannot work that way, because its harness is a client of a fixed API model. Anthropic trains its models for agentic use as well, but you cannot swap the model out from underneath the harness.
What a MiMo-Code session looks like in a terminal
Running mimo opens a full-screen terminal interface. You type a task, the agent reads files, proposes a change, and asks before it writes or runs anything. Beyond the default build mode it ships a plan mode and a compose mode, plus a subagent system that hands part of a job to a separate agent run. Claude Code reaches the same lever from the other end, where an output style rewrites the system prompt itself instead of switching you between a fixed set of prepared modes. It also carries a large set of built-in skills, which are prepackaged procedures the agent can call by name. A skill can also change how the agent works rather than what it knows, which is the idea behind Ponytail, a skill that holds an agent to the smallest change that works.
A few details are worth knowing before you start.
- Approval is per action by default. The flag
--dangerously-skip-permissionsremoves the prompts. The name is accurate, so use it only where a mistake costs nothing. MiMo-Code makes that an all-or-nothing switch, while Claude Code has split the same decision into graded permission modes, so what auto mode lets an agent do without asking is the useful comparison before you reach for the flag. - It runs without an interactive terminal.
mimo runtakes a prompt and executes non-interactively, which is what a script or a CI job needs. - Configuration lives in files you can commit. A project reads
.mimocode/mimocode.jsonc, and global settings live in~/.config/mimocode/mimocode.jsonc. - Credentials do not live in those files. They go in
~/.local/share/mimocode/auth.json, so keep that path out of git and out of any backup you share.
An agent that can run shell commands is a program you have handed your shell to. Give it its own machine and its own user. The safest way to try a new one is a disposable VM you can destroy after the session, because a bad command then costs you a rebuild instead of a restore.
Does MiMo-Code really beat Claude Code?
Xiaomi's launch material makes a specific claim: run the same model in both harnesses and MiMo-Code scores higher. These are the published figures.
The data behind this chart
[
{
"tool": "MiMo-Code",
"swe_bench_pro_pct": 62,
"terminal_bench_2_pct": 73
},
{
"tool": "Claude Code",
"swe_bench_pro_pct": 57,
"terminal_bench_2_pct": 68
}
]On SWE-bench Pro, Xiaomi reports 62 percent for MiMo-Code against 57 percent for Claude Code. On Terminal Bench 2 the figures are 73 percent and 68 percent. The framing is that the model was held constant, so a gap of about five points comes from the agent system rather than from the model. That framing only means something if you know what an agent harness actually covers: the loop, the tool definitions, the permission prompts and the session state are the parts that differ between the two, while the weights stay the same.
Treat those as vendor numbers. Xiaomi ran the evaluation and published it, and as of August 2026 MiMo-Code did not appear on the public SWE-bench or Terminal-Bench leaderboards, so at that point nobody independent had reproduced the gap. Xiaomi is unusually direct about the limit of its own result. The company's write-up says these benchmarks measure one-shot problem solving on single repository issues, and that in its own testing the two agents performed about the same below roughly 200 execution steps. The claimed advantage appears in long runs, which is the case a one-shot benchmark does not cover.
That is the honest reading. A five point gap on a vendor-run benchmark is a reason to try the tool. It is not a reason to move the work your team depends on.
What MiMo-Code costs to run
At launch Xiaomi shipped a free channel called MiMo Auto, usable without registration. It was described as limited-time from the start, and Xiaomi announced on 23 July 2026 that MiMo Code's free-use phase would end at 18:00 on 26 July 2026, pointing users to a paid Token Plan instead. That channel has closed, so plan for paid access.
Paid access to Xiaomi's platform is cheap next to the frontier providers. A permanent, globally synchronized price cut that took effect on 27 May 2026 set MiMo-V2.5-Pro at $0.435 per million input tokens on a cache miss and $0.87 per million output tokens. The same cut dropped separate pricing by input length, so one rate covered the full 1M token context window. MiMo-V2.5-Pro has since been retired. Xiaomi routed requests for it to MiMo-V2.6 from 18:00 on 14 October 2026 (UTC+8), and MiMo-V2.5-Pro and MiMo-V2.5 were retired at 10:00 on 21 October 2026 (UTC+8). Their model IDs no longer work, so point any configuration at MiMo-V2.6-Pro. As of 25 October 2026 Xiaomi lists MiMo-V2.6-Pro at the same $0.435 and $0.87 per million tokens, also with a 1M token context window. Prices move, so read the current page before you plan a budget.
The other route is your own hardware. The weights for MiMo-V2.5 and MiMo-V2.5-Pro are published on Hugging Face under the MIT license, and the API retirement did not take them down, so nothing stops you serving them yourself. Be realistic about scale. A model with a one million token context window is not a job for an ordinary VPS, and you are looking at a VPS with a GPU attached or a dedicated machine. Smaller local models are a different exercise, closer to running Ollama on a VPS to self-host an LLM.
MiMo-Code also connects to other vendors. It can migrate an existing Claude Code login, connect an OpenAI account, accept an API key for another provider, or talk to any OpenAI-compatible endpoint. Check the terms of a consumer subscription before you connect it, because provider terms decide which clients may use a subscription plan, and a CLI from another vendor is not always covered.
Should you move off Claude Code?
If you already pay for Claude Code and it works, no. Version 0.1.15 in late September 2026, about three months after the first release and still the latest release as of 25 October 2026, is the honest signal. A 0.1.x version number means breaking changes between releases and a configuration format that is still moving. That is fine for a tool you are evaluating and painful for one a team depends on.
MiMo-Code earns a serious look in four situations.
- The bill is your problem. Xiaomi's token prices sit far below the frontier vendors, and the agent itself costs nothing.
- You need to read the harness. Open source means you can inspect the prompts and the tool definitions, which matters for a security review or an audit.
- You want the agent and the model to be separate purchases, so that changing one does not force changing the other.
- The code cannot leave your network. Open weights make a self-hosted backend possible rather than a negotiation.
Cursor and Copilot are a different comparison. Both live inside an editor, and MiMo-Code lives in a terminal. That distinction shapes more of your working day than any benchmark score does, and the comparison of Claude Code against Cursor, Codex and Copilot covers the trade-off in detail.
Running MiMo-Code on a VPS you already rent
A terminal agent belongs on a server. It holds a session open for hours, it wants a stable network, and it should survive a closed laptop lid. The working pattern is the same one used for other terminal agents: a long-lived session on a small server that you reattach from anywhere, described in running a coding agent in tmux on a VPS. Once there is more than one agent working on that box, Claude Code can have one session pass text straight to another, which saves you shuttling output between tmux windows by hand.
Give it a dedicated unprivileged user and point it at a clone of the repository rather than your only copy. Its reach is the account it runs as, which is the one control that keeps working when a prompt goes wrong.
The project distributes itself two ways: a shell installer served over HTTPS, and an npm package named @mimo-ai/cli for any machine that already has Node.js. On a server you care about, prefer the npm package. You can read what the package contains before it runs, and you are not piping a remote script straight into a shell. For the wider picture of what else earns a place on that box, the roundup of self-hosted AI agents is the map.
FAQ
Is MiMo-Code free?
The agent is free and open source under the MIT license, so you can read and modify it. The model behind it is the part that costs money. Xiaomi shipped a limited-time free channel called MiMo Auto at launch and ended MiMo Code's free-use phase on 26 July 2026, so plan for paid access. A permanent price cut on 27 May 2026 set MiMo-V2.5-Pro at $0.435 per million input tokens on a cache miss and $0.87 per million output tokens. Xiaomi retired MiMo-V2.5-Pro on 21 October 2026, and its successor, MiMo-V2.6-Pro, is listed at the same rates as of 25 October 2026. You can also point MiMo-Code at any OpenAI-compatible endpoint and pay a different vendor instead.
Is MiMo-Code the same thing as OpenCode?
It began as a fork of OpenCode and still shares its core. The terminal interface, the plugin system, the provider abstraction and the MCP integration all came from that codebase, and the OpenCode copyright line is preserved in the repository LICENSE file. Xiaomi added a persistent memory layer backed by SQLite full-text search, extra agent modes, and direct access to its own models. If you know OpenCode, you already know most of how MiMo-Code behaves.
Can I use MiMo-Code with Claude or GPT models instead of Xiaomi's?
Yes. The first-run setup offers to migrate an existing Claude Code login, connect an OpenAI account, or accept an API key for another provider, and you can configure any OpenAI-compatible endpoint by hand in ~/.config/mimocode/mimocode.jsonc. Check the terms of a consumer subscription before you connect it, because provider terms control which clients may use a subscription plan.
Is MiMo-Code safe to run on my main machine?
Treat it like any agent that can run shell commands. It asks for approval before each action by default, and --dangerously-skip-permissions turns those prompts off, which is how most accidents happen. Run it as a dedicated unprivileged user, against a clone of the repository, and preferably on a machine you can destroy and rebuild. Its blast radius is the account it runs as, so keep that account small.