# BoxLite Open Source

Real microVMs, as a library. Apache 2.0, no daemon, no cloud, no root — on your
laptop, your cluster, or your customer's machine.

```bash
pip install boxlite
```

```python
import asyncio
import boxlite

async def main():
    async with boxlite.SimpleBox(image="python:slim") as box:
        result = await box.exec("python", "-c", "print(2 + 2)")
        print(result.stdout)  # "4"

asyncio.run(main())
```

Each box is a real virtual machine with its own Linux kernel, isolated in
hardware via KVM on Linux, Hypervisor.framework on macOS, or WSL2 on Windows.
Any OCI image works unmodified. Boxes are stateful: packages, files and
environment survive stop and restart, and full state can be snapshotted and
forked copy-on-write.

SDKs for Python, Node.js, Go and C, plus the Rust core crate and a CLI.

- Source: https://github.com/boxlite-ai/boxlite
- Licence: https://github.com/boxlite-ai/boxlite/blob/main/LICENSE
- Quickstart: https://docs.boxlite.ai/getting-started
- Managed version of the same runtime: https://boxlite.ai

## Pages

- [BoxLite — The managed cloud for AI agents](https://boxlite.ai) — Hosted microVMs for AI agents: compute, networking, a filesystem and a database, on BoxLite's fleet or your own.
- [BoxLite Open Source — the local-first embedded runtime for AI agents](https://boxlite.ai/oss) — Apache 2.0 microVMs as a library. No daemon, no cloud, no root — on your laptop, your cluster, or your customer's machine.
- [About BoxLite](https://boxlite.ai/about) — What BoxLite is, how the open-source runtime and the managed cloud relate, and who builds it.
- [Contact BoxLite](https://boxlite.ai/contact) — Support email, Discord, GitHub issues and sales — every channel that reaches the BoxLite team.

## Machine-readable files

- [/llms.txt](https://boxlite.ai/llms.txt) — Site summary and links, llms.txt format
- [/agent.md](https://boxlite.ai/agent.md) — Full guide for coding agents using BoxLite Cloud
- [/sitemap.xml](https://boxlite.ai/sitemap.xml) — All indexable pages
- [/robots.txt](https://boxlite.ai/robots.txt) — Crawl policy

## Elsewhere

- [Documentation](https://docs.boxlite.ai)
- [Console](https://app.boxlite.ai)
- [GitHub](https://github.com/boxlite-ai/boxlite)
- [Discord](https://go.boxlite.ai/discord)
