--from IMAGE (default $DEVVM_FROM) starts base from a Debian-, Ubuntu- or Alpine-based container image instead of Ubuntu's cloud image, for new VMs, build and rebuild. base is keyed by the image's digest, looked up once per build and recorded per reference; existing VMs keep their own (from_ignored). - internal/from: ParseRef (registry_ref, with a fuzz target), Valid/ Check (bad_from), Pinned, Name, Recorded (from_digest), Registry.Digest (manifest HEAD, anonymous Bearer token from an https realm only, timeouts, size caps, retries; ErrUnreachable/ErrNotFound), Lookup.Refresh (refresh_from_digest: registry, else Docker's ID, else the recorded digest with a warning), DockerID, DockerRunning. - build.Builder: From and Lookup; Inputs/Key/Chain with the recorded digest; spec.From for base; records keep from and digest on every image above a --from base; rebuild counters per from; building_image_from. - lima: convert (oci_base): devvm-oci-build from Ubuntu's image with only <tmp>/vm (rw) and oci/ (ro) mounted, confined to the internet, runs oci/build.sh; docker save plus exportIs for images only Docker has; checkConverted (regular files, gnu/musl, cmdline charset, raw ext4); base created with --set .images (disk, kernel, cmdline, initrd); the temp folder, build VM and the OCI build lock (lockOCI, pid, stale takeover, oci_waiting) go however the run ends. - cli/vm: global --from flag, state from=, builders with the VM's from in open, update, remove. - Messages: building_image_from, bad_from, from_ignored, from_unreachable, from_not_found, from_cached_unreachable, from_cached_not_found, no_digest, docker_only, exporting_docker, docker_export_failed, docker_image_changed, oci_waiting, converting_in_vm, converting, convert_failed, convert_bad_output; doc links to from.md. - Copied: oci/ (build.sh and README edited: comment, docs link), testdata/stubs/docker; limactl stub gains oci/build.sh outputs and interrupt-on. - Converted: from.bats (registry_ref, registry_digest token, 1/2, https realm, refresh per tag, Docker-only, offline, no Docker, pinned, moved tag, cached keys, build flow, docker save, Ctrl+C, steps, failures, bad outputs, record, export check, lock) as Go tests and from.txtar; oci.bats (libc_for, missing architecture, crane pins) as oci.txtar; cli.bats --from parse_args and project.bats --from input checks. - e2e: from section (--from tier, or --only from): node:24 Debian 12 node+python+claude, alpine:3 musl tools and Docker on OpenRC, base from ubuntu:26.04, no Docker needed. Left out: features, an image only Docker has. - Docs: from.md; images, commands, lima, contributing, index; 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.