Answer: Claude Code offers two sandbox modes: auto-allow mode, which automatically approves commands that run inside the sandbox, and regular permissions mode, where all Bash commands go through the regular permission flow even when sandboxed. Strict sandbox mode is a separate setting that disables the unsandboxed retry by setting "allowUnsandboxedCommands": false. Status: Confirmed Entry: tool/claude-code/permissions-and-security/sandbox-modes Revision: 1 Digest: sha256:05e6e76d2842c3f9 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:05:33Z Last changed: 2026-11-13T03:05:33Z Last verified: 2026-11-20T12:24:38Z Next check: 2026-11-21T12:24:38Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of number of sandbox modes | two | [1] | 2026-11-20 auto-allow mode | Auto-allow mode | [1] | 2026-11-20 regular permissions mode | Regular permissions mode | [1] | 2026-11-20 strict sandbox mode setting | "allowUnsandboxedCommands": false | [1] | 2026-11-20 strict sandbox mode label | Strict sandbox mode | [1] | 2026-11-20 Sources: [1] Anthropic. "Configure the sandboxed Bash tool". https://code.claude.com/docs/en/sandboxing.md Role: primary. Accessed: 2026-11-20T12:24:38Z Quote: "Claude Code offers two sandbox modes." (Supports: number of sandbox modes) Quote: "Auto-allow mode Claude Code approves a command automatically, with no prompt, when the command runs inside the sandbox." (Supports: auto-allow mode) Quote: "Regular permissions mode All Bash commands go through the regular permission flow, even when sandboxed." (Supports: regular permissions mode) Quote: "You can disable the unsandboxed retry by setting `"allowUnsandboxedCommands": false` in your" (Supports: strict sandbox mode setting) Quote: "The `/sandbox` **Overrides** tab shows this setting as **Strict sandbox mode**." (Supports: strict sandbox mode label) Published: 2026-11-20T02:54:51Z Snapshot SHA-256: 23b9ba15ebad247fa2322225307e688eb23e118406296a6d6d6beee51fed6798 (captured 2026-11-20T12:24:35Z) 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]. Cross-check: not-available at 2026-11-20T12:24:38Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:24:38Z Last attempt: 2026-11-20T12:24:38Z Notes and limitations: Extracted automatically from a single official source (section "Sandbox modes"). Related: https://latestn.com/tool/claude-code/permissions-and-security/scheduled-task-permissions What permissions do scheduled tasks have in Claude Code Desktop? https://latestn.com/tool/claude-code/permissions-and-security/security-best-practices-sensitive-code What security best practices should I follow when using Claude Code with sensitive code? https://latestn.com/tool/claude-code/permissions-and-security/security-plugin-file-edit-checks What does the Claude Code security-guidance plugin check on each file edit? https://latestn.com/tool/claude-code/permissions-and-security/restrict-network-egress How do I restrict network egress for Claude Code in a dev container? https://latestn.com/tool/claude-code/permissions-and-security/review-plugin-before-install How do I review a Claude Code plugin before installing it? https://latestn.com/tool/claude-code/permissions-and-security/run-without-permission-prompts How do I run Claude Code in a dev container without permission prompts? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T03:05:33Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/claude-code/permissions-and-security/sandbox-modes/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/claude-code/permissions-and-security/sandbox-modes POST: https://latestn.com/dispute/tool/claude-code/permissions-and-security/sandbox-modes with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/claude-code/permissions-and-security/sandbox-modes?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). What are the sandbox modes in Claude Code, including auto-allow mode and strict sandbox mode? Revision 1, last verified 2026-11-20T12:24:38Z. https://latestn.com/tool/claude-code/permissions-and-security/sandbox-modes (accessed 2026-11-21T09:58:00Z). @misc{LatestN_tool_claude_code_permissions_and_security_sandbox_modes_r1, title = {What are the sandbox modes in Claude Code, including auto-allow mode and strict sandbox mode?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/claude-code/permissions-and-security/sandbox-modes}}, note = {Revision 1; digest sha256:05e6e76d2842c3f9; last verified 2026-11-20T12:24:38Z; accessed 2026-11-21T09:58:00Z} } 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/claude-code/permissions-and-security/sandbox-modes