OpenClaw

Run OpenClaw against AnyRouter with one key across every model and messaging channel.

OpenClaw is a local personal AI assistant that answers on Telegram, Discord, Slack, WhatsApp and more. It supports any OpenAI-compatible provider, so pointing it at AnyRouter is a config change.

Create a key (sk-ar-...) in the dashboard, then pick one path.

openclaw onboard --install-daemon

Choose Custom (OpenAI-compatible) and enter base URL https://anyrouter.dev/api/v1, your sk-ar-... key, and a model id such as google/gemini-3.1-flash-lite (referenced afterwards as anyrouter/google/gemini-3.1-flash-lite). Then start the gateway:

openclaw gateway --port 18789 --verbose

Verify

Message OpenClaw, then check your request logs for the call. openclaw models status --probe live-tests provider connectivity.

Models and per-agent selection

Suggested models: anyrouter/google/gemini-3.1-flash-lite (low latency), anyrouter/anthropic/claude-sonnet-4-6 (long threads, tool use), anyrouter/openai/gpt-5.4-mini (balanced). List all with GET https://anyrouter.dev/api/v1/models.

OpenClaw selects models per agent. Define agents in agents.list[] with their own model.primary, declare each model in the provider, and bind channels to agents with OpenClaw's bindings (configuration reference):

{ "agents": { "list": [
  { "id": "fast", "model": { "primary": "anyrouter/google/gemini-3.1-flash-lite" } },
  { "id": "deep", "model": { "primary": "anyrouter/anthropic/claude-sonnet-4-6" } }
] } }

Troubleshooting

SymptomFix
401 or 403Check echo $ANYROUTER_API_KEY and that the key is active with credit in the dashboard.
Unknown modelUse the anyrouter/ prefix, declare the id in models[], and match an id from GET /api/v1/models.
429Heartbeats and scheduled tasks can burst. Back off and retry; see Rate Limits.

AnyRouter routes requests to third-party models. Models and outputs are provided as is, with no warranty; you use them at your own risk. Disclaimer