Agent Sandboxesagentsandboxes.org
Sandbox profile · Open-source project

BoxLite

Answer in brief

Embeddable, daemonless microVM library that runs OCI images in hardware-isolated boxes on a laptop or server, with an optional managed cloud. A practical choice when you want microVM isolation embedded in your own process rather than behind a service.

By the Agent Sandboxes editors · Updated

Overview

BoxLite is an Apache-2.0 runtime whose "Box" is a hardware-isolated microVM that runs any OCI image. It is a library first: Python, Node.js, Go, Rust and C bindings call a Rust core that boots a VM on KVM (Linux, including WSL2) or Hypervisor.framework (Apple Silicon macOS) with no daemon, and an optional boxlite serve mode exposes a REST API with WebSocket exec. The security docs describe two layers: the VM boundary with a separate guest kernel, and a jailer around the host-side shim (seccomp, namespaces and an unprivileged uid on Linux; Seatbelt on macOS), and they advise "For running untrusted code in production, prefer Linux".

Boxes keep a QCOW2 copy-on-write disk, persist across stop/restart, can be cloned and exported as archives, and support volume mounts, PTYs, per-command timeouts and an egress allow-list. BoxLite Cloud sells the same API as a managed service from $0.0666 per hour with $100 of starting credit. Neither the README nor the site uses an alpha/beta label; macOS on Intel is "Coming soon".

Notable

  • Docs claim boxes "start in about a second"
  • BoxLite Cloud pay-as-you-go from $0.0666 per hour; plans at $19, $149 and $499 per month
  • Supports Linux x86_64/ARM64 (KVM), Apple Silicon macOS 12+ and Windows via WSL2; Intel macOS "Coming soon"

BoxLite specifications

AttributeDetails
IsolationHardware-virtualised microVM with its own guest kernel (KVM on Linux, Hypervisor.framework on macOS), plus a jailer around the host-side shim: seccomp allowlist, mount/PID namespaces and privilege drop on Linux, Seatbelt on macOS
DeploymentOpen-source project · Self-hostable
Open sourceYes (Apache-2.0)
SDKs and interfacesPython, JavaScript/TypeScript, Go, Rust, C, CLI, REST API
Cold start (vendor claim)Docs: boxes "start in about a second"; the README gives no boot-time figure and notes a second start is faster because of the image cache
Max session lengthNot documented
PersistenceBoxes persist across stop/restart and "resume across turns"; per-box QCOW2 copy-on-write disk, volume mounts (ro/rw), clone, and export/import as .boxlite archives; detached boxes outlive the parent process
GPUNot documented
NetworkingOutbound internet with an egress allow-list (allow_net), local TCP port forwarding, local/remote tunnels; secrets are injected so real values never enter the VM; user-mode network stack with a fixed subnet
PricingOpen-source runtime is free. BoxLite Cloud: pay-as-you-go from $0.0666 per hour for the smallest box; Starter $19/month, Pro $149/month, Max $499/month, Enterprise custom; boxes up to 4 vCPU and 32 GiB memory
Free tier$100 free credits on BoxLite Cloud; free to self-host
ComplianceNot documented
RegionsNot documented

Facts from BoxLite’s public documentation, verified November 9, 2026. Performance numbers are vendor claims.

Strengths and trade-offs

Strengths

  • You want a microVM sandbox as an in-process library with bindings in five languages
  • You need boxes that survive restarts and can be cloned or exported
  • You run on Apple Silicon laptops as well as Linux servers
  • You want a managed cloud with the same API as the local runtime

Trade-offs

  • Requires hardware virtualisation; the docs say it is "Not available in most CI runners, nested VMs, or containers"
  • macOS jailer has no privilege drop, cgroups or network namespace; the docs prefer Linux for untrusted code
  • No GPU, compliance or region documentation; snapshots are not a documented feature (clone and export/import are)

Good fit for: Embedding a microVM sandbox directly in your own process on a laptop or server without running a daemon.

How BoxLite compares

SandboxIsolationOpen sourceSelf-host / BYOCCold start (vendor)Max sessionSnapshots / pauseGPUSDKs
BoxLitemicroVM + jailerYesYes / No~1 s (claim)Not documentedNot documented / Not documentedNot documentedPython, JavaScript/TypeScript, Go, Rust, C, CLI, REST API
Celesto (SmolVM)Firecracker / QEMU microVMYesYes / No~500 ms (claim)Not documentedYes / YesNot documentedPython, JavaScript/TypeScript, CLI, MCP server
MicrosandboxMicroVM (libkrun)YesYes / Yes<100 msNot documentedYes / Not documentedNoTypeScript, Python, Rust, Go, Ruby, CLI, MCP server
ArrakisCloud Hypervisor microVMYesYes / NoNot documentedNot documentedYes / Not documentedNot documentedPython, REST API, CLI, MCP server
libkrunIn-process microVMYesYes / NoNot documentedNot documentedNot documented / Not documentedYesRust, C
FirecrackerKVM microVMYesYes / No<125 ms (spec)Not documentedYes / YesNoREST API, CLI
E2BFirecracker microVMYesYes / YesNot documented1 h / 24 h (Pro)Yes / YesNoPython, JavaScript/TypeScript

See all BoxLite alternatives →

Frequently asked questions

What is BoxLite?
Embeddable, daemonless microVM library that runs OCI images in hardware-isolated boxes on a laptop or server, with an optional managed cloud. A practical choice when you want microVM isolation embedded in your own process rather than behind a service.
How does BoxLite isolate code?
BoxLite documents its isolation as: Hardware-virtualised microVM with its own guest kernel (KVM on Linux, Hypervisor.framework on macOS), plus a jailer around the host-side shim: seccomp allowlist, mount/PID namespaces and privilege drop on Linux, Seatbelt on macOS.
Is BoxLite open source?
Yes (Apache-2.0). It can be self-hosted.
How much does BoxLite cost?
Open-source runtime is free. BoxLite Cloud: pay-as-you-go from $0.0666 per hour for the smallest box; Starter $19/month, Pro $149/month, Max $499/month, Enterprise custom; boxes up to 4 vCPU and 32 GiB memory Check the official pricing page for current rates.
What are the alternatives to BoxLite?
Common alternatives include Celesto (SmolVM), Microsandbox, Arrakis, libkrun, Firecracker, E2B. See BoxLite alternatives for a full comparison.

Sources

  1. github.com/boxlite-ai/boxlite
  2. boxlite.ai
  3. docs.boxlite.ai
  4. docs.boxlite.ai/architecture/index.md
  5. docs.boxlite.ai/architecture/security.md

Cite this page

Agent Sandboxes. (2026). BoxLite. agentsandboxes.org. Last reviewed November 9, 2026. https://agentsandboxes.org/sandboxes/boxlite/

Found an error or a missing sandbox? Submit a correction — every entry links to the sources it relies on.