Run your coding agent against any model. One command.
Point Claude Code, Codex, or any agent at any provider behind one key — with auto-failover so the task never stops, and a CLI that leaves your machine clean.
npx @anyr/cli claudeClaude CodeThe four things only AnyRouter does
One-command agent swap
Before: Edit ~/.claude config and juggle env vars to try a new model.
After: Just pass a flag — same agent, different model, no config surgery.
npx @anyr/cli claude --model glm-4.7-flashConfig follows you
Before: Re-set up keys, presets, and skills on every laptop, server, and CI box.
After: They live in your account and inject on demand — then wipe clean on exit.
Never-fail routing
Before: Your agent dies on a 429 mid-task and the whole run stalls.
After: Auto-fallback across your pooled keys and providers — the task continues.
Key + subscription pooling (BYOK+)
Before: A single key, a single point of failure.
After: Pool your own keys AND paid subscriptions behind one URL — the thing OpenRouter doesn't do.
| Capability | AnyRouter | Single key | Typical gateway |
|---|---|---|---|
| Auto-failover on 401/429/5xx | Sometimes | ||
| Pool your own API keys behind one URL | Credits only | ||
| Pool paid subscriptions (BYO) | |||
| OpenAI-compatible — no client rewrite | One provider | ||
| Swap models via preset, no code change | Sometimes | ||
| CLI launcher: npx @anyr/cli claude |
Route your first request in 2 minutes
Run npx @anyr/cli claude and your agent is on the gateway — one key, every model, automatic failover. See how it differs from OpenRouter →