Skip to content

Allow Windows users to run Codex in "no sandbox" mode and explicitly approve/deny commands #18005

Closed as not planned

Description

@rwalle

What variant of Codex are you using?

CLI

What feature would you like to see?

Currently, for Windows users, whenever they use Codex with any new folder (workspace), they will be greeted with the sandbox setup screen and have to choose between default sandbox, non-admin sandbox or quit.

Image

We would like another "no sandbox" option where user explicitly approves/denies commands.

Additional information

The default sandbox is not allowed by IT (due to concerns documented in #12343 and elsewhere), while non-admin sandbox carries significant risk and allows running arbitrary command without approval in our testing.

We do notice that if user chooses "quit" and immediate open codex again for the same folder, they can use Codex in a mode where they explicitly approve/deny any potentially risky command. There is no sandbox being applied in this mode.

Could Codex make this "no sandbox" mode an explicit choice in that screen?

Activity

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

    @github-actions
    Contributor

    Potential duplicates detected. Please review them and close your issue if it is a duplicate.

    Powered by Codex Action

  4. rwalle commented on Apr 15, 2026

    @rwalle
    Author

    Potential duplicates detected. Please review them and close your issue if it is a duplicate.

    * [Opportunity: make host-faithful local use a first-class Codex workflow #17660](https://github.com/openai/codex/issues/17660)
    

    Powered by Codex Action

    not a duplicate

  5. etraut-openai commented on Apr 15, 2026

    @etraut-openai
    Contributor

    Using Codex without any form of sandboxing is highly discouraged. It's not safe, so it's not an option that we want to make readily available. The "no sandbox" mode is recommended only if you have your own sandbox in place (e.g. a container or VM).

  6. rwalle commented on Apr 15, 2026

    @rwalle
    Author

    Using Codex without any form of sandboxing is highly discouraged. It's not safe, so it's not an option that we want to make readily available. The "no sandbox" mode is recommended only if you have your own sandbox in place (e.g. a container or VM).

    Thanks for your reply. Just in case there is any confusion -- here the behavior is that user manually approves/denies any risky action, which is already there as an existing mode, just not exposed. This is also consistent with the default behavior of other coding agents in our survey (at least Claude Code and Gemini CLI)

    The current "unelevated sandbox" carries more risk than manual approval workflow in our opinion -- we can easily come up with examples where a command that writes outside the current workspace folder runs without approval.

  7. etraut-openai commented on Jul 1, 2026

    @etraut-openai
    Contributor

    This feature request hasn't received enough upvotes, so it is being closed automatically. If you still feel this feature is needed, please open a new feature request with an updated title and description.

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

    CLIenhancementsandboxwindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions