Coop – Isolated VM Environments for Running Claude Code and Codex
TL;DR Highlight
Run Claude Code and Codex with full tool access inside disposable VMs to protect your host
Who Should Read
Developers who want coding agents to use Docker, git, and package installs but worry about their machine and other projects
Core Mechanics
- Agents live inside a VM
- coop is a Rust CLI that manages disposable virtual machines for Claude Code, Codex, and Grok Build.
- Inside the VM they can use Docker, git, compilers, and package managers.
- The host stays separate
- Each VM is described as isolated, reproducible, and cheap to create and destroy.
- Commands are simple
- Run coop up in a project folder to start an instance.
- Then launch an agent with coop claude, coop codex, or coop grok.
- Build a template image first
- coop setup builds the VM template image.
- On Linux it also installs Firecracker and fetches a guest kernel.
- macOS needs Lima
- On macOS, install Lima with brew install lima first, or setup fails.
- It is tested on macOS arm64 and Linux x86_64, while Linux arm64 builds are available but untested.
- VM setup can be automated
- guest_files copies shared dotfiles.
- A global post_create command installs tools in each new VM.
Community Reactions
- Questions about alternatives
- Commenters asked how it differs from docker sbx, microsandbox.dev, and bubblewrap-based sandboxes, and whether it is safer.
- Daily-use experience
- One user said it is convenient for running agents without access to other projects or personal files.
- They added that a motivated agent might still escape.
- Other tools mentioned
- Commenters said they use Eclipse Enclave, cco, and drydock (macOS only).
- Permission fatigue approach
- One commenter used toolgate to auto-approve safe tool calls and ask only for riskier ones declaratively.
- They complained about too many unnecessary permission requests.
How to Apply
- Try coop on a test repo
- Run coop setup, coop up, and coop claude in a non-critical project.
- Have the agent install packages and use Docker, then confirm the host is unaffected.
- Pin your dev environment with post_create
- Put your team's tool install commands in the global post_create.
- Check that every new VM ends up identical.
- Share config with guest_files
- Pick only the dotfiles the agent needs and list them in guest_files.
- Copy only what is needed, not your whole home directory.
- Build a sandbox comparison
- Run the same task in docker sbx, microsandbox, bubblewrap, and coop.
- Compare setup difficulty and OS support.
Try It
# Paste into a terminal (on macOS, run brew install lima first)
curl -fsSL https://raw.githubusercontent.com/trailofbits/coop/main/install.sh | bash
coop setup
cd ~/code/{{project_path}}
coop up
coop claude
# Next: try coop codex or coop grok insteadTerminology
Related Papers
Frostbite: A new CPU architecture discovered, designed and verified by AI
AI agents designed a CPU from scratch, claiming 4.59x perf/W over a traditional core
Restricting AI agents in mobile operating systems platforms from capturing data
Signal now blocks OS-level AI agents from reading its screen on iOS 27 and Android
Actions Speak Louder than Words: Stateful Privacy Sniffing of LLM Agents via Behavioral Covert Channels in Web Interactions
Agents' link choices alone let attackers rebuild user queries at F1 0.89; SOR cuts it to 0.39.
Tracking and Limiting Unsupported Claim Propagation in Multi-Agent LLM Systems: A Provenance-Aware Framework
Passing claims with source, evidence and history kept equivalence at 5 agent stages at 96% versus 31%.
LLM assisted reverse engineering
Pointing an agent at binaries with skills and MD notes made years-long hacks feasible
Metrics-in-the-Loop: Complexity Feedback Reshapes Agent-Written Code
Injecting per-turn complexity reports into coding agents cut code erosion without changing correctness
Why is Gemini 4 Carbon taking so long?
Carbon took nearly an hour on bug fixes that Astra and Opus finished in minutes, mostly from extra unrequested work.
Weight-Space Programming builds neural networks like a 1990s researcher
LLM hand-wrote MNIST weights to 91.3%, using 1990s-style techniques