How the Codex sandbox works on macOS, Linux and Windows
OpenAI details how Codex restricts the commands it runs on your machine using OS features (Seatbelt on macOS, bubblewrap and seccomp on Linux) rather than containers. The default profile only allows writes inside the project, keeps .git read-only and disables network access, and custom profiles can be defined in config.toml. Useful to understand what a coding agent can touch and how to limit it.