Skip to content
All use cases
OAuth
For app builders

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.

01

The problem

What this is for

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.

02

What to do

Three steps, then copy

  1. 1.Register your app and implement the OAuth 2.1 + PKCE consent flow.
  2. 2.Exchange the code for a short-lived sk-ar-v1 key scoped to that user.
  3. 3.Call models on their behalf — start with anyrouter/free or anyrouter/auto.
Consent endpoint
text
https://anyrouter.dev/oauth/consent

Ready to try it

The guide has the full walkthrough. Sign up if you still need a key.