codex - 💡(How to fix) Fix Codex Desktop OAuth login failure - CLI works but Desktop fails

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Error Message

Error: error sending request for url:

RAW_BUFFERClick to expand / collapse

What version of the Codex App are you using (From “About Codex” dialog)?

26.519.11010.0

What subscription do you have?

ChatGPT Pro

What platform is your computer?

Windows 10 Pro Version 2009 Build 10.0.26100.1 64-bit

What issue are you seeing?

Codex Desktop cannot complete authentication.

Error:

token_exchange_failed

Token exchange failed: error sending request for url: https://auth.openai.com/oauth/token

Codex Desktop version: 26.519.11010.0

Codex CLI version: 0.135.0

Important:

Codex CLI works correctly on the same machine, same account, same network, and same operating system.

Only Codex Desktop fails during OAuth token exchange.

Diagnostic steps already performed:

  • Chrome and Edge both reproduce the issue.
  • auth.openai.com is reachable.
  • Invoke-WebRequest https://auth.openai.com/oauth/token returns the expected API response: "Invalid method for URL (GET /oauth/token)"
  • localhost:1455 OAuth callback is functioning.
  • No WinHTTP proxy is configured.
  • System date and time are correct.
  • Kaspersky antivirus disabled.
  • HTTPS inspection disabled.
  • Codex Desktop cache cleared.
  • WebView2 processes restarted.
  • Codex Desktop reinstalled.

Expected behavior: Codex Desktop should authenticate successfully.

Actual behavior: Authentication fails with token_exchange_failed during OAuth token exchange.

What steps can reproduce the bug?

  1. Open Codex Desktop 26.519.11010.0.
  2. Click "Continue with ChatGPT".
  3. Browser opens and authentication completes successfully.
  4. Codex Desktop returns: token_exchange_failed
  5. Login never completes.

Frequency: 100% reproducible.

What is the expected behavior?

Codex Desktop should successfully authenticate using the "Continue with ChatGPT" workflow.

After completing authentication in the browser, Codex Desktop should receive the OAuth token, complete the token exchange, sign the user in, and open the application normally.

The same account already authenticates successfully using Codex CLI 0.135.0 on the same machine, network, and operating system.

Additional information

Additional diagnostic information:

  • Codex Desktop version: 26.519.11010.0
  • Codex CLI version: 0.135.0
  • Subscription: ChatGPT Pro
  • Windows 10 Pro x64 (Build 10.0.26100.1)

Results of troubleshooting:

  • Codex CLI authenticates and works correctly.
  • Browser authentication works correctly.
  • Chrome and Microsoft Edge both reproduce the issue.
  • localhost:1455 OAuth callback is functioning.
  • auth.openai.com is reachable.
  • Invoke-WebRequest https://auth.openai.com/oauth/token returns the expected response: "Invalid method for URL (GET /oauth/token)"
  • No WinHTTP proxy configured.
  • System date and time verified.
  • Kaspersky antivirus disabled during testing.
  • HTTPS inspection disabled.
  • Codex Desktop cache cleared.
  • WebView2 processes restarted.
  • Codex Desktop reinstalled.

The issue appears isolated to Codex Desktop OAuth token exchange. The same account works successfully with Codex CLI on the same machine.

<img width="234" height="161" alt="Image" src="https://github.com/user-attachments/assets/52ad244d-defd-4e42-b16d-86a3e60e0281" />

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

codex - 💡(How to fix) Fix Codex Desktop OAuth login failure - CLI works but Desktop fails