01 / The short version
What happened
OpenAI published a technical explainer on the Codex sandbox, a security layer in its Codex coding agent that constrains the commands the agent runs on a user's machine. Rather than isolating work in a virtual machine or container, Codex uses each operating system's own sandboxing facilities to limit filesystem and network access in the user's existing environment. Users configure these limits through permission profiles. The built-in :workspace profile allows writes inside the workspace while keeping .git and .codex read-only, permits broad filesystem reads, and disables network access by default. OpenAI frames this as part of a defense-in-depth strategy alongside training and alignment, and notes that harmful actions remain possible despite the restrictions.
See the exact references02 / Key takeaways
What you need to know
- 01
Codex runs commands in the user's existing environment, constrained by OS-level sandboxing rather than a container or VM.
- 02
The built-in :workspace profile allows workspace writes but keeps .git and .codex directories read-only.
- 03
That default profile permits broad filesystem reads and disables network access, blocking uploads and dependency downloads.
- 04
Users define custom permission profiles under [permissions] in config.toml, and profiles can extend built-in ones.
- 05
The harness exposes a common sandboxing API across macOS, Linux and Windows, and child processes inherit the parent's constraints.
- 06
OpenAI says the codex sandbox command lets developers reuse sandboxed execution in their own tools.
Why it matters
Agentic coding tools run real commands on real machines, so the default permission boundary shapes how much damage a mistake or malicious instruction can do. OpenAI's approach trades container isolation for convenience in native toolchains, which shifts responsibility onto carefully chosen defaults and user-configured profiles.
Who it affects: Developers using Codex and security teams configuring its permissions for enterprise environments are most directly affected.
Learn while you read
Key terms, simply explained
- Sandbox
- A restricted space where a program runs with limits on what files it can touch and whether it can reach the internet.
- Permission profile
- A saved set of rules naming which files and network access a Codex session is allowed to use.
- Agentic harness
- The software layer that takes actions requested by an AI model, such as running shell commands, and enforces safety rules.
- Defense in depth
- Using several independent layers of protection so that if one fails, others still guard against harm.
Keep in perspective
What to watch for
The article is OpenAI's own account of its sandbox design; it offers no independent testing or measured results on how well the restrictions hold against attacks.
Go to the source
Exact references
These are the original pages used for this brief. Publisher claims are not independent evaluations.
01Primary source · OpenAIRead the original announcementhttps://openai.com/index/inside-the-codex-sandboxAI-generated from the linked source. It can miss context; verify consequential details in the original. How the radar works