Community implementation of #924 — Sign in with ChatGPT subscription #949
YizukiAme
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
This is a complete, cherry-pickable community implementation of #924 — "Sign in with ChatGPT (Codex subscription)" as an LLM provider.
Status: the maintainers have declined a native adapter in core for now, and I respect that decision. This branch exists for self-hosters who want the feature today, as an opt-in patch you apply to your own deployment. If OpenAI ever ships an officially supported third-party OAuth path, this can serve as a reference for reconsidering native support.
What's included
Branch
codex-oauth-provider— based on currentupstream/main, five commits:528502b6— server-side OAuth core: browser PKCE + device-code login, atomic on-disk credential vault (0600, symlink-safe), token refresh/rotation, bounded response parsingd63096b3— AI SDK provider plumbing: Codex Responses transport with stream guards, stable logical sessions, reasoning supportcb832cc3— auth API routes and model catalog (models reflect what your account actually exposes)38cccf53— settings UI ("Sign in with ChatGPT", account status, sign-out), device-code & browser flows, i18n (8 locales), deployment gating139d0f15—gpt-image-2image generation via the same subscriptionHow to adopt
Disclaimers — read before adopting
All reactions