Point Claude Code at anyrouter.dev
Claude Code on this product is anyrouter.dev.
The Anthropic-compatible base URL is https://anyrouter.dev/api (no /v1 on that env var — Claude Code appends /v1/messages). The OpenAI-compatible API is https://anyrouter.dev/api/v1.
Fast path: setup.sh + anyr claude
curl -fsSL https://anyrouter.dev/setup.sh | bash
anyr login
anyr claudeFull reference: docs.anyrouter.dev/cli/claude-code.
Manual env (only if you skip anyr)
export ANTHROPIC_BASE_URL="https://anyrouter.dev/api"
export ANTHROPIC_API_KEY="sk-ar-your-key"
claudeCreate the key in the dashboard first — every AnyRouter key starts with sk-ar-.
BYOK and anyr
Attach your own provider keys under Dashboard → BYOK. BYOK traffic has no AnyRouter markup. anyr claude still talks to https://anyrouter.dev/api.
To get Go without a card, donate an eligible BYOK key.
Free has no monthly credits
The **Free** plan includes **no monthly credits**. Authenticated Free callers get **10 req/day** on anyrouter/free and :free models. Paid models 402 without credits or a subscription.
**Go** is **$2/mo** (Polar charges **$2.63**) → **$4** credits. Or donate an eligible BYOK key.
Go rate limits: **60 req/min** and **3,000 req per rolling 5 hours**. Older posts that say $1 Go are wrong — see Free vs Go.
Related posts
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.
Route your first request in 2 minutes
Start free with your own keys, or top up and pay per token. Get $4/mo in credits and free models on Go — $2/mo, or free when you donate a provider key.
Start free