Skip to content

I want to be able to specify the shell Codex uses #13165

Open

Description

@Arcnor

What variant of Codex are you using?

CLI

What feature would you like to see?

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

Activity

  1. added
    enhancement
    on Mar 1, 2026
  2. added
    CLI
    windows-os
    sandbox
    on Mar 1, 2026
  3. github-actions commented on Mar 1, 2026

    @github-actions
    Contributor
  4. added
    tool-calls
    and removed
    CLI
    sandbox
    on Mar 1, 2026
  5. tagorr commented on Mar 2, 2026

    @tagorr

    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.

  6. deadcoder0904 commented on Mar 20, 2026

    @deadcoder0904

    Yeah, same lol. Mine was closed with dumb reason - #11184

  7. manvithn commented on Apr 10, 2026

    @manvithn

    For context, in Claude I can use "CLAUDE_CODE_SHELL" to configure this.

  8. TheStormN commented on May 28, 2026

    @TheStormN

    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.

  9. xpjb commented on Jun 10, 2026

    @xpjb

    not having this is a deal breaker

  10. n00mkrad commented on Jul 6, 2026

    @n00mkrad

    +1

    Can't be so hard to make the shell configurable since the agent already supports multiple

  11. mikaelstaldal commented on Aug 16, 2026

    @mikaelstaldal

    Please support this on all platforms, not only Windows.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementtool-callswindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions