You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
I want to be able to specify the shell Codex uses #13165
On Windows, Codex currently uses the Powershell shell to work (at least with the sandbox enabled) which causes all sort of issues. I'd like to be able to use MinGW Bash with it (I don't want to use WSL for various reasons) or any other kind of shell (ZSH or anything). You already support controlling the shell environment somehow with the shell_environment_policy config section, it will be nice if this included the shell to use itself.
Additional information
No response
Reacted by Eric Taucher, tagor, Katsuhiko Takahashi, Yikun Fu, 柒夜雨猫, megayu, Roman Kuzkokov, a2k, f32y, JongChan Choi (Rieul) and 27 more
Reacted by tagor, Yikun Fu, 柒夜雨猫, JongChan Choi (Rieul), Yukai Huang, Kishan Pipariya, Raj Siva-Rajah, Randy Tseng, Nikolay Baklicharov, xpjb and 3 more
I agree, that would be very convenient, and this feature has been missing for a long time-especially considering that native PowerShell Codex runs all commands in the harness under CMD, which breaks even a large amount of PowerShell syntax. Sometimes, Codex comes up with some incredible and frustrating workarounds just to execute a simple command because it can't figure out which syntax is valid and which isn't. This leads to overquoting hell and other undesirable consequences. So yes, that would be absolutely fantastic.
Reacted by 柒夜雨猫, Nep Nep, Yukai Huang, Dovie Weinstock, SeniorMars and Tihomir Kit
I also vote for that. WSL usage on code which is located outside it, is slow and in general I might not want to have WSL installed at all. The shell specific commands which Codex is using from WSL are fully available in MinGW Bash/Git Bash.
Activity
github-actions commentedon Mar 1, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
tagorr commentedon Mar 2, 2026
I agree, that would be very convenient, and this feature has been missing for a long time-especially considering that native PowerShell Codex runs all commands in the harness under CMD, which breaks even a large amount of PowerShell syntax. Sometimes, Codex comes up with some incredible and frustrating workarounds just to execute a simple command because it can't figure out which syntax is valid and which isn't. This leads to overquoting hell and other undesirable consequences. So yes, that would be absolutely fantastic.
deadcoder0904 commentedon Mar 20, 2026
Yeah, same lol. Mine was closed with dumb reason - #11184
manvithn commentedon Apr 10, 2026
For context, in Claude I can use "CLAUDE_CODE_SHELL" to configure this.
TheStormN commentedon May 28, 2026
I also vote for that. WSL usage on code which is located outside it, is slow and in general I might not want to have WSL installed at all. The shell specific commands which Codex is using from WSL are fully available in MinGW Bash/Git Bash.
xpjb commentedon Jun 10, 2026
not having this is a deal breaker
n00mkrad commentedon Jul 6, 2026
+1
Can't be so hard to make the shell configurable since the agent already supports multiple
mikaelstaldal commentedon Aug 16, 2026
Please support this on all platforms, not only Windows.