AITMONDO

OpenAI explains how Codex restricts file and network access for commands

A glass-fronted building faces an intersection under a blue sky. Palm trees line the street.
OpenAI’s office in Mission Bay, San Francisco (reference photo taken on June 15, 2025). Photo by Coolcaesar / CC BY 4.0. Resized and converted to WebP.

On November 18, OpenAI explained the restrictions its coding tool Codex applies when it runs commands on a user’s device. Users can choose a permission profile to set file read and write permissions and network access to suit the task. Codex uses operating system mechanisms to enforce these restrictions on macOS, Linux and Windows.

Users set file read and write permissions and network access via permission profiles. Codex enforces those restrictions using mechanisms specific to macOS, Linux and Windows.
AITMONDO graphic based on primary sources.

Setting file and network permissions

OpenAI says the built-in workspace profile allows writes within the workspace and keeps some administrative directories read-only. The profile disables network access. Depending on the user’s operating system permissions, Codex can also read development tools and similar resources outside the workspace.

Enforcing restrictions in the user’s working environment

Codex uses mechanisms specific to macOS, Linux and Windows to restrict the processes it runs in the user’s existing environment. OpenAI says the sandbox limits what commands can access and improves safety alongside other measures such as model training.

Primary sources