Skip to content

An editorial team and a community building with AI

← All articles

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, and danger-full-access.
  • The default workspace profile allows writes inside the repository but keeps the .git directory read-only and blocks network access until it is explicitly allowed.
  • A new configuration system lets users define custom profiles under a [permissions] section in config.toml and select one with default_permissions, including per-domain network rules.
  • The default_permissions / [permissions] system replaces the older sandbox_mode and sandbox_workspace_write options, 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

Written with AI assistance, strictly from the sources listed above. Before it went live, automated checks verified its dates, sources and every language edition.

OpenAI details new Codex permission-profile system for sandboxing coding agents | vibecoding.inc