# Repository Briefing: trailofbits/coop
> Source: https://repoforai.com/repo/trailofbits/coop (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/trailofbits/coop
- **Official Docs / Website**: https://github.com/trailofbits/coop/blob/main/docs/getting-started.md
- **Category**: Coding, Skills & MCP (AI 编程 / Skills / MCP)
- **Primary Language**: Rust
- **License**: Apache-2.0
- **Engineering Health**: A+ (88/100 · Maintenance 35/35 · Adoption 13/25 · Releases 20/20 · License 20/20)
- **Latest Release**: v0.10.0 (2026-11-15) — https://github.com/trailofbits/coop/releases
- **Review Snapshot**: 2026-12-04
- **Deployment / Stack Signals**: CLI, Self-Hosted
- **Momentum**: 840 ★ total (+1 24h / +9 7d) · 49 forks
- **Topics**: `claude-code`, `cli`, `codex`, `firecracker`, `kvm`, `lima`, `microvm`, `rust`, `sandbox`, `vm`
- **When to Use**: Best for: 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. Skip if: 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.

## Overview
```text
### Architecture & 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.
```

## Key Capabilities
```text
- Execution: A Rust CLI launches Claude Code, Codex, and Grok Build in disposable VMs with Docker, Git, compilers, and package managers.
- Control plane: Firecracker starts without exposing its control API socket as of v0.9.2; opt-in vsock mode keeps SSH control traffic off the guest network.
- Network isolation: Firecracker's v0.10.0 `isolated` mode omits the guest NIC and requires a current image with a vsock SSH listener plus an instance created with vsock control.
- Host integration: Live mounts, file sync, and host editors are explicit crossings of the VM boundary.
- Credentials: The optional proxy keeps supported raw credentials on the host; direct forwarding instead crosses into the guest.
- Build layout: Default Cargo builds target the root `coop` package; workspace builds include `coop-proxy` and bring in `aws-lc-sys` and its CMake requirement.
```

## Quick Start / Clone
```bash
curl -fsSL https://raw.githubusercontent.com/trailofbits/coop/main/install.sh | bash
```
