ZeroBoot: Sub-Millisecond VM Sandboxes for AI Agents Using Copy-on-Write Forking

2026-03-18T13:17:26.000Z·1 min read
ZeroBoot achieves sub-millisecond VM sandbox initialization by using copy-on-write memory forking, enabling AI agents to execute untrusted code in isolated environments with near-zero startup overhead.

As AI agents increasingly execute code and interact with untrusted environments, sandboxing becomes critical for security. ZeroBoot introduces a novel approach: using copy-on-write (CoW) memory forking to create lightweight virtual machine sandboxes with sub-millisecond initialization — orders of magnitude faster than traditional VM or container startup.

The Problem

When AI agents execute code, they need isolated environments to prevent malicious or buggy code from affecting the host system. Traditional approaches — Docker containers (~100ms), Firecracker microVMs (~125ms), or full VMs (~seconds) — impose significant latency overhead, especially when many sandboxes need to be created and destroyed rapidly.

How ZeroBoot Works

ZeroBoot leverages the operating system's copy-on-write memory mechanism (similar to fork() in Unix) to create virtual machine sandboxes:

  1. Pre-initialize a base VM image with the desired runtime environment
  2. Fork the VM's memory space using CoW — no data is actually copied initially
  3. Each sandbox gets independent memory only when it writes to pages
  4. Sub-millisecond sandbox creation, even for complex environments

Key Advantages

Use Cases

Technical Details

The project is open source and available on GitHub. It targets Linux systems with KVM support and uses modern virtualization features to achieve its performance characteristics.

Source: GitHub - adammiribyan/zeroboot | Show HN

↗ Original source
← Previous: Ryugu Asteroid Samples Contain All DNA and RNA Building BlocksNext: Google DeepMind Proposes Cognitive Framework for Measuring AGI Progress →
Comments0