Codex for Native Windows?

Resolved 💬 4 comments Opened Sep 22, 2025 by PierrunoYT Closed Dec 14, 2025
💡 Likely answer: A maintainer (LaelLuo, contributor) responded on this thread — see the highlighted reply below.

Codex for Native Windows? Any eta for this?

View original on GitHub ↗

4 Comments

LaelLuo contributor · 11 months ago

@wbdb I also opened a similar PR #3866 😂

LaelLuo contributor · 11 months ago

Additionally, if you have WSL enabled on Windows, you'll notice that Codex starts very slowly.

This happens because Codex runs bash --version during startup to detect if bash is available. Unfortunately, on Windows, program execution doesn't properly follow the PATH environment variable priority, so it always attempts to launch WSL to run bash --version instead of using the bash you've configured in PATH (such as Git Bash or MSYS2 Bash).

I've submitted PR #4084 to address this issue. See also the related discussion in #3159

chausner · 11 months ago

I am successfully using Codex on Windows directly (without WSL). While this seems not officially supported at the moment (https://github.com/openai/codex/blob/main/docs/install.md#system-requirements only lists Windows in combination with WSL), it appears to work okay but has some limitations. The main issue I encountered is that Codex prefers to use Linux commands that do not exist on Windows by default (e.g. sed and rg). However, it seems it switches to alternative Windows commands once it recognizes that these commands are not available.