API Reference
Authentication
Authenticate AnyRoute API requests with bearer tokens.
All public AnyRoute API requests use bearer token authentication.
Authorization: Bearer YOUR_ANYROUTE_API_KEYUse the same AnyRoute API key with SDK-specific names:
| Client | Key field |
|---|---|
| Claude Code / Anthropic-compatible tools | ANTHROPIC_AUTH_TOKEN |
| OpenAI SDK / Codex | OPENAI_API_KEY |
| Gemini CLI / Gemini SDK | GEMINI_API_KEY |
If you receive an authentication error, verify that the key is copied without extra spaces and is assigned to an active provider group.
AnyRoute Docs