Inside the Codex sandbox

AI-generated summary of reporting by OpenAI News. Read the original for the full story.

Why it matters

Developers running OpenAI's Codex agent on their own machines can now see exactly how its OS-level sandbox restricts filesystem and network access, and how to configure or reuse those limits.

Read this as

OpenAI has published a detailed explanation of how Codex, its AI coding agent, safely runs commands on a user's computer. Instead of putting the agent inside a virtual container, the tool uses each operating system's built-in security features to block access to sensitive files and the internet by default. The settings can be adjusted per project, and companies can lock down what employees may change. Anyone using AI assistants to write code on their own laptop is affected.

OpenAI's technical deep-dive explains how Codex executes commands on employee machines without containers, relying instead on macOS, Linux and Windows sandboxing. Default policy allows workspace writes but blocks network access, trading convenience against risk, since files like API-key configs elsewhere remain readable. Enterprises can layer their own policy files over user settings to restrict which permission profiles staff may use, and a Codex security cookbook covers combining these controls.

The Codex sandbox constrains commands in the user's environment via OS-specific mechanisms exposed through a common cross-platform API; child processes inherit constraints across the process tree. The default :workspace profile permits writes except .git/.codex (read-only), allows broad reads, and disables networking; a domain-filtering network proxy mediates allowed hosts. Models can request per-command escalation (with_additional_permissions or require_escalated) which the harness approves or routes to review. Known limitation: agent can modify Git-ignored packages like node_modules/prettier, escaping the sandbox on editor save.

Questions this answers

The article above answers these:

  • How does the Codex sandbox limit filesystem and network access?
  • How do I configure Codex permission profiles in config.toml?
  • Why does Codex sandbox commands in the OS instead of Docker containers?

Read the original

This summary exists to save you time, not to replace the source.

Key terms

Codex OpenAI macOS Linux Windows

Was this summary useful?

One click, anonymous. It tells us which summaries to re-run.

Related reading