Authentication fails in VS Code Remote-WSL (works locally on Windows)
Open 💬 0 comments Opened Mar 3, 2026 by finvernizzi-es
What version of the IDE extension are you using?
1.109.105
What subscription do you have?
Company pro
Which IDE are you using?
VS Code
What platform is your computer?
Windows 11
What issue are you seeing?
I am unable to sign in to the Codex VS Code extension when using Remote-WSL.
The browser login completes successfully, but the extension shows:
"Authentication Error
You do not have an account because it has been deleted or deactivated."
The same account works correctly when running VS Code locally on Windows (non-WSL).
This appears to be a WSL localhost callback/token exchange issue.
Environment:
- OS: Windows 11
- WSL Distro: Ubuntu
- Using: Remote - WSL
Request ID from error page:
84f0fc5f-d721-46b2-b156-b700211fd129
Additional Notes:
- No proxy/VPN
- Works immediately when not using WSL
What steps can reproduce the bug?
Connect to the WSL Ubuntu
Try to authenticate in Codex
If you do not connect to WSl the authentication works well
What is the expected behavior?
The authentication should work seamlessly if using WSL
Additional information
_No response_