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: cli.sh + anyr claude
curl -fsSL https://anyr.dev/cli.sh | bash
anyr login
anyr claudeFull reference: anyrouter.dev/docs/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. Free callers get a 5-request lifetime trial on anyrouter/free and :free models; after that they need Go or higher, with no daily cap. Paid models return 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 cardProductSeptember 1, 2026 · 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)ProductSeptember 1, 2026 · Older pages still say $1 Go, wrong. Free has no monthly credits; anyrouter/free has no daily cap. Go is $2/mo ($2.63 charged) → $4. Pro $10 ($11.05) → $20; Max $100 ($105.79) → $300.
- BYOK: bring your own keys to every providerGuidesJuly 12, 2026 · 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 get Go for free while a donated key stays active.