[FEATURE]: OAuth Device Code flow for ChatGPT / Codex plans #7465

Closed
opened 2026-02-16 18:07:16 -05:00 by yindo · 1 comment
Owner

Originally created by @peixotorms on GitHub (Jan 24, 2026).

Originally assigned to: @rekram1-node on GitHub.

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

I noticed that #3281 is now native, and it used oAuth flow, which is great... but this doesn't work on remote servers. We need the OAuth Device Code flow, not the regular oAuth flow.

Please refer to:
https://github.com/openai/codex/issues/9253

On remote servers, it gives a code and we can copy past it for it to connect, much better.

Originally created by @peixotorms on GitHub (Jan 24, 2026). Originally assigned to: @rekram1-node on GitHub. ### Feature hasn't been suggested before. - [x] I have verified this feature I'm about to request hasn't been suggested before. ### Describe the enhancement you want to request I noticed that #3281 is now native, and it used oAuth flow, which is great... but this doesn't work on remote servers. We need the OAuth Device Code flow, not the regular oAuth flow. Please refer to: https://github.com/openai/codex/issues/9253 On remote servers, it gives a code and we can copy past it for it to connect, much better.
yindo added the discussion label 2026-02-16 18:07:16 -05:00
yindo closed this issue 2026-02-16 18:07:16 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 24, 2026):

This issue might be a duplicate of existing issues. Please check:

  • #8274: /connect doesn't work for openai when server is remote - addresses the exact issue of OAuth not working on remote servers
  • #3281: Enable User Sign-in with Codex ChatGPT Accounts via OAuth - the native OAuth implementation mentioned in this issue that doesn't support Device Code flow

The Device Code flow would be particularly useful for remote server scenarios where traditional OAuth (which requires a local callback server) doesn't work. Feel free to ignore if your specific use case differs from these.

@github-actions[bot] commented on GitHub (Jan 24, 2026): This issue might be a duplicate of existing issues. Please check: - #8274: /connect doesn't work for openai when server is remote - addresses the exact issue of OAuth not working on remote servers - #3281: Enable User Sign-in with Codex ChatGPT Accounts via OAuth - the native OAuth implementation mentioned in this issue that doesn't support Device Code flow The Device Code flow would be particularly useful for remote server scenarios where traditional OAuth (which requires a local callback server) doesn't work. Feel free to ignore if your specific use case differs from these.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#7465