OmniRoute
OmniRoute is an open-source AI proxy and router. Use Sign in with Openference to route chat completions throughapi.openference.com with your Openference account and plan.
OAuth client
OmniRoute uses PKCE with a loopback redirect (
http://127.0.0.1:<port>/callback or http://localhost:<port>/callback). The omniroute client is first-party: after the first approval, consent is remembered.
Access tokens are ES256 JWTs (1 hour TTL). Refresh tokens use the oar_* prefix and rotate on every use — reuse revokes the whole family.
Account and plan requirements
- You need an Openference user account. If you sign in with Google/GitHub and have never registered, create an account from the authorize or device page.
- OAuth JWTs authenticate API requests. Users without an active plan may receive 402 on inference endpoints (
/v1/chat/completions, etc.) even when auth succeeds.
Device flow (headless / VPS)
When loopback PKCE is not available (remote OmniRoute install), theomniroute client also supports RFC 8628 device authorization:
POST https://openference.com/oauth/devicewithclient_id=omnirouteand scopeopenid profile email model:invoke offline_access- Open
verification_uri_completein a browser (or visit/app/oauth/deviceand enter the user code) - Sign in or create an account, then approve
- Poll
POST /oauth/tokenwithgrant_type=urn:ietf:params:oauth:grant-type:device_code