SamXiaoMiCode is a Chinese-first Xiaomi MiMo coding agent with a CLI, web dashboard, and Tauri desktop client. It is built around the Xiaomi MiMo OpenAI-compatible API and only accepts mimo-v2.5 and mimo-v2.5-pro as chat models.
At a glance: the welcome banner, slash-command picker, tool cards, diff preview, and status row render the same way the desktop client does.
中文文档:README.zh-CN.md
| Welcome banner | Prompt input (CJK) | Bash mode (! prefix) |
|---|---|---|
![]() |
![]() |
![]() |
| Tool card (success) | Tool card (error) | Streaming reply + todos |
|---|---|---|
![]() |
![]() |
![]() |
| Shell confirmation | Split diff | Status row |
|---|---|---|
![]() |
![]() |
![]() |
| Thinking row | Boot splash |
|---|---|
![]() |
![]() |
- Conversation-as-version-control checkpoints with
/checkpointand/restore. - Five built-in specialist agents:
@code-reviewer,@dev-planner,@bug-analyzer,@story-generator, and@ui-sketcher. - MCP runtime discovery for tools, resources, prompts, search, parsing, and visual inspection.
- Four permission layers: Always Ask, Accept Edits, Plan Mode, and Bypass. Legacy
review,auto, andyoloaliases still work. - Engineering workflow presets for Spec-Kit, OpenSpec, and Superpowers, with built-in quality skills such as
impeccable,brooks-lint,frontend-design,html-ppt-skill,logo-generator-skill,excalidraw, andkami.
Requires Node.js 22 or newer.
npm install -g @samxiaomicode/cli
cd path/to/project
sam-xiaomi-codeShort command:
sam-codeOne-off usage:
npx @samxiaomicode/cliOn Windows PowerShell, use npm.cmd when execution policy blocks npm.ps1.
The desktop client lives in desktop/ and is built on Tauri 2:
- React 19 + Vite frontend with strict TypeScript.
- Rust backend bridges the local CLI sidecar through Tauri commands.
- Signed updater, WebView2 install hints, light/dark theme.
Windows packaging:
cd desktop
npm install
npm run bundle:node # fetch and extract Node 22 into src-tauri/binaries/
npx tauri build # produce .msi and .exe installersBundles land in desktop/src-tauri/target/release/bundle/. Signing instructions are in desktop/SIGNING.md.
| Command | Purpose |
|---|---|
sam-xiaomi-code / sam-xiaomi-code code [dir] |
Start the coding agent rooted at a workspace. |
sam-xiaomi-code chat |
Chat without filesystem or shell tools. |
sam-xiaomi-code run "task" |
Run one non-interactive task. |
sam-xiaomi-code desktop |
Start the desktop sidecar process. |
sam-xiaomi-code doctor |
Check API, config, MCP, and project health. |
sam-xiaomi-code mcp list |
List configured MCP servers. |
User configuration is stored at:
~/.samxiaomicode/config.json
Set the API key through the first-run wizard or environment variables:
export MIMO_API_KEY=...
export MIMO_BASE_URL=https://api.xiaomimimo.com/v1MIMO_BASE_URL or SAMXIAOMICODE_BASE_URL may point at a third-party OpenAI-compatible proxy, but the model must still be mimo-v2.5 or mimo-v2.5-pro. Official pricing estimates are disabled for non-official base URLs.
| Preset | Strategy |
|---|---|
auto |
Default. Use mimo-v2.5 for normal turns and escalate hard turns to mimo-v2.5-pro. |
normal |
Always use mimo-v2.5. Legacy alias: flash. |
pro |
Always use mimo-v2.5-pro. |
/pro arms the Pro model for the next turn only and then disarms automatically.
npm install
npm run build
npm run lint
npm run typecheck
npm test
npm run verifyDesktop client:
cd desktop
npm install
npm run dev
npm run build- docs/README.md: documentation index.
- docs/TECHNICAL.md: technical notes.
- docs/ARCHITECTURE.md: architecture overview.
- docs/CLI-REFERENCE.md: CLI and slash command reference.
- AGENTS.md: contributor and agent guidance.
SamXiaoMiCode is MIT licensed. Preserve attribution in THIRD_PARTY_NOTICES.md and LICENSES/, and never commit API keys, local config, caches, session files, or generated secrets.










