Zero-trust Linux microVMs for your coding agents.
Give AI agents full root inside disposable Ubuntu sandboxes in milliseconds. Runs locally on macOS, Windows, and Linux with allowlisted egress, ghost secrets, and reversible host sync.
- macOS · Windows · Linux
- Free & Open Source ($0)
- MCP + HTTP Engine
Click screen to spawn a microVM · drag hardware to orbit 360°
One local control plane, total agent isolation
Every prompt runs inside a fresh hardware-backed Linux VM. Click any hop below to trace how Kagex shields your host.
Antigravity, Cursor, Claude Code, and Codex connect over MCP (11 tools) to kagex-mcp, which calls sandboxd over HTTP on a Unix socket (macOS and Linux) or loopback bearer token (Windows). Your own code calls the Go, Python, or REST API directly. Kagex runs each sandbox as an isolated microVM over vsock, and all outbound traffic passes through the host allowlist firewall with placeholder-swapped ghost secrets.
Rootless native Apple Silicon hypervisor with virtio-vsock & shared CoW disk images.
Instant enough to reset every task
Why share a dirty container? Kagex boots clean environments faster than installing a dependency—so every agent run stays deterministic.
- Warm pool spawn
- ~32 ms
- 20–50 ms pool
- Snapshot restore
- ~0.5 s
- CoW memory image
- Pause / resume
- ~0.5 s
- Instant VM freeze
- Fresh kernel boot
- ~1.2 s
- Clean Ubuntu 24.04
- Cloud runtime fee
- $0
- MIT local engine
Simulate a microVM spawn
sbx_7f3 ready · 32 ms
Plan parallel agent capacity
Estimate how many isolated agents can code and test side-by-side at $0/mo.
Multi-VM cycle timeline & throughput loop
4 parallel · warm pool (~32 ms)Drag timeline horizontally to scrub cycle phases · click any SBX row to track its live curve
- queue
- 32ms
- exec
- diff
Warm-pool timings measured locally on Apple Silicon M4 (16 GB); Firecracker KVM warm pools, checkpoints, forks & pause/resume verified live on Windows 11 WSL2 & Linux.
Up and running in two steps
Clone once on macOS, Windows, or Linux. Kagex installs its background engine and plugs straight into your AI coding stack.
Step 1: Install the Kagex runtime
Builds native binaries and prepares the Ubuntu 24.04 guest runtime. On Windows, setup-windows.ps1 sets up WSL2 + Firecracker KVM and launches the detached background daemon automatically. On macOS & Linux, sandboxd install registers your login service.
Apple Silicon (macOS 14+ · Virtualization.framework)$git clone https://github.com/CodewithEvilxd/kagex && cd kagex$make images build$./_out/bin/sandboxd install --artifacts _outStep 2: Attach your coding agent
Pass --project to generate MCP configuration, tool schemas, and safety rules right inside your repository. Prefer SDK automation? Drive microVMs over Python, Go, or HTTP.
$./_out/bin/sandboxctl mcp install antigravity --project ~/code/appwrote ~/code/app/.agents/plugins/kagex/plugin.jsonwrote ~/code/app/.agents/plugins/kagex/mcp_config.jsonwrote ~/code/app/.agents/plugins/kagex/rules/AGENTS.mdwrote ~/code/app/.agents/plugins/kagex/skills/sandbox/SKILL.md
Questions & Answers
Everything you need to know about local isolation, Windows WSL2 parity, ghost secrets, and reversible diffs.
Quick feedback
How does local Kagex sandboxing feel?