Learning resourcesReviewed · OpenAI

Sandbox: Codex and ChatGPT Work permissions guide

This sandboxing guide helps developers using Codex and ChatGPT Work control agent access, but the controls differ across platforms and execution environments. It explains file and network boundaries, approval policies, operating-system prerequisites, and configuration choices that range from restricted access to removing sandbox limits.

Researched 24 Nov 2026

In short.

This sandboxing guide helps developers using Codex and ChatGPT Work control agent access, but the controls differ across platforms and execution environments. Its central distinction is between the sandbox, which enforces access boundaries, and approval policies, which determine when an action needs review. It provides local configuration examples, Linux prerequisites, troubleshooting guidance, and separate explanations for managed web and cloud execution. The documentation is useful for choosing permissions, but it does not establish that any particular installation enforces them correctly. No commands or configurations were executed.

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

Covers the complete captured page at [https://learn.chatgpt.com/docs/sandboxing.md], including platform prerequisites, Ubuntu AppArmor notices, permissions controls, configuration defaults, Work Cloud distinctions, and the retired-policy notice. Linked pages, underlying implementations, package contents, service pricing, and licensing terms were not included. No commands were executed; installation success, effective restrictions, approval behavior, and local or cloud enforcement remain unassessed.

The overview

Identity

Sandbox is a documentation page at [https://learn.chatgpt.com/docs/sandboxing.md]. It explains sandboxing and approvals for the ChatGPT desktop app, Codex CLI, the IDE extension, and ChatGPT Work.

The resource is instructional documentation rather than an installable sandbox or standalone security tool. Its Linux package commands and configuration examples support the surrounding Codex and Work environments.

Assessment

The guide is useful for understanding how an agent can work autonomously within limited file and network access. Its strongest practical contribution is separating access enforcement from approval behavior, including the clarification that automatic approval review does not change sandbox boundaries.

It provides concrete settings and platform prerequisites, but several detailed questions are delegated to linked documentation. Use it as an orientation and configuration reference; the evidence does not demonstrate the effectiveness of a particular installation or organization policy.

Users

Beginners using a coding agent can use the guide to understand why some actions proceed automatically while others need approval. Developers can use its configuration names, CLI flags, writable-root explanation, and command rules to define a project boundary.

Administrators working with managed devices or Work Cloud can use the environment and policy distinctions to identify which further documentation they need. The page does not provide a complete enterprise deployment procedure.

Capabilities

The guide explains restrictions on files and network resources, including how spawned commands such as git, package managers, and test runners inherit sandbox boundaries. It describes read-only, workspace-write, and danger-full-access modes, alongside on-request and never approval policies.

It also explains user versus automatic approval review, additional writable directories, and rules that allow, prompt for, or forbid command prefixes outside the sandbox. For ChatGPT web, it describes a separate Work network-access setting and notes that web search, plugins, and the remote browser have separate controls.

Using it

Requirements

For local execution, the documented implementation depends on the operating system. macOS uses the built-in Seatbelt framework. Native Windows uses the Windows sandbox when running in PowerShell, while WSL2 follows the Linux implementation.

Linux and WSL2 users are instructed to install bubblewrap. Codex uses the first bwrap executable on PATH; its bundled fallback requires support for creating unprivileged user namespaces. AppArmor restrictions can require additional setup on some Ubuntu versions.

Available permissions controls depend on the surface and configuration. Managed local execution can also be constrained by device-management requirements, Agent Security, and system requirements files; the page does not establish which controls are available to a particular account or device.

Mechanism

The sandbox defines the technical boundary around commands. The approval policy determines when the agent pauses before an action. Actions already permitted within the sandbox can proceed without additional review; eligible requests at the boundary can be reviewed by the user or an automatic reviewer.

For Work Cloud with local computer access, cloud and local steps follow their respective execution requirements. Desktop browser site rules do not automatically apply to cloud browsers, and permission in one environment does not grant access in another.

Within the described managed policy hierarchy, OS-specific environment overrides take priority over all-OS environment overrides, which take priority over Global policy. For local execution, MDM and legacy managed-device requirements take precedence over Agent Security, followed by the device system requirements file.

Setup

For local work, the page directs users to the permissions control beneath the desktop or IDE composer, or to /permissions in the CLI. Persistent defaults belong in config.toml, using settings including sandbox_mode, approval_policy, approvals_reviewer, and sandbox_workspace_write.writable_roots.

On Ubuntu or Debian, the documented prerequisite command is sudo apt install bubblewrap; Fedora uses sudo dnf install bubblewrap. The Ubuntu 24.04 troubleshooting sequence installs AppArmor support packages, copies the bwrap-userns-restrict profile, and loads it with apparmor_parser. The page says Ubuntu 25.04 should provide the profile through its apparmor package.

In ChatGPT web, the documented network control is Settings > Data controls > Work network access, when available. Changes apply after the current code or shell run finishes and the execution environment refreshes. The web interface does not expose the local Codex sandbox or approval-mode selector.

Example

For a developer who wants an agent to edit a project and run routine local commands while requesting exceptions, the page supplies the CLI combination --sandbox workspace-write --ask-for-approval on-request. It also describes approvals_reviewer = "user" for manual review and approvals_reviewer = "auto_review" for eligible automatic review.

In this documented scenario, project work within the permitted boundary can proceed autonomously, while actions needing broader access follow the approval flow. This is an illustrative configuration; its behavior was not executed or verified.

Assessment & evidence

Limitations

The page describes intended behavior without supplying implementation code, security evaluations, performance measurements, or results from an actual environment. Exact configuration-key behavior, Windows details, automatic-review denial semantics, and field-specific managed-policy rules are referred to linked pages.

Some documented settings deliberately reduce restrictions. Full access combines danger-full-access with the never approval policy and removes filesystem and network sandbox boundaries. The AppArmor troubleshooting guidance also includes disabling the unprivileged user-namespace restriction globally as a fallback, while preferring a suitable bwrap profile.

Local and cloud enforcement need separate verification. The guide explicitly says that a policy applying to one environment does not establish access or equivalent controls in another.

Reasoning

The guide is most useful when a developer needs to decide how much autonomy to give a coding agent. Its settings map that decision to concrete boundaries: which directories can change, whether commands can reach the network, and which exceptions need review.

A practical implication is that automatic review and unrestricted access should be evaluated separately: the former changes who reviews eligible requests, while the latter removes sandbox boundaries. This conclusion follows from the documented control model; actual enforcement remains unassessed.

Alternatives

The page does not compare competing products or sandbox implementations. Its relevant alternatives are configuration choices within Codex: read-only for inspection, workspace-write for bounded project work, and danger-full-access for unrestricted execution.

For work spanning directories, it describes writable roots as a way to extend permitted locations without removing the sandbox. It also recommends separate projects or worktrees for unrelated repositories and command rules for specific exceptions. The suitability of competing tools is unknown.

Evidence

The evidence is the complete Sandbox documentation page at [https://learn.chatgpt.com/docs/sandboxing.md], including its desktop, CLI, IDE, web, and Work Cloud passages. It supports descriptions of documented controls, prerequisites, and configuration examples.

The page links to configuration references, automatic-review documentation, platform guidance, and enterprise security material. Those linked pages are outside the available evidence. No execution logs, installation results, or independent security findings establish runtime behavior.

Access & freshness

Costs

The page states no prices, subscription requirements, usage quotas, or charges for automatic review. Costs for the surrounding Codex and ChatGPT Work services, including any model usage, are unknown from this evidence. The presence of installation instructions does not establish that the overall workflow is free.

Rights

The supplied page contains no explicit license or redistribution terms for its text or related software. Permission to redistribute the documentation or referenced components is not established. Product terms and package licenses are outside the available evidence.

Freshness

The documentation snapshot was captured on 24 November 2026 at 11:46:41.953 UTC. The page supplies no explicit publication date, last-updated date, or associated Codex release version.

In this snapshot, untrusted is described as a retired approval policy, and a migration page is linked. The retirement applies to that configuration option; it does not indicate that the sandboxing guide itself is retired. Later changes to settings, platform prerequisites, or control availability are unknown.

Actions

Identify the execution surface and operating system first, then use the corresponding permissions controls and prerequisites. For bounded local development, consider the documented workspace-write and on-request combination, keeping writable locations aligned with the project.

Before relying on the configuration, verify its effective file and network restrictions in the intended environment. Check local and cloud execution separately where both are involved. Consult the linked platform and configuration references for details this page delegates, particularly managed-policy behavior and automatic-review limits.

Evidence for this report

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