Answer: Claude Code offers six sandbox environment options: the Sandboxed Bash tool, Sandbox runtime, Dev container, Custom container, Virtual machine, and Cloud sessions. They differ in what is isolated, whether Docker is required, and setup effort, ranging from minimal on macOS for the Sandboxed Bash tool to high for a Virtual machine. Status: Check failed Entry: tool/claude-code/permissions-and-security/compare-sandbox-approaches Revision: 1 Digest: sha256:2a0fec70cb9ac193 (changes whenever the content changes) Timeline: Created: 2026-11-16T12:12:04Z Last changed: 2026-11-16T12:12:04Z Last verified: 2026-11-19T12:19:51Z Last attempt: 2026-11-20T12:24:32Z (failed) Next check: 2026-11-20T13:24:32Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of Sandboxed Bash tool isolation | Bash, PowerShell, and Monitor tool commands and their child processes | [1] | 2026-11-19 Sandboxed Bash tool setup effort | Minimal on macOS; low on Linux and WSL2 | [1] | 2026-11-19 Sandbox runtime isolation | The whole Claude Code process, including file tools, MCP servers, and hooks | [1] | 2026-11-19 Dev container setup effort | Medium | [1] | 2026-11-19 Custom container setup effort | Medium to high | [1] | 2026-11-19 Virtual machine setup effort | High | [1] | 2026-11-19 Cloud sessions setup effort | None; requires a Claude subscription, and a connected GitHub account to clone a GitHub repository | [1] | 2026-11-19 Sources: [1] Anthropic. "Choose a sandbox environment". https://code.claude.com/docs/en/sandbox-environments.md Role: primary. Accessed: 2026-11-19T12:19:51Z Quote: "Bash, PowerShell, and Monitor tool commands and their child processes" (Supports: Sandboxed Bash tool isolation) Quote: "Minimal on macOS; low on Linux and WSL2" (Supports: Sandboxed Bash tool setup effort) Quote: "The whole Claude Code process, including file tools, MCP servers, and hooks" (Supports: Sandbox runtime isolation) Quote: "| [Dev container](#dev-containers) | Full development environment | Yes | Medium |" (Supports: Dev container setup effort) Quote: "| [Custom container](#custom-container) | Full development environment | Yes | Medium to high |" (Supports: Custom container setup effort) Quote: "| [Virtual machine](#virtual-machine) | Full operating system | No | High |" (Supports: Virtual machine setup effort) Quote: "None; requires a Claude subscription, and a connected GitHub account to clone a GitHub repository" (Supports: Cloud sessions setup effort) Published: 2026-11-19T04:09:14Z Snapshot SHA-256: 2d3013555c899cbcc80ed1fea2fb3f6978f36356fc4ae419cd8ef24bb03722a6 (captured 2026-11-14T12:20:18Z) 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-16T12:12:04Z, so the values verified then were kept. Cross-check: not-available at 2026-11-19T12:19:51Z. No independent second source is configured for this entry Last successful check: 2026-11-19T12:19:51Z Last attempt: 2026-11-20T12:24:32Z (failed) Notes and limitations: Extracted automatically from a single official source (section "Compare sandboxing approaches"). Related: https://latestn.com/tool/claude-code/permissions-and-security/configure-proxy-for-credentials How do I configure Claude Code to use a proxy for credential management? https://latestn.com/tool/claude-code/permissions-and-security/configure-security-policies What security policies should organizations configure for Claude Code? https://latestn.com/tool/claude-code/permissions-and-security/control-custom-tool-access How do I control which custom tools Claude Code can access or require approval for? https://latestn.com/tool/claude-code/permissions-and-security/change-permission-mode-2 How do I change the permission mode in Claude Code? https://latestn.com/tool/claude-code/permissions-and-security/choose-sandbox-for-threat-model How do I choose the right sandbox environment for my threat model in Claude Code? https://latestn.com/tool/claude-code/permissions-and-security/cloud-network-access-levels What network access levels can I choose for a Claude Code cloud environment and how do I allow specific domains? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-20T12:24:32Z | check-failed | Extraction did not pass verification: answer does not contain any extracted value | — 2026-11-16T12:12:04Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/claude-code/permissions-and-security/compare-sandbox-approaches/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/compare-sandbox-approaches POST: https://latestn.com/dispute/tool/claude-code/permissions-and-security/compare-sandbox-approaches with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/claude-code/permissions-and-security/compare-sandbox-approaches?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). Which sandbox environment options does Claude Code offer and how do they compare? Revision 1, last verified 2026-11-19T12:19:51Z. https://latestn.com/tool/claude-code/permissions-and-security/compare-sandbox-approaches (accessed 2026-11-21T10:03:25Z). @misc{LatestN_tool_claude_code_permissions_and_security_compare_sandbox_approaches_r1, title = {Which sandbox environment options does Claude Code offer and how do they compare?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/claude-code/permissions-and-security/compare-sandbox-approaches}}, note = {Revision 1; digest sha256:2a0fec70cb9ac193; last verified 2026-11-19T12:19:51Z; accessed 2026-11-21T10:03:25Z} } 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/compare-sandbox-approaches