OpenAI explains how the Codex sandbox limits what the agent can do
OpenAI describes how Codex runs commands on the user's computer inside an isolated environment. That environment respects the file and network access limits set by the user, and works on macOS, Linux and Windows.