Answer: On launch, Codex recommends `Auto` (workspace write + on-request approvals) for version-controlled folders and `read-only` for non-version-controlled folders; it may also start in `read-only` until you explicitly trust the working directory. These can be set explicitly with `codex --sandbox workspace-write --ask-for-approval on-request` or `codex --sandbox read-only --ask-for-approval on-request`. Status: Confirmed Entry: tool/codex/permissions-and-security/default-sandbox-approval-settings Revision: 2 Digest: sha256:dd582a20a8b3f827 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:47:03Z Last changed: 2026-11-18T13:28:49Z (Explicit read-only setting: — → codex --sandbox read-only --ask-for-approval on-request) Last verified: 2026-11-20T13:34:40Z Next check: 2026-11-21T13:34:40Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of Default for version-controlled folders | Auto | [1] | 2026-11-20 Default for non-version-controlled folders | read-only | [1] | 2026-11-20 Explicit auto setting | codex --sandbox workspace-write --ask-for-approval on-request | [1] | 2026-11-20 Explicit read-only setting | codex --sandbox read-only --ask-for-approval on-request | [1] | 2026-11-20 Default approval reviewer | user | [1] | 2026-11-20 Sources: [1] OpenAI. "Agent approvals & security". https://learn.chatgpt.com/docs/agent-approvals-security.md Role: primary. Accessed: 2026-11-20T13:34:40Z Quote: "Version-controlled folders: `Auto` (workspace write + on-request approvals)" (Supports: Default for version-controlled folders) Quote: "Non-version-controlled folders: `read-only`" (Supports: Default for non-version-controlled folders) Quote: "`codex --sandbox workspace-write --ask-for-approval on-request`" (Supports: Explicit auto setting) Quote: "`codex --sandbox read-only --ask-for-approval on-request`" (Supports: Explicit read-only setting) Quote: "approvals_reviewer = "user"" (Supports: Default approval reviewer) Snapshot SHA-256: fa9553edc8b520d62f0c0cf6a26382347beab09b9ff872ae04409fa3bd97a257 (captured 2026-11-18T13:28: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-18T13:28:49Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T13:34:40Z. No independent second source is configured for this entry Last successful check: 2026-11-20T13:34:40Z Last attempt: 2026-11-20T13:34:40Z Notes and limitations: Extracted automatically from a single official source (section "Defaults and recommendations"). Related: https://latestn.com/tool/codex/permissions-and-security/define-select-permission-profile How do I define and select a permission profile in Codex? https://latestn.com/tool/codex/permissions-and-security/deny-reads-paths-globs How do I deny reads to specific paths or globs in a Codex permission profile? https://latestn.com/tool/codex/permissions-and-security/domain-allowlist How do I restrict which domains Codex Cloud (Legacy) agents can access? 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/create-rules-file How do I create a rules file to control which commands Codex can run outside the sandbox? https://latestn.com/tool/codex/permissions-and-security/create-service-account-access-token How do I create an access token for a Codex service account? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-18T13:28:49Z | changed | Explicit read-only setting: — → codex --sandbox read-only --ask-for-approval on-request | [1] 2026-11-18T13:28:49Z | changed | Explicit auto setting: — → codex --sandbox workspace-write --ask-for-approval on-request | [1] 2026-11-18T13:28:49Z | changed | Explicit read-only flags: codex --sandbox read-only --ask-for-approval on-request → — | [1] 2026-11-18T13:28:49Z | changed | Explicit Auto flags: codex --sandbox workspace-write --ask-for-approval on-request → — | [1] 2026-11-13T03:47:03Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/codex/permissions-and-security/default-sandbox-approval-settings/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/default-sandbox-approval-settings POST: https://latestn.com/dispute/tool/codex/permissions-and-security/default-sandbox-approval-settings with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/codex/permissions-and-security/default-sandbox-approval-settings?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). What are the default sandbox and approval settings for Codex? Revision 2, last verified 2026-11-20T13:34:40Z. https://latestn.com/tool/codex/permissions-and-security/default-sandbox-approval-settings (accessed 2026-11-21T10:02:51Z). @misc{LatestN_tool_codex_permissions_and_security_default_sandbox_approval_settings_r2, title = {What are the default sandbox and approval settings for Codex?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/codex/permissions-and-security/default-sandbox-approval-settings}}, note = {Revision 2; digest sha256:dd582a20a8b3f827; last verified 2026-11-20T13:34:40Z; accessed 2026-11-21T10:02:51Z} } 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/default-sandbox-approval-settings