Inside the Codex sandbox
OpenAI
Codex runs commands on the user's machine within filesystem and network limits the user controls. The built-in :workspace profile allows writes in the workspace, keeps directories such as .git and .codex read-only, and disables network access. Instead of virtual machines or containers, Codex uses each platform's OS-level sandboxing on macOS, Linux, and Windows.