Answer: Approvals determine when Codex pauses before an action, while the sandbox determines which files and network resources commands can access. When an approval offers different scopes, such as approving once or for the session, choose the narrowest scope that lets the task continue. Status: Confirmed Entry: tool/codex/permissions-and-security/sandbox-vs-approvals Revision: 1 Digest: sha256:be70995abe397b84 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:52:48Z Last changed: 2026-11-13T03:52:48Z Last verified: 2026-11-20T13:41:18Z Next check: 2026-11-21T13:41:18Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of Approvals role | Approvals determine when Codex pauses before an action | [1] | 2026-11-20 Sandbox role | the sandbox determines which files and network resources commands can access | [1] | 2026-11-20 Approval scope guidance | choose the narrowest scope that lets the task continue | [1] | 2026-11-20 Default boundary | Keep the project boundary as the default | [1] | 2026-11-20 Sources: [1] OpenAI. "Sandbox". https://learn.chatgpt.com/docs/sandboxing.md Role: primary. Accessed: 2026-11-20T13:41:18Z Quote: "Approvals determine when Codex pauses before an action" (Supports: Approvals role) Quote: "the sandbox determines which files and network resources commands can access" (Supports: Sandbox role) Quote: "choose the narrowest scope that lets the task continue" (Supports: Approval scope guidance) Quote: "Keep the project boundary as the default" (Supports: Default boundary) 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:48Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T13:41:18Z. No independent second source is configured for this entry Last successful check: 2026-11-20T13:41:18Z Last attempt: 2026-11-20T13:41:18Z Notes and limitations: Extracted automatically from a single official source (section "How permissions work"). Related: https://latestn.com/tool/codex/permissions-and-security/security-review-prerequisites What do I need before I can configure Codex Security Review? https://latestn.com/tool/codex/permissions-and-security/set-approvals-execution-permissions How do I set approval and execution permissions for Codex using requirements.toml? https://latestn.com/tool/codex/permissions-and-security/set-token-expiration-limit How do I set an expiration limit for Codex access tokens? https://latestn.com/tool/codex/permissions-and-security/run-security-scan-repository-folder How do I run a Codex Security scan on a repository or folder? https://latestn.com/tool/codex/permissions-and-security/sandbox-presets What sandbox presets are available in the Codex SDK Python library? https://latestn.com/tool/codex/permissions-and-security/sandbox-restrictions What does the Codex sandbox restrict the agent from doing on my machine? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T03:52:48Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/codex/permissions-and-security/sandbox-vs-approvals/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/sandbox-vs-approvals POST: https://latestn.com/dispute/tool/codex/permissions-and-security/sandbox-vs-approvals with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/codex/permissions-and-security/sandbox-vs-approvals?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do sandbox permissions and approval policies work together in Codex? Revision 1, last verified 2026-11-20T13:41:18Z. https://latestn.com/tool/codex/permissions-and-security/sandbox-vs-approvals (accessed 2026-11-21T10:03:53Z). @misc{LatestN_tool_codex_permissions_and_security_sandbox_vs_approvals_r1, title = {How do sandbox permissions and approval policies work together in Codex?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/codex/permissions-and-security/sandbox-vs-approvals}}, note = {Revision 1; digest sha256:be70995abe397b84; last verified 2026-11-20T13:41:18Z; accessed 2026-11-21T10:03:53Z} } 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/sandbox-vs-approvals