# 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.

Give your app a temporary inference-only key

**Slug**: `sign-in`  
**URL**: https://anyrouter.dev/use-cases/sign-in  
**Markdown**: https://anyrouter.dev/use-cases/sign-in.md  
**Short link**: https://anyrouter.dev/u/sign-in  

## 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.

## Set it up

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.

## Code

### Consent endpoint

```text
https://anyrouter.dev/oauth/consent
```

## Related

- [ai-sdk](https://anyrouter.dev/use-cases/ai-sdk)
- [unify-api](https://anyrouter.dev/use-cases/unify-api)
- [virtual-presets](https://anyrouter.dev/use-cases/virtual-presets)
