Anthropic keyKeys and pool
Bring your own Anthropic key
Add your sk-ant key once. Claude models then run on your Anthropic plan and limits, billing stays on your Anthropic account, and one AnyRouter endpoint can fall back to other models.
Set it up
curl · anthropic/claude-sonnet-4-6
$ curl https://anyrouter.dev/api/v1/chat/completions \
-H "Authorization: Bearer $ANYROUTER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "anthropic/claude-sonnet-4-6",
"messages": [{ "role": "user", "content": "Say hello in one sentence." }]
}'- 1.Open Dashboard → BYOK → Add key.
- 2.Pick Anthropic and paste your sk-ant-… key.
- 3.Press Test key. It checks the key and the models you picked.
- 4.Save the key.
- 5.Call anthropic/claude-… models with your AnyRouter key, from curl or from Claude Code with anyr claude.
Why use this
You already pay Anthropic, and your plan has its own limits and billing. Add that key to AnyRouter and keep one endpoint and one API for every tool, with other models ready if Claude is busy or you hit a limit.
Other ways to set it up
Claude Code · anyr claude
curl -fsSL https://anyr.dev/cli.sh | bash
anyr claude --model anthropic/claude-sonnet-4-6Endpoints and key
- OpenAI-compatible
- https://anyrouter.dev/api/v1
- Anthropic-compatible
- https://anyrouter.dev/api
- Key
- ANYROUTER_API_KEY (sk-ar-…)
Watch the walkthrough
Good to know
- Your key is encrypted at rest and used only to route your own requests.
- Test key makes a tiny call to Anthropic for each model you picked. Nothing is saved until you press Add key.
- A key that has not passed a test is saved paused and does not route.
- To turn a key off, open the Anthropic key list on the BYOK page and switch the key to Off. Traffic moves to your other keys or to AnyRouter credits.
- To remove a key, open the same list and use the trash icon. The key is deleted for good.