OpenClawSkills
GitHub
Providers • TutorialHeader.readTime

Xiaomi MiMo

Use Xiaomi MiMo (mimo-v2-flash) with OpenClaw

Xiaomi MiMo is the API platform for <strong>MiMo</strong> models. It provides REST APIs compatible with

OpenAI and Anthropic formats and uses API keys for authentication. Create your API key in

the '<a href="https://platform.xiaomimimo.com/#/console/api-keys" className="text-emerald-400 hover:text-emerald-300 transition-colors">'Xiaomi MiMo console'</a>'. OpenClaw uses

the '<code className="bg-white/10 px-1.5 py-0.5 rounded text-emerald-300 text-sm">'xiaomi'</code>' provider with a Xiaomi MiMo API key.

Tutorial.step

Model overview

- <strong>mimo-v2-flash</strong>: 262144-token context window, Anthropic Messages API compatible.

- Base URL: '<code className="bg-white/10 px-1.5 py-0.5 rounded text-emerald-300 text-sm">'https://api.xiaomimimo.com/anthropic'</code>'

- Authorization: '<code className="bg-white/10 px-1.5 py-0.5 rounded text-emerald-300 text-sm">'Bearer $XIAOMI_API_KEY'</code>'

Tutorial.step

CLI setup

Bash
openclaw onboard --auth-choice xiaomi-api-key

openclaw onboard --auth-choice xiaomi-api-key --xiaomi-api-key "$XIAOMI_API_KEY"
Tutorial.step

Config snippet

Json5
{
  env: { XIAOMI_API_KEY: "your-key" },
  agents: { defaults: { model: { primary: "xiaomi/mimo-v2-flash" } } },
  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"],
            cost: { input: 0, output: 0, cacheRead: 0, cacheWrite: 0 },
            contextWindow: 262144,
            maxTokens: 8192,
          },
        ],
      },
    },
  },
}
Tutorial.step

Notes

- Model ref: '<code className="bg-white/10 px-1.5 py-0.5 rounded text-emerald-300 text-sm">'xiaomi/mimo-v2-flash'</code>'.

- The provider is injected automatically when '<code className="bg-white/10 px-1.5 py-0.5 rounded text-emerald-300 text-sm">'XIAOMI_API_KEY'</code>' is set (or an auth profile exists).

- See '<a href="/concepts/model-providers" className="text-emerald-400 hover:text-emerald-300 transition-colors">'/concepts/model-providers'</a>' for provider rules.