Codex is OpenAI's coding agent, available as a CLI, an IDE extension, inside the ChatGPT apps, and as a cloud service. It separates the sandbox, which sets what commands can technically touch, from the approval policy, which sets when it must stop and ask. Optional auto-review, rules and managed configuration cover organizations.
Read in this order
- OfficialAgent approvals and security (Codex docs)Start here: how sandbox and approval policy combine, and the default posture.
- OfficialSandbox (Codex docs)What the sandbox actually blocks for files and network access.
- ArticleRunning Codex safely at OpenAIHow OpenAI runs Codex internally, a real-world example of the controls in use.