OpenAI Explains How Codex Limits What Its Commands Can Do on Your Computer
OpenAI published an engineering post on November 18 describing how Codex, its coding assistant, runs commands on a user’s machine with limits the user controls. It was written by Michael Bolin of OpenAI’s technical staff.
According to the post, Codex does not use containers or virtual machines. It relies on each platform’s own sandboxing tools: Seatbelt on macOS, bubblewrap with seccomp-bpf on Linux, and a replacement for the existing Windows sandbox that OpenAI says is in progress. By default, commands can write inside the workspace, with the .git and .codex folders read-only, can read broadly, and have no network access. Users can define their own permission profiles in a configuration file.
OpenAI is open about the limits. It says harmful actions are still possible and gives the example of injected code in a project dependency that runs outside the sandbox when an editor formats a file on save. Some programs ignore proxy settings, wide network rules can still allow data theft through DNS, and some helper servers are not sandboxed by default.
For teams using AI coding tools, the post is a useful checklist of what to ask any vendor: what the tool can read, write and reach on the network.
Sources
Summary written by our editorial team from the sources listed. Check the original before relying on figures or dates.