opencoredev/login-with-chatgpt — explained in plain English
Analysis updated 2026-05-18
Add a Login with ChatGPT button so users sign in with their existing subscription.
Stream AI responses from a user's own ChatGPT account through your backend.
Generate and edit images using a logged in user's ChatGPT access.
| opencoredev/login-with-chatgpt | eli-labz/third-eye | yangshun/tree-node-cli | |
|---|---|---|---|
| Stars | 286 | 285 | 285 |
| Language | TypeScript | TypeScript | TypeScript |
| Setup difficulty | easy | — | easy |
| Complexity | 2/5 | — | 1/5 |
| Audience | developer | developer | developer |
Figures from each repo's GitHub metadata at analysis time.
Requires wiring up four separate packages across your frontend and backend.
Login with ChatGPT is a TypeScript software development kit that lets developers add a "log in with your ChatGPT account" button to their own apps. Instead of building a separate account system, users bring their existing ChatGPT subscription and sign in with that, similar to how many sites let you log in with Google or GitHub. Once a user logs in, your app can ask your backend which AI models that user's ChatGPT account has access to, and then stream responses from those models directly through your server. The access tokens that prove the user is logged in never reach the browser at all. Instead, the browser only holds a session cookie marked HttpOnly, meaning client side JavaScript cannot read it, while the actual tokens stay behind a proxy path on your own backend. The project also supports generating and editing images, including control over size, quality, format, and masks, with streaming previews as results come back. The SDK is split into four separate packages you install together: a core package that handles the OAuth login flow, token refreshing, and figuring out which models are available, a server package with a backend handler covering login, session management, logout, and the proxy that streams responses, a React package that provides a ready made login button and hook, and a package with providers for the Vercel AI SDK, so streaming responses works directly with that library's streamText function. Installation is done through a package manager such as bun, npm, or pnpm, and everything ships as modern ESM modules with TypeScript types included, supporting Node 18 and newer. The project also includes an agent skill for tools like Claude Code, Cursor, and Codex, which can be installed with a single command so that an AI coding agent wires up the SDK correctly rather than guessing at API keys or assuming any one model works for every account. The project is open source under the MIT license and built by a single developer going by the handle leodev.
Login with ChatGPT is a TypeScript SDK that lets users sign into your app with their own ChatGPT account, keeping access tokens off the browser.
Mainly TypeScript. The stack also includes TypeScript, React, Vercel AI SDK.
Use freely for any purpose, including commercial use, as long as you keep the copyright notice.
Setup difficulty is rated easy, with roughly 30min to a first successful run.
Mainly developer.
This repo across BitVibe Labs
double-check against the repo, no cap.