OpenAI publishes how Codex sandboxes the code its agent runs

Made by AIWritten by AI (Claude) from the source below. Check anything important against the source.How it's made

OpenAI publishes how Codex cages the code its agent runs — rather than using a virtual machine or a container it uses the isolation mechanisms the operating system already has, in the user's own environment, and exposes them to the harness as a single function that takes a command, a permission bundle and an optional proxy. Under the default bundle, writes are allowed only inside the working folder, .git and .codex are read-only, and network access is off. On macOS it uses sandbox-exec with Seatbelt rules and a default policy of deny everything; on Linux it layers seccomp-bpf on bubblewrap so that connect and bind are blocked when the network is off; and on Windows it wrote that it is moving an earlier implementation onto Microsoft MXC. Requests for more permission, or to run outside the sandbox, are judged by the harness and sent to user confirmation or automatic review, and it recommended wrapping external tool servers attached over standard input and output separately, since they are not caged by default. It also wrote down the limits: reads are broadly open, so configuration files holding keys can be read, and a package that has been modified in place can later run outside the sandbox.

Why it matters

It is the implementation-side answer that reads alongside the external sandbox proposal published the same week. Using the operating system's isolation as it comes removes the installation burden but leaves holes in the breadth of reads and in code that runs later, and that the company wrote those holes down is a rare thing on this axis.

Source — Primary sources first; secondary reports are labelled “Press”

Officialopenai.comhttps://openai.com/index/inside-the-codex-sandbox

Added in Week 48, 2026 · See that week

On the map — ㉒ Agent Security line

  1. Previous stopOpenAI releases GPT-6 Cyber, raises cyber rating from High to Critical
  2. This recordOpenAI publishes how Codex sandboxes the code its agent runs
  3. Next stopOpenAI and Cisco release Shirudo, an open-source Linux runtime
See it on the map

Same week

OpenAI proposes measuring pretraining progress with perplexityOfficialHugging Face releases adapters that tune a model to each harnessOfficialThinking Machines releases Inkling 2 MiniOfficialAnthropic announces completion of its initial public offeringOfficial

Nearby on the same axis

Simon Willison describes external sandboxes for coding agentsOfficialOpenAI publishes its approach to countering adversarial distillationOfficialOpenAI and Cisco release Shirudo, an open-source Linux runtimeOfficialOpenAI releases GPT-6 Cyber, raises cyber rating from High to CriticalOfficial