Thorup

Wsl Agent Sandbox — DevOps skill for Claude Code

DevOps community

Hardened Ubuntu 26.04 LTS WSL2 sandbox for autonomous AI coding agents (Gemini CLI, Claude Code, etc.) isolates Windows drives, interop, clipboard, and LAN/loopback while safely sharing Docker Desktop.

How to install Wsl Agent Sandbox

This entry records only its repository, not the path inside it, so there is no exact command to give. Open Thorup/wsl-agent-sandbox and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Wsl Agent Sandbox does

Hardened Ubuntu 26.04 LTS WSL2 sandbox for autonomous AI coding agents (Gemini CLI, Claude Code, etc.) isolates Windows drives, interop, clipboard, and LAN/loopback while safely sharing Docker Desktop via a Go API policy proxy and keeping localhost web preview working.

Alternatives in DevOps

  • Claude Code Router — Use Claude Code as the foundation for coding infrastructure, allowing you to decide how to interact with the m 30.1k ★
  • Skill Claw — OpenClaw instance administration — manage hosts across macOS, Ubuntu/Debian, Docker, OCI, and Proxmox 2.8k ★
  • Codeg — Aggregate and browse AI coding agent sessions (Claude Code, Codex, Gemini CLI, etc.) in one place 850 ★

README

wsl-agent-sandbox — Hardened Ubuntu 26.04 LTS WSL2 Sandbox for Autonomous AI Agents

`wsl-agent-sandbox` — Hardened Ubuntu 26.04 LTS WSL2 Sandbox for Autonomous AI Agents

A declaratively configured, isolated **Ubuntu 26.04 LTS (Resolute Raccoon)** WSL2 distribution (`wsl-agent-sandbox`) where autonomous AI coding agents (**Gemini CLI**, **Claude Code**, **Codex**, **Antigravity / VS Code Remote-WSL**, or custom agents) can run freely inside Linux while being **strictly contained from accessing your underlying Windows host**, with explicit Windows-side control over every bridge.


Security & Isolation Guarantees

Boundary Default Policy Controlled Bridge
Privilege Escalation Agent runs as non-root agent (UID 26040), zero sudo, locked root password. Admin access only from Windows via .\box.ps1 root-shell.
Windows Filesystem /mnt/c automount disabled ([automount] enabled=false), manual mount -t drvfs blocked. Declarative sharedFolders allowlist in box.json mounted at /shared/ (ro or rw).
Windows .exe Interop Disabled ([interop] enabled=false, appendWindowsPath=false). None (Antigravity / VS Code Remote-WSL uses modern script-less startup).
WSLg / Clipboard / /mnt/wsl Unmounted per-distro (rprivate + umount -l + chmod 000); no X11/Wayland/clipboard/raw sockets. Root-only /run/box-root/mnt-wsl (0700 root:root) used exclusively by docker-policy-proxy.
Network (WSL → Windows & LAN) Per-UID nftables (meta skuid 26040) drops all new outbound traffic to Windows host & RFC1918 LAN. Optional network.allowedHostPorts in box.json; outbound internet remains open.
Network (Windows → WSL) ct state established,related accept + WSL localhostForwarding. Browse any web app hosted in WSL at http://localhost: from Windows!
**Docker