How to Integrate Xiaomi MiMo Models in Openclaw

Image
Table of contents: [Show]

Want to run Xiaomi's MiMo models in Openclaw? This guide walks you through the setup in under 5 minutes.

Quick Start

1. Get Your API Key

Head to the Xiaomi MiMo console and generate an API key. You'll need this for authentication.

2. Configure Openclaw

Run the interactive setup wizard:

Openclaw onboard --auth-choice xiaomi-api-key

Or for non-interactive setup (scripts/CI):

Openclaw onboard --auth-choice xiaomi-api-key --xiaomi-api-key "$XIAOMI_API_KEY"

3. Set MiMo as Your Default Model

Add this to your ~/.Openclaw/Openclaw.json:

{ "env": { "XIAOMI_API_KEY": "your-key" }, "agents": { "defaults": { "model": { "primary": "xiaomi/mimo-v2-flash" } } } }

Available Models

Xiaomi MiMo offers several models through Openclaw:

  • mimo-v2-flash — Fast responses, 262K context window

Full Provider Configuration

For advanced setups, define the provider manually:

{ "models": { "mode": "merge", "providers": { "xiaomi": { "baseUrl": "https://api.xiaomimimo.com/anthropic", "api": "anthropic-messages", "apiKey": "XIAOMI_API_KEY", "models": [ { "id": "mimo-v2-flash", "name": "Xiaomi MiMo V2 Flash", "reasoning": false, "input": ["text"], "contextWindow": 262144, "maxTokens": 8192 } ] } } } }

Related Guides

If you're exploring other model providers, check out our guides on Ollama Models Openclaw for local inference, or LiteLLM Models Openclaw for unified API access.

Troubleshooting

  • Authentication errors: Verify your XIAOMI_API_KEY is exported correctly
  • Model not found: Ensure the provider prefix is xiaomi/
  • Rate limits: Check your MiMo console for quota usage

Openclaw Xiaomi Integration