maxime-morel

Localvm — DevOps skill for Claude Code

DevOps community

Give Claude Code or Codex a disposable Docker Sandboxes microVM, then review the diff and merge only what you trust.

How to install Localvm

This entry records only its repository, not the path inside it, so there is no exact command to give. Open maxime-morel/localvm and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Localvm does

Give Claude Code or Codex a disposable Docker Sandboxes microVM, then review the diff and merge only what you trust. For Linux developers who want an autonomous coding agent kept away from their workstation.

Alternatives in DevOps

  • Coi — Give the agent a machine 743 ★
  • Code On Incus — Give each AI agent its own isolated machine with root, Docker, and systemd 670 ★
  • Skill — Web extraction engine with antibot bypass 549 ★

README

localvm

Run **Claude Code or Codex without permission prompts in a Docker Sandboxes microVM**, and bring back only the changes you reviewed, as a Git branch. For developers on Linux who want an autonomous coding agent kept away from their workstation.

![localvm: agent, review, apply, merge](docs/demo.gif)

*Text alternative: `localvm agent` creates a VM where Claude adds a route and its test; `localvm review` shows the diff and applies it as the branch `localvm/my-app-t1`; `git merge` brings it in; `localvm destroy` deletes the VM.*

  • Nothing of yours is mounted read-write. Snapshot mode imports one commit; clone mode mounts the repository read-only. Builds and tests run on the VM's own Docker Engine.
  • A branch you review. The work comes back only through localvm review, then localvm apply, which creates localvm/. Your working tree, index and HEAD never move.
  • Deny-by-default network. A global deny-all policy, then only the exact destinations your project lists, or an explicit open profile for one instance.
  • Control files called out. Hooks, CI, build files, agent settings, symlinks and executables in the diff are listed, and apply refuses them until you confirm.

Quick start

On Linux with KVM, [sbx](#requirements) v0.54.1 signed in (`sbx login`), Python ≥ 3.12 and Git:

git clone https://github.com/maxime-morel/localvm.git ~/src/localvm
~/src/localvm/install.sh                  # links ~/.local/bin/localvm
localvm init-policy                       # once, on an sbx install with no sandbox yet
sbx secret set anthropic --oauth          # Claude subscription sign-in
~/src/localvm/examples/init-demo.sh "$HOME/localvm-demo"
cd ~/localvm-demo
localvm agent claude                      # ask for a change, then quit the agent
localvm review                            # read the diff, answer y to apply
git merge localvm/localvm-demo-t1
localvm destroy                           # type t1 to confirm

The reasoning,