Skip to content
프로젝트

소개

사용자가 ChatGPT 계정으로 로그인할 수 있게 해 주는 간단한 SDK입니다.

개발 도구

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
0
in 7 days
-1
in 15 days
-1
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

<LoginWithChatGPT />

A simple SDK that lets your users log in with their ChatGPT account.

npm version GitHub stars Follow @leodev on X

  • Users bring their own ChatGPT subscription
  • Tokens never touch the browser: HttpOnly cookie only
  • Works with the Vercel AI SDK: streamText() straight from the client
  • Generates and edits images with size, quality, format, masks, and streaming previews
  • Experimental GPT Live WebRTC audio with native interruption, plus desktop-style app-server handoffs for arbitrary allowlisted tools and explicit confirmations
  • Open source, MIT licensed

The handler keeps tokens behind the proxy path by default. The browser gets a session cookie, asks your backend which models the account has, and streams from there.

Install

bun add @opencoredev/loginwithchatgpt-core @opencoredev/loginwithchatgpt-server @opencoredev/loginwithchatgpt-react @opencoredev/loginwithchatgpt-ai

npm and pnpm work too. Everything ships as ESM with types for Node 18+.

Packages

Package Does
@opencoredev/loginwithchatgpt-core OAuth, token refresh, model discovery, private voice transport, and the app-server browser client
@opencoredev/loginwithchatgpt-server Backend handler: login, models, responses, direct voice signaling, and native tool handoffs
@opencoredev/loginwithchatgpt-react The <LoginWithChatGPT /> button and hook
@opencoredev/loginwithchatgpt-ai Vercel AI SDK providers

Docs

Start with the quickstart. The security model explains how tokens stay on your server, and the production checklist is there for when you deploy.

For the experimental subscription-backed speech-to-speech transport, native tool handoffs, confirmation lifecycle, and transport limitations, see experimental ChatGPT voice transport.

Agent skill

Using Claude Code, Cursor, or Codex? Install the agent skill so your agent wires the SDK correctly: no invented API keys, and no assuming one model slug works for every account.

npx skills add opencoredev/login-with-chatgpt

Then just ask your agent to "add Login with ChatGPT" and it will mount the handler, render the button, and stream through the proxy the right way. Also on skills.sh.

Star history

Star history

MIT License · Built by @leodev

관련 프로젝트 살펴보기

불러오는 중…