OpenRouter
openrouterAuthenticate with OpenRouter using OAuth PKCE or API keys. Access 400+ AI models through a unified OpenAI-compatible API.
🔐 Authentication Methods
oauth_pkce
authorize: https://openrouter.ai/auth
token: https://openrouter.ai/api/v1/auth/keys
api_key
Register at: https://openrouter.ai/keys
- Sign in to OpenRouter
- Go to Keys page
- Create a new API key
- Optionally set a credit limit
- Copy the key
👤 Identity
Account: e.g., personal, work
🌐 APIs
rest
Base URL: https://openrouter.ai/api/v1
Auth Header: Authorization: Bearer {token}