OpenAI explains Codex sandbox defaults and the access they do not block
OpenAI's November 18, 2026 technical article explains how Codex limits local commands using operating-system protections on macOS, Linux and Windows. The article describes configurable filesystem and network boundaries, not proof that every coding-agent action is safe.
The built-in workspace profile allows project writes while keeping directories such as .git and .codex read-only, and disables network access by default. It also permits broad filesystem reads under the user's existing operating-system permissions so normal development tools work. Sensitive files outside the project may therefore remain readable unless access is explicitly denied.
A read-only directory is not a hidden directory, and blocking direct network access does not remove every downstream risk. OpenAI notes that an agent could alter a locally installed package that another application later executes outside the sandbox. Teams still need to review changes to ignored dependency folders and other files they may run later.
Permission profiles can apply more specific read, write and deny rules. Administrators can constrain which profiles users may select through managed requirements. Domain allow and deny rules need the network proxy enabled: the article warns that domain rules are not enforced when direct network access is allowed without that proxy.
OpenAI also says the commands used to start configured stdio MCP servers are not sandboxed automatically. Such servers can otherwise inherit the user's permissions; the article describes explicitly wrapping them in a restricted profile. A restricted agent command does not by itself establish that every connected server has equivalent restrictions.
These are vendor-documented controls and tradeoffs, not an independent penetration test or compliance certification. Organizations should check their effective profiles, managed requirements, network setup and connected servers before deployment, and treat sandboxing as one protective layer rather than a replacement for review and careful access limits.