Repository navigation
DRU-85 -- Connect OpenAI subscriptions with Codex device authorization - #829
Merged
Merged
Conversation
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Automations to automatically generate PRs for you. |
czpython
force-pushed
the
codex/dru-85-codex-device-login
branch
from
October 5, 2026 07:16
813df9e to
0da3262
Compare
czpython
force-pushed
the
codex/dru-85-codex-device-login
branch
from
October 5, 2026 11:13
0da3262 to
790c6f0
Compare
czpython
force-pushed
the
codex/dru-85-codex-device-login
branch
from
October 5, 2026 11:29
790c6f0 to
ccdb5f5
Compare
czpython
force-pushed
the
codex/dru-85-codex-device-login
branch
from
October 5, 2026 11:31
ccdb5f5 to
75e1956
Compare
czpython
force-pushed
the
codex/dru-85-codex-device-login
branch
from
October 5, 2026 11:34
75e1956 to
b218b74
Compare
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
OpenAI subscriptions now connect with Codex device authorization, in onboarding and in Settings. Druks shows a short code and a link to OpenAI's device page, then checks until the operator approves. The failed localhost redirect and the pasted URL are gone. Anthropic keeps its code-paste flow.
OpenAiProvider.start_connectionrequests a device code and stores the attempt in Redis for 15 minutes, bound to the account that started it.POST /api/providers/{provider_id}/connection/checkasks OpenAI for the grant. It returnsnulluntil the operator approves. Then it exchanges the authorization code, stores the subscription, and returns the account. The page calls it at the interval that OpenAI gives.Before the operator connects, they enable device code authorization for Codex in ChatGPT (Settings → Security). The configuration guide says so.