Skip to content

DRU-85 -- Connect OpenAI subscriptions with Codex device authorization - #829

Merged
czpython merged 1 commit into
mainfrom
codex/dru-85-codex-device-login
Oct 5, 2026
Merged

czpython merged 1 commit into
mainfrom
codex/dru-85-codex-device-login

Conversation

@czpython

@czpython czpython commented Oct 4, 2026 •

Copy link
Copy Markdown
Owner

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_connection requests 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/check asks OpenAI for the grant. It returns null until 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.

@mintlify

mintlify Bot commented Oct 4, 2026 •

Copy link
Copy Markdown

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated
druks 🟢 Ready View Preview Oct 5, 2026, 11:34 AM

💡 Tip: Enable Automations to automatically generate PRs for you.

@czpython
czpython force-pushed the codex/dru-85-codex-device-login branch from 813df9e to 0da3262 Compare October 5, 2026 07:16
@czpython czpython changed the title Use Codex device authorization for OpenAI connections DRU-85 -- Connect OpenAI subscriptions with Codex device authorization Oct 5, 2026
@czpython
czpython force-pushed the codex/dru-85-codex-device-login branch from 0da3262 to 790c6f0 Compare October 5, 2026 11:13
@czpython
czpython force-pushed the codex/dru-85-codex-device-login branch from 790c6f0 to ccdb5f5 Compare October 5, 2026 11:29
@czpython
czpython force-pushed the codex/dru-85-codex-device-login branch from ccdb5f5 to 75e1956 Compare October 5, 2026 11:31
@czpython
czpython force-pushed the codex/dru-85-codex-device-login branch from 75e1956 to b218b74 Compare October 5, 2026 11:34
@czpython
czpython merged commit ce90044 into main Oct 5, 2026
5 checks passed
@czpython
czpython deleted the codex/dru-85-codex-device-login branch October 5, 2026 11:59

This branch was successfully deployed

1 active deployment
staging - docs — b218b74b Deployed Oct 5, 2026 by mintlify[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant