Codex permission profiles: config.toml examples for running agents safely

Codex permission profiles are named sandbox policies defined in config.toml that control what commands run by Codex can read, write, and reach over the network. A profile is selected through default_permissions and can start from a built-in base such as :read-only, :workspace, or :danger-full-access, then add read, write, and deny path rules plus allowed network domains. The guide provides ready-to-copy config examples, including a setup that lets a coding agent run Apidog CLI tests against local API hosts without open internet access. OpenAI enforces these policies using Seatbelt on macOS, bubblewrap with seccomp on Linux and WSL, and MXC on Windows, and the feature is still documented as Beta, so keys may change between versions. Users are warned that existing sandbox_mode settings override profiles and must be removed first.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.


Discussion (0)
Log in to join the discussion and vote.
Log in