> For AI agents: the complete documentation index is available at https://enclo.nstlopez.com/llms.txt, the full documentation bundle is available at https://enclo.nstlopez.com/llms-full.txt.

# Quickstart

Enclo runs sandboxes for AI agent harnesses on your own machine. Each sandbox
is a libkrun microVM running Alpine Linux. Claude Code or Codex can clone
repositories, install packages, and run code in it without access to your host
files.

## 1. Install


**macOS**

On an Apple silicon Mac with [Homebrew](https://brew.sh):
```sh
brew install nsttt/enclo/enclo
```
Installation requires internet access and does not need sudo. Homebrew
installs libkrun, and the installer downloads the Alpine Linux root filesystem
and builds the guest image.


**Linux**

Linux packages are not available yet. Build from source on a machine with
`/dev/kvm` by following [Building from source](https://enclo.nstlopez.com/guide/building.md), and run
`make install` (instead of `make m0`) to install under `~/.enclo`. It prints
the `PATH` line to add to your shell startup file.


## 2. Connect your harness

```sh
enclo setup
```

`enclo setup` boots a sandbox to verify the installation, then registers
`enclo mcp` as an MCP server for Claude Code and Codex (whichever are on your
`PATH`).

Start a new harness session afterward. Harnesses load MCP tools at startup, so
existing sessions will not pick them up.

See [Connect your harness](https://enclo.nstlopez.com/guide/harnesses.md) for the exact commands setup runs, how
to configure other harnesses, and how to pre-approve the tools in Codex.

## 3. Use it

Ask your agent to use a sandbox in a regular prompt:

```text
Clone https://github.com/pypa/sampleproject in a sandbox and run its tests.
Run this script in a sandbox first and show me what it prints.
Download that installer in a sandbox, run it, and tell me what it changed.
```

We tested the first prompt with Claude Code 2.1.332 and Codex CLI 0.172.0. Both
installed git and python3 in a sandbox, cloned the repository, and ran its unit
tests through the enclo tools.

## What a sandbox is

| Property              | Value                                                                                                                                                                 |
| --------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Type                  | A microVM running Alpine Linux 3.24.4, matching your host architecture                                                                                                |
| Size                  | Defaults to 2 vCPUs, 2048 MiB of memory, and a 64 GiB sparse disk (about 5.5 MB on disk when empty)                                                                   |
| Network               | Outbound internet access. Connections to loopback, private IP ranges, and the cloud metadata address are blocked                                                      |
| Lifetime              | Boots on the first command (about 0.2 s on Apple silicon) and stays running. Shuts down after 15 minutes with no command running, and boots again on the next command |
| Kept between commands | Files and installed packages persist across shutdowns; running processes persist while the sandbox is up                                                              |
| Your files            | No host directories are mounted. Use `push` to copy a directory in                                                                                                    |

Each agent session gets one sandbox, created on the first tool call and kept
after the session ends. See [Sandboxes](https://enclo.nstlopez.com/guide/sandboxes.md) for lifecycle and file
transfer details, and [MCP tools](https://enclo.nstlopez.com/reference/mcp-tools.md) for the nine
available tools.

## If something goes wrong

```sh
enclo doctor
```

`enclo doctor` checks the installation, boots a test sandbox, and reports any
problems. See [From a terminal](https://enclo.nstlopez.com/guide/terminal.md) to run the same sandbox operations
directly from the CLI.
