Files
bot/docs/providers/xiaomi.md
zeekay 4bdc9ee3e4 chore: rebrand openclaw → hanzo-bot for bridge merge
Comprehensive rename of all openclaw references to hanzo-bot equivalents:
- Package: openclaw → @hanzo/bot
- Binary: openclaw → hanzo-bot
- Types: OpenClaw* → Bot*
- Env vars: OPENCLAW_* → BOT_*
- Android: ai.openclaw.android → ai.hanzo.bot.android
- iOS/macOS: ai.openclaw.* → ai.hanzo.*
- Swift modules: OpenClaw* → Bot*
- Plugins: openclaw.plugin.json → bot.plugin.json
- Paths: .openclaw/ → .hanzo/bot/
- URLs: github.com/openclaw → github.com/hanzoai
2026-02-26 22:36:01 -08:00

1.8 KiB

summary, read_when, title
summary read_when title
Use Xiaomi MiMo (mimo-v2-flash) with Hanzo Bot
You want Xiaomi MiMo models in Hanzo Bot
You need XIAOMI_API_KEY setup
Xiaomi MiMo

Xiaomi MiMo

Xiaomi MiMo is the API platform for MiMo models. It provides REST APIs compatible with OpenAI and Anthropic formats and uses API keys for authentication. Create your API key in the Xiaomi MiMo console. Hanzo Bot uses the xiaomi provider with a Xiaomi MiMo API key.

Model overview

  • mimo-v2-flash: 262144-token context window, Anthropic Messages API compatible.
  • Base URL: https://api.xiaomimimo.com/anthropic
  • Authorization: Bearer $XIAOMI_API_KEY

CLI setup

hanzo-bot onboard --auth-choice xiaomi-api-key
# or non-interactive
hanzo-bot onboard --auth-choice xiaomi-api-key --xiaomi-api-key "$XIAOMI_API_KEY"

Config snippet

{
  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,
          },
        ],
      },
    },
  },
}

Notes

  • Model ref: xiaomi/mimo-v2-flash.
  • The provider is injected automatically when XIAOMI_API_KEY is set (or an auth profile exists).
  • See /concepts/model-providers for provider rules.