encouted 401 connection error

Resolved 💬 4 comments Opened Oct 26, 2025 by zorurume Closed Nov 15, 2025

What version of Codex is running?

OpenAI Codex (v0.50.0)

What subscription do you have?

chtgpt PRO

Which model were you using?

GPT5

What platform is your computer?

Microsoft Windows NT 10.0.26100.0 x64

What issue are you seeing?

I encountered repeated 401 Unauthorized errors when trying to use the Codex command-line tool on Windows. I tried uninstalling and reinstalling Codex via npm, cleaning caches, and checking environment variables, but the issue persisted—sometimes the codex command wasn’t even recognized after installation. I’m wondering: could these authentication or command-path problems be related to the fact that I was experimenting with using Codex to call itself—essentially trying to build a multi-agent system by having one Codex instance control another?

What steps can reproduce the bug?

Uploaded thread: 019a1f4e-65f0-75f3-9ff6-92f451ed4de7

What is the expected behavior?

_No response_

Additional information

_No response_

View original on GitHub ↗

This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗