Run your coding agent against any model. One command.Chạy coding agent trên mọi model. Một lệnh.一条命令,把 Claude Code 接到任意模型。
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.Trỏ Claude Code, Codex, hoặc agent bất kỳ tới mọi provider sau một key — failover tự động nên task không dừng, CLI để máy sạch.用一把 Key,把 Claude Code、Codex 或任意 agent 指到任意供应商 — 自动故障转移,任务不会停;anyr CLI 用完把本机清干净。
curl -fsSL https://anyrouter.dev/setup.sh | bashInstallWhat sets it apartĐiểm khác它独特在哪
The four things only AnyRouter doesBốn điều chỉ AnyRouter làm只有 AnyRouter.dev 会做的四件事
One-command agent swapOne-command agent swap一条命令换 agent 模型
Before: Trước: 之前:Edit ~/.claude config and juggle env vars to try a new model.Edit ~/.claude config and juggle env vars to try a new model.改 ~/.claude 配置、倒腾环境变量才能试新模型。
After: Sau: 之后:Just pass a flag — same agent, different model, no config surgery.Just pass a flag — same agent, different model, no config surgery.加一个 flag — 同一个 agent,换模型,不用改配置。
anyr claude --model glm-4.7-flashConfig follows youConfig follows you配置跟着走
Before: Trước: 之前:Re-set up keys, presets, and skills on every laptop, server, and CI box.Re-set up keys, presets, and skills on every laptop, server, and CI box.每台笔记本、服务器、CI 都要重配 Key、预设和 Skills。
After: Sau: 之后:They live in your account and inject on demand — then wipe clean on exit.They live in your account and inject on demand — then wipe clean on exit.它们住在账户里,按需注入 — 退出时清干净。
Never-fail routingNever-fail routing不停的路由
Before: Trước: 之前:Your agent dies on a 429 mid-task and the whole run stalls.Your agent dies on a 429 mid-task and the whole run stalls.任务做到一半遇到 429,agent 挂掉,整次运行卡住。
After: Sau: 之后:Auto-fallback across your pooled keys and providers — the task continues.Auto-fallback across your pooled keys and providers — the task continues.在你组好的 Key 和供应商之间自动回退 — 任务继续。
Key + subscription pooling (BYOK+)Key + subscription pooling (BYOK+)Key + 订阅组池(BYOK+)
Before: Trước: 之前:A single key, a single point of failure.A single key, a single point of failure.一把 Key,一个故障点。
After: Sau: 之后:Pool your own keys AND paid subscriptions behind one URL — the thing OpenRouter doesn't do.Pool your own keys AND paid subscriptions behind one URL — the thing OpenRouter doesn't do.把你自己的 Key 和付费订阅都组在一个 URL 后面 — OpenRouter 做不到这一点。
How it comparesSo sánh怎么比
Capability by capabilityTừng khả năng一项项能力
| CapabilityKhả năng能力 | AnyRouter | Single keyMột key单把 Key | Typical gatewayGateway điển hình常见网关 |
|---|---|---|---|
| Auto-failover on 401/429/5xxAuto-failover on 401/429/5xx401/429/5xx 自动故障转移 | Sometimes | ||
| Pool your own API keys behind one URLPool your own API keys behind one URL把自己的 API Key 组在一个 URL 后面 | Credits only | ||
| Pool paid subscriptions (BYO)Pool paid subscriptions (BYO)组自己的付费订阅(BYO) | |||
| OpenAI-compatible — no client rewriteOpenAI-compatible — no client rewriteOpenAI 兼容 — 不用改客户端 | One provider | ||
| Swap models via preset, no code changeSwap models via preset, no code change用预设换模型,不用改代码 | Sometimes | ||
| CLI launcher: anyr claudeCLI launcher: anyr claudeCLI 启动器:anyr claude |
Route your first request in 2 minutesĐịnh tuyến request đầu trong 2 phút两分钟发出第一次请求
Run anyr claude and your agent is on the gateway — one key, every model, automatic failover. See how it differs from OpenRouter → OpenRouter alternativeChạy anyr claude và agent đã trên gateway — một key, mọi model, failover tự động. Khác OpenRouter thế nào → Thay thế OpenRouter运行 anyr claude,Claude Code 就上了网关 — 一把 Key,全部模型,自动故障转移。 和 OpenRouter 有何不同 → OpenRouter 替代