#Add others providers and models
1 messages · Page 1 of 1 (latest)
To use OpenRouter + OpenAI + Anthropic in OpenClaw, you don’t “add providers” in a special registry — you mainly do two things:
- Give OpenClaw credentials for each provider
- Reference models as
provider/model(and if you use a model allowlist, add them there)
1) Add credentials (recommended: on the Gateway host)
Put keys in ~/.openclaw/.env (works reliably even when the Gateway runs as a service):
OPENROUTER_API_KEY=sk-or-...
OPENAI_API_KEY=sk-...
ANTHROPIC_API_KEY=sk-ant-...
Then restart:
openclaw gateway restart
Anthropic alternative (Claude subscription): generate a setup-token and paste it on the gateway host:
OpenAI docs:
- https://docs.openclaw.ai/providers/openai
OpenRouter docs: - https://docs.openclaw.ai/providers/openrouter
2) Pick models (primary + fallbacks)
Easiest is via CLI + chat picker:
- See what OpenClaw currently sees:
openclaw models status --probe
openclaw models list
-
In chat, use:
/model→/model list(pick a model) -
Or set via CLI (use real model IDs you picked from
/model list):
openclaw models set openrouter/<…>
openclaw models fallbacks add anthropic/<…>
openclaw models fallbacks add openai/<…>
If you hit: “Model … is not allowed”, it means you have an allowlist in agents.defaults.models and you need to add the new models there (or remove the allowlist). Docs: https://docs.openclaw.ai/concepts/models