Skip to main content

Xiaomi MiMo

Xiaomi MiMo is the API platform for MiMo models. It provides REST APIs compatible with the Anthropic Messages format and uses API key authentication. WednesdayAI uses the xiaomi provider to connect to Xiaomi MiMo.

Prerequisites

Quick setup

1. Get an API key

Sign in to the Xiaomi MiMo console and create an API key. Store it on the gateway host:
echo 'XIAOMI_API_KEY=your-key' >> ~/.openclaw/.env

2. Run onboarding

openclaw onboard --auth-choice xiaomi-api-key
Or non-interactive:
openclaw onboard --auth-choice xiaomi-api-key --xiaomi-api-key "$XIAOMI_API_KEY"

3. Configure

{
  models: {
    providers: {
      xiaomi: {
        baseUrl: "https://api.xiaomimimo.com/anthropic",
        api: "anthropic-messages",
        apiKey: "XIAOMI_API_KEY", // references the env var
        models: [
          {
            id: "mimo-v2-flash",
            name: "Xiaomi MiMo V2 Flash",
            reasoning: false,
            input: ["text"],
            contextWindow: 262144,
            maxTokens: 8192,
          },
        ],
      },
    },
  },
  agents: {
    defaults: {
      model: { primary: "xiaomi/mimo-v2-flash" },
    },
  },
}
apiKey is the name of the environment variable, not the key value itself. Keep secrets in .env, not in committed config files.
The provider is auto-injected when XIAOMI_API_KEY is set or an auth profile exists.

Provider settings

SettingValue
Provider IDxiaomi
Base URLhttps://api.xiaomimimo.com/anthropic
APIAnthropic Messages compatible
Auth env varXIAOMI_API_KEY
Auth methodBearer token

Verification

openclaw models status --probe-provider xiaomi

Available models

Model IDContextNotes
mimo-v2-flash262KAnthropic Messages compatible
Use as xiaomi/mimo-v2-flash.

Troubleshooting

Verify XIAOMI_API_KEY is set correctly in ~/.openclaw/.env and the key is active in the Xiaomi MiMo console.
Confirm the model ID is mimo-v2-flash (case-sensitive) and that your models.providers.xiaomi config block is present.