In short.
The Codex Windows sandbox guide is setup and troubleshooting documentation for Windows developers and IT administrators, but device compatibility and organizational rules determine which protections are available. It favors MXC when supported, then the legacy elevated sandbox, with unelevated as a weaker fallback. It supplies configuration examples and a compatibility probe, while explaining networking, process-lifetime and denied-read limitations. Prices and redistribution rights are not stated, and runtime behavior has not been assessed.
Researched and written by an AI model and checked by a second AI model. How it works
Covers the complete selected page at [https://learn.chatgpt.com/docs/windows/windows-sandbox.md], including all three implementations, managed configuration, provisioning, Windows compatibility, permission warnings and troubleshooting through the unresponsive IDE extension entry. The full-access warning, Everyone-writable-folder warning and diagnostic-secret exclusion are included. The documentation index and all linked pages are excluded. No commands were executed; host compatibility, runtime protection and troubleshooting outcomes remain unverified. Costs and reuse rights are unknown.
The overview
Identity
Windows sandbox is the documentation page at [https://learn.chatgpt.com/docs/windows/windows-sandbox.md]. It covers the native Windows sandbox used by Codex through the ChatGPT desktop app, command-line interface (CLI) and IDE extension.
The page explains how Codex can run commands natively in PowerShell with bounded filesystem and network permissions, without requiring WSL or a virtual machine.
Assessment
This guide is useful when choosing a native Windows sandbox, planning an enterprise deployment or diagnosing commands that fail because of permissions or organizational restrictions. Its strongest material is the distinction between device support, sandbox implementation, active permissions and approval policy.
It provides enough detail to plan a configuration and identify likely failure causes. It does not establish that a particular machine or project works correctly, and it supplies no measured security or performance comparison between implementations.
Users
Windows developers using Codex in PowerShell, the desktop app or an IDE can use the guide to understand command access and sandbox failures. Beginners get explanations of fallback modes and common errors; experienced developers get configuration keys, compatibility details and process-lifetime constraints.
IT administrators get guidance on managed requirements, permitted fallback implementations and provisioning for employees without local administrator rights. The page links to separate installation and deployment documentation, whose contents are outside this evidence.
Capabilities
The guide covers selecting a sandbox implementation, preferring or blocking MXC, configuring legacy fallbacks, provisioning the elevated sandbox and inspecting read-access problems. Its troubleshooting addresses setup failures, unexpected fallback, Windows error 1385, overly broad folder permissions, network failures and previously working configurations that stop working.
It also describes desktop-app support for parallel chats, worktrees, scheduled tasks, Git, a built-in browser, file previews, plugins and skills. These are stated app capabilities; the page's detailed instructions focus on sandbox behavior.
The final troubleshooting entry identifies missing C++ development components as a possible reason an installed IDE extension is unresponsive.
Using it
Requirements
Windows 11 is the recommended baseline. Recent, fully updated Windows 10 receives best-effort support; the page says version 1809 or newer is required in practice because Codex depends on modern console support, including ConPTY. Windows Package Manager, winget, should be available.
MXC requires native capabilities that Microsoft is rolling out to Windows 11 devices. The page identifies Windows 11 24H2 build 26100.9278 and 25H2 build 26200.9278 as the builds where Microsoft introduced MXC process isolation. The Windows version matrix alone does not establish MXC availability on a device.
The documented one-command MXC probe requires Codex CLI 0.162.0 or later. MXC managed networking requires an effective allow_local_binding = true setting. Device capabilities and managed requirements can prevent MXC use.
The legacy elevated sandbox requires administrator-approved setup, although its commands run without administrator privileges. Enterprise restrictions can block setup even on a supported OS. For an unresponsive IDE extension, the page identifies Visual Studio Build Tools with the C++ workload and the x64 Microsoft Visual C++ Redistributable as potentially missing dependencies.
Mechanism
The sandbox enforces the active filesystem and network permissions for commands and their child processes. A permission profile determines readable paths, writable paths and network access. Approval policy separately determines when Codex asks to run commands with more access.
MXC uses native process isolation without administrator-approved setup, additional Windows accounts or local firewall rules. The legacy elevated implementation uses dedicated lower-privilege sandbox users, filesystem boundaries, firewall rules and local policy changes.
The legacy unelevated implementation derives a restricted Windows token from the current user and applies access-control-list filesystem boundaries. It uses environment-level offline controls instead of the dedicated offline-user firewall rule. Both legacy implementations use a private desktop by default for additional UI isolation.
Setup
The desktop app automatically prefers MXC for consumer accounts on supported devices. Enterprise deployments and standalone CLI users can request the same preference in config.toml with: [features] prefer_mxc = true
This preference permits the existing legacy selection and setup flow when MXC is unavailable or blocked. Explicit windows.sandbox = "mxc" selection instead fails when the required capability is unavailable or policy blocks it.
A legacy fallback is selected in config.toml under [windows] with sandbox = "elevated" or sandbox = "unelevated". The page prefers elevated. IT can provision it for an employee from an elevated deployment process using the following example, replacing the identity and path: codex sandbox setup --elevated --user 'DOMAIN\alice' --codex-home 'C:\Users\alice\.codex' The command reads that user's configuration, provisions the sandbox and saves the elevated selection. The employee subsequently uses a normal terminal.
Administrators can enforce features.prefer_mxc = true through requirements.toml while retaining legacy fallback. Under [windows], allow_mxc = false blocks both automatic and explicit MXC selection. The separate allowed_sandbox_implementations = ["elevated"] requirement restricts legacy fallback to elevated; it does not block MXC.
Example
For Codex CLI 0.162.0 or later, the page gives this PowerShell compatibility probe to run from the project directory. It requests MXC for one command without changing the saved sandbox selection:
codex -c windows.sandbox=mxc sandbox --include-managed-config --permission-profile :workspace -- cmd.exe /d /c echo MXC_OK $LASTEXITCODE
The documented expected result is MXC_OK followed by exit code 0. This checks command startup with the workspace permission profile and managed requirements. These are expected results, not observed results: no command was executed. Success would not by itself establish that a project's detached servers or network dependencies work correctly.
Assessment & evidence
Limitations
MXC permits connections to and from services on host loopback. With managed networking, proxy domain rules still apply to proxied traffic, but the proxy's additional private-network destination checks are removed. These details matter when assessing the network boundary a workflow requires.
MXC stops remaining child processes when the foreground command exits. Workflows that expect a detached development server to continue running therefore need separate validation.
For MXC and elevated, denied-read glob patterns are resolved against matching files when each sandboxed process starts. Matching files created later remain readable to that process if its other permissions allow access. A long-running shell, watcher or server keeps that snapshot for its lifetime.
Unelevated provides weaker network isolation than elevated and does not support denied read paths. The page also warns that folders writable by Everyone weaken sandbox protection, and that full access can permit unintended destructive actions and data loss.
Reasoning
The guide's practical value comes from showing why sandbox choice is more than a preference setting. A supported Windows version can still lack MXC capabilities, managed requirements can prohibit a mode, and ordinary Windows permissions can prevent access even when a sandbox profile appears suitable.
Its mode-specific limitations help readers identify compatibility questions before adopting a configuration. Projects using persistent background processes, host-local services or denied-read patterns need attention to those exact behaviors; the page does not establish their suitability for any particular project.
Alternatives
Within native Windows, the page recommends MXC when supported, elevated when MXC is unavailable or disabled, and unelevated when elevated setup is unavailable and policy permits the weaker fallback.
The page recommends considering WSL for Linux-native tooling, work already based in WSL2 or needs that the available native implementations cannot meet. It links to [https://learn.chatgpt.com/docs/windows/wsl], but that guide is outside the evidence. No measured comparison with WSL, virtual machines or other sandbox products is supplied.
Evidence
The evidence is the complete Windows sandbox page at [https://learn.chatgpt.com/docs/windows/windows-sandbox.md], supplied as selected-page.txt. It contains explanations, configuration examples, a compatibility command with expected output and troubleshooting guidance.
Linked documentation, implementation code and independent measurements are not included. Nothing was executed, so device compatibility, isolation behavior and troubleshooting outcomes have not been verified.
Access & freshness
Costs
The page provides no prices, subscription requirements, usage allowances or sandbox-specific charges. Costs are unknown from this evidence. It also gives no estimate for administrator provisioning effort or cost comparison between implementations.
Rights
No license or redistribution grant appears in the supplied page. Permission to reuse its text and command examples, and licensing terms for the software it discusses, are unknown from this evidence.
Freshness
The page was captured on 25 November 2026 at 15:08:01 UTC. It contains no publication or last-update date.
Its guidance depends on changing Windows capabilities, Microsoft’s MXC rollout, Codex versions and enterprise requirements. The named Windows builds and CLI 0.162.0 probe requirement are specific reference points, not confirmation that a particular device has the required capabilities.
Actions
Before choosing a configuration, identify the Windows version and build, selected sandbox implementation and applicable managed restrictions. In the CLI, the page recommends /status and /debug-config to inspect the active session and configuration.
On a potentially compatible device, use the documented MXC probe to check startup under managed requirements. Separately check workflows that depend on detached processes, host-local networking or denied-read patterns. If MXC is unavailable, establish whether IT can provision elevated and whether policy permits any fallback.
For error 1385, ask IT to review the logon rights required by the sandbox users. For network failures, first determine whether outbound access was intentionally disabled. For an unresponsive IDE extension, investigate the listed C++ dependencies and restart VS Code after installation.
The documented diagnostic material is CODEX_HOME/.sandbox/sandbox.log, together with the selected mode, Windows build, error message and a short failure description. The page explicitly excludes the contents of CODEX_HOME/.sandbox-secrets/ from material sent for support.
