## What this changes Every page on devvm.dev and next.devvm.dev gets its own Open Graph card, which Hugo draws when it builds the site. Each card is the brand card (the pixel logo with the lock, black, the lime bar, devvm.dev) with the page's section in lime capitals, its title, and a short explainer of what the page covers. > [!NOTE] > The six preview cards in `docs/og-preview/` were for review only. `chore(docs): drop the preview social cards` removes them again, so the squashed commit doesn't have them, and the images below still show from the commit that added them. - **The template**, `docs/assets/images/og-template.png`, is `docs/static/images/social-card.png` with the headline and tagline rows filled with the background's exact black. The repo has no SVG or generator for the card: it was a headless Chrome screenshot of the logo SVG and text. The old card has only four colors (`#000000`, `#7fff00`, `#eeeeee`, `#8f93a2`) and no antialiasing, so filling those rows leaves no marks. The logo, `devvm.dev` and the bar match the card pixel for pixel, and the template has those four colors and nothing else. - **The drawing**, `docs/layouts/_partials/og-image.html`, uses `images.Text` with Departure Mono at multiples of 11px (22px for the section label, 66, 55 or 44px for the title, whichever fits it in two lines, and 33px for the explainer). Every line starts on a whole pixel, so the generated cards also have exactly the template's four colors and no antialiasing: they are as crisp as the logo. `og-wrap.html` wraps lines by length, because the font is monospaced. The block is centered between the logo and devvm.dev. The section is the page's section title, *Docs* on a section's own page, and none on the home, branding and taxonomy pages. - **The font:** Departure Mono **v1.500**, the release the site's woff2 comes from (checked: the woff2 in the release zip is byte-identical to `docs/static/fonts/departure-mono/DepartureMono-Regular.woff2`, sha256 `5b4fed1d…`, and so is the LICENSE). That release ships an OTF, not a TTF. Hugo's `images.Text` reads it fine, so `docs/assets/fonts/departure-mono/` has `DepartureMono-Regular.otf` (sha256 `4d53f663155cf8bf7ffc8e688776e719625f7bbb80a8d90073438b249261a2e0`) and its OFL. Source: `gh release download v1.500 -R rektdeckard/departure-mono`, `DepartureMono-1.500.zip`, sha256 `bf3e48059aeef4617ec585bdea81dcc3491c576b3e7a472f52faf40e09ee5c3a`. - **The tags:** `custom/head-end.html` writes `og:image`, `og:image:type`, `og:image:width`/`height`, `og:image:alt` and `twitter:image:alt`. The alt text is `devvm docs: TITLE: EXPLAINER`. `_partials/_funcs/get-page-images.html` replaces Hugo's own, which Hugo's `twitter_cards.html` and `schema.html` call, so `twitter:card` is `summary_large_image` and `twitter:image` and `itemprop=image` are the same card. `params.images` is removed from `hugo.yaml`, so Hextra's `opengraph.html` writes no second `og:image`. In the built site, every one of the 115 HTML pages (the 404 included) has exactly one `og:image`, and each card is different. - **The explainer** is a new front matter key, `explainer`, not `description`. `description` is the page's meta description, `og:description`, the search snippet and its `llms.txt` line. Those want a sentence or two, and only two pages have one. A 4–9 word card line would be a weak search snippet. Every hand-written page has one. The CLI pages get their command's `Short` from `internal/cli/docgen` (`mise run cli-docs` rerun), and the reference's index gets a fixed one. The home page also sets `cardTitle: One VM for every project` (the hero's headline), because its title, `devvm`, would repeat the logo. - **The guard:** `TestExplainers` in `internal/cli/docgen/explainer_test.go` fails when any page under `docs/content` has no `explainer`. It also fails when the explainer takes more than two card lines of 48 characters (33px), or when the title (or `cardTitle`) takes more than two lines of 36 characters (44px). Those are the card's real limits, and they also cover the longest `Short`s. It runs in `mise run test` and in `mise run lint:docs`, next to `TestDocLinks`. `TestFrontMatter` and `TestWrappedLines` cover its parsing. - **Docs:** Contributing › Writing docs describes the cards, the key and the test. The branding page says each page has its own card. `social-card.png` stays as the brand asset. ### Numbers | | Before (main) | After | | --- | --- | --- | | Built site (`hugo -s docs --minify`, apparent size) | 40,194 KB | 42,138 KB (+1.9 MB) | | Cards | 1 static card | 115 PNGs, 14.9–16.6 KB each, 1.84 MB total | | Build time, image cache cold (`--ignoreCache`) | ~1.0 s | 1.4–1.95 s | | Build time, image cache warm | ~1.0 s | ~1.0 s | The cards are smaller than the prototype's estimate (about 16 KB, not 22–34 KB), because they have only four colors. next.devvm.dev: `hugo -s docs --minify --config hugo.yaml,next.yaml` gives `og:image`, `twitter:image` and `itemprop=image` as `https://next.devvm.dev/images/og-template_hu_….png` on every page. ### Examples | Home | Short title | | --- | --- | |  |  | | **Longest title (two lines)** | **CLI page, longest explainer** | |  |  | | **Section index** | **How it works page** | |  |  | ### Every page's card From a local `hugo -s docs --minify` build. "(none)" is a page whose card has no section label or no explainer. The 404 page's card, titled *404 Page not found*, isn't listed. | Section | Page | Title | Explainer | Card | | --- | --- | --- | --- | --- | | (none) | `/branding/` | Branding | devvm's logo, icons, colors and fonts | 15.6 KB | | (none) | `/categories/` | Categories | (none) | 15.0 KB | | Docs | `/docs/backends/` | Backends | The program that runs devvm's VMs | 15.7 KB | | Backends | `/docs/backends/lima/` | Lima | What Lima needs, and how devvm uses it | 15.7 KB | | CLI reference | `/docs/cli/devvm_adopt/` | devvm adopt | Give this folder the VM made for an earlier folder or path | 16.3 KB | | CLI reference | `/docs/cli/devvm_agent_import/` | devvm agent import | Copy the agents' settings and logins from this machine into devvm's store | 16.6 KB | | CLI reference | `/docs/cli/devvm_agent_login/` | devvm agent login | Log an agent in, in this folder's VM, and save the login in devvm's store | 16.6 KB | | CLI reference | `/docs/cli/devvm_agent_save/` | devvm agent save | Copy the agents' settings from this folder's VM into devvm's store | 16.5 KB | | CLI reference | `/docs/cli/devvm_agent/` | devvm agent | Fill devvm's store of the agents' settings and logins that every VM gets | 16.6 KB | | CLI reference | `/docs/cli/devvm_build/` | devvm build | Build an image and the images under it, unless they're built | 16.4 KB | | CLI reference | `/docs/cli/devvm_clone/` | devvm clone | Show or change whether this folder's VM has its own clone of the repo | 16.4 KB | | CLI reference | `/docs/cli/devvm_code/` | devvm code | Open this folder's VM in VS Code over Remote-SSH | 15.9 KB | | CLI reference | `/docs/cli/devvm_completion/` | devvm completion | Print the shell completion script for bash, zsh or fish | 16.3 KB | | CLI reference | `/docs/cli/devvm_desktop/` | devvm desktop | Open this folder's VM's desktop in a VNC viewer | 16.0 KB | | CLI reference | `/docs/cli/devvm_doctor/` | devvm doctor | Check what devvm needs on this machine | 15.8 KB | | CLI reference | `/docs/cli/devvm_gc/` | devvm gc | Delete stale images, unused tools, old files and the Nix cache over its cap | 16.4 KB | | CLI reference | `/docs/cli/devvm_git-protect/` | devvm git-protect | Show or change .git protection for this folder's VM | 16.3 KB | | CLI reference | `/docs/cli/devvm_group_join/` | devvm group join | Put this folder's VM in a group of VMs | 15.9 KB | | CLI reference | `/docs/cli/devvm_group_leave/` | devvm group leave | Take this folder's VM out of its group | 16.0 KB | | CLI reference | `/docs/cli/devvm_group/` | devvm group | Show the group this folder's VM is in | 15.9 KB | | CLI reference | `/docs/cli/devvm_history_export/` | devvm history export | Save this folder's VM's agent history to a .tar.gz | 16.5 KB | | CLI reference | `/docs/cli/devvm_history_import/` | devvm history import | Put an export of agent history into this folder's VM | 16.4 KB | | CLI reference | `/docs/cli/devvm_history/` | devvm history | List the saved exports of agents' history | 16.0 KB | | CLI reference | `/docs/cli/devvm_host/` | devvm host | Get this folder's VM ready for ssh and editors, and show its host name | 16.4 KB | | CLI reference | `/docs/cli/devvm_images_rm/` | devvm images rm | Delete images, by name or by key | 15.9 KB | | CLI reference | `/docs/cli/devvm_images/` | devvm images | List the images and the shared tools | 15.9 KB | | CLI reference | `/docs/cli/devvm_layer_add/` | devvm layer add | Make this folder's VM again with more layers, then open a shell in it | 16.6 KB | | CLI reference | `/docs/cli/devvm_layer_new/` | devvm layer new | Start a layer of your own | 15.8 KB | | CLI reference | `/docs/cli/devvm_layer_rm/` | devvm layer rm | Make this folder's VM again without some of its layers, then open a shell in it | 16.6 KB | | CLI reference | `/docs/cli/devvm_layer/` | devvm layer | Make image layers of your own, or change this folder's VM's layers | 16.6 KB | | CLI reference | `/docs/cli/devvm_limactl/` | devvm limactl | Run Lima's limactl for debugging, which starts VMs unconfined, whatever their tier | 16.6 KB | | CLI reference | `/docs/cli/devvm_link_add/` | devvm link add | Link this folder's VM to a port of another VM | 16.0 KB | | CLI reference | `/docs/cli/devvm_link_publish/` | devvm link publish | Show or add the ports this folder's VM offers to links | 16.3 KB | | CLI reference | `/docs/cli/devvm_link_rm/` | devvm link rm | Remove one of this folder's VM's links | 15.8 KB | | CLI reference | `/docs/cli/devvm_link_unpublish/` | devvm link unpublish | Stop offering ports of this folder's VM to links | 16.1 KB | | CLI reference | `/docs/cli/devvm_link/` | devvm link | List this folder's VM's links to your other VMs | 16.0 KB | | CLI reference | `/docs/cli/devvm_ls/` | devvm ls | List the project VMs | 15.7 KB | | CLI reference | `/docs/cli/devvm_network_allow/` | devvm network allow | Allow hosts for this folder's VM | 15.9 KB | | CLI reference | `/docs/cli/devvm_network_deny/` | devvm network deny | Deny hosts for this folder's VM | 15.9 KB | | CLI reference | `/docs/cli/devvm_network_log/` | devvm network log | Show what this folder's VM connected to and what its proxy blocked | 16.5 KB | | CLI reference | `/docs/cli/devvm_network_rm/` | devvm network rm | Remove rules from this folder's VM | 15.8 KB | | CLI reference | `/docs/cli/devvm_network/` | devvm network | Show or change the network tier of this folder's VM | 16.2 KB | | CLI reference | `/docs/cli/devvm_ports_add/` | devvm ports add | Forward more ports from this folder's VM | 16.0 KB | | CLI reference | `/docs/cli/devvm_ports_rm/` | devvm ports rm | Stop forwarding some ports from this folder's VM | 16.1 KB | | CLI reference | `/docs/cli/devvm_ports/` | devvm ports | Show or change which ports this folder's VM forwards | 16.3 KB | | CLI reference | `/docs/cli/devvm_rebuild/` | devvm rebuild | Build an image again, and delete the old one | 16.0 KB | | CLI reference | `/docs/cli/devvm_restart/` | devvm restart | Restart this folder's VM and open a shell in it | 16.0 KB | | CLI reference | `/docs/cli/devvm_retention/` | devvm retention | Show or change what devvm deletes on its own | 15.9 KB | | CLI reference | `/docs/cli/devvm_rm/` | devvm rm | Delete this folder's VM, or a VM whose folder is gone | 16.1 KB | | CLI reference | `/docs/cli/devvm_secret_rm/` | devvm secret rm | Delete a saved secret | 15.7 KB | | CLI reference | `/docs/cli/devvm_secret_set/` | devvm secret set | Save a secret on this machine | 15.8 KB | | CLI reference | `/docs/cli/devvm_secret_unuse/` | devvm secret unuse | Stop this folder's VM using a secret | 16.0 KB | | CLI reference | `/docs/cli/devvm_secret_use/` | devvm secret use | Let this folder's VM use a secret | 15.8 KB | | CLI reference | `/docs/cli/devvm_secret/` | devvm secret | List the secrets kept on this machine, for VMs to use | 16.2 KB | | CLI reference | `/docs/cli/devvm_setup/` | devvm setup | Choose base's features, and new VMs' size, network tier, coding agents and layers | 16.6 KB | | CLI reference | `/docs/cli/devvm_size/` | devvm size | Show or change this folder's VM's size | 15.9 KB | | CLI reference | `/docs/cli/devvm_space/` | devvm space | Show what devvm keeps on this machine and the space it takes | 16.3 KB | | CLI reference | `/docs/cli/devvm_ssh-agent_add/` | devvm ssh-agent add | Load a key into devvm's own SSH agent | 16.0 KB | | CLI reference | `/docs/cli/devvm_ssh-agent_rm/` | devvm ssh-agent rm | Remove a key from devvm's own SSH agent | 16.0 KB | | CLI reference | `/docs/cli/devvm_ssh-agent/` | devvm ssh-agent | Show or change SSH agent forwarding for this folder's VM | 16.4 KB | | CLI reference | `/docs/cli/devvm_stop/` | devvm stop | Stop this folder's VM | 15.6 KB | | CLI reference | `/docs/cli/devvm_tools_add/` | devvm tools add | Add shared tools to this folder's VM, then open a shell in it | 16.3 KB | | CLI reference | `/docs/cli/devvm_tools_rm/` | devvm tools rm | Take shared tools out of this folder's VM, then open a shell in it | 16.3 KB | | CLI reference | `/docs/cli/devvm_tools_update/` | devvm tools update | Move this folder's VM to the newest shared tools, then open a shell in it | 16.5 KB | | CLI reference | `/docs/cli/devvm_tools/` | devvm tools | Show or choose this folder's VM's shared tools | 15.9 KB | | CLI reference | `/docs/cli/devvm_update/` | devvm update | Bring this folder's VM up to date, then open a shell in it | 16.3 KB | | CLI reference | `/docs/cli/devvm_upgrade/` | devvm upgrade | Install devvm's newest release | 15.8 KB | | CLI reference | `/docs/cli/devvm/` | devvm | Open a shell in this folder's VM, creating it first | 16.1 KB | | Docs | `/docs/cli/` | CLI reference | Every devvm command, with its arguments and flags | 16.1 KB | | Docs | `/docs/contributing/` | Contributing | Build devvm, run its tests and follow its rules | 15.8 KB | | Contributing | `/docs/contributing/maintaining/` | Maintaining | Bump pinned versions, release devvm and run the docs sites | 16.3 KB | | Contributing | `/docs/contributing/testing/` | Testing on other hosts | Run devvm's tests on Linux, x86_64 and other hosts | 16.3 KB | | Getting started | `/docs/getting-started/commands/` | Everyday commands | The commands you use most, in their groups | 16.0 KB | | Getting started | `/docs/getting-started/first-vm/` | Your first VM | Make a project's VM and start an agent in it | 16.0 KB | | Docs | `/docs/getting-started/` | Getting started | From installing devvm to your first VM | 15.9 KB | | Getting started | `/docs/getting-started/install/` | Installing | Install devvm and check what it needs | 15.8 KB | | (none) | `/docs/` | Docs | The guides, in the order you'll need them | 15.6 KB | | How it works | `/docs/internals/backends/` | Backends | What a backend gives devvm, and how VMs are named | 16.1 KB | | How it works | `/docs/internals/design/` | Design notes | Why devvm is built this way, and what's open | 15.9 KB | | How it works | `/docs/internals/desktop/` | The desktop | How devvm desktop serves a VM's desktop | 15.9 KB | | How it works | `/docs/internals/git-protection/` | .git protection | What devvm locks in .git, and when | 15.9 KB | | How it works | `/docs/internals/images/` | Images and caching | How images and shared tools are built and cached | 16.2 KB | | Docs | `/docs/internals/` | How it works | How devvm works, for reviewers and contributors | 15.9 KB | | How it works | `/docs/internals/install/` | Installing and updating | What the install script and devvm doctor check | 16.1 KB | | How it works | `/docs/internals/lima/` | Lima | How devvm sets up, confines and clones Lima's VMs | 16.0 KB | | How it works | `/docs/internals/network/` | Network tiers | How the proxy confines VMs and keeps your secrets | 16.2 KB | | How it works | `/docs/internals/overview/` | Overview | What devvm does at each step of a VM's life | 15.8 KB | | How it works | `/docs/internals/ports/` | Port forwarding | How devvm forwards a VM's ports to this machine | 16.1 KB | | How it works | `/docs/internals/security/` | Security model | What devvm protects, how, and what it doesn't | 16.0 KB | | Staying safe | `/docs/safety/attack-vectors/` | Attack vectors | Common attacks, and what devvm does about each | 15.9 KB | | Staying safe | `/docs/safety/git-protection/` | .git protection | Keep code in the VM out of your .git | 16.0 KB | | Docs | `/docs/safety/` | Staying safe | How devvm keeps untrusted code off your machine | 16.0 KB | | Staying safe | `/docs/safety/network/` | Network tiers | Choose what each VM can reach on the network | 15.9 KB | | Using devvm | `/docs/using/clone/` | Working on a clone | Give a VM its own clone of the repo | 15.9 KB | | Using devvm | `/docs/using/coding-agents/` | Coding agents | Run Claude Code, Codex and opencode in a VM | 16.0 KB | | Using devvm | `/docs/using/command-line/` | The command line | Help, flags, questions, JSON output and completion | 16.3 KB | | Using devvm | `/docs/using/customizing/` | Customizing images | Add your own layers and choose base's features | 16.1 KB | | Using devvm | `/docs/using/desktop/` | A VM's desktop | Add a desktop to a VM and open it | 15.8 KB | | Using devvm | `/docs/using/devcontainer/` | devcontainer.json | Set up a VM from a project's devcontainer.json | 16.1 KB | | Using devvm | `/docs/using/from/` | Starting from a container image | Start base from a Debian, Ubuntu or Alpine image | 16.6 KB | | Using devvm | `/docs/using/images/` | Images and tools | The images VMs are made from, and their tools | 16.1 KB | | Docs | `/docs/using/` | Using devvm | What you change in your VMs as you work | 15.9 KB | | Using devvm | `/docs/using/limits/` | Known limits | What devvm can't do, and where | 15.7 KB | | Using devvm | `/docs/using/links/` | Links between VMs | Let one VM reach a service in another by name | 16.1 KB | | Using devvm | `/docs/using/ports-size/` | Ports and size | Forward a VM's ports and change its size | 15.9 KB | | Using devvm | `/docs/using/settings/` | Settings and files | The files you edit and the files devvm keeps | 16.2 KB | | Using devvm | `/docs/using/space/` | What devvm keeps on this machine | Each file devvm keeps, and how it's cleaned up | 16.5 KB | | Using devvm | `/docs/using/ssh/` | SSH and editors | Reach VMs by name from ssh and VS Code | 15.9 KB | | Using devvm | `/docs/using/toolchains/` | Toolchains | The toolchains VMs get, and the files that choose them | 16.2 KB | | Using devvm | `/docs/using/troubleshooting/` | Troubleshooting | What to do when something fails | 15.9 KB | | Using devvm | `/docs/using/upgrading/` | Upgrading and uninstalling | Upgrade devvm, or remove it and what it keeps | 16.5 KB | | Using devvm | `/docs/using/vms/` | Managing VMs | Open, stop, delete and list your VMs | 15.9 KB | | (none) | `/` | One VM for every project | An isolated sandbox for you or a coding agent | 16.1 KB | | (none) | `/tags/` | Tags | (none) | 14.9 KB | ## How it was tested - `mise run fmt && mise run lint && mise run test` passes on macOS. `mise run lint:docs` passes: markdownlint, Vale, lychee, `TestDocLinks`, `TestCommandLines`, `TestExplainers` and the `--panicOnWarning` build. - I built devvm.dev and next.devvm.dev, checked that every HTML page has exactly one `og:image`, and opened the cards for the home page, a short title, the longest title, the longest CLI explainer, a section index, a How it works page and the 404. I checked each card's color histogram: four colors, so there's no antialiasing and no marks from the template. - No e2e: the change is docs only. ## Checklist - [x] The title is a Conventional Commit, `type(scope): summary`, because it becomes the squashed commit's subject. - [x] `mise run fmt && mise run lint && mise run test` passes. - [x] New behaviour has tests, and every behaviour change updates its page in `docs/content/docs/`. - [x] A changed command follows the cli skill, and `mise run cli-docs` is rerun when its help changed. (No command changed. `cli-docs` was rerun for the generated explainers.) - [x] Nothing here belongs in a private security advisory instead (see SECURITY.md). **Ready to merge:** the previews are removed and main (#25) is merged in. The gate passes on macOS (2362 tests). 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
18 KiB
title, explainer, weight
| title | explainer | weight |
|---|---|---|
| Toolchains | The toolchains VMs get, and the files that choose them | 2 |
devvm has these toolchains:
| Toolchain | What it brings |
|---|---|
| node | Node 24, with npm, pnpm, yarn and bun |
| python | CPython, with pip and uv |
| rust | rustup, cargo and the stable toolchain |
| go | Go |
| dotnet | the .NET SDK and its runtimes |
A new VM gets the ones its folder's files call for, which the summary of the new VM shows, unless you customize the VM and check others in the list or give others with --tools, as in devvm --tools node,python (what a new VM gets). Each section below says what the toolchain brings and which files make devvm choose it. A project that gets its toolchain from Nix uses the nix layer, which Nix projects covers.
node
node brings the newest release of Node 24, with npm, pnpm, yarn through corepack, and bun. devvm stays on Node 24 because newer releases drop corepack.
- Files. devvm chooses node for a folder with
package.json,bun.lockorbun.lockbat its top level. - Versions. A project's
.nvmrcor.node-versionpicks its Node version, which installs into the VM the first time it's used. - Global installs.
npm i -ginstalls into~/.npm-globalin the VM, which is on thePATH. - Allowlist. On the allowlist tier, the VM can reach npm's, yarn's, pnpm's and bun's registries and Node's downloads, which are
registry.npmjs.org,registry.yarnpkg.com,repo.yarnpkg.com,nodejs.organdbun.sh.
python
python brings a prebuilt build of the newest CPython release, and uv, so pip and uv work as usual.
- Files. devvm chooses python for a folder with
pyproject.toml,requirements.txt,uv.lock,setup.pyorPipfileat its top level. - Versions. A project's
.python-versionpicks its Python version, which installs into the VM the first time it's used. - Global installs. The shared Python is read-only, so packages go into a project's virtual environment or into your home in the VM, and
~/.local/binis on thePATH. - Allowlist. On the allowlist tier, the VM can reach PyPI and the Python downloads that uv uses, which are
pypi.org,files.pythonhosted.organdreleases.astral.sh.
rust
rust brings rustup, cargo and the newest stable toolchain, with the rust-src and rust-analyzer components already added.
- Files. devvm chooses rust for a folder with
Cargo.tomlat its top level. - Versions. A project's
rust-toolchain.tomlpicks its toolchain, which rustup installs into the VM next to the shared one the first time it's used. - Global installs.
cargo installinstalls into~/.cargo/binin the VM, which is on thePATH.rustup component addcan't change the shared toolchain, which is why it comes withrust-srcandrust-analyzer. - Allowlist. On the allowlist tier, the VM can reach crates.io and Rust's toolchain downloads, which are
crates.io,index.crates.io,static.crates.ioandstatic.rust-lang.org.
go
go brings the newest Go release, and devvm turns Go's telemetry off in the VM.
- Files. devvm chooses go for a folder with
go.modat its top level. - Versions. The
toolchainline in a project'sgo.modpicks its Go version, and Go itself downloads that version into the VM the first time it's used. - Global installs.
go installinstalls into~/go/binin the VM, which is on thePATH. - Allowlist. On the allowlist tier, the VM can reach Go's module proxy, its checksum database and Go's downloads, which are
proxy.golang.org,sum.golang.org,go.devanddl.google.com.
dotnet
dotnet brings the newest release of the .NET SDK, with the .NET and ASP.NET Core runtimes that come with it, and devvm turns off .NET's telemetry and its first-run banner in the VM.
- Files. devvm chooses dotnet for a folder with a solution (
*.slnor*.slnx), a C# or F# project (*.csprojor*.fsproj) orglobal.jsonat its top level. - Versions. The
sdk.versionin a project'sglobal.jsonpicks its SDK, which installs into the VM the first time it's used. mise installs exactly that version and doesn't followrollForward, so aglobal.jsonthat allows a newer SDK still gets the one it names, and aglobal.jsonwithout an SDK version keeps the shared one. mise installs that SDK with Microsoft's install script, which checks only the download's size, while devvm checks the shared SDK against the SHA-512 that Microsoft publishes for it. - Global installs.
dotnet tool install -ginstalls into~/.dotnet/toolsin the VM, which is on thePATH, and NuGet keeps its packages in~/.nuget/packages. The shared SDK is read-only, sodotnet workload installinstalls workloads into~/.dotnetin the VM instead of the SDK's folder. - Allowlist. On the allowlist tier, the VM can reach NuGet, the revocation lists that NuGet checks packages' signatures against, and the SDK downloads that a
global.jsonasks for, which areapi.nuget.org,crl3.digicert.comon port 80,dot.netandbuilds.dotnet.microsoft.com. Microsoft's telemetry isn't on the allowlist.
Nix projects
A project whose toolchain comes from Nix gets the nix layer, which brings Nix, direnv and nix-direnv into its VM. For a folder with flake.nix, shell.nix or devenv.nix at its top level, or with a default.nix that makes a shell with mkShell, the list devvm shows when you customize a new VM names that file in the nix row, and you choose it there. A layer isn't chosen by default, so a VM made as its summary shows, or without a terminal, gets it only with --layers nix, as in devvm --layers nix in a folder with package.json and flake.nix, which gives node on the nix layer.
- Dev shells. Put
use flake(oruse nixfor ashell.nix) in the project's.envrcand rundirenv allowin the VM once. From then on, each shell that changes into the folder loads the dev shell, and leaving the folder unloads it. This works in your terminal and in the terminals of editors connected over SSH. - The flake's tools come first. While the dev shell is loaded, its tools are ahead of the shared tools on the
PATH, so a flake'snodewins over the shared node, and the shared tools come back when you leave the folder. - Files in the project. nix-direnv keeps its cache of the dev shell in your home in the VM, so the project gets no
.direnvfolder. Nix itself writes aflake.locknext to aflake.nixthat has none, and in a git repository it marks that file to be added, as it does on any machine. - One store per VM. Each VM has its own Nix store, so a package one VM builds isn't in another's.
nix run nixpkgs#helloworks in any VM with the layer. - Shared downloads. VMs share their downloads from Nix's binary cache, on every network tier, an open VM's included, because every VM's Nix goes through its proxy. The first VM that needs a package gets it from cache.nixos.org through devvm, which keeps a copy on this machine, and the other VMs get that copy, so each package downloads once per machine instead of once per VM. Only devvm adds to this shared cache, and only what cache.nixos.org signed, so no VM can change what another VM gets. When the cache doesn't have a package or can't get it, Nix goes to cache.nixos.org itself. The cache keeps to 10 GiB, deleting the packages used least recently first, unless you set another size with
devvm retention nix-cache.size=20G(retention).devvm spaceshows what it takes, anddevvm gc --nix-cacheempties it (how it works). - Trust. Only root is a trusted Nix user, so the VM's user can't add caches or signing keys of their own, and Nix ignores
--option substitutersfrom them.sudo nixworks. Nix builds every package in its sandbox, and a build fails rather than run without it. - Allowlist. On the allowlist tier, the VM can reach Nix's binary cache and its channels and flake registry, which are
cache.nixos.org,channels.nixos.organdreleases.nixos.org, and GitHub, where most flakes' inputs come from. A package that isn't in Nix's binary cache builds from source, which downloads its sources from their own hosts, and those are blocked until you allow them (Nix through the proxy).
Sharing a team's packages
When your team's projects use one flake for their dev shell, you can put that dev shell's packages into an image, so every VM made from the image starts with them in its store and downloads none of them. VMs made from one image share its disk, because on macOS each VM's disk is a copy-on-write clone of the image's, and on Linux hosts it's an overlay of the image's, so the packages take their space once. This works with the stable Nix that the nix layer installs, on every network tier.
To do it, make a layer of your own that builds the dev shell while the image builds, and give it after nix, so that it runs on top of the nix layer:
devvm layer new myteam
$EDITOR ~/.config/devvm/layers/myteam.sh
devvm --layers nix,myteam # a new VM of the image nix+myteam
Put these lines in ~/.config/devvm/layers/myteam.sh, below the starter's set -euo pipefail, with your team's flake at the commit you want:
# The team's flake at a commit, so the image holds exactly that dev shell.
flake=github:myorg/devshell/0123456789abcdef0123456789abcdef01234567
bin=/nix/var/nix/profiles/default/bin
"$bin/nix" develop "$flake" --profile /tmp/myteam-shell --command true
# A garbage collector root in the VM's home keeps the dev shell's packages in the store.
mkdir -p ~/.cache/myteam
"$bin/nix-store" --add-root ~/.cache/myteam/dev-shell --realise "$(readlink -f /tmp/myteam-shell)"
rm -f /tmp/myteam-shell /tmp/myteam-shell-*-link
nix develop builds or downloads every package of the flake's dev shell into the image's store and records the dev shell in a profile. nix-store --add-root then makes ~/.cache/myteam/dev-shell a garbage collector root, so nix-collect-garbage in a VM never deletes those packages. A project that loads the same dev shell, with use flake github:myorg/devshell/<commit> in its .envrc, finds every package already in its VM's store, and so does most of a project whose own flake pins the same nixpkgs revision. The image is built without your credentials, because credentials never go into images, so the flake has to be one that anyone can fetch, such as a public repository.
What this doesn't cover:
- Packages a VM gets after it's made stay on that VM's own disk. The shared downloads at least save downloading them again.
- A new version of the flake needs a new image. Moving
flaketo another commit edits the script, so devvm builds the image again the next time it's used, while VMs made earlier keep the packages they have. When the script names a branch instead of a commit, a changedflake.lockupstream doesn't change the script, so rundevvm rebuild myteamto build the image again. - A flake that pins another nixpkgs revision shares few packages with the image, and its VM downloads the rest.
- Nix's local overlay store, which would let VMs share one store as it changes, is left out until Nix makes it stable.
How toolchains are shared and updated
The toolchains are shared tools, like the coding agents, so they aren't part of any image. devvm builds each version once and mounts it read-only into every VM that has it, and mise runs it, so node, python, cargo, go and dotnet work from any shell in the VM, including bash -c from agents and from editors over SSH. Because the shared copy is read-only, a toolchain can't update itself, and anything you install globally goes into your home in the VM, as each section above says.
devvm follows each toolchain's newest release, and Node 24 for node. Which bases they run on says what each one needs from a VM's base. Adding and removing tools explains how devvm update and devvm tools update move a VM to newer versions, how devvm tools add adds a toolchain to an existing VM, and how devvm tools rm takes one out. What a new VM gets explains what happens when a folder calls for more than one toolchain.
Which bases they run on
Every toolchain runs on base from Ubuntu's own image, and on an Alpine-based image with --from, which gets musl builds of the tools. dotnet also needs ICU, the Unicode library that .NET's globalization uses, so devvm installs ICU in base, whether it's made from Ubuntu's image or --from a container image. On a Debian- or Ubuntu-based image, each tool needs at least the glibc version that its prebuilt release was built against. devvm measures that version from the tool's files whenever it builds a new version, and it refuses a tool whose version is newer than the image's glibc (shared tools and glibc). Today the shared tools need these glibc versions, so Debian 10 and Ubuntu 20.04 and newer images run all of them:
| Shared tool | arm64 | amd64 |
|---|---|---|
| node | 2.28 | 2.28 |
| pnpm and bun, with node | 2.18 and 2.17 | 2.18 and 2.17 |
| python | 2.17 | 2.17 |
| uv, with python | 2.28 | 2.17 |
| rust, with rustup | 2.17 | 2.17 |
| go | none, because its programs need no glibc | none |
| dotnet | 2.27 | 2.27 |
| claude and opencode | 2.17 | 2.17 |
| codex | 2.28, for its voice helper | 2.28 |
Adding and removing tools
A new VM gets the shared tools chosen when devvm makes it, the toolchains and the coding agents, and keeps those versions. On each launch, devvm warns when there are newer ones and names devvm update, which moves the VM to them, and also makes the VM again when its image has changed, after asking (outdated VMs).
In a terminal, devvm tools shows the same list as for a new VM, with this folder's VM's toolchains and agents already chosen and its layers greyed out, because they're built into the VM's image, which keeps them until devvm layer add or devvm layer rm makes it again. The Layers heading names devvm layer add and devvm layer rm, which change a VM's layers by making it again (adding layers to a VM). Choose the tools and confirm, and devvm adds and takes out what changed, as devvm tools add and devvm tools rm do, then opens a shell in the VM. When a new agent's config folders need the running VM to start again, devvm asks first. When nothing changed, devvm says so and opens nothing.
Without a terminal, or with --no-input or --json, devvm tools shows the tools of this folder's VM in a table, one row per tool, with node's pnpm and bun and python's uv in rows of their own:
| Column | |
|---|---|
TOOL |
the tool's name, such as node or pnpm |
VERSION |
the version the VM has |
NEWER |
the version in devvm's tools lock when the VM has another build, which is usually a newer version, or - when the VM has the lock's build |
BUILT |
yes when that newer version is built, no when devvm tools update builds it first, or - |
The table changes nothing and starts no VM. devvm reads the tools lock as it is, without going online, so a release that came out since devvm last checked isn't in it yet.
devvm tools --json
devvm tools --json prints the same table as one JSON object, as output for scripts describes. Each of the tools has the tool's name and the VM's version. A tool that the lock has another build of also has newer, which is the lock's version, and newer_built, which says whether that version is built.
{
"version": 1,
"tools": [
{
"tool": "node",
"version": "24.10.0",
"newer": "24.11.0",
"newer_built": false
},
{
"tool": "pnpm",
"version": "10.18.0"
}
]
}
The commands below change the VM's tools from a script or the command line. They don't change the VM's disk, because its tools are mounted, so a change takes effect when devvm then opens a shell in the VM. Each takes the tools' names as separate words, as in devvm tools add python claude, and devvm refuses names joined with + or a comma.
devvm tools add TOOL...builds the tools that the share lacks, and they join the VM's list at once. It says which of the tools the VM has already and leaves those as they are. A new agent's config folders are mounted too, which needs the VM to start again. A stopped VM gets them as it starts, and for a running VM devvm asks before restarting it, because anything running in it stops (restarting). If you answer no, there's no terminal or you pass--no-input, the VM gets them at its next start.devvm tools rm TOOL...takes tools out. What the VM installed itself, such as other versions or global packages, stays.devvm tools updatechecks upstream for newer versions, builds what's missing, and moves the VM to them. When the VM already has the newest versions, it builds any of them that are missing. It changes only the shared tools, and never makes the VM again.devvm updatedoes the same first, without asking, and then asks to make the VM again only when the VM's image has changed (outdated VMs), or itsdevcontainer.jsonhas (updating a VM from the file).
--tools, --agents and --layers choose only what a new VM gets, so on a VM that exists they change nothing, and devvm warns and names devvm tools. Layers aren't shared tools, so devvm tools can't add or take out a layer such as docker or nix. A VM gets its layers when devvm makes it, so devvm layer add and devvm layer rm change them by making the VM again, after asking (adding layers to a VM).