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.
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
Was this summary useful?
One click, anonymous. It tells us which summaries to re-run.
Related reading
Code-driven AI illustrations are more useful than images from dedicated image models
Code-driven AI illustrations let designers edit assets directly in code, saving time on iteration and ensuring consistency, which is a game-changer for teams that need rapid, reusable visual content.
A hierarchical note-taking app for building large personal knowledge bases
Trilium lets users build and navigate massive personal knowledge bases without duplicating content, saving time on organization and retrieval.
Desktop apps in Go with native UI or web frontend
Go developers can now ship cross-platform desktop and mobile apps in a single small binary without cgo or heavy runtimes, cutting build complexity and deployment size.
OpenBitFun: an agent workspace with four harness modes and phone remote control
OpenBitFun lets agents run on any machine and be controlled from a phone, eliminating the need to choose between local power and remote access, saving developers time switching contexts.
Intel One Mono: a monospaced font designed with low-vision developers
Developers with low vision or eye fatigue can read code more clearly, reducing errors and improving productivity.