For app buildersKeys and pool
Let users sign in with their AnyRouter account
Your app gets a temporary inference-only key. Their balance pays. You never store a raw provider secret.
Set it up
Consent endpoint
› https://anyrouter.dev/oauth/consent
- 1.Register your app and implement the OAuth 2.1 + PKCE consent flow.
- 2.Exchange the code for a short-lived sk-ar-v1 key scoped to that user.
- 3.Call models on their behalf — start with anyrouter/free or anyrouter/auto.
3 steps
Why use this
Shipping your own LLM keys means you eat every user's bill. Asking them to paste an OpenAI key is a bad secret-handling story.
Endpoints and key
- OpenAI-compatible
- https://anyrouter.dev/api/v1
- Anthropic-compatible
- https://anyrouter.dev/api
- Key
- ANYROUTER_API_KEY (sk-ar-…)