BoxLite: Micro-VM Engine for AI Agents

Hardware-isolated micro-VMs for AI agents — light enough to embed, elastic enough for cloud-scale.

Stars
★ 2.7k
Last updated
today v0.16.0
FARS reviewed
Nov 07, 2026 +6 new
License
Apache-2.0
Primary language
TypeScript

At a glance

How it runs
Library / SDKCLISelf-hosted service
Works with
Universal · cross-platform
Cost
Free, no paid service needed
Setup effort
Low · running in minutes
You'll need
KVM (Linux)Hypervisor.framework (macOS)Shell / CLINetwork accessLocal filesystem
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

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.

  1. AI agent developers: Embed BoxLite in local apps to give agents isolated, persistent code execution environments.
  2. Platform engineers: Use the BoxLite CLI to quickly create isolated micro-VMs for running OCI images in testing or data processing.
  3. Research teams: Integrate BoxLite into custom agent harnesses (like deer-flow) as a sandbox backend for computational isolation.
  4. Cloud providers: Use BoxLite's control plane to deploy multi-tenant agent clouds with autoscaling.
  5. 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 boxlite
  • curl -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 boxlite

Install the CLI (optional):

curl -fsSL https://sh.boxlite.ai | sh

Requires 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)

Local shell command execution

Can run terminal commands; pair with approval gates or container/OS sandboxing.

Local filesystem read/write

Modifies local files; work on a clean Git branch or dedicated worktree.

Outbound network access

Makes outbound requests; verify telemetry settings and model data routing on private repos.

What are this agent's strengths and limitations?

Pros
  • 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.
Limitations
  • 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?

FollowAgents source review · FARS-2.1
Major gaps
52/ 100 5-point scale 2.6 / 5
This review covers the source as of Nov 07, 2026. The project has shipped 6 stable release(s) since, which have not been re-reviewed. The score and verdict describe the reviewed version only. Recent releases ↓
Trust 13/29
Reliability 6/14
Adaptability 10/18
Convention 11/18
Effectiveness 7/13
Verifiability 5/8
Why each dimension lost points
Trust13 / 29 · 2.2/5

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.

Reliability6 / 14 · 2.1/5

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.

Adaptability10 / 18 · 2.8/5

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.

Convention11 / 18 · 3.1/5

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.

Effectiveness7 / 13 · 2.7/5

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.

Verifiability5 / 8 · 3.1/5

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.

Risks and how to mitigate them
  • 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.
Evidence confidence: Low Reviewed Nov 07, 2026 Reviewed revision fa440ced71f5 New commits since this review; the score may not cover them
See the full review method →
Maintain this project? Add the FARS badge to your README

The badge shows the current review score and verdict and links back to this page. It refreshes about once an hour after a re-review.

FARS

[![FARS review](https://followagents.com/badge/boxlite.svg)](https://followagents.com/en/agents/boxlite)
<a href="https://followagents.com/en/agents/boxlite"><img src="https://followagents.com/badge/boxlite.svg" alt="FARS review"></a>

Recent releases

Latest entries from the project's GitHub Releases. Notes are quoted from upstream as written, not rewritten or tested by FollowAgents.

  1. v0.16.0
    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 ↗
  2. v0.15.0
    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 ↗
  3. v0.14.1
    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?
BoxLite provides hardware-isolated VMs per Box, while containers share the host kernel. Thus BoxLite offers stronger isolation but higher per-instance overhead.
Does BoxLite support Windows?
Yes, via WSL2, but KVM must be enabled and the user must be in the kvm group.
Can BoxLite be used without root privileges?
Yes, when embedded as a library, no daemon or root is required. However, running as a standalone server or CLI may require certain permissions like /dev/kvm.
How does BoxLite ensure security?
It uses hardware virtualization (KVM/Hypervisor.framework), OS sandboxing (seccomp/sandbox-exec), resource limits, and environment sanitization.
Was this page helpful?
View on GitHub ↗ Install ↓

Related concepts