GPTMap

codex sandbox

The subcommand that runs commands inside a Codex-provided sandbox — reproduce the agent's execution environment by hand.

Codex commandsopenaicodexclisubcommandsandboxdebugging

Specs

Verified:

Kind
CLI subcommand
Syntax
codex sandbox [options] <command>
First seen
—
unverified

The official help for `codex sandbox` reads "Run commands within a Codex-provided sandbox". It runs a command inside the same isolation surface the agent gets — for reproducing environment differences behind "works for the agent, fails for me" (or the reverse). First-seen version is unverified.

Key features

  • Run a command inside Codex's sandbox by hand
  • Reproduce the agent's execution environment for debugging

Use cases

Verify it yourself in the same sandbox when the agent claims a dependency can't be installed.

Install

`codex sandbox <command>`; `codex sandbox --help` for options.

Caveats

The sandbox tier follows your launch configuration — capabilities differ by the tier chosen via -s/--sandbox.

Added

Updated

Verified

Related entries