Skip to content
ISOLATED
· LOCAL MICROVM

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°

Zero-Trust Architecture

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.

kagex · tap any stage, mission, or 3D part
isolated
sbx_7f3 · MCP & HTTP Ingress1/2 speed · running
Test Live VM
ready3 warm microVMs armed · type any command below or click missions / #1–10
Camera Angle

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.

$
Try:
Kagex runtime matrix · hover to inspectmacOS · Windows · Linux
macOS 14+ VZ
Windows 11 WSL2
Linux /dev/kvm
Nested dockerd
Antigravity MCP
Cursor MCP
Claude Code
Codex + SDK
Allowlist Egress
Ghost Secrets
Checkpoint / Fork
Diff / Apply / Undo
macOS 14+ VZApple Virtualization

Rootless native Apple Silicon hypervisor with virtio-vsock & shared CoW disk images.

$ sandboxctl create --driver vz
Instant Warm Pools

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

Ready · 32 ms

Plan parallel agent capacity

Estimate how many isolated agents can code and test side-by-side at $0/mo.

$0 / mo
4 VMs
Warm poolUses 8 GB RAM · 32 ms boot

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

Parallel Pool Schedule (SBX 1–4)
  • queue
  • 32ms
  • exec
  • diff
Throughput vs Boot LoadSBX 1 · 52°
Headroom: 8 GB isolated32 ms spawn target

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.

Two-Step Quickstart

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.

  1. 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 _out
  2. Step 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/app
    wrote ~/code/app/.agents/plugins/kagex/plugin.json
    wrote ~/code/app/.agents/plugins/kagex/mcp_config.json
    wrote ~/code/app/.agents/plugins/kagex/rules/AGENTS.md
    wrote ~/code/app/.agents/plugins/kagex/skills/sandbox/SKILL.md
Questions & Answers

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?

5 / 5

macOS 14+ (Apple Silicon via Virtualization.framework — rootless), Windows 10/11 (WSL2 with /dev/kvm, set up cleanly by scripts\setup-windows.ps1), and Linux (x86_64 / arm64 with Firecracker KVM). Connects out of the box to Antigravity, Cursor, Claude Code, Codex, plus Go, Python, and HTTP automation.