install.sh picks this host's archive (devvm-<version>-<os>-<arch>.tar.gz: darwin or linux, arm64 or amd64; Apple silicon's under Rosetta, from sysctl hw.optional.arm64), checks SHA256SUMS's minisign signature (an empty key still skips it, with a warning; no minisign prints the command to check by hand), then the archive's checksum, and installs the binary with its data files in <prefix>/lib/devvm/<version>, linked from <prefix>/bin/devvm. Older versions go, except one a running process names in its arguments (a VM's proxy, QEMU's guestfwd on Linux): it's kept until a later install. Then it offers devvm doctor --fixes' fixes, asking first (Homebrew's Lima or Lima's checked release tarball, QEMU, the kvm group), and runs devvm doctor. Downloads are HTTPS only. Its text isn't messages: it runs before devvm is there. release.sh --head now needs install.sh too. Tests: testdata/script/install.txtar sources install.sh (host and archive names, Rosetta, version choice and validation, HTTPS-only fetch, run_fix as words, install and links, reinstall, an older version in use kept (and the real ps), signature good, bad, missing, no minisign, a bad checksum, no archive for this host, Lima's tarball for the host and arch and a bad checksum, the PATH hint, the fixes with --yes, the kvm re-login, no yes, Lima's release once allowed, nothing missing, main's options, and the tests' devvm binary installed and finding its files); release_head.txtar: a HEAD without install.sh is refused. docs: install.md (Homebrew and the install script, upgrading, uninstalling), maintaining.md (trying install.sh on a --head build), README. Co-Authored-By: Claude Opus 5.5 <[email protected]>
1.8 KiB
devvm
Create an isolated VM in any project folder with everything needed for you or an agent to start coding.
cd ~/some-project
devvm
devvm detects the project's toolchain, creates a VM from a cached image, mounts only the project folder, and opens a shell at the same path. Toolchains and coding agents are shared read-only between VMs, network access goes through an allowlist enforced on the host, and API keys stay on the host.
Quickstart
devvm runs on macOS and Linux, with Lima 2.0 or newer. Install it with Homebrew (brew install w3cj/tap/devvm) or the install script, which offers to install what's missing (Installing). devvm doctor checks what's missing and how to get it.
$ cd ~/some-project
$ devvm --network-policy base
==> building image base (e9f517dddef1)
a few minutes, and Ubuntu's cloud image to download the first time
(details: ~/.local/share/devvm/logs/runs/20261024-090616-83541.log)
==> image base ready
==> creating devvm-some-project-71a99b1076d92c from base
==> starting devvm-some-project-71a99b1076d92c
Then you're in a shell in the VM, in ~/some-project. The first VM builds the base image. Later VMs are copies of it and start in seconds. With --network-policy the VM reaches only an allowlist of hosts, through a proxy on your machine (network policy); without a flag devvm asks.
Docs
w3cj.github.io/devvm, from docs/: commands, the security model. Building, testing and writing docs: Contributing.