terrarium is a tool that lets users and AI agents obtain a real, disposable computer in seconds. It is built on top of VirtualBox and is provided as a command-line tool or MCP server, supporting forking, destroying, and restoring complete virtual machines. The project itself does not contain virtualization code; instead, it wraps VBoxManage and only operates on virtual machines it has created.
- Purpose and Core Value
- Provides a container-like workflow (image, run, discard), but uses complete virtual machines, avoiding the incomplete testing problems caused by containers sharing the host kernel.
- Creates isolated, one-time, real computer environments, suitable for sensitive or high-risk work, avoiding impact on the personal host.
- Supports clean-machine testing, ensuring that installers or builds run on a new machine that has never had a development environment, so "it works on my machine" is no longer an excuse.
- Provides a real computer for AI agents: through the MCP protocol, agents can build, fail, restore, and retry without supervision, and tasks can involve screen interaction rather than only the command line.
- Main Capabilities
- Fast forking: linked clones based on a golden image (golden), with forking taking about 0.1 seconds, disks shared, and only a small number of MB of space consumed.
- Restore and reset: after destroying a fork, it can be restored to a clean state within seconds.
- Comprehensive command-line management:
- up forks an environment, ssh enters it, down parks it, start wakes it, rm deletes it, fork --ttl sets expiration, gc cleans up expired environments.
- ls lists machines, info views details, cp transfers files.
- create manually installs an operating system, exec executes commands (supports --shell, --stdin, --kill-on-timeout, --desktop).
- rdp opens the Windows desktop, adopt records an existing virtual machine, import imports an OVA, promote promotes an environment to a golden image.
- MCP server: the same binary can act as an MCP server, exposing all commands as tools, and adding screenshot, click, scroll, type, keys, injecting screen, mouse, and keyboard through the hypervisor, with no software installed in the guest, and no network or Guest Additions required.
- Automated installation: Linux images are automatically downloaded, seeded with SSH keys, and snapshotted; Windows requires usingThe user provides an ISO and performs unattended installation (about 10 minutes for win10, about 7 minutes for XP).
- Multi-client support: supports Claude Code, Scoop installation, npx execution, and any stdio MCP client.
III. Usage
- Environment requirements: Windows host machine, VirtualBox 7.x.
- Quick start:
- Via Claude Code: npx directly fetches the package containing the terrarium binary, with no additional installation required.
- Command line: install with Scoop (scoop install terrarium), or run directly with npx -y terrarium-mcp doctor.
- MCP configuration: claude mcp add -s user terrarium -- terrarium mcp, or start the stdio server in another MCP client.
- Obtaining images: On Linux, use terrarium get <name> to download automatically; on Windows, you need to download the ISO into %LOCALAPPDATA%\terrarium\isos, then run terrarium get win10.
- Manual installation: terrarium create <name> --iso <path> --ostype <type>, then complete the installation through screenshot, type, keys, click.
- Custom golden images: defined through a YAML recipe, can be built based on other images, and added through a Pull Request.
IV. Use cases
- Let AI agents test installations end-to-end on real machines, reproduce bugs, and generate screenshots or GIF guides.
- Isolated execution of sensitive or high-risk work.
- Clean machine testing to validate installers or builds.
- Create an independent development environment for each project, share the project folder, and access it via SSH and VS Code Remote-SSH.
- Drive legacy GUI-only systems (such as Windows XP) for automated operations.
V. Limitations
- Currently only supports Windows hosts and VirtualBox, and is not yet cross-platform; QEMU or Hyper-V drivers are planned but not promised.
- Not suitable for production environments; forked machines are only for development and testing.
- Not a secret manager: Windows golden image passwords are stored locally in plaintext and briefly appear in the VBoxManage command line during installation; using one-time passwords is recommended.
- Windows installation requires users to provide the ISO themselves; some legacy systems (such as XP) require a product key and can only be driven through on-screen interaction.
- Specific information such as fees, pricing, and platform expansion is not provided.