codex icon indicating copy to clipboard operation
codex copied to clipboard

Cant login with ChatGPT in WSL

Open Dariton4000 opened this issue 1 year ago • 4 comments

What version of Codex is running?

codex-cli 0.20.0

Which model were you using?

No response

What platform is your computer?

Linux 5.15.167.4-microsoft-standard-WSL2 x86_64 x86_64

What steps can reproduce the bug?

When setting up Codex CLI and selecting "Sign in with ChatGPT"

"Finish signing in via your browser"

What is the expected behavior?

A browser opens to log in

What do you see instead?

Nothing happening, not even a link to open manually

Additional information

It can't open a browser inside WSL. Please add a link to press on in the console during signin to open in Windows Browser.

Dariton4000 avatar Aug 10 '25 12:08 Dariton4000

I have the same issue.

skechagia avatar Aug 10 '25 14:08 skechagia

I also have the same issue, have not been able to figure out a workaround, ideally we can get a link we can click and copy and paste an auth token.

adamwlarson avatar Aug 10 '25 16:08 adamwlarson

See https://github.com/openai/codex/pull/2121

bolinfest avatar Aug 10 '25 16:08 bolinfest

Fixed with 0.22. Please update and file a new issue if you still see errors

ae-openai avatar Aug 20 '25 17:08 ae-openai