Give your agent
room to work.
Persistent Linux VMs for agents and dev tools. One binary, with only the host files and network access you allow.
Linux · macOS on Apple Silicon · Windows
Your tools. Your rules.
Run Claude Code, Codex or your own tools inside a VM. Your recipe grants the project folders and network destinations the harness can reach. Start with the quickstart
Give a long-lived agent a box of its own. Its tools and files survive restarts, and systemd can keep it running. Optionally, reset changes to the root filesystem on every boot. Set one up
A new box sees no host files and reaches no network. You name the folders, hosts and ports it gets. Network denials appear in the log. Write network rules
Each box runs its own Linux kernel under hardware virtualization. Every device runs in its own WebAssembly sandbox, inside an OS-sandboxed process. See every layer
The kernel, Alpine base and VM parts ship inside terra. No daemon or OCI images to manage. Use the same recipe on Linux, macOS on Apple Silicon and Windows. Install Terra
Set up a box where there is network and export it to one file. Import it on an air-gapped machine: it boots with its tools installed and downloads nothing. Carry one over
Isolation at every layer
Your workload in a VM.
Its machinery in Wasm.
From a recipe to a running box
Make a little room.
Install Terra, write a short recipe, and step inside your own Linux VM.
Current release v0.6.0-beta
01 Install Terra
Linux & macOS on Apple Silicon · Terminal
curl -fsSL https://raw.githubusercontent.com/terrarium-sh/terrarium/main/install.sh | sh Windows · PowerShell
irm https://raw.githubusercontent.com/terrarium-sh/terrarium/main/install.ps1 | iex After installing on Windows, open a new terminal so terra is on your PATH.
Linux needs KVM. Windows needs Windows Hypervisor Platform. Installation details
02 Give it a recipe
Save this as dev.yaml in your project folder.
hw:
cpus: 2
mem_mib: 1024
network:
mode: unrestricted-public This recipe allows public network access.
Host files stay private until you share them.
Keep exploring
A little guidance goes a long way.
Command reference
Find a command, flag, or example. Generated directly from the CLI.
Write a recipe
Configure resources, mounts, network access, and lifecycle hooks.
Understand the boundary
What Terra isolates, what it trusts, and how its devices are sandboxed.
Agent skill
Let your coding agent write, check, and smoke-test a box. Save as .claude/skills/terra-box/SKILL.md.