OpenClaw + OmniaKey: one provider, four model families
Add OmniaKey to OpenClaw as one OpenAI-compatible provider and run Claude, GPT, Gemini, and Grok by model id — including the allowlist step everyone misses.
On this page
- Add OmniaKey as a provider
- The step everyone misses: allowlist the model
- Verify
- Common setup errors
- Why route OpenClaw through OmniaKey
- Frequently asked questions
- Where do I put the OmniaKey provider block?
- Why does OpenClaw say a model is not allowed?
- Can one OmniaKey key run Claude, GPT, Gemini and Grok in OpenClaw?
- How do I check that OpenClaw can reach OmniaKey?
- Should I edit ~/.openclaw/agents/main/agent/models.json?
- Sources checked
Updated October 30, 2026: four common setup errors are now covered below, each with the symptom, the cause and the fix from OpenClaw's docs.
OpenClaw is a framework, not a bundled assistant: it gives you the agent loop, tool use, and code editing, but the intelligence comes from whatever provider you wire in. That makes the provider config the most important file you'll touch — and OmniaKey fits it as a single OpenAI-compatible entry that reaches Claude, GPT, Gemini, and Grok at once.
Add OmniaKey as a provider
Provider config lives in ~/.openclaw/openclaw.json. Add OmniaKey under models.providers:
{
"models": {
"mode": "merge",
"providers": {
"omniakey": {
"baseUrl": "https://api.omniakey.com/v1",
"apiKey": "your-omniakey-api-key",
"api": "openai-completions",
"models": [
{ "id": "claude-opus-4-8" },
{ "id": "gpt-5.5" },
{ "id": "gemini-3.1-pro-preview" },
{ "id": "grok-4.5" }
]
}
}
}
}
"mode": "merge" tells OpenClaw to add this provider to your existing config instead of replacing it — keep it if you already have providers defined. One OpenAI-compatible provider covers four model families: OmniaKey looks up the model by id, so claude-opus-4-8, gpt-5.5, gemini-3.1-pro-preview, and grok-4.5 all run through the same entry.
The step everyone misses: allowlist the model
Defining the provider is only half of it. OpenClaw also needs the model on its allowlist, or you hit the classic model not allowed error even when the key is fine. This goes in the same openclaw.json, alongside the models block — models and agents are sibling top-level keys. Add the fully-qualified ref — provider/model-id — under agents.defaults:
{
"agents": {
"defaults": {
"models": ["omniakey/claude-opus-4-8", "omniakey/gpt-5.5", "omniakey/gemini-3.1-pro-preview", "omniakey/grok-4.5"],
"model": "omniakey/claude-opus-4-8"
}
}
}
The request body only carries the model id; the provider/model-id ref is OpenClaw's internal name. Both the provider definition and the allowlist entry are required, and they do different jobs — which is exactly why so many setups define the provider, forget the allowlist, and get stuck.
Verify
openclaw doctor
doctor checks the config file, the provider, the key format, a live connection, and model access. Then openclaw models list should show your OmniaKey models, and you can set the active model to omniakey/gpt-5.5 — or any id you allowlisted — under agents.defaults.
Don't edit ~/.openclaw/agents/main/agent/models.json by hand — it's regenerated from openclaw.json. And if you fat-finger the JSON, you can just ask OpenClaw to fix the file; it's good at spotting a missing comma.
Common setup errors
-
Model override "provider/model" is not allowed by agents.defaults.modelPolicy.allow.The ref is missing from a non-emptyagents.defaults.modelPolicy.allowlist, and OpenClaw checks that list for/model, session overrides and--model. Add the exact ref or a provider wildcard such asomniakey/*, empty the list, or choose a model from/model list(OpenClaw models FAQ). -
model_not_foundor a 404, while a direct call with the same model id works. A custom entry only resolves whenbaseUrlends in/v1,apiis"openai-completions", and the catalog keeps the bare provider-local id while you select it with the provider prefix. Check those three, select the model once with its provider prefix, then rerun the same prompt (local backend troubleshooting). -
A bare 403 with "Your request was blocked" in the response body. That text usually comes from a security layer in front of the endpoint — a CDN, WAF, bot rule or reverse proxy — not from
openclaw.json, andopenclaw logs --followshows whether several models under one provider fail the same way. Fix the provider side first with an allow rule narrow enough to cover only the path OpenClaw calls, and leave protection on for the rest of the site (upstream 403 troubleshooting). -
messages[...].content: invalid type: sequence, expected a stringon every agent run. The backend refuses OpenAI-style structured content parts. Setcompat.requiresStringContent: trueon that model entry and rerun the same prompt.
Why route OpenClaw through OmniaKey
One key and one balance for all four families, billed per token with no monthly plan — and no silent substitution. OmniaKey runs the exact model id you allowlisted; if an upstream is down you see the error instead of a quietly swapped "equivalent" that reasons about your codebase differently mid-task. The model catalog lists every id you can allowlist, and pricing shows the per-token rate.
The coding agents guide covers the other tools. For step-by-step setups, see the Hermes Agent setup, Cline custom API key and Claude Code setup guides.
Frequently asked questions
Where do I put the OmniaKey provider block?
In ~/.openclaw/openclaw.json, under models.providers. Keep "mode": "merge" so the block is added to your existing providers instead of replacing them.
Why does OpenClaw say a model is not allowed?
The provider is defined but the model ref is not on OpenClaw's allowlist, so the run fails even when the key is fine. Add the fully-qualified omniakey/model-id ref, then run openclaw doctor.
Can one OmniaKey key run Claude, GPT, Gemini and Grok in OpenClaw?
Yes. One provider entry with api: "openai-completions" reaches all four families, and the model id in the request picks which one runs.
How do I check that OpenClaw can reach OmniaKey?
openclaw doctor checks the config file, the provider, the key format, a live connection and model access. openclaw models list then shows the OmniaKey models you allowlisted.
Should I edit ~/.openclaw/agents/main/agent/models.json?
No. That file is regenerated from openclaw.json, so make the provider and allowlist edits in openclaw.json instead.
Sources checked
Related articles
Use Claude Code with OmniaKey
Point Claude Code at OmniaKey's Anthropic-native endpoint — two environment variables, Claude models that are never silently swapped, billing per token with no monthly plan.
Hermes Agent + OmniaKey: a custom OpenAI-compatible endpoint
Point Nous Research's Hermes Agent at OmniaKey with one custom endpoint — `hermes model` or a few lines of config.yaml, and Claude, GPT, Gemini, and Grok all answer to one key.
Cline Custom API Key Setup
Connect Cline to an OpenAI-compatible API in four fields, verify it, and diagnose failures by layer.