devvm opens a VM that exists instead of refusing it: unfinished VMs (no state or no network choice) are refused before anything; --backend, --network-policy, --no-git-protect, --cpus/--memory/--disk and --ports are ignored with a warning each; an IMAGE naming what the VM lacks adds it in place after asking (tools built and listed, a layer's script run in the VM, new agents' folders mounted with a stop first); outdated images and newer tools are warned about, the daily tools check runs, agent folder mounts follow the host's, .git is checked per run, set-id files are named on Linux, a stopped VM gets the size and ports its state asks for (a running one is told they apply at its next start); then it is started if stopped (a running VM with network policy keeps its proxy), the self-check runs (a failure stops the VM), and it is set up and its shell opened. Commands: restart (stop, then open), update (newest shared tools, built from base, then open), remove TOOLS (out of the image and tool list, then open), adopt (a VM made for an earlier folder at this path, after asking; .git protection restarts as appeared), rm [-f] (exports the agents' history first unless -f, a failed export keeps the VM; a VM of an earlier folder only after asking, without export; deletes the VM, state, proxy, rules, run files, logs, .git locks, host keys and ssh config entry, also when the delete failed but left no VM). Inventory: - vm: find/findExisting/existing, sameFolder, open, run, setUp, warnIgnored, checkSetID, applySize, applyPorts, addLayers, wantedImage, runScript, buildTools; Restart, Remove, Update, Adopt, Rm, export, delete; start refuses vm_unfinished and stops a leftover proxy for VMs without network policy - gitprotect: Protector.Check (replaced, appeared, new submodules in the tree and .git/modules, unlocked hooks, commondir, delegations on change; locks only while stopped; unset protection set up as new), Locked field; platform.Immutable - tools.Update takes a build func; build.Builder.LayerScript exported - cli: restart, remove, update, adopt, rm; withEnv; root Long - messages: vm_other_folder (reworded), vm_other_folder_rm/_adopt, delete_other_folder_vm, adopt_vm, vm_adopted, vm_already_here, no_vm, vm_unfinished, backend/net/git_protect/ports_flag_ignored, size_flags_ignored, size_next_start, ports_next_start, add_in_place, restart_for_mounts, no_terminal_confirm, keeping, adding, add_layer_failed, vm_is_now, exported, export_failed, deleted, rm_failed, adopt_failed, git_replaced, git_appeared, git_embedded_new, git_hooks_unlocked; net_unenforced_stop says devvm starts it again confined; vm_exists removed - tests: testscript existing.txtar, existing_agents.txtar; Go tests for Check (five per-run reports, replaced/appeared, off/unset), open with network policy, addLayers, Rm, Adopt, remove/update/restart; limactl stub: delete-fails, Exec-fed scripts - converted bats: delete (vm_unfinished, rm cleans up after a failed delete, rm deletes only this VM), project (folder made again, update twice, remove twice, five .git per-run reports), ports (applied once, restart warning), size (restart warning), cli (rm forgets host keys) - e2e: project (stop and relaunch, running relaunch, restart with host keys, swapped .git, new submodule locked, rm unlocks; agent folder added/removed on restart, rm exports history without logins), tools (update, remove), network (relaunch confined, unenforced relaunch stops it, rm -f) - docs: commands.md (existing VM, adding, deleting, a folder made again), coding-agents.md (mounts on launch, history), git-protection (on each launch), images, network, security; CLI reference Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.
$ 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.