MicroVM Sandbox Platform for AI Agents

MicroVM Sandbox Platform for AI Agents

Client

A developer infrastructure platform for teams whose AI agents run code they wrote themselves: shell commands, package installs, dev servers and headless browsers.

Challenge

  • Containers on a shared host were not a strong enough boundary for untrusted, AI-generated code.
  • Ordinary virtual machines booted too slowly to sit inside an agent loop.
  • Agents needed their files and state to persist between runs.
  • Two execution engines had led to fixes that kept regressing between them.

Solution

Our team addressed these challenges by:

  • Building a Go control plane that validates, meters and schedules jobs across bare-metal hosts, with per-user and per-key quotas.
  • Starting every sandbox as a copy-on-write clone of a pre-booted “golden” snapshot, rebuilt and smoke-tested automatically when stale.
  • Storing workspaces in object storage and sending each job back to the host where its workspace is already warm.
  • Sleeping idle VMs and waking them on the next connection.
  • Adding cloud Chromium browsers that work with Playwright and Puppeteer.
  • Removing the older engine completely, leaving a single execution path to test, secure and operate.

Impact

  • Repeat runs dropped from about 4 seconds to about 0.1 seconds in benchmarks.
  • Live, with a public CLI, Python and Node SDKs, a REST API and a dashboard.
  • VM-level isolation with start times fast enough for agent loops.
  • Powers production workloads, including every reel and film rendered by KiteReach.
  • About 81,000 lines of Go, with 27 database migrations and 47 test files.

Explore More Case Studies

  • Self-hosted Deployment Platform for Internal Tools and Services
  • Hosted Log Search, Metrics and Alerting Platform
  • Agentic Test Automation Platform for Live Web Applications
Talk To QA Experts