Claude Code Wsl Sandbox — AI skill for Claude Code
Run Claude Code on Windows inside a real Linux sandbox.
How to install Claude Code Wsl Sandbox
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open DiogoF-Hub/claude-code-wsl-sandbox and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Claude Code Wsl Sandbox does
Run Claude Code on Windows inside a real Linux sandbox. WSL 2 + ai-jail (bubblewrap, Landlock, seccomp) so the agent can only touch your project, with SSH commit signing still backed by Bitwarden.
Alternatives in AI
- Nodeterm — Node-based terminal manager for AI coding agents — tmux-backed terminals and parallel agent sessions as dragga 1.3k ★
- Generate Clip — Generate AI video clips for your Remotion project 113 ★
- Uisight — Your AI can already see the screen — it just can't measure it 103 ★
README
Sandboxed Claude Code on Windows (WSL 2 + ai-jail + Bitwarden SSH signing)
A reproducible setup for running an AI coding agent on Windows inside an OS-level sandbox, while keeping SSH commit signing backed by Bitwarden.
The agent can only read and write the project directory. It cannot reach `~/.ssh`, the Windows filesystem, or any Windows executable. Commits are still signed by the key held in Bitwarden, which never touches disk.
Why I built this
This is my personal setup, documented so I can rebuild it and so others can copy the parts they want.
The motivation is **not** fear of malware. I do not assume Claude Code is compromised or hostile. The problem is a much more ordinary one: an agent that wanders. Left unconstrained it will run `reg.exe` queries, poke at Windows config, read dotfiles, or start "helpfully" fixing things nowhere near the code I asked about. Sometimes it goes far beyond the request, which is scope creep rather than sabotage.
So the goal is containment of *reach*, not defence against an attacker. When I ask for help with a project, the agent should only be able to act on that project. Everything else on the machine is simply not there. As a bonus, the same boundary happens to limit the damage if a repo ever does contain a prompt injection.
Worth being clear about the limit: the sandbox constrains **where** the agent can act, not **how much** it does. For bounding behaviour, see [Security notes](#scope-creep-is-not-a-security-control).
Paths below assume the username `diogo` on both Windows and WSL. Adjust as needed.
What is in this repo
README.md, this guide- `.ai-jail`, my per-project sandbox config, and
`.ai-jail-global`, which belongs at
~/.ai-jail. See Part 8 - `CLAUDE.md` and `jail.md`, the standing session instructions, see Part 9
They are meant to be copied and adapted, not used verbatim.
Related Skills
Azkaban
A jail for AI CLIs. azkaban confines a coding agent (Claude Code, aider, etc.) to a single project directory u
Apohara Agentguard
Anti-bypass command-safety hook, local seccomp+Landlock sandbox, and deterministic prompt-injection firewall f
Skilljail
Manifest-declared, kernel-enforced least privilege for AI agent skills (Claude Code SKILL.md). Seatbelt/Landlo
AI Bwrap
Run AI coding agents (Claude Code, opencode, Grok, ...) inside a bubblewrap sandbox — one wrapper, any agent.
AI Agent Sandbox
A secure bubblewrap-based sandboxing solution for running Claude Code with strict filesystem isolation.
Agent Viewer
One window for every AI agent session — browse Claude Code, Codex, OpenCode, Gemini, DeepSeek, Hermes & Kimi t
Related Agents
Game Tester
QA tester for EOB1 ScummVM CHT fan translation. Drives scummvm headlessly in WSL Xvfb (no window appears on Wi
Hw Debugger
Diagnose and fix one firmware symptom on real hardware - a hypothesis loop inside one locked round, then, with
Packager Troubleshooter
Use this agent when packaging fails or needs changes — yarn build:package:windows mac linux, PyInstaller error