devvm cursor is devvm code's twin for Cursor, the editor. It gets the folder's VM ready as devvm host does, then runs `cursor --remote ssh-remote+HOST DIR` in devvm's place, with the SSH agent devvm started with. Without `cursor` on PATH it fails with no_cursor_command, naming the host to connect to. Cursor's Agent and your sign-in (from CJ's manual check with a real login): recent Cursor runs Agent in the editor's server in the VM, which holds your Cursor sign-in in memory only (no token on disk, in any environment or command line) and calls Cursor from the VM. Cursor's `cursorAgentHost.remoteInferenceRoute` is application-scoped, so it's read only from the user settings on this machine; with it set to "always", Agent's own requests go through the Cursor app here, while the VM's server still talks to Cursor. - vm: Code and Cursor share openRemote; vm.CursorCommand names the editor's command, apart from the CLI agent's agents.Cursor. After LookPath finds `cursor`, devvm reads Cursor's user settings on this machine (platform.AppSettingsDir: Application Support on macOS, $XDG_CONFIG_HOME or ~/.config on Linux) through safefile.Read, 1 MiB at most, read-only, as JSON with comments, and warns with cursor_agent_in_vm unless the route is "always". It never fails on the file. - sync.sh: Cursor's ~/.cursor-server/data/Machine/settings.json gets VS Code's remote.autoForwardPorts, git.terminalAuthentication and github.gitAuthentication off, in one loop over both editors' files. devvm doesn't write the route there, since Cursor ignores it. - structure: nameFree lets a literal that is an agent's name stand in one file, with its reason, and fails when it frees nothing. - cli: cursor.go (--ssh-config, --here, --parent), registered beside code; cursor_failed, no_cursor_command, cursor_agent_in_vm and their doc links; ssh_host_info names Cursor too; the cli skill's judgment note: an editor's command is a bare verb named after the editor's. - Tests: host_code.txtar (cursor, its full-name host, the missing command, the warning and no warning once the route is set), guest.txtar, TestCursorAgentWarning (always, absent, other values, no file, broken JSON, too long, a FIFO, the XDG path; never written), e2e network: devvm cursor passes the editor only the host and folder, a fake editor sign-in on this machine reaches neither the VM's home, its processes' environments nor the proxy's logs, and a Cursor login in the store reaches the CLI's methods while the agent store's are refused. - Docs: SSH and editors (commands first; "Cursor's Agent": it runs in the VM with your sign-in, the user-settings line, what it doesn't cover, open only VMs you trust; if Tab doesn't work on the allowlist tier, devvm network allow api3.cursor.sh), the agents page's Cursor notes, Commands, attack vectors, design, the home page, CHANGELOG, generated CLI pages. Reviewed adversarially before the push: the settings read (size, FIFOs, links), the warning's wording and when it fires. Researched with PR #44's design as reference only. Co-authored-by: JB <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
8.5 KiB
title, cardTitle, explainer, layout, contextMenu
| title | cardTitle | explainer | layout | contextMenu |
|---|---|---|---|---|
| devvm | One VM for every project | An isolated sandbox for you or a coding agent | hextra-home | false |
{{< hextra/hero-badge link="https://github.com/devvmhq/devvm" >}} Free and open source {{< /hextra/hero-badge >}}
{{< hextra/hero-headline >}} One VM for every project {{< /hextra/hero-headline >}}
{{< hextra/hero-subtitle >}} An isolated sandbox with your project's toolchain, ready for you or a coding agent to start coding. {{< /hextra/hero-subtitle >}}
{{< hextra/hero-button text="Install" link="docs/getting-started/install/" icon="download" >}} {{< hextra/hero-button text="Read the docs" link="docs/" icon="open-book" >}}
{{< art "sandbox" >}}
Quick start
{{< install >}}
{{< features columns="3" >}}
{{< feature title=1\. Go to your project icon="file-folder" level="3" art="step-cd" >}}
Open a terminal and cd into any project folder.
{{< /feature >}}
{{< feature title=2\. Run devvm icon="prompt" level="3" art="step-pick" >}}
devvm shows what the new VM gets. Confirm to make it, or customize it.
{{< /feature >}}
{{< feature title=3\. Start your agent icon="robot" level="3" art="step-agent" >}}
devvm opens a shell in the VM, whose prompt starts with (devvm), so start your agent there.
{{< /feature >}}
{{< /features >}}
Claude Code needs your Claude login before its first start, which devvm agent login claude makes from the VM and keeps on your machine (your first VM). The next time you run devvm in the folder, it opens the same VM, and devvm tools adds an agent to a VM you already have.
What's supported
{{< features columns="3" >}}
{{< feature title="Toolchains" icon="code" level="3" art="toolchains" >}}
devvm has toolchains for your project's languages, node among them. It chooses the ones your project's files call for, and you can choose more when you customize a new VM or name them with --tools.
{{< /feature >}}
{{< feature title="Coding agents" icon="robot" level="3" art="coding-agents" >}}
The supported coding agents run in the VM, Claude Code among them. Choose one when you customize a new VM, or choose them for every new VM in devvm setup (coding agents).
{{< /feature >}}
{{< feature title="Layers" icon="copies" level="3" art="layers" >}}
devvm ships the docker, nix and desktop layers, which you choose when you customize a new VM, and devvm layer new creates your own custom layers you can apply to any of your VMs (layers).
{{< /feature >}}
{{< /features >}}
Why use devvm?
{{< beside art="blast-radius" >}}
- Developers face attacks every day, such as supply chain attacks, leaked secrets, prompt injections and rogue agents.
- A sandbox limits the blast radius of an attack to what's inside it.
- You know you should run your code and agents in a sandbox, but most tools need configuration and setup that's hard to get right.
devvmships with sensible defaults so you can start coding in a sandbox with a single command.
{{< /beside >}}
{{< features >}}
{{< feature title="Developer ready, zero config" icon="prompt" art="zero-config" >}}
- The base image comes with optional extras that you choose, such as oh-my-bash, fzf, zoxide (
z), tree and tldr. - Every VM gets your git name and email, so the commits made in it are authored by you or your agent.
- Ports forward on their own, so a dev server on
:5173in the VM opens atlocalhost:5173on your machine (ports). devvm codeanddevvm cursoropen the VM in VS Code or Cursor over Remote-SSH (devvm code and devvm cursor).
{{< /feature >}}
{{< feature title="Ready in seconds" icon="high-voltage" art="copies" >}}
- The first VM builds a base image, and every later VM is a copy of it that starts in seconds (images).
devvmbuilds each version of a toolchain once and shares it read-only, so all VMs use the same copy (shared tools).
{{< /feature >}}
{{< feature title="Isolated sandbox" icon="locked" art="isolated" >}}
- The VM mounts your project folder at the same path. Apart from your agents' settings from devvm's own store, which it gets read-only, it sees nothing else in your home folder (what a VM can reach).
- New VMs get the allowlist network tier by default, so they reach only an allowlist of hosts, through a proxy on your machine. You can choose a looser tier, internet or open, or a stricter one, none.
devvmlocks.git's hooks and config, so the VM can't change what git runs on your machine, except on a Linux host whose kernel doesn't let it lock them, where it watches them instead (.git protection).- With
--clone, the VM works on a clone of the repo of its own instead of your folder, so nothing in it can touch your working tree or.git, and its work reaches your repo only when you fetch it. - No sandbox closes every gap, so attack vectors lists what's left open, and staying safe lists the habits that close most of it.
{{< /feature >}}
{{< feature title="Made for coding agents" icon="robot" art="agents" >}}
- The agent runs in the VM, so an attack on it stays in the sandbox. It gets your settings, skills and MCP servers but never your history (coding agents).
- On every network tier, their secrets, such as your Claude Code token and your Codex login, stay on your machine, because the VM gets placeholders and devvm's proxy puts the real ones into its requests on the way out.
{{< /feature >}}
{{< feature title="Make it yours" icon="wrench" column="right" art="make-it-yours" >}}
- Your own layers are setup scripts that
devvmbuilds into an image:devvm layer new mailpitstarts one, anddevvm --layers mailpitmakes a VM with it (your own layers). devvm setup --layersgives every new VM the layers you choose, so your shell setup, aliases or dotfiles can go in a layer of your own that each VM gets unless you leave it out (extras of your own).--fromstarts the base image from a container image instead of Ubuntu's, such asnode:24or your team's own (starting from a container image).- When the project has a
devcontainer.json,devvmsets up its VM from the file's container image, ports, environment and commands (devcontainer.json).
{{< /feature >}}
{{< /features >}}
FAQ
What does it run on?
devvm runs on macOS and on Linux, on arm64 or x86_64. It needs Lima, which runs the VMs with Apple's Virtualization framework on macOS and QEMU on Linux (backends). Homebrew installs Lima along with devvm, and on Linux, Lima also needs QEMU and access to /dev/kvm. Installing lists every requirement, and known limits lists what Linux hosts lack, such as .git protection.
Does the agent run on my machine?
No. You start the agent in the VM's shell, so it runs in the VM, and you never install it on your machine. There it sees only what the VM can reach.
Is it free?
Yes. devvm is open source under the MIT license.
Start coding in a sandbox
Install devvm, then run devvm in any project folder.
{{< hextra/hero-button text="Install" link="docs/getting-started/install/" icon="download" >}} {{< hextra/hero-button text="Read the docs" link="docs/" icon="open-book" >}}