BoxLite: Micro-VM Engine for AI Agents
Hardware-isolated micro-VMs for AI agents — light enough to embed, elastic enough for cloud-scale.
- Source repo
- boxlite-ai/boxlite
- Stars
- ★ 2.6k
- Last updated
- 1d ago
- License
- Apache-2.0
- Primary language
- TypeScript
- FA score
- 52/100 · Major gaps
At a glance
- How it runs
- Works with
- Universal · cross-platform
- Cost
- Free, no paid service needed
- Setup effort
- Low · running in minutes
- You'll need
- Typical use
- AI agent developers: Embed BoxLite in local apps to give agents isolated, persistent code execution environments.
- Not a fit if
- Linux users without KVM or hardware virtualization
- Users on Intel-based Macs
- Teams unwilling to pay one VM per Box in resources
- Website
- boxlite.ai ↗ set on GitHub
- Maintenance
- Commits in the last 30 dayslast commit 2026-11-10latest release v0.12.0 (2026-11-06)
- Source review
- 52/100 · Major gaps
What does this agent do, and when should you use it?
BoxLite is a Rust-written micro-VM engine designed for AI agents. It can be embedded as a library in applications or deployed as a multi-tenant cloud service. Each 'Box' is a hardware-isolated VM that runs any OCI image and persists state across interactions, allowing agents to retain installed packages and files. BoxLite provides SDKs for Python, Node.js, Go, Rust, and C, along with a CLI and REST API. It emphasizes daemonless operation, embedding directly without requiring root privileges. Security is enforced through hardware virtualization (KVM/Hypervisor.framework) and OS-level sandboxing (seccomp/sandbox-exec). BoxLite supports macOS (Apple Silicon) and Linux (x86_64, ARM64), with plans for more platforms. It is already integrated with agent frameworks like Databricks Omnigent, Alibaba AgentScope Runtime, and ByteDance deer-flow.
BoxLite performs the following:
- Creates and manages hardware-isolated micro-VMs (Boxes) via libraries or CLI.
- Pulls and runs any OCI image (e.g., python:slim, alpine:latest).
- Executes commands inside VMs with streaming stdout/stderr, exit codes, interactive PTY, timeouts, and workdir settings.
- Supports persistent storage; Box state survives stop/restart.
- Controls network access via allow_net, plus port forwarding and tunneling.
- Injects secrets such that real credentials never enter the VM.
- Enforces CPU, memory, and resource limits, plus environment sanitization.
- Can run as a standalone server via CLI, exposing a REST API.
- AI agent developers: Embed BoxLite in local apps to give agents isolated, persistent code execution environments.
- Platform engineers: Use the BoxLite CLI to quickly create isolated micro-VMs for running OCI images in testing or data processing.
- Research teams: Integrate BoxLite into custom agent harnesses (like deer-flow) as a sandbox backend for computational isolation.
- Cloud providers: Use BoxLite's control plane to deploy multi-tenant agent clouds with autoscaling.
- Security-sensitive applications: Leverage hardware isolation and network allow-listing (allow_net) to protect sensitive data and prevent agent overreach.
Key setup facts
Pulled from the install and usage notes below. The project README has the current values.
- Install / run
pip install boxlitecurl -fsSL https://sh.boxlite.ai | sh
- Install notes cover
- Windows · macOS · Linux · WSL
How do you install or deploy this agent?
Install the Python SDK:
pip install boxliteInstall the CLI (optional):
curl -fsSL https://sh.boxlite.ai | shRequires macOS 12+ (Apple Silicon) or Linux with KVM enabled (/dev/kvm accessible). Windows users need WSL2 with KVM support.
How do you use this agent?
Using in Python:
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())Run an image with CLI:
boxlite run python:slim python -c "print('Hello from BoxLite!')"Start a REST server:
boxlite serve
curl -X POST http://localhost:8100/v1/boxes -H 'Content-Type: application/json' -d '{"image": "alpine:latest"}'What are this agent's strengths and limitations?
- Hardware isolation is stronger than containers yet lighter than full VMs.
- Multi-language SDKs (Python, Node.js, Go, Rust, C) plus REST API enable easy integration.
- Boxes persist, allowing agents to maintain state across interactions.
- Daemonless design allows embedding without root privileges.
- Requires hardware virtualization (KVM/Hypervisor.framework); may not work on Linux without KVM.
- macOS Intel support is not yet available.
- Running multiple Boxes as a library can be resource-intensive (one VM per box).
- Network restrictions (allow_net) require explicit configuration; default is open egress.
How does this agent compare with similar options?
Compared to Docker containers, BoxLite offers stronger isolation (hardware virtualization) at the cost of more overhead. Compared to other micro-VM solutions like Firecracker, BoxLite focuses on AI agent scenarios with a simpler API and persistence features.
Key facts side by side with the most closely related agents.
| Agent | Source review | Form / cost | Stars | Updated | Language | Full support on |
|---|---|---|---|---|---|---|
| BoxLite: Micro-VM Engine for AI Agents This agent | 52 · Major gaps | Library / SDKFree | ★ 2.6k | 1d ago | TypeScript | — |
| microsandbox | 71 · Some gaps | CLIFree | ★ 9k | today | Rust | Claude Code |
| The Astrid Runtime | 72 · Some gaps | CLIFree + model costs | ★ 10k | 4d ago | Rust | — |
| OpenFang | 51 · Major gaps | CLIFree + model costs | ★ 18k | 6mo ago | Rust | OpenAI API · Claude API |
How does FollowAgents rate this agent?
Why each dimension lost points
The product documents micro-VM isolation, resource limits, network controls, environment sanitization, secret placeholders, and private configuration handling, supporting moderate scores for least privilege, data flow, and sensitive-data handling. Confirmation is mainly described for cloud deployment and configuration transfer rather than ordinary local execution. Dependency-security evidence is limited; external effects from execution, image pulls, and deployment are described, but rollback coverage is incomplete. Publisher identity is unverified, and repository author metadata offers only limited attribution evidence.
The README, SDK quick starts, and source samples support a coherent core runtime purpose, but package metadata conflicts: the root package.json says 1.0.0 and ISC, the Rust workspace says 0.12.0 and Apache-2.0, and the Node SDK has a separate package identity. The repository describes multi-language releases and CI, but this static review cannot execute verification, and dependency availability is not established by the supplied materials. The C SDK has structured error codes and the reference server uses error envelopes, so failure diagnosis is supported but not uniformly demonstrated.
The materials cover SDK embedding, CLI use, REST service, local use, and cloud deployment, with platform and resource requirements. BoxLite runs OCI workloads and documents isolation, networking, and storage boundaries; the reference server is explicitly non-production, and cloud guidance warns about proxy port exposure. Skill triggers focus on BoxLite deployment requests, with fewer boundaries described for unrelated agent-framework tasks.
Documentation is organized across concepts, guides, references, and language quick starts, with prerequisites, examples, error handling, and platform limitations. Apache-2.0 is supported by both LICENSE and README, justifying full marks. Version signals are scattered and conflict: the security policy lists 0.9.x as supported while the workspace is 0.12.0, and package metadata differs. Maintenance responsibility has private reporting channels, response targets, and contribution guidance, but publisher identity remains unverified.
Hardware-isolated VMs, persistent state, multi-language SDKs, and agent-oriented Box types provide direct utility for running untrusted code; examples show basic usage. The runtime also incurs hardware-virtualization, image-pull, and resource-configuration costs. The materials do not quantify these costs against benefits, and cloud deployment requires additional budget and configuration decisions, so cost-benefit evidence is partial.
README claims have some corroboration in security concepts, SDK examples, the API reference server, and workflow documentation. The reference server is labeled non-production, and platform requirements are stated separately from feature claims. Package version, license, and supported-security-version signals conflict, and isolation claims are largely repository assertions that this static packet cannot independently validate, so full marks are not justified.
- Check the version and license of the actual package you install; the root package.json, Rust workspace, and Node SDK metadata do not agree.
- The security policy lists 0.9.x as supported while the workspace is 0.12.0; verify the target release and support status before deployment.
- Before cloud deployment, verify authentication, public access, exposed ports, and ongoing runtime costs; the reference REST server is explicitly not production-ready.
Recent releases
Latest entries from the project's GitHub Releases. Notes are quoted from upstream as written, not rewritten or tested by FollowAgents.
-
Release notes excerpt
What's Changed * fix(infra): preserve runner sizing and configure data disks by @zombee0 in https://github.com/boxlite-ai/boxlite/pull/2236 * fix(e2e): accept 403 or 404 for disabled inbound by @zombee0 in https://github.com/boxlite-ai/boxlite/pull/2240 * fix(api): retire obsolete organization region listing by @zombee0 in https://github.com/boxlite-ai/boxlite/pull/2244 * feat(api): gate higher Box limits on subscription entitlements by @zombee0 in https://github.com/boxlite-ai/boxlite/pull/2156 …View on GitHub ↗ -
Release notes excerpt
What's Changed * feat(node): expose guest SSH control by @lfld287 in https://github.com/boxlite-ai/boxlite/pull/2054 * ci(e2e-local): move the VM to c3-highcpu-4 and retry rejected starts by @zombee0 in https://github.com/boxlite-ai/boxlite/pull/2105 * feat(c): expose asynchronous guest SSH control by @lfld287 in https://github.com/boxlite-ai/boxlite/pull/2056 * feat(python): expose async and sync SSH control by @lfld287 in https://github.com/boxlite-ai/boxlite/pull/2055 …View on GitHub ↗ -
Release notes excerpt
What's Changed * feat(api): report box network policy as inbound and outbound by @zombee0 in https://github.com/boxlite-ai/boxlite/pull/2001 * feat(images): trust the system CA store for registry pulls by @ltstriker in https://github.com/boxlite-ai/boxlite/pull/2003 * feat(images): add image_registry_proxy to runtime options by @ltstriker in https://github.com/boxlite-ai/boxlite/pull/2004 * chore(images): drop the Hermes agent image from curated examples by @DefeatMan in https://github.com/boxlite-ai/boxlite/pull/2008 …View on GitHub ↗
FAQ
How does BoxLite differ from Docker containers?
Does BoxLite support Windows?
Can BoxLite be used without root privileges?
How does BoxLite ensure security?
Is BoxLite: Micro-VM Engine for AI Agents free?
Is BoxLite: Micro-VM Engine for AI Agents open source?
Is BoxLite: Micro-VM Engine for AI Agents still maintained?
Who makes BoxLite: Micro-VM Engine for AI Agents?
What is BoxLite: Micro-VM Engine for AI Agents's official website?
Thanks — we use this to improve the page.