This product was not featured by Product Hunt yet. It will not be visible on their landing page and won't be ranked (cannot win product of the day regardless of upvotes).
Product upvotes vs the next 3
Waiting for data. Loading
Product comments vs the next 3
Waiting for data. Loading
Product upvote speed vs the next 3
Waiting for data. Loading
Product upvotes and comments
Waiting for data. Loading
Product vs the next 3
Loading
AI OAuth SDK
Let your customers bring their own AI subscription
Let your customers bring the AI subscription they pay for. Think BYOK, but they sign in with the plan they already have instead of pasting a key. ai-oauth-sdk runs the providers' real OAuth flows, the same ones their official CLIs use. The token stays on their device, so you never hold a key or pay for their inference. Eight providers: ChatGPT, Claude, Gemini, Grok, Copilot, Qwen, OpenRouter, Azure. Zero dependencies, MIT. Node, browser, React, Vue, Svelte, Solid, React Native, CLI.
Most products that let you use your own model do it with BYOK: paste an API key, we'll store it. I wanted that without the key, because asking someone for an API key means asking them to pay for tokens on top of the ChatGPT or Claude subscription they already have.
Every provider already has an OAuth flow, their own CLIs use it, but the details are all different and mostly undocumented. So I read through them and wrote it down as a library.
The shape is: your customer clicks connect, signs in with the plan they own, and the token stays on their device. You never hold a key, and their inference never lands on your bill.
A few things that cost me real time:
- OpenAI's public client only accepts localhost:1455, so on a deployed site you have to use the device code flow instead.
- Anthropic's consent page sends Cross-Origin-Opener-Policy: same-origin. That severs the popup: window.opener goes null and popup.closed reports true for a window still on screen, so a working sign-in looks cancelled a second after it opens.
- Google validates redirect_uri strictly, so off localhost the user copies the URL back by hand.
The SDK picks the right flow per provider and per runtime, so you don't have to find this out by failing.
chat.themonk.dev is the demo: pick a provider, pick a model, switch mid-conversation. The UI is built on Vercel's Next.js AI Chatbot template, which saved me a lot of front-end work.
Inspired by by @leodev. Both repos are MIT. If a provider you need is missing, tell me and I'll take a look.
About AI OAuth SDK on Product Hunt
“Let your customers bring their own AI subscription”
AI OAuth SDK was submitted on Product Hunt and earned 3 upvotes and 1 comments, placing #130 on the daily leaderboard. Let your customers bring the AI subscription they pay for. Think BYOK, but they sign in with the plan they already have instead of pasting a key. ai-oauth-sdk runs the providers' real OAuth flows, the same ones their official CLIs use. The token stays on their device, so you never hold a key or pay for their inference. Eight providers: ChatGPT, Claude, Gemini, Grok, Copilot, Qwen, OpenRouter, Azure. Zero dependencies, MIT. Node, browser, React, Vue, Svelte, Solid, React Native, CLI.
On the analytics side, AI OAuth SDK competes within Open Source, Developer Tools, Artificial Intelligence and GitHub — topics that collectively have 1.1M followers on Product Hunt. The dashboard above tracks how AI OAuth SDK performed against the three products that launched closest to it on the same day.
Who hunted AI OAuth SDK?
AI OAuth SDK was hunted by Prince Chauhan. A “hunter” on Product Hunt is the community member who submits a product to the platform — uploading the images, the link, and tagging the makers behind it. Hunters typically write the first comment explaining why a product is worth attention, and their followers are notified the moment they post. Around 79% of featured launches on Product Hunt are self-hunted by their makers, but a well-known hunter still acts as a signal of quality to the rest of the community. See the full all-time top hunters leaderboard to discover who is shaping the Product Hunt ecosystem.
For a complete overview of AI OAuth SDK including community comment highlights and product details, visit the product overview.