OpenClaw → AI24X
OpenClaw is a local-first agent framework with OpenAI-compatible providers. Point it at AI24X for flash/pro (and VIP named models) with one key and PayPal USD billing.
1) Prerequisites
Sign up → Console → create an API key → keep a small credit balance. OpenClaw 2026.7.1+ recommended.
2) Provider config (openclaw.json)
Add an ai24x provider under models.providers. Use the root API host (OpenClaw appends /v1/chat/completions):
{
"models": {
"providers": {
"ai24x": {
"baseUrl": "https://api.ai24x.com",
"api": "openai-completions",
"apiKey": "YOUR_AI24X_API_KEY",
"models": [
{
"id": "flash",
"name": "AI24X Flash",
"reasoning": false,
"input": ["text"],
"contextWindow": 128000,
"maxTokens": 8192,
"api": "openai-completions"
},
{
"id": "pro",
"name": "AI24X Pro",
"reasoning": false,
"input": ["text"],
"contextWindow": 128000,
"maxTokens": 8192,
"api": "openai-completions"
}
]
}
}
}
}
Optional: add ultra / auto the same way. VIP named ids (e.g. vip-kimi) need an active membership—see the VIP list.
3) Smoke test
In OpenClaw chat: /model ai24x/flash. Or from a terminal:
curl -sS -X POST "https://api.ai24x.com/v1/chat/completions" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_AI24X_API_KEY" \
-d "{\"model\":\"flash\",\"messages\":[{\"role\":\"user\",\"content\":\"hello\"}]}"
Expect HTTP 200 and a choices[0].message.content reply.
4) Pitfalls
- OpenClaw
baseUrl=https://api.ai24x.com(no/v1). LobeChat useshttps://api.ai24x.com/v1—different clients, different habits; wrong URL → 405. - 401 = bad or expired key—create a new one in Console.
- Start with
flash; useprofor harder tasks; named VIP models only after VIP is active.