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.7k
- Last updated
- today v0.16.0
- FARS reviewed
- Nov 07, 2026 +6 new
- 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-12-02latest release v0.16.0 (2026-12-01)+6.1 ★/day over 7 days
- 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"}'Safety boundaries, hardening & integrations
Operational blast radius, source-verified safety controls, and first-run hardening steps before connecting this agent to real workspaces.
Declared capability surface (blast radius)
Can run terminal commands; pair with approval gates or container/OS sandboxing.
Modifies local files; work on a clean Git branch or dedicated worktree.
Makes outbound requests; verify telemetry settings and model data routing on private repos.
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.7k | today | TypeScript | — |
| microsandbox | 71 · Some gaps | CLIFree | ★ 9.3k | 1d ago | Rust | Claude Code |
| The Astrid Runtime | 72 · Some gaps | CLIFree + model costs | ★ 10k | today | Rust | — |
| OpenFang | 51 · Major gaps | CLIFree + model costs | ★ 18k | 5mo 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 * feat(vmm): add VmControl lifecycle handle and device-less VM by @lfld287 in https://github.com/boxlite-ai/boxlite/pull/2964 * fix(infra): use a positive route priority for GCP introspection by @DefeatMan in https://github.com/boxlite-ai/boxlite/pull/3068 * fix(python): close stdin for one-shot executions by @kingslayer-ops in https://github.com/boxlite-ai/boxlite/pull/2703 * perf(jailer): stage shim and libkrunfw in shared versioned cache by @lfld287 in https://github.com/boxlite-ai/boxlite/pull/3059 …View on GitHub ↗ -
Release notes excerpt
What's Changed * feat(infra-local): replace Dex with Rauthy and MinIO with RustFS by @DorianZheng in https://github.com/boxlite-ai/boxlite/pull/2934 * feat(go): map agent JSON records to typed values by @mileeeesW in https://github.com/boxlite-ai/boxlite/pull/2920 * feat(ci): notify Slack before deployment approval batches by @DefeatMan in https://github.com/boxlite-ai/boxlite/pull/2954 * fix(dashboard): show free trial countdown by @Lhfcws in https://github.com/boxlite-ai/boxlite/pull/2930 …View on GitHub ↗ -
Release notes excerpt
What's Changed * feat(dashboard): manage saved payment methods by @JimmyBynex in https://github.com/boxlite-ai/boxlite/pull/2926 * fix(vmm): skip unsafe guest boot env to avoid VM startup failures by @Lhfcws in https://github.com/boxlite-ai/boxlite/pull/2897 * feat(vmm): size guest RAM from the host's address space by @lfld287 in https://github.com/boxlite-ai/boxlite/pull/2888 * feat(console): add mock trial onboarding walkthrough by @Mandalorian-Wang in https://github.com/boxlite-ai/boxlite/pull/2932 …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?
Thanks — we use this to improve the page.
Subscribe to the FollowAgents RSS feed, or save this agent to your browser shortlist to compare on your next visit.