Use Mimxo AI with OpenClaw
Add Mimxo AI as an OpenAI-compatible provider in OpenClaw, keep the key in the secrets store, and enable Claude prompt caching.
1. Store the key
printf '%s' "$MIMXO_API_KEY" | openclaw secrets store set MIMXO_API_KEY --kind secret --allow-host mimxo.com --value-file - openclaw secrets reload
2. Add the provider to ~/.openclaw/openclaw.json
"models": { "providers": { "mimxo": {
"baseUrl": "https://mimxo.com/v1",
"api": "openai-completions",
"apiKey": { "source": "store", "provider": "default", "id": "MIMXO_API_KEY" },
"models": [
{ "id": "claude-sonnet-5", "name": "Claude Sonnet 5", "reasoning": true, "input": ["text", "image"],
"contextWindow": 200000, "maxTokens": 64000, "compat": { "cacheControlFormat": "anthropic" } }
]
} } }Add "mimxo/*" to agents.defaults.modelPolicy.allow, then run openclaw config validate and openclaw gateway restart.
Recommended models
| Model | Provider | Input / 1M | Output / 1M | Cache read / 1M | List input / output |
|---|---|---|---|---|---|
qwen3.7-max | Alibaba Qwen | $0.4425 | $1.327 | $0.0885 | $1.475 / $4.425 |
claude-opus-5 | Anthropic | $1.5 | $7.5 | $0.15 | $5 / $25 |
claude-sonnet-5 | Anthropic | $0.6 | $3 | $0.06 | $2 / $10 |
deepseek-v4.1-flash | DeepSeek | $0.009 | $0.15 | $0.00769 | $0.03 / $0.5 |
gemini-3.1-pro-preview | $0.6 | $3.6 | $0.06 | $2 / $12 | |
kimi-k2.7-code | Moonshot Kimi | $0.2014 | $1.005 | $0.054 | $0.6712 / $3.35 |
gpt-6.1-sol | OpenAI | $0.6 | $3 | $0.03 | $2 / $10 |
glm-5.3 | Zhipu GLM | $0.42 | $1.32 | $0.042 | $1.4 / $4.4 |
Prices in USD per 1M tokens, read live from /api/pricing. "List" is the reference list price; Mimxo AI bills the first columns.
FAQ
Why add cacheControlFormat?
Claude only caches prompts through Chat Completions when content blocks carry cache_control markers. With it, a repeated 23k-token system prompt dropped from $0.117 to $0.012 per call in our tests.
How much does it cost?
Mimxo AI bills every model at 0.3× list price per 1M tokens. Top-ups start at $1.
Other tools: OpenCode · Claude Code · OpenAI Codex CLI · Cursor · Aider · Cline / Roo Code