Cannot auth with ChatGPT with Microsoft for Codex CLI

Resolved 💬 0 comments Opened Aug 28, 2025 by roafh Closed Aug 28, 2025

What version of Codex is running?

codex-cli 0.25.0

Which model were you using?

_No response_

What platform is your computer?

Microsoft Windows NT 10.0.22631.0 x64

What steps can reproduce the bug?

  • Open terminal
  • Enter codex
  • Takes you to the page where you can login, I chose Microsoft login
  • Shows this page

By continuing, ChatGPT will share your name, email, and profile picture with Codex CLI to link your account.

Codex CLI will not receive your chat history.

  • Click continue
  • Shows this page with "Missing authorization code" at the url:

http://localhost:1455/auth/callback?error=access_denied&error_description=The+resource+owner+or+authorization+server+denied+the+request.+The+consent+verifier+has+already+been+used.&state=xxxxxxxxxxxxxxxxxxx

What is the expected behavior?

Lets me login to auth for codex CLI ?

What do you see instead?

  • Shows this page with "Missing authorization code" at the url:

http://localhost:1455/auth/callback?error=access_denied&error_description=The+resource+owner+or+authorization+server+denied+the+request.+The+consent+verifier+has+already+been+used.&state=xxxxxxxxxxxxxxxxxxx

Additional information

_No response_

View original on GitHub ↗