Local microVM workbench for coding agents

Run coding agents in isolation.
Measure every diff, token, and cent.

Kai freezes your repository once, boots parallel Firecracker or libkrun microVMs with pinned agent runtimes, and guards every API key and outbound host behind a local spend-capped gateway.

v0.6.0 · signed

Apple Silicon · .dmg · 46.2 MB · bundled libkrun + prxy

Firecracker & libkrunClaude Code & Codex layersDefault-deny egressNo automatic winner
GATEWAY LIVE:41902
$1.84 / $10.00|1 BLOCKED
pair: ponytail · retry-backoff-fixbaseline sha256:4c91e8a2 · 2 fresh parallel microVMs
Arm A · Baselinedone
Tokens31.4k
Cost$0.142
Time42.8s
@@ src/client/retry.rs @@- let d = base * 2u64.pow(try_n);+ let d = base.saturating_mul(1 << try_n);+ sleep(d.min(max_delay)).await;
3 files changedclaude-sonnet
Arm B · +ponytaildone
Tokens24.9k
Cost$0.118
Time36.1s
@@ src/client/retry.rs @@- let d = base * 2u64.pow(try_n);+ let cap = base.saturating_mul(1 << try_n.min(8));+ sleep(jittered(cap.min(max_delay))).await;
2 files + 2 tests+ponytail@0.4
Both results kept separately — no automatic winner.kai-ab-result/1
01 · Architecture

One anodized tray instrument. Three hard guarantees.

Real hypervisor isolation, immutable agent runtime layers, and a local spend-capped gateway—engineered to run silently on your desk.

Hardware IsolationFirecracker · libkrun

Real microVMs, not fragile container mounts

Every workspace and every A/B arm boots inside a dedicated microVM (Firecracker on Linux KVM, libkrun on Apple Silicon). Node, Claude Code, Codex CLI, and skill add-ons mount as pinned read-only SquashFS layers over your frozen baseline.

Guest /workspaceisolated diff or persistent ext4 disk
Pinned Add-on Layerread-only SquashFS · e.g. ponytail skill
Pinned Agent RuntimeClaude Code / SDK / Codex CLI / Node
Host Kernel Boundaryhost home & API keys never mounted
kai-ab/1Parallel Arms

Evidence without a black-box judge

Compare a new prompt, model, or skill against the exact same frozen commit. Kai keeps both results separately—recording diffs, sandboxed HTML previews, tokens, runtime, and prxy costs. Unknown values stay absent, never zero.

ARM A
$0.142
ARM B
$0.118
kai-ab-result/1eval-reporter 0.11+
Local Gateway · prxyZero Leaked Keys

Daily spend caps, host allowlists, and key custody

Provider credentials remain in your keychain or keep. Guests only see temporary placeholders routed over loopback through prxy, while the egress firewall drops every host you have not explicitly granted.

MicroVMplaceholder
→
kai proxybudget + wall
→
Upstreamreal secret
Desktop Ergonomics56px Edge Rail

Docked at the edge, always one click from your shell

Keep the slim Edge Rail pinned beside VS Code or Tern for a recessed LCD readout of spend, active guests, and blocked egress. Close the desktop or editor anytime—your microVM guest keeps running until you stop and check it in.

RAIL · DOCKED RIGHT
EWMH strut · Contextual flyout · Zero focus steal
$1.84|2 OK|0 BLK
02 · Workflow

From frozen baseline to verifiable receipt in four steps.

Every comparison is driven by plain, versioned contracts—reproducible from both the Desktop app and the kai CLI.

CONTRACT · kai-ab/1
.ab/ponytail/ab.toml
schema = "kai-ab/1"
model  = "claude-sonnet"

# Both arms start from the exact same frozen snapshot
[baseline]
path = "../../repo"

[prompt]
text = "Fix retry backoff overflow and add unit tests."

[arms.baseline]
instructions = "Keep changes minimal."

[arms.with_skill]
addon = "ponytail@0.4.2"
Schema hashed before launch · changed definitions refused100% local
03 · Installers & Payload

Signed desktop releases, pinned down to every binary.

Each desktop bundle ships its own verified kai-desktop-payload/1 directory—so upgrades never break an existing workspace or depend on package-manager drift.

PlatformHypervisor & FormatReleaseSHA-256Installer
macOS · Apple SiliconHypervisor.frameworklibkrun · .dmg0.6.0 · 46.2 MB779fa038…f6d853fDownload .dmg
Linux · x86_64Debian 12+ · KVM requiredFirecracker · .debplanned—Coming soon
BUNDLED PAYLOADkai-desktop-payload/1
bin/kaibin/prxybin/fencebin/mksquashfslibkrun / firecrackerguest/initramfs.cpio