Why route Claude Code through RouterLink
- Pay-as-you-go — bill against your RouterLink credit balance, no monthly subscription.
- Per-key budgets — hard-cap monthly spend on the key Claude Code uses.
- Unified billing — Claude Code usage shows up in the same dashboard as the rest of your traffic.
- Files API supported — upload, fetch, and delete files via Claude Code’s tool use loop.
Setup
Get a RouterLink API key
Follow the Quickstart if you don’t have one yet.
Install Claude Code
What’s supported
| Feature | Status |
|---|---|
/v1/messages (streaming + non-streaming) | Supported |
/v1/messages/count_tokens | Supported |
| Tool use | Supported |
Prompt caching (cache_control) | Supported |
| Extended thinking | Supported |
Files API (/v1/files) | Supported |
| Batches API | Coming soon |
Switching models
Claude Code uses Sonnet by default. To switch model, use Claude Code’s/model slash command — RouterLink forwards whatever model you select to the upstream provider, so any Anthropic model name works (claude-sonnet-4-6, claude-opus-4-7, claude-haiku-4-5, …).
Troubleshooting
`401 Unauthorized` on the first request
`401 Unauthorized` on the first request
`429 budget_exceeded`
`429 budget_exceeded`
The key Claude Code is using has hit its monthly budget cap. Raise the cap in API Keys → Edit or add credits in Billing → Recharge.
Claude Code hangs on a thinking step
Claude Code hangs on a thinking step
Make sure you’re on the latest Claude Code version. RouterLink ships streaming fixes for cross-vendor thinking that landed in v1.0+.

