News · OpenAI · 2 min read
Event date: · Published:
OpenAI details new Codex permission-profile system for sandboxing coding agents
OpenAI published an engineering explainer describing how Codex's sandbox now uses named permission profiles such as workspace and danger-full-access to control filesystem and network access per session.
OpenAI published an engineering explainer on Codex's local command sandbox, Inside the Codex sandbox, on November 18, 2026. The post describes a new named permission-profile system that replaces the older sandbox_mode settings and gives developers finer control over filesystem and network access for each Codex session.
What changed in the Codex sandbox
- Codex now configures sandboxing through permission profiles that set filesystem and network access limits for a session.
- Network access is off by default inside the Codex sandbox.
- Codex ships three built-in permission profiles:
read-only,workspace, anddanger-full-access. - The default
workspaceprofile allows writes inside the repository but keeps the.gitdirectory read-only and blocks network access until it is explicitly allowed. - A new configuration system lets users define custom profiles under a
[permissions]section inconfig.tomland select one withdefault_permissions, including per-domain network rules. - The
default_permissions/[permissions]system replaces the oldersandbox_modeandsandbox_workspace_writeoptions, and OpenAI says the two approaches cannot be combined in the same configuration.
What it means for people building with AI
Sandbox permission design is central to how safely AI coding agents can be trusted with real repositories and credentials, and this explainer gives a concrete look at how OpenAI is tightening that model for Codex users. Developers who want an agent to read code without touching the network, or who need per-domain exceptions for a specific registry or API, now have a named, auditable way to express that instead of relying on broader flags.
Where to find the configuration details
OpenAI documents the full configuration syntax, including how to write custom profiles and per-domain rules, in the Codex Permissions documentation. Because the two systems cannot be mixed, teams currently using sandbox_mode or sandbox_workspace_write will need to migrate their configuration to the new [permissions] format.
Sources
- Inside the Codex sandbox (OpenAI, November 18, 2026, official)
- Codex Permissions documentation (OpenAI, official)
Written with AI assistance, strictly from the sources listed above. Before it went live, automated checks verified its dates, sources and every language edition.