clawk
Runs coding agents like Claude Code and Codex inside a disposable local Linux VM with an allow-listed network instead of on your own machine.
At a Glance
clawk core CLI is released under the Apache License 2.0 and can be used, modified and distributed at no charge.
Engagement
Available On
Listed Nov 2026
About clawk
clawk is an open-source command-line tool from the clawkwork organization that gives a coding agent its own disposable Linux virtual machine. From a repository directory, running clawk boots a VM with the code mounted in and attaches Claude Code, Codex, pi, opencode or a shell. The project is pre-1.0 and the README warns of breaking changes between releases.
What It Is
clawk is a local sandbox manager for autonomous coding agents. Instead of approving every command or running an agent with permission checks disabled on the host, the agent works as root inside a separate VM with its own Linux kernel. The host filesystem, keychain and other files are not visible except for what the user mounts. Any OCI image can serve as the root filesystem, and no Docker daemon is needed.
How the isolation works
- Outbound traffic is denied by default through a DNS-aware allow-list enforced in a userspace network stack below the guest. Common registries such as npm, PyPI, crates.io and GitHub are pre-allowed.
clawk network denialslists the hosts the agent tried to reach and was blocked from.- The host ssh-agent is forwarded so
git pushworks without keys entering the VM. - A single vsock agent is the only control path into the guest, with no sshd.
- The README states limits: mounted or allow-listed resources and any secrets pushed in are exposed, and hypervisor escapes are not defended against beyond Virtualization.framework or KVM.
Workflow and lifecycle
Repos are live-mounted into the guest on macOS. Agent conversations and state are stored on the host, so a destroyed sandbox can be recreated and resumed. Commands cover down, attach, pause, resume, snapshot and destroy, plus port forwarding. Idle VMs release memory and can be suspended to disk. A --safe flag restores the agent's confirmation prompts.
Optional clawk.mod files configure CPU, memory, image, network rules, forwards, environment variables, MCP servers and hooks. Ticket mode (clawk work and clawk pr) creates a sandbox with a git worktree per repository and opens cross-linked pull requests.
Setup path
It is installed with Homebrew or built from source with Go 1.26+. It requires macOS 14+ on Apple silicon, using Apple's Virtualization.framework. Linux support via firecracker is described as experimental. Windows and Intel Macs are not supported.
Community Discussions
Be the first to start a conversation about clawk
Share your experience with clawk, ask questions, or help others learn from your insights.
Pricing
Open Source (Apache-2.0)
clawk core CLI is released under the Apache License 2.0 and can be used, modified and distributed at no charge.
- Apache License 2.0
- Disposable Linux VM sandbox for coding agents
- Network allow-list
- Runs Claude Code, Codex, pi, opencode or a shell
- Platform: macOS, Linux (experimental)
Capabilities
Key Features
- Disposable Linux VM per project with its own kernel
- Runs Claude Code, Codex, pi, opencode or a shell
- Default-deny DNS-aware network allow-list with denial logging
- ssh-agent forwarding without copying keys into the VM
- Any OCI image as root filesystem, no Docker daemon required
- Host-persisted repo and agent conversation state
- Snapshot, pause, resume and idle auto-stop
- Port forwarding and reverse forwarding
- clawk.mod configuration including MCP servers and hooks
- Ticket mode with git worktree per repo and cross-linked PRs
- Optional --safe mode to restore agent permission prompts
