Skip to content

[Feature] #OneClickLLM: One-click token setup for browser-based apps #31

@Krivich

Description

@Krivich

Hi team, thank you for OpenRouter — it’s a great tool for developers experimenting with LLMs.

I’ve been building serverless, browser-only apps, and noticed a common pain point: users struggle to manually copy-paste their API key, model, and endpoint — especially when the UI is in English or they’re unfamiliar with tokens.

Your Provisioning API is perfect for SaaS platforms (where you pay for users), but for open-source, client-side apps, users should use their own keys — we just need a secure way to deliver them.

Proposal: #OneClickLLM flow

  1. App redirects user to: https://openrouter.ai/setup?client=AppName&redirect_uri=https://app.com/
  2. User logs in (or signs up) and clicks “Issue token”.
  3. OpenRouter redirects back with a scoped token in the URL hash: https://app.com/#token=sk-or-v1-xxx&model=qwen/qwen3-235b-a22b:free
  4. App reads the hash and uses the token locally.

This requires no backend, works on GitHub Pages, and keeps tokens never leaving the browser.

Would you consider supporting this flow? I’d be happy to help test or document it.

Thanks for your time!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions