Learning resourcesReviewed · OpenAI

Codex Permissions: filesystem and network profiles

Codex Permissions is a guide for developers and administrators limiting local command access, but its beta profiles enforce network domain rules only when the network proxy is active. It explains filesystem rules, reusable profiles, managed restrictions, migration from older settings and platform-specific enforcement limits.

Researched 25 Nov 2026

In short.

Codex Permissions is a configuration guide for developers and administrators restricting local commands, but its beta profiles leave other Codex capabilities under separate access controls. It documents built-in and custom profiles that combine filesystem permissions with command network settings. Its most consequential caveats are that domain filtering requires an active proxy, deny-read globs can miss files created after a process starts, and enforcement depends on the operating system and sandbox runtime. The examples and enforcement claims were not tested.

Researched and written by an AI model and checked by a second AI model. How it works

This report covers the complete Permissions page at [https://learn.chatgpt.com/docs/permissions.md], including its beta notice, compatibility warnings, configuration specification, examples, migration guidance and enforcement caveats. Linked pages, the documentation index and referenced implementation projects are outside scope. No configurations were executed or tested. Pricing, redistribution rights and compatibility details absent from the page remain unknown.

The overview

identity

Permissions is a Codex documentation page at [https://learn.chatgpt.com/docs/permissions.md]. It teaches permission profiles: named configurations that define which files local sandboxed commands can access and which network destinations those commands can reach.

The resource is a configuration reference and practical guide. Its scope includes built-in profiles, custom TOML settings, inheritance, enterprise restrictions, migration and operating-system caveats.

assessment

The guide is useful when deciding how much local access a Codex task needs. It connects concrete choices, such as read-only project inspection or editing selected workspace roots, to configuration settings and their enforcement limits.

Its central distinction is between enabling network access and filtering it. Setting network.enabled to true without an active proxy permits direct, unrestricted command network access, even if domain rules are present. Readers seeking restrictions across every Codex capability also need the separate controls described for those capabilities.

users

Developers can use the page to permit project inspection, restrict edits to designated directories, protect sensitive paths or limit command traffic to required services. Enterprise administrators can use its managed-profile guidance to restrict which profiles users may select.

Beginners get explanations of read, write and deny access plus common configurations. Applying the guide still requires familiarity with TOML configuration, local paths and the distinction between local execution and cloud or connector-backed tools.

capabilities

The three built-ins cover read-only commands, workspace editing with system temporary-directory access, and unrestricted local execution. Custom profiles add exact paths, scoped subpaths, deny-read patterns, reusable workspace roots and network rules.

Profiles can inherit from :read-only, :workspace or another named profile. Extending :workspace preserves read-only protections for workspace paths such as .git, .agents, .codex and .aws unless explicitly overridden. Inheritance from :danger-full-access, unknown parents and cycles are rejected.

Network configuration supports exact hosts, subdomain patterns, deny overrides and Unix socket allowlists. Managed allowed_permission_profiles restricts users to explicitly permitted profiles, excluding omitted built-ins and future profiles.

Using it

requirements

The page documents local support on macOS, Linux, WSL and native Windows, subject to sandbox-runtime limits. macOS uses Seatbelt; Linux and WSL require supported bubblewrap operations and use seccomp. The legacy Landlock option is rejected for filesystem-restricted policies.

Windows enforcement depends on the runtime. MXC uses process isolation; legacy elevated and unelevated fallbacks have different limitations. The page describes unelevated as having weaker network isolation and being unable to enforce every split read/write rule.

Domain filtering requires features.network_proxy = true or administrator-managed network requirements that activate the proxy. Permission profiles also require a configuration compatible with the newer system: older sandbox settings normally take precedence, with managed allowed_permission_profiles as the documented exception. A general minimum supported Codex version is not established.

mechanism

Filesystem rules grant read access, read-and-write access or neither. More specific paths override broader paths; for the same path, deny takes precedence over write, and write over read. A narrower rule can therefore reopen a subtree inside a broader denied directory.

Rules under :workspace_roots apply to both the session's runtime workspace roots and enabled roots added by the profile. Configuration layers can extend or replace entries under the same profile name. Managed policy priorities can override lower-priority rules even when those rules are more specific.

Network access defaults to disabled. With networking enabled and the proxy active, domain rules filter sandboxed command traffic; an empty allowlist blocks external destinations and deny rules override allows. The pattern *.example.com covers subdomains, while **.example.com also covers the apex domain. The global * pattern is an allow-only wildcard.

The active proxy also guards local and private network destinations. Exact local literals require explicit allowance; reaching allowed hostnames that resolve to private addresses requires allow_local_binding. Unix socket allowances separately open access to local integrations.

setup

Set default_permissions explicitly to a built-in or a named profile defined under permissions. For a custom profile, the page recommends extending a suitable built-in so its baseline protections carry forward, then adding only the required differences.

Define workspace roots and filesystem rules, then decide whether commands need networking. If domain restrictions are required, activate the network proxy as well as network access. Remove conflicting sandbox_mode and sandbox_workspace_write settings when migrating, including settings supplied through loaded configuration or a selected config profile.

For unbounded deny-read patterns such as **/*.env on Linux, WSL and native Windows, account for bounded pre-expansion using glob_scan_max_depth of at least 1, or use explicit pattern depths. Enterprise deployments should also reconcile managed requirements and runtime compatibility before adopting a profile allowlist.

example

The page's readonly-net example selects a named profile through default_permissions, grants read access to :minimal and :workspace_roots, enables command networking and activates features.network_proxy. Its domain policy contains one allow entry for the OpenAI API host.

This illustrates a project-inspection configuration that permits workspace reads without workspace writes and filters command network destinations through the proxy. Other Codex capabilities retain their separate access controls. The configuration was not run, and its compatibility with any particular project was not assessed.

Assessment & evidence

limitations

Profiles govern local sandboxed commands. Their network allowlist does not govern hosted web search, apps and connectors, MCP servers, browser or Computer Use actions, Codex service traffic or Codex Cloud. Approved escalations also use separate controls. The page explicitly warns against assuming Work Cloud supports these profiles.

On Linux, WSL and native Windows with MXC or elevated, deny-read glob matches are enumerated when each sandboxed process starts. A matching file created afterward may remain readable to that process if broader permissions allow it. Starting a new process refreshes matches; continuing an existing shell, watcher or server does not.

Profiles are beta and may change. Enforcement varies by runtime, and the page documents refusal of unsupported policies in several cases. Writes can persist beyond the sandboxed task, while allowed domains, local services and sockets may expose powerful capabilities; an allow rule does not establish that a destination is trustworthy.

reasoning

The guide supports using profiles to make local command access explicit and reusable. Inherited workspace protections and narrower path rules can reduce access while preserving the directories a task needs.

The documented boundaries matter when judging fit: a domain allowlist requires an active proxy, a deny-read glob has process-lifetime limitations on specified runtimes, and local command restrictions do not cover every tool surface. These details support a bounded configuration decision, but do not demonstrate that a particular deployment is secure.

alternatives

For simple needs, the built-in :read-only and :workspace profiles avoid defining a custom profile. Named profiles become useful when a task needs additional roots, sensitive-path exclusions or a specific network policy. The documented :danger-full-access option removes local sandbox restrictions and is intended only for deliberately broad access.

The older sandbox_mode and sandbox_workspace_write system remains a documented migration and compatibility option, but the page says to use one configuration system per session. Other products and third-party sandbox tools are not compared.

evidence

The evidence is the complete Permissions documentation page at [https://learn.chatgpt.com/docs/permissions.md]. It includes a configuration specification, examples, migration instructions, scope explanations and platform caveats.

These are documentation claims. No commands or configurations were executed, and no enforcement, performance or security tests were performed. Linked documentation and implementation projects were not assessed.

Access & freshness

costs

The page gives no prices, subscription requirements or charges for permission profiles. Codex access costs and any costs of allowed external services are unknown from this evidence.

The page notes that deeper glob scanning can increase sandbox startup work. It provides no measurements or quantified performance costs.

rights

The page states no licence or redistribution grant for its documentation or configuration examples. Rights to reproduce or redistribute that material are unknown from this evidence.

freshness

The available page snapshot was captured on 25 November 2026. The page labels permission profiles as beta and under active development; its publication and last-update dates are not established.

Codex 0.138.0 is mentioned as the enterprise rollout threshold for retiring a temporary allowed_sandbox_modes compatibility constraint once every client reaches that version. It is not presented as a minimum version for every feature described.

actions

Choose the narrowest built-in profile that supports the task, then add a named profile only where specific filesystem or network requirements justify it. Check the active operating-system runtime and loaded legacy settings before relying on the configuration.

When restricting command destinations, confirm that the proxy is active. For sensitive files that may appear after a long-running process starts, account for the documented glob snapshot limitation and consider stable exact-path or subtree exclusions.

Configure web search, connectors, MCP servers, browser actions and cloud environments through their own controls. Enterprise administrators should explicitly allow required profiles and resolve managed-policy precedence before rollout.

Evidence for this report

selected-page.txtselected · checked 2026-11-25