GPT-Image 2.6 Flare & Sunburst are liveImages from $0.025 each

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.

Kiki, OmniaKey COO5 min readUpdated Oct 30, 2026
On this page

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:

json
{
  "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:

json
{
  "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

bash
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-empty agents.defaults.modelPolicy.allow list, and OpenClaw checks that list for /model, session overrides and --model. Add the exact ref or a provider wildcard such as omniakey/*, empty the list, or choose a model from /model list (OpenClaw models FAQ).

  • model_not_found or a 404, while a direct call with the same model id works. A custom entry only resolves when baseUrl ends in /v1, api is "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, and openclaw logs --follow shows 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 string on every agent run. The backend refuses OpenAI-style structured content parts. Set compat.requiresStringContent: true on 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.

OpenAI-compatible
https://api.omniakey.com/v1
Anthropic-native
https://api.omniakey.com
Gemini-native
https://api.omniakey.com/v1beta

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

OpenClawcoding agentsetupAPI gateway

Related articles

Recent posts

Popular guides