OpenAI explains how the Codex sandbox limits local commands
Brief by TrendCue AI · Dates refer to the original sources.
OpenAI has detailed how the Codex sandbox restricts commands on a developer’s machine while letting users configure filesystem and network access. The company says the protections have limits and should be combined with other safeguards.
Defaults and their limits
OpenAI says the built-in :workspace profile permits writes inside the workspace but keeps directories such as .git and .codex read-only. It allows broad reads subject to operating-system permissions and disables network access. Sensitive files outside the workspace may still be readable, and modified local packages could later run outside the sandbox.
Configurable access
Permission profiles combine filesystem and network rules, but OpenAI labels them beta and says they may change. Domain restrictions require an active network proxy; without it, enabling network access permits direct connections. The company says its codex sandbox command can also apply a profile to commands outside an agent session, including an MCP server that Codex otherwise starts unsandboxed.
Enterprise controls
OpenAI’s enterprise cookbook distinguishes enforced requirements from startup defaults and recommends testing both permitted and blocked workflows before a wider rollout. It says permission-profile allowlists require Codex 0.138.0 or later; authentication requirements must be delivered locally or through macOS device management, not cloud-managed requirements.
Original sources
Original websites and X posts open in a new tab.