Devvm.dev: One VM for every project devvm.dev · 186 points · 75 comments · HN th...
HN Best 30 @best30
Devvm.dev: One VM for every project devvm.dev · 186 points · 75 comments · HN thread
TL;DR devvm is an open-source (MIT) macOS and Linux tool that creates an isolated Lima-based VM per project, with toolchains detected from the project's files and Claude Code, Codex or opencode preinstalled for use inside the sandbox. The page explains the install flow, network tiers, secret placeholders via a host proxy, and --clone mode that keeps the VM away from the working tree and .git.
- Install via Homebrew (brew install devvmhq/tap/devvm), which pulls in Lima; running devvm in a project folder creates or reopens a VM with that project mounted at the same path.
- Toolchains are chosen from the project's files, with optional layers (docker, nix, desktop) and custom layers built with devvm layer new.
- New VMs default to an allowlist network tier, proxied through the host; internet, open and none tiers are also available.
- Secrets such as agent tokens stay on the host: the VM gets placeholders and devvm's proxy substitutes real values in outgoing requests.
- --clone gives the VM its own repo clone so it cannot touch the working tree or .git; on macOS .git hooks and config are locked.
- Runs on macOS and Linux (arm64 or x86_64) using Apple Virtualization or QEMU; Windows is not supported.
Discussion The thread quickly widened from devvm itself into a survey of similar sandboxing tools, with many commenters listing their own projects (libvirt, Incus, podman, KVM, smolvm, Docker sbx, Anthropic's srt, exe.dev). Much of the debate is about whether a VM is worth its overhead compared with bubblewrap or namespaces, how to give agents enough access (git, registries, CI logs) without leaking credentials, and whether the install-by-curl-script and login flow is trustworthy. The mood is skeptical but curious: people welcome the idea, question the differentiation, and share concrete gaps they hit in their own setups.
- Too many similar sandbox projects already exist (many): Several commenters list their own or other tools (smolvm, sbx, srt, Incus, pleasedonotescape) and ask how devvm differs. Some see the category as crowded and the value as unclear.
- VM isolation is worth the overhead over containers or bwrap (many): Commenters argue that a hypervisor boundary is much stronger than shared-kernel namespaces, so VMs are the right tool for running agent code. Others note that a VM's hardware and host-guest interface still carry risk.
- Not enough for enterprise or multi-repo work (some): A commenter who built a similar tool at a large company says it needs longer-lived sandboxes across many repos, internal registries, GPU and credential-injecting proxies. Others say one VM per directory is too limiting.
- Agent git access is the hard unsolved problem (some): Users describe tradeoffs: separate bot accounts, scoped PATs, read-only .git, committing outside the sandbox, or handing the agent gh credentials to debug CI. No consensus emerges.
- Curl-to-shell install and login requirements are a red flag (a few): One commenter refuses curl installers and wants a package manager; another distrusts a tool that asks for a login. Replies note that distro packaging is hard for small projects.
- Hostile repo hooks show why --clone matters (a few): A commenter received a malicious zip with a .git hook that ran eval on commit and asked whether devvm warns about existing hooks. A reply recommends unzipping only inside the VM.
Links from the comments
- smolvm, an embeddable VM library mentioned as an alternative to Lima/QEMU
- Community list of agent sandboxing projects referenced several times
- libvirt and cloud-init sandbox focused on network containment with an nmap check
- Python, Podman and Squid sandbox for agents with network filtering
- Canonical's LXD-based workshop tool recommended as an alternative
#sandboxing #virtualMachines #codingAgents #devTools #security #lima