VSCode Codex unexpected status 401 Unauthorized:
Open 💬 2 comments Opened Jan 14, 2026 by chewypenguin11
What version of Codex is running?
0.4.58
What subscription do you have?
Enterprise
Which model were you using?
gpt-5.2
What platform is your computer?
Microsoft Windows NT 10.0.26100.0 x64
What issue are you seeing?
I get the following trying any prompt:
Reconnecting... 1/5
Reconnecting... 2/5
Reconnecting... 3/5
Reconnecting... 4/5
Reconnecting... 5/5
unexpected status 401 Unauthorized:
It's been this way for at least a week. I've tried logging in, moving/deleting the auth.json, reinstalling the add-in, changing versions, changing models. Can confirm the online chat works.
I generated a feedback id: 019bb2c4-255f-7c82-a86d-6388bfead160
This is my user id user-2pts5AK91M9iiOPYYGZE0A0V
What steps can reproduce the bug?
N/A
What is the expected behavior?
A response
Additional information
_No response_
2 Comments
Add the following line to your settings.json, restart vscode and it should work for you.
"chatgpt.cliExecutable": "%USERPROFILE%\\\\nodejs\\\\npm\\\\node_modules\\\\@openai\\\\codex\\\\vendor\\\\x86_64-pc-windows-msvc\\\\codex\\\\codex.exe",
me,too