MiMo Code: Run Xiaomi’s Free Claude Code Alternative in 10 Minutes Xiaomi released MiMo Code, an open-source AI coding agent that forks OpenCode and adds persistent cross-session memory, three days ago. The tool, which installs in one command and is available under an MIT license, has become the most-watched open-source AI coding agent on GitHub. MiMo Code offers three configuration paths, including a free anonymous mode and a paid tier at $1 per million input tokens, and claims to outperform Claude Code on tasks exceeding 200 execution steps. MiMo Code dropped three days ago and is already the most-watched open-source AI coding agent on GitHub. Xiaomi’s terminal agent forks from OpenCode https://opencode.dev , adds persistent cross-session memory that Claude Code still lacks, ships under an MIT license, and installs in one command. If you’ve been eyeing alternatives to Claude Code — especially after this week’s agentic billing shock https://byteiota.com/github-copilot-billing-agentic-cost-jump-2026/ — here’s how to get MiMo Code running and when it’s actually worth using. Install in One Line Requirements: Node.js 18 or later. That’s it. Mac and Linux: curl -fsSL https://mimo.xiaomi.com/install | bash Windows via npm : npm install -g @mimo-ai/cli Run mimo after installation and a TUI setup wizard launches automatically. It walks you through three configuration paths depending on what you need. Three Ways to Configure It The setup wizard offers these options: MiMo Auto — Anonymous, zero-config mode using a shared inference pool. Rate-limited but free. Good for evaluating MiMo Code before committing to an API key. Not suitable for production or sustained work. Xiaomi MiMo Platform API Key — Sign up at platform.xiaomimimo.com https://platform.xiaomimimo.com , generate a key, and you’re on the paid-but-cheap tier: $1 per million input tokens and $3 per million output tokens as of the May 2026 permanent price cut. The free Flash model on OpenRouter https://openrouter.ai is also an option for lighter development work. Import Claude Code Auth — The path most existing Claude Code users will take. One step in the wizard imports your existing Anthropic credentials and routes them through MiMo Code’s harness. Before you do this, clear any conflicting environment variables: unset ANTHROPIC AUTH TOKEN ANTHROPIC BASE URL mimo If you’d rather configure it manually, set these environment variables: ANTHROPIC BASE URL=https://api.xiaomimimo.com/anthropic ANTHROPIC AUTH TOKEN=