Design principles
BoxLite is built on a simple belief: AI agents deserve sandboxes that are secure, stateful, and trivially easy to adopt. Every design decision we make traces back to four principles.Embeddable
Local first, cloud when you’re ready. Most sandboxing solutions require a cloud account, a daemon, or root privileges before you can run your first sandbox. BoxLite flips this: it is a library you import into your application — no sidecar, no background process, no infrastructure to manage. Everything runs on your machine first. When you need to scale, BoxLite meets you there, but it never forces you to start there.pip install a package, you can run hardware-isolated VMs.
This principle shapes everything from our packaging (a single binary with no external dependencies) to our API surface (async-first, three lines to get started) to our deployment model (runs wherever your application runs).
Stateful
Sandboxes that remember. Today’s AI agent sandboxes are ephemeral — spin up a container, run some code, tear it down, repeat. Every session starts from scratch. Packages get reinstalled. Files get recreated. Context gets lost. This is the sandbox equivalent of a developer who formats their laptop between every task. BoxLite Boxes are persistent workspaces. Install packages, create files, configure the environment, stop the Box, and come back hours or days later — everything is exactly where you left it. The agent picks up where it stopped, not where it started. Statefulness is not a feature we bolted on. It is a foundational design choice that affects how we manage filesystems, how we handle VM lifecycle, and how we think about the relationship between an agent and its environment. A Box is not a disposable execution context. It is the agent’s workspace.Snapshots
Fork, explore, restore. Stateful sandboxes become dramatically more powerful when you can capture and restore their state. BoxLite supports snapshotting a Box’s full state — filesystem, installed packages, running configuration — and restoring it later. This unlocks workflows that ephemeral sandboxes cannot support:- Checkpointing — Save a known-good state before a risky operation. If things go wrong, roll back instantly instead of rebuilding from scratch.
- Branching — Fork a snapshot into multiple Boxes to explore different approaches in parallel, like
git branchbut for entire execution environments. - Reproducibility — Capture the exact environment that produced a result. Share it, replay it, debug it.
- Scaling — Stamp out hundreds of identical environments from a single snapshot for RL training or batch evaluation.

