把 Claude Code 指到 anyrouter.dev
这个产品上的 Claude Code 就是 anyrouter.dev。
兼容 Anthropic 的 base URL 是 https://anyrouter.dev/api(这个环境变量不要带 /v1——Claude Code 自己会拼 /v1/messages)。兼容 OpenAI 的 API 是 https://anyrouter.dev/api/v1。
快路:setup.sh + anyr claude
curl -fsSL https://anyrouter.dev/setup.sh | bash
anyr login
anyr claude手动环境变量(只有跳过 anyr 才需要)
export ANTHROPIC_BASE_URL="https://anyrouter.dev/api"
export ANTHROPIC_API_KEY="sk-ar-your-key"
claude先在控制台创建 key——每把 AnyRouter key 都以 sk-ar- 开头。
BYOK 和 anyr
在 控制台 → BYOK 挂上自己的供应商 key。BYOK 流量没有 AnyRouter 加价。anyr claude 仍然打到 https://anyrouter.dev/api。
不想绑卡开通 Go,就捐一把符合条件的 BYOK key。
Free 没有月度额度
**Free** 套餐**不含月度额度**。已登录的 Free 用户在 anyrouter/free 和 :free 上每天 **10 次**。付费模型没额度或没订阅会 402。
**Go** 是 **$2/月**(Polar 收 **$2.63**)→ **$4** 额度。或者捐一把符合条件的 BYOK key。
Go 限速:**每分钟 60 次**、**滚动 5 小时 3,000 次**。旧文写 $1 Go 的是错的——见 Free 对 Go。
相关文章
Donate a key for Go — no card
Two ways to Go: pay $2/mo (card charged $2.63, $4 credits) or donate one eligible BYOK key (DeepSeek, Z.ai GLM, Moonshot Kimi). No Alipay or WeChat. Donor cut 5%/8%, capped at $1 per key per UTC day — that $1 is the donor cap, not the Go price.
AnyRouter pricing: Free vs Go (the $1 posts are wrong)
Older pages still say $1 Go — wrong. Free has no monthly credits; anyrouter/free is 10 req/day. Go is $2/mo ($2.63 charged) → $4. Pro $10 ($11.05) → $20; Pro+ $45 ($47.89) → $100; Max $100 ($105.79) → $300.
BYOK: bring your own keys to every provider
Attach the OpenAI, Anthropic, Google, and 60+ other provider keys you already pay for, route them through one OpenAI-compatible URL at $0 markup, cap spend per key, and — if you donate idle quota to the shared pool — earn up to 8% back and unlock Go for free while a donated key stays active.