Can BoxLite run locally?
Run hardware-isolated OCI microVMs on Apple Silicon macOS, Linux KVM, or Windows WSL2 with no external daemon or root privileges.

Can BoxLite run locally?
Yes. BoxLite Open-Source (Apache-2.0) runs locally as an embeddable microVM runtime with no external daemon and no root privileges. Your machine needs CPU hardware virtualization: Apple Silicon macOS 12 or later (Hypervisor.framework), Linux with /dev/kvm, or Windows WSL2 with KVM enabled.
You can isolate agent code and untrusted tools right on your laptop. BoxLite embeds straight into your app. Once an OCI image is cached locally, boot finishes in seconds, close to docker run. You don't have to keep Docker Desktop sitting in memory all day.
Supported local operating systems and hardware
Every microVM pairs CPU hardware virtualization with host-level process sandboxing:
| Host platform | Virtualization layer | Host sandbox mechanisms | Support status |
Apple Silicon macOS (12+) | Hypervisor.framework | Seatbelt (/usr/bin/sandbox-exec with (deny default)) and rlimits | Supported locally |
| Linux | /dev/kvm | namespaces, chroot/pivot_root, Seccomp BPF, cgroups v2 | Supported locally |
| Windows (WSL2) | KVM enabled | Runs inside WSL2 | Supported via WSL2 |
| Intel Macs | Not targeted | Not applicable | Out of scope |
Native Windows (WHP) | Windows Hypervisor Platform | Not yet supported | Future work after Milestone 1 (M1) |
Today, libkrun covers macOS 12 through 14 while BoxLite's upcoming custom VMM targets macOS 15 and later. Intel Macs are out of scope. Native Windows Hypervisor Platform (WHP) support is future work after Milestone 1 (M1), rather than shipped today. For more on that transition, read Why BoxLite is replacing libkrun.
How to run BoxLite locally
Embed BoxliteRuntime in your app
Install the Python SDK (Python 3.10+) with pip install boxlite, or use @boxlite-ai/boxlite in Node.js. BoxLite also offers Go, Rust, and C SDKs. Your host process embeds BoxliteRuntime directly, and Boxlite.default() runs locally on your machine without talking to an external daemon.
import asyncio
import boxlite
async def main():
async with boxlite.SimpleBox(image="python:slim") as box:
result = await box.exec("python", "-c", "print('Hello from BoxLite')")
print(result.stdout)
asyncio.run(main())
For a Node.js coding-agent walkthrough, read our guide on embedding a microVM sandbox in your agent at zero extra cost.
Share one local host over HTTP
When separate processes need one local BoxLite host, start the HTTP server with boxlite serve on port 8100. Clients connect over REST using Boxlite.rest(BoxliteRestOptions.from_env()) and BOXLITE_REST_URL.
Local disk storage and isolation
BoxLite keeps runtime state inside ~/.boxlite in your home directory, with no root privileges needed. That directory stores QCOW2 disks, shared directories, the SQLite box state DB, and cached OCI image layers.
Without mounting host directories into the sandbox, ephemeral tools running inside SimpleBox only modify that Box's virtual disk and get cleaned up on exit. For granular volume mounts, domain allowlists, and host-side secret substitution, see our YOLO coding-agent setup.
Moving from your laptop to BoxLite Cloud
You manage the open-source runtime yourself on local hardware or self-hosted servers. BoxLite Cloud is the managed alternative. It gives AI agents an isolated compute environment to run code, use tools, keep state, and publish apps as services without you hosting the runtime infrastructure.
Those two offerings stay separate even though they share the SDK model. Boxlite.default() runs locally on your machine. Boxlite.rest(BoxliteRestOptions.from_env()) targets self-hosted boxlite serve or BoxLite Cloud using BOXLITE_REST_URL.
