Answer: Run the `/sandbox` command in a Claude Code session to open the sandbox panel, choose a mode on the Mode tab, then ask Claude to run a Bash command. To confirm commands run inside the sandbox, ask Claude to run `touch ~/sandbox-probe` (fails with `Operation not permitted` on macOS or `Read-only file system` on Linux and WSL2) and `curl --noproxy '*' https://example.com` (fails with `Could not resolve host`). Status: Confirmed Entry: tool/claude-code/permissions-and-security/enable-sandboxed-bash Revision: 2 Digest: sha256:ccb56f18573707a7 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:05:33Z Last changed: 2026-11-20T12:24:35Z (confirm command 2: — → curl --noproxy '*' https://example.com) Last verified: 2026-11-20T12:24:35Z Next check: 2026-11-21T12:24:35Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of enable command | /sandbox | [1] | 2026-11-20 mode selection | auto-allow or regular permissions | [1] | 2026-11-20 confirm command 1 | touch ~/sandbox-probe | [1] | 2026-11-20 confirm command 2 | curl --noproxy '*' https://example.com | [1] | 2026-11-20 enable across all projects | sandbox.enabled | [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:35Z Quote: "Start a Claude Code session and run the `/sandbox` command:" (Supports: enable command) Quote: "On the Mode tab, select auto-allow or regular permissions." (Supports: mode selection) Quote: "| `touch ~/sandbox-probe` | Fails with `Operation not permitted` on macOS, or `Read-only file system` on Linux and WSL2 |" (Supports: confirm command 1) Quote: "| `curl --noproxy '*' https://example.com` | Fails with `Could not resolve host`, because the command has no route around the sandbox proxy |" (Supports: confirm command 2) Quote: "To enable the sandbox across all of your projects, set [`sandbox.enabled`](https://code.claude.com/docs/en/settings-reference#sandbox-enabled) to `true` in your user settings at `~/.claude/settings.json`." (Supports: enable across all projects) 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:35Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:24:35Z Last attempt: 2026-11-20T12:24:35Z Notes and limitations: Extracted automatically from a single official source (section "Get started"). Related: https://latestn.com/tool/claude-code/permissions-and-security/enforce-policies What policies and restrictions can I enforce on Claude Code for my organization? https://latestn.com/tool/claude-code/permissions-and-security/filesystem-configuration How do I configure filesystem access and writable locations for a Claude Code deployment? https://latestn.com/tool/claude-code/permissions-and-security/foundry-azure-credentials How do I authenticate Claude Code with Microsoft Foundry using an API key, Microsoft Entra ID, or a bearer token? https://latestn.com/tool/claude-code/permissions-and-security/define-trusted-infrastructure How do I define trusted infrastructure for Claude Code auto mode? https://latestn.com/tool/claude-code/permissions-and-security/disable-permission-prompts-unattended How do I turn off permission prompts in unattended Claude Code runs? https://latestn.com/tool/claude-code/permissions-and-security/enable-sandbox How do I enable or disable sandboxing in Claude Code? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-20T12:24:35Z | changed | confirm command 2: — → curl --noproxy '*' https://example.com | [1] 2026-11-20T12:24:35Z | changed | confirm command 1: — → touch ~/sandbox-probe | [1] 2026-11-20T12:24:35Z | changed | mode selection: — → auto-allow or regular permissions | [1] 2026-11-20T12:24:35Z | changed | probe command 2: curl --noproxy '*' https://example.com → — | [1] 2026-11-20T12:24:35Z | changed | probe command 1: touch ~/sandbox-probe → — | [1] 2026-11-20T12:24:35Z | changed | mode options: auto-allow or regular permissions → — | [1] 2026-11-13T03:05:33Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/claude-code/permissions-and-security/enable-sandboxed-bash/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/enable-sandboxed-bash POST: https://latestn.com/dispute/tool/claude-code/permissions-and-security/enable-sandboxed-bash with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/claude-code/permissions-and-security/enable-sandboxed-bash?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I enable the sandboxed Bash tool in Claude Code and confirm commands run inside the sandbox? Revision 2, last verified 2026-11-20T12:24:35Z. https://latestn.com/tool/claude-code/permissions-and-security/enable-sandboxed-bash (accessed 2026-11-21T09:57:06Z). @misc{LatestN_tool_claude_code_permissions_and_security_enable_sandboxed_bash_r2, title = {How do I enable the sandboxed Bash tool in Claude Code and confirm commands run inside the sandbox?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/claude-code/permissions-and-security/enable-sandboxed-bash}}, note = {Revision 2; digest sha256:ccb56f18573707a7; last verified 2026-11-20T12:24:35Z; accessed 2026-11-21T09:57:06Z} } 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/enable-sandboxed-bash