openrouter-oauth

Installation
SKILL.md

Sign In with OpenRouter

Add OAuth login to any web app. Users authorize on OpenRouter and your app receives an API key — no client registration, no backend, no secrets. Works with any framework.

Live demo: openrouterteam.github.io/sign-in-with-openrouter

Decision Tree

User wants to… Do this
Add sign-in / login to a web app Follow the full PKCE flow + button guidance below
Get an API key programmatically (no UI) Just implement the PKCE flow — skip the button section
Use the OpenRouter SDK after auth Do PKCE here for the key, then see openrouter-typescript-sdk skill for callModel/streaming

OAuth PKCE Flow

No client ID or secret — the PKCE challenge is the only proof of identity.

Related skills

More from openrouterteam/skills

Installs
60
GitHub Stars
135
First Seen
Mar 9, 2026