> ## Documentation Index
> Fetch the complete documentation index at: https://docs.wednesdayai.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Xiaomi MiMo

> Connect WednesdayAI to Xiaomi's MiMo models via the Xiaomi MiMo API.

# 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

* An API key from the [Xiaomi MiMo console](https://platform.xiaomimimo.com/#/console/api-keys)

## Quick setup

### 1. Get an API key

Sign in to the [Xiaomi MiMo console](https://platform.xiaomimimo.com/#/console/api-keys) and create an API key. Store it on the gateway host:

```bash theme={"dark"}
echo 'XIAOMI_API_KEY=your-key' >> ~/.openclaw/.env
```

### 2. Run onboarding

```bash theme={"dark"}
openclaw onboard --auth-choice xiaomi-api-key
```

Or non-interactive:

```bash theme={"dark"}
openclaw onboard --auth-choice xiaomi-api-key --xiaomi-api-key "$XIAOMI_API_KEY"
```

### 3. Configure

```json5 theme={"dark"}
{
  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" },
    },
  },
}
```

<Note>
  `apiKey` is the name of the environment variable, not the key value itself. Keep secrets in `.env`, not in committed config files.
</Note>

The provider is auto-injected when `XIAOMI_API_KEY` is set or an auth profile exists.

## Provider settings

| Setting      | Value                                  |
| ------------ | -------------------------------------- |
| Provider ID  | `xiaomi`                               |
| Base URL     | `https://api.xiaomimimo.com/anthropic` |
| API          | Anthropic Messages compatible          |
| Auth env var | `XIAOMI_API_KEY`                       |
| Auth method  | Bearer token                           |

## Verification

```bash theme={"dark"}
openclaw models status --probe-provider xiaomi
```

## Available models

| Model ID        | Context | Notes                         |
| --------------- | ------- | ----------------------------- |
| `mimo-v2-flash` | 262K    | Anthropic Messages compatible |

Use as `xiaomi/mimo-v2-flash`.

## Troubleshooting

<AccordionGroup>
  <Accordion title="401 Unauthorized">
    Verify `XIAOMI_API_KEY` is set correctly in `~/.openclaw/.env` and the key is active in the Xiaomi MiMo console.
  </Accordion>

  <Accordion title="Model not found">
    Confirm the model ID is `mimo-v2-flash` (case-sensitive) and that your `models.providers.xiaomi` config block is present.
  </Accordion>
</AccordionGroup>

## Related

* [AI providers overview](/admin/providers/index)
* [Reference: config](/reference/config)
