Step 1: install
brew install nsttt/enclo/encloFor Apple silicon Macs with Homebrew. On Linux, build from source.
Sandboxes for your agent harness
Each sandbox is a microVM running on your machine. Claude Code or Codex can clone repositories, install packages, and run code inside it without access to your host files.
Step 2: Connect your harness
enclo setupRegisters enclo with Claude Code and Codex. Start a new session afterward to load the tools.
Step 3: Ask your agent
Ask your agent to use a sandbox in normal prompts, like the examples below.
- 1×microVM per sandboxAlpine Linux 3.24 with root and internet access. Boots in about 0.2 s on Apple silicon.
- 9×MCP tools for your agentrun, write_file, read_file, push, create, list, stop, shutdown, remove.
- 0×shared host directoriesA project is added only when the agent pushes or clones it.
Example prompts
Clone https:/
/ github.com/ pypa/ sampleproject in a sandbox and run its tests.Tested with Claude Code 2.1.332 and Codex CLI 0.172.0. 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.