claude-code - 💡(How to fix) Fix [Feature Request] Native sandbox support for Windows (non-WSL) [2 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#46740Fetched 2026-04-12 13:34:18
View on GitHub
Comments
2
Participants
2
Timeline
6
Reactions
0
Timeline (top)
labeled ×4commented ×2

The /sandbox feature — the single most impactful security setting in Claude Code — is unavailable on native Windows. It uses Seatbelt on macOS and bubblewrap on Linux, but has no Windows equivalent.

Root Cause

The /sandbox feature — the single most impactful security setting in Claude Code — is unavailable on native Windows. It uses Seatbelt on macOS and bubblewrap on Linux, but has no Windows equivalent.

Fix Action

Fix / Workaround

Without sandbox, permission deny rules only block Claude's built-in tools. Bash commands bypass them entirely. For example, Read(~/.ssh/**) in the deny list prevents the Read tool from accessing SSH keys, but Bash(cat ~/.ssh/id_rsa) would still work. The sandbox is what enforces deny rules at the OS level — without it, deny rules are a partial mitigation at best.

RAW_BUFFERClick to expand / collapse

Description

The /sandbox feature — the single most impactful security setting in Claude Code — is unavailable on native Windows. It uses Seatbelt on macOS and bubblewrap on Linux, but has no Windows equivalent.

Impact

Without sandbox, permission deny rules only block Claude's built-in tools. Bash commands bypass them entirely. For example, Read(~/.ssh/**) in the deny list prevents the Read tool from accessing SSH keys, but Bash(cat ~/.ssh/id_rsa) would still work. The sandbox is what enforces deny rules at the OS level — without it, deny rules are a partial mitigation at best.

Windows users currently have no path to full security enforcement.

Existing Windows sandbox issues

Current filed issues (#43840, #45072, #37371, #46354) are about sandbox breaking on Windows/WSL. This is a feature request for native Windows sandbox support that doesn't require WSL — potentially using Windows Sandbox, AppContainers, or similar OS-level isolation mechanisms.

Environment

  • Claude Code 2.1.84
  • Windows 10 Pro 10.0.19045

extent analysis

TL;DR

Implementing a Windows-specific sandboxing solution, such as utilizing Windows Sandbox or AppContainers, is likely necessary to achieve full security enforcement on native Windows.

Guidance

  • Investigate the feasibility of integrating Windows Sandbox or AppContainers into Claude Code to provide OS-level isolation on Windows.
  • Review existing issues (#43840, #45072, #37371, #46354) for potential insights into sandboxing challenges on Windows/WSL and how they might inform a native Windows solution.
  • Consider the security implications of not having a sandboxing solution on Windows and prioritize the development of a native Windows sandbox feature.
  • Evaluate whether any third-party libraries or tools can provide a suitable sandboxing solution for Windows until a native implementation is available.

Notes

The lack of a native Windows sandboxing solution currently limits the effectiveness of permission deny rules, allowing bash commands to bypass them.

Recommendation

Apply a workaround by using a third-party sandboxing tool or library until a native Windows sandbox feature is implemented, as this can provide some level of security enforcement, albeit not as seamless as a native solution.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING