Answer: Set defaults in `config.toml` using the keys for `sandbox_mode`, `approval_policy`, `approvals_reviewer`, and `sandbox_workspace_write.writable_roots`. The default low-friction mode for local work is `workspace-write`. Status: Confirmed Entry: tool/codex/permissions-and-security/configure-sandbox-defaults Revision: 1 Digest: sha256:91706ec7dce9b4d8 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:52:47Z Last changed: 2026-11-13T03:52:47Z Last verified: 2026-11-20T13:41:16Z Next check: 2026-11-21T13:41:16Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of config file | config.toml | [1] | 2026-11-20 sandbox mode key | sandbox_mode | [1] | 2026-11-20 default sandbox mode | workspace-write | [1] | 2026-11-20 default approvals reviewer | user | [1] | 2026-11-20 lower-risk preset | sandbox_mode = "workspace-write" | [1] | 2026-11-20 Sources: [1] OpenAI. "Sandbox". https://learn.chatgpt.com/docs/sandboxing.md Role: primary. Accessed: 2026-11-20T13:41:16Z Quote: "set defaults in `config.toml`" (Supports: config file) Quote: "documents the exact keys for `sandbox_mode`, `approval_policy`, `approvals_reviewer`, and `sandbox_workspace_write.writable_roots`" (Supports: sandbox mode key) Quote: "workspace-write`: The agent can read files, edit within the workspace, and run routine local commands inside that boundary. This is the default low-friction mode for local work." (Supports: default sandbox mode) Quote: "`user`: approval prompts surface to the user. This is the default." (Supports: default approvals reviewer) Quote: "the lower-risk local automation preset is `sandbox_mode = "workspace-write"` together with `approval_policy = "on-request"`" (Supports: lower-risk preset) Snapshot SHA-256: 4702d8590236260ca3e7e47b34f0402951153d9575b3d9b53df50116f2d3a8eb (captured 2026-11-13T03:52:47Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. On this check the text of [1] was unchanged since 2026-11-13T03:52:47Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T13:41:16Z. No independent second source is configured for this entry Last successful check: 2026-11-20T13:41:16Z Last attempt: 2026-11-20T13:41:16Z Notes and limitations: Extracted automatically from a single official source (section "Configure defaults"). Related: https://latestn.com/tool/codex/permissions-and-security/configure-severity-policy How do I configure a severity policy to enforce Codex Security scan results in GitHub Actions? https://latestn.com/tool/codex/permissions-and-security/configure-windows-sandbox How do I configure the Windows sandbox for Codex CLI? https://latestn.com/tool/codex/permissions-and-security/control-browser-computer-use How do I control browser and Computer Use access for Codex and ChatGPT Work? https://latestn.com/tool/codex/permissions-and-security/configure-legacy-fallback-sandbox How do I configure a legacy fallback sandbox for Codex on Windows? https://latestn.com/tool/codex/permissions-and-security/configure-network-access How do I configure network access requirements for Codex and ChatGPT Work? https://latestn.com/tool/codex/permissions-and-security/configure-networking-allowed-destinations How do I configure networking and allowed destinations for Codex in the Agent Security UI? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T03:52:47Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/codex/permissions-and-security/configure-sandbox-defaults/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/codex/permissions-and-security/configure-sandbox-defaults POST: https://latestn.com/dispute/tool/codex/permissions-and-security/configure-sandbox-defaults with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/codex/permissions-and-security/configure-sandbox-defaults?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I configure the default sandbox permissions in Codex? Revision 1, last verified 2026-11-20T13:41:16Z. https://latestn.com/tool/codex/permissions-and-security/configure-sandbox-defaults (accessed 2026-11-21T10:03:08Z). @misc{LatestN_tool_codex_permissions_and_security_configure_sandbox_defaults_r1, title = {How do I configure the default sandbox permissions in Codex?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/codex/permissions-and-security/configure-sandbox-defaults}}, note = {Revision 1; digest sha256:91706ec7dce9b4d8; last verified 2026-11-20T13:41:16Z; accessed 2026-11-21T10:03:08Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/codex/permissions-and-security/configure-sandbox-defaults