[WSL] Codex CLI Cannot Authenticate on WSL2

Resolved 💬 2 comments Opened Jun 13, 2026 by jmao44 Closed Jun 25, 2026
💡 Likely answer: A maintainer (github-actions[bot], contributor) responded on this thread — see the highlighted reply below.

What version of Codex CLI is running?

codex-cli 0.139.0

What subscription do you have?

Pro

Which model were you using?

NA

What platform is your computer?

Microsoft Windows NT 10.0.26200.0 x64

What terminal emulator and version are you using (if applicable)?

VS Code

Codex doctor report

What issue are you seeing?

  • Start up Codex CLI via codex
  • Presented with 3 options to sign in
  • Choose 1. Sign in with ChatGPT
  • An auth window pops up at: https://auth.openai.com/choose-an-account
  • Choose my account
  • Navigated to the Sign in to Codex with ChatGPT page
  • Click "Continue"
  • Browser navigates to: http://localhost:1455/auth/callback?code=<a-bunch-of-random-stuff> which cannot be reached

What steps can reproduce the bug?

Try to sign in with a brand new installation of Codex CLI on WSL.

What is the expected behavior?

Sign-in completes successfully. (It worked in a previous version)

Additional information

_No response_

View original on GitHub ↗

2 Comments

github-actions[bot] contributor · 2 months ago

Potential duplicates detected. Please review them and close your issue if it is a duplicate.

  • #27618

Powered by Codex Action

jmao44 · 2 months ago

Seems to have been fixed in the latest update. Closing.

❯ codex --version
codex-cli 0.142.2