mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-22 07:20:59 +00:00
Merged via squash.
Prepared head SHA: 6b672f36cf
Co-authored-by: DJjjjhao <50042705+DJjjjhao@users.noreply.github.com>
Co-authored-by: grp06 <1573959+grp06@users.noreply.github.com>
Reviewed-by: @grp06
2.5 KiB
2.5 KiB
summary, read_when, title
| summary | read_when | title | ||
|---|---|---|---|---|
| Use Xiaomi MiMo models with OpenClaw |
|
Xiaomi MiMo |
Xiaomi MiMo
Xiaomi MiMo is the API platform for MiMo models. OpenClaw uses the Xiaomi
OpenAI-compatible endpoint with API-key authentication. Create your API key in the
Xiaomi MiMo console, then configure the
bundled xiaomi provider with that key.
Model overview
- mimo-v2-flash: default text model, 262144-token context window
- mimo-v2-pro: reasoning text model, 1048576-token context window
- mimo-v2-omni: reasoning multimodal model with text and image input, 262144-token context window
- Base URL:
https://api.xiaomimimo.com/v1 - API:
openai-completions - Authorization:
Bearer $XIAOMI_API_KEY
CLI setup
openclaw onboard --auth-choice xiaomi-api-key
# or non-interactive
openclaw 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/v1",
api: "openai-completions",
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,
},
{
id: "mimo-v2-pro",
name: "Xiaomi MiMo V2 Pro",
reasoning: true,
input: ["text"],
cost: { input: 0, output: 0, cacheRead: 0, cacheWrite: 0 },
contextWindow: 1048576,
maxTokens: 32000,
},
{
id: "mimo-v2-omni",
name: "Xiaomi MiMo V2 Omni",
reasoning: true,
input: ["text", "image"],
cost: { input: 0, output: 0, cacheRead: 0, cacheWrite: 0 },
contextWindow: 262144,
maxTokens: 32000,
},
],
},
},
},
}
Notes
- Default model ref:
xiaomi/mimo-v2-flash. - Additional built-in models:
xiaomi/mimo-v2-pro,xiaomi/mimo-v2-omni. - The provider is injected automatically when
XIAOMI_API_KEYis set (or an auth profile exists). - See /concepts/model-providers for provider rules.