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

A frog and dragonfly among ferns and a yellow flower, inside a glass terrarium.

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

Illustrative recipes & CLI sessions

Isolation at every layer

Your workload in a VM.
Its machinery in Wasm.

Explore the security model See how each platform sandboxes it
HOST OS & HYPERVISORGuest LinuxYour workloadFilesystemBlockMemoryVsockVMMInterruptsHost agent 4OS sandbox · VM worker1Hardware VM2Wasm components3Thin host API5Network broker virtioIPCTCP · UDP · DNSInternet
Hardware VM One Wasm store per component OS sandbox Interrupts: Wasm controller on x86 · native IRQ lines on ARM.

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.

dev.yamlyour box, your rules
hw:
  cpus: 2
  mem_mib: 1024

network:
  mode: unrestricted-public

This recipe allows public network access.
Host files stay private until you share them.

Find a recipe for your project

03 Step inside

terra ./dev.yaml setup
terra
Where to go from here