Get API key

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

ModelProviderInput / 1MOutput / 1MCache read / 1MList input / output
qwen3.7-maxAlibaba Qwen$0.4425$1.327$0.0885$1.475 / $4.425
claude-opus-5Anthropic$1.5$7.5$0.15$5 / $25
claude-sonnet-5Anthropic$0.6$3$0.06$2 / $10
deepseek-v4.1-flashDeepSeek$0.009$0.15$0.00769$0.03 / $0.5
gemini-3.1-pro-previewGoogle$0.6$3.6$0.06$2 / $12
kimi-k2.7-codeMoonshot Kimi$0.2014$1.005$0.054$0.6712 / $3.35
gpt-6.1-solOpenAI$0.6$3$0.03$2 / $10
glm-5.3Zhipu 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