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
On an Apple silicon Mac with Homebrew:
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.
2. Connect your harness
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 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:
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
Each agent session gets one sandbox, created on the first tool call and kept after the session ends. See Sandboxes for lifecycle and file transfer details, and MCP tools for the nine available tools.
If something goes wrong
enclo doctor checks the installation, boots a test sandbox, and reports any
problems. See From a terminal to run the same sandbox operations
directly from the CLI.