[WSL] Codex CLI Cannot Authenticate on WSL2
Resolved 💬 2 comments Opened Jun 13, 2026 by jmao44 Closed Jun 25, 2026
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 ChatGPTpage - 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_
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗