trailofbits/coop
A Rust CLI that runs coding agents in disposable VMs to isolate execution from the host
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
Coop is a self-hosted Rust CLI that runs existing coding-agent CLIs inside disposable VMs, rather than executing their commands directly on the host. coop setup builds the template image, coop up starts an instance for the current project, and the agent subcommand launches inside the guest. Firecracker and Lima are the named VM backends. For Firecracker, opt-in vsock control moves SSH off the guest network.
The root Cargo package uses clap with derive support and anyhow. Credential proxying is split into the coop-proxy workspace member: plain cargo build and cargo test target the root package, while workspace builds include the proxy and its aws-lc-sys dependency, which requires CMake. The integration surface described here is agent-specific CLI entry points and VM configuration, not an MCP server or a general plugin API.
Key Capabilities & Differentiators
Coop launches Claude Code, Codex, and Grok Build in guest environments equipped with Docker, Git, compilers, and package managers. Images, profiles, and multi-instance workflows support separating project environments. Live mounts and file sync let the guest work with host files, and editor integration lets developers keep using a host editor. Those options cross the VM boundary when enabled.
Firecracker v0.10.0 adds persistent, opt-in isolated mode without a guest NIC. SSH control can still run over vsock, but the instance must have been created with vsock control and use a current image with a vsock SSH listener. For credentials, direct forwarding crosses into the guest; the optional proxy keeps supported raw credentials on the host. Neither feature turns Coop into a model runtime or makes the agent itself available offline.
Trade-offs & Limitations
Direct host execution has fewer setup steps but gives up the VM boundary for agent-driven commands. A conventional container offers a lighter way to package a development environment, but shares the host kernel; Coop puts that work behind a VM boundary at the cost of image builds and per-instance CPU, memory, and disk overhead. Size the host against representative builds, Docker jobs, and concurrent VMs rather than the size of the Rust CLI or a presumed GPU budget.
The practical isolation level depends on what you connect back to the host. Review which paths mounts and sync expose, whether a host editor integration is needed, and whether credentials are forwarded or proxied. Keeping supported raw credentials on the host does not by itself prove that guest requests using them are harmless. Apache-2.0 permits commercial self-hosting subject to its terms, but does not govern the separate agent products or their data-handling policies.
Hardware & Deployment Guide
Check the platform and backend prerequisites before installation; a working Rust binary alone does not provide a VM runtime. Installation options include a release script, Homebrew, Nix, and source builds. Run coop setup to build the template, then coop up from a project directory and launch the chosen agent. Use coop update for CLI updates. Self-hosting the sandbox does not self-host inference: account, connectivity, and offline behavior still depend on the agent, and guest workflows that need network access must be vetted before adopting a no-NIC setup.
The recent releases are operationally relevant. v0.9.1 keeps Lima starts headless even when persisted instance configuration enables a display. v0.9.2 stops exposing the Firecracker control API socket and adds opt-in vsock SSH control. v0.10.0 adds Firecracker's no-NIC mode; existing legacy-TCP instances do not migrate automatically. Plan to provision a new vsock-controlled instance with a compatible image rather than assuming a CLI upgrade will convert an existing instance.
isolated mode omits the guest NIC and requires a current image with a vsock SSH listener plus an instance created with vsock control.coop package; workspace builds include coop-proxy and bring in aws-lc-sys and its CMake requirement.Teams running Claude Code, Codex, or Grok Build against projects whose builds and commands should execute behind a VM boundary, with workspace, editor, and credential access enabled selectively.
A host install or shared-kernel container meets your isolation needs, the host cannot support the required VM backend, or you are looking for an MCP server or local inference engine.
Quick Start & Installation
curl -fsSL https://raw.githubusercontent.com/trailofbits/coop/main/install.sh | bash
Comparison vs. Top Coding, Skills & MCP Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| coop ★ | 840 | +9 | Rust | Apache-2.0 | A Rust CLI that runs coding agents in disposable VMs to isolate execution from t |
| Codewhale | 41.2k | +38 | Rust | MIT | Rust coding agent with swappable models, sandboxed execution, and turn receipts |
| oh-my-pi | 40.5k | +497 | TypeScript | MIT | A Bun/Rust terminal agent for model-flexible coding with LSP and editor integrat |
| gemini-cli | 109.6k | +376 | TypeScript | Apache-2.0 | A Node.js terminal agent for enterprise Gemini coding workflows and MCP tools |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/trailofbits/coop.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about coop
How does Coop connect a project to a coding agent?
coop setup to build the VM template. From a project directory, run coop up, then start the agent with coop claude, coop codex, or coop grok. Treat workspace mounts, file sync, host editor integration, and credential forwarding as separate decisions about what crosses the VM boundary.What hardware should I budget for, and does Coop need GPU inference capacity?
Can a company self-host or redistribute Coop?
When should I choose Coop over a host install or a container?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy