2026-11-26 15:59 UTC

Capsem proposes VM isolation and inspected network access for coding agents

state: expiredheat: lowuncertainty: mediumrelevance: mediumagent-sandboxing rust-hypervisor air-gapped-vms local-containmentCapsem teamGoogle

What is this?

Capsem is an open-source project hosted under GitHub’s google organization, but its README says it is not an official Google project. Its authors describe a Rust-based tool that runs AI coding agents in isolated Linux VMs and routes network and MCP-tool access through host-side inspection and policy controls. The project’s own materials claim macOS and Linux support, while the supplied landing-page text describes macOS virtualization and has inconsistent platform details. A secondary report characterizes it as pre-release, and the repository reportedly labels version 0.6 a pre-release with a planned Summer 2026 public release; broad availability and the security claims are not independently verified by the supplied evidence.

Why it matters

Capsem targets a practical problem for AI coding agents: limiting what they can access and inspecting network and tool use while they run. Its combination of isolated Linux VMs, network controls, and MCP routing is worth watching, but the supplied evidence is mainly project-authored, and does not establish that Capsem is secure in practice or becoming a default alongside alternatives.

Current assessment

The project’s materials describe an open-source Rust tool that runs coding agents in per-session Linux VMs and routes network traffic through a host-side TLS-inspecting proxy with policy enforcement and session logging; they also describe policy-checked MCP access. The repository is under the github.com/google organization, but its README reportedly disclaims official Google status. A secondary report says the project is a pre-release, while the repository reportedly identifies version 0.6 as pre-release and gives a planned Summer 2026 public release. The supplied landing-page text has conflicting platform claims: it details Apple Virtualization.framework on macOS, while also advertising Linux support via KVM. HN commenters likewise question platform consistency and the “air-gapped” description. These materials support tracking Capsem as an example of the emerging agent-containment category, not the claim that it is a practical default or equivalent to named alternatives. Security effectiveness, availability, compatibility, and comparative performance remain unverified here.

Measured heat

no measured readings yet — the hourly heat pass fills this in

How the heat travelled

10-14 13:00⭐ origin echo-reconstructedThe repo is the project's primary artifact; its README states: "Capsem — The fastest way to ship with AI securely. Sandbox AI coding agents
Elie Bursztein (published under the github.com/google org; README disclaims official Google status) on github (echo) · attributed from hn.story.50097811
—
10-15 00:58first on hacker news · published · +12.0hCapsem – a Rust hypervisor sandboxing AI agents in air-gapped Linux VMs
madars
—
10-15 00:58amplified on hacker news 👑hn.story.50097811
madars
peak 8 · 8 comments · 100% of case engagement
10-15 01:21our radar first saw it · +12.4hdiscovery anchor: hn.story.50097811—

Evidence (2) — ⭐ canonical anchor

sourceobjectauthorscorecomments
🟧 hnCapsem – a Rust hypervisor sandboxing AI agents in air-gapped Linux VMs
Retrieved article excerpt

Open article · Retrieved 2026-10-15T01:25:16.453588+00:00

# CAPSEM The fastest way to ship with AI securely.

A Rust-powered hypervisor that sandboxes every AI coding agent
in its own air-gapped Linux VM. See everything, control everything.

$ `curl -fsSL https://capsem.org/install.sh | sh`

[Learn More](https://capsem.org/#features)

## Ready to code, out of the box

A fully configured Linux dev environment with your favorite AI agents, MCP tools, and packages pre-installed. Boot to prompt in under 10 seconds.

### Broad agent support

All major AI coding agents, pre-installed and auto-configured for sandbox mode.

Claude Code Anthropic

Gemini CLI Google

Codex OpenAI

### Native MCP endpoint

Policy-checked tool access over vsock. Built-in tools plus custom MCP servers via fastmcp.

`fetch_http` Fetch and extract web content

`grep_http` Search web pages with regex

`http_headers` Inspect HTTP headers and status

### Preconfigured environment

Python, Node.js, and 30+ packages ready to go. No setup required.

Python 3Node.js 24gituvnumpypandasscipyscikit-learnrequestshttpxbeautifulsoup4pytestrichmatplotlibfastmcp

### Coming soon

Active development. Here's what's next.

- VM checkpointing and restore
- Linux host support
- VS Code extension
- Custom MCP server marketplace

Demo video

## Security without compromise

ISOLATION

### Hardware-level sandboxing with Apple Virtualization.framework

Each agent session boots a lightweight Linux VM with a read-only rootfs, no swap, no kernel modules, no debugfs. Air-gapped networking with a dummy NIC and fake DNS ensures nothing reaches the real network without going through the MITM proxy.

- Ephemeral VMs -- fresh state every session
- Read-only rootfs with tmpfs workspace
- No systemd, no sshd, no cron -- minimal attack surface

Screenshot placeholder

INSPECTION

### See everything your AI agent does on the network

A transparent MITM proxy terminates TLS from the guest using per-domain minted certificates, inspects every HTTP request and response, and applies policy before forwarding to the real upstream. Full request/response bodies are logged to a per-session SQLite database.

- Per-domain TLS certificate minting
- Method + path policy rules per domain
- Full body capture for post-hoc analysis

Screenshot placeholder

CONTROL

### Enterprise-grade policy with profile and corp config layers

Each profile owns its enforcement, detection, MCP, plugin, and asset configuration. Corp-level config at /etc/capsem/corp.toml (MDM-distributed) locks down policy and reporting with enterprise overrides that users cannot bypass.

- Profile-owned CEL enforcement rules
- Detection rules with Sigma import/export
- Corp config locks and reports profile behavior

Screenshot placeholder

## How it works

A native macOS hypervisor creates an air-gapped Linux VM for each session. All network traffic is forced through an inspecting proxy on the host.

macOS Host

Desktop App

GUI + CLI interface

MITM Proxy

TLS termination + HTTP inspection

Policy Engine

Domain + HTTP + MCP rules

Session Telemetry

SQLite DB per session

vsock :5001  terminal

:5002  HTTPS + MCP

Linux VM (air-gapped)

AI Agent

Claude / Gemini / Codex

PTY Agent

Terminal I/O over vsock

Net Proxy

TCP-to-vsock relay (iptables)

MCP Server

Tool relay over vsock

Internet (via host MITM proxy only)

FAQ

## Frequently Asked Questions

Still have a question?

[Open an issue on GitHub](https://github.com/google/capsem/issues)

### Does Capsem work with Claude Code, Gemini CLI, and Codex?

### How does the MITM proxy work?

All guest HTTPS traffic is redirected through an iptables rule to a local TCP relay, which bridges to the host via vsock. The host terminates TLS using per-domain minted certificates (signed by a static Capsem CA baked into the guest's trust store), inspects the HTTP request, applies policy, and forwards to the real upstream.

### What platforms are supported?

### Can I customize which domains are allowed?

### Is the VM truly air-gapped?

## Download Capsem

Open source, native macOS and Linux packages, boots in under 10 seconds.

$ `curl -fsSL https://capsem.org/install.sh | sh`

or download the package from the stable channel

[Download Package (opens in new tab)](https://release.capsem.org/channels/stable/) [View on GitHub (opens in new tab)](https://github.com/google/capsem)

Requires macOS 14+ on Apple Silicon or Debian/Ubuntu Linux with KVM. Capsem uses Apple Virtualization.framework on macOS and KVM on Linux.
madars88
🟧 echo.github ⭐The repo is the project's primary artifact; its README states: "Capsem — The fastest way to ship with AI securely. Sandbox AI coding agents Elie Bursztein (published under the github.com/google org; README disclaims official Google status)——

Interpretation history

Decision trace