metacomputer
Agentic coding plus a real desktop, with the controls you'd want around it.
metacomputer gives your coding agent, Claude Code or Codex, a disposable Ubuntu
computer of its own: a virtual machine on your Mac. The agent operates it the way a person would: it
reads the screen through the accessibility tree, clicks and types, uses
Firefox and Chrome, and records video of what it did. It also works in it the
way a programmer would, with a shell, Python, LibreOffice, ImageMagick and
ffmpeg. The VM is kept away from your files, your accounts, your Mac and your
network, and what the agent does there can be logged, limited and approved.
Both agents get the same tools, skill and protections: Claude Code through its plugin, Codex through its MCP
server, skills and sandbox rules (docs/codex.md). Install once and whichever you have is set up.
https://github.com/user-attachments/assets/9465c66c-88fd-4e58-845e-a430c61ddf1a
The 5-minute install
Paste this into Terminal on a Mac with Apple silicon (macOS 14 or later, about
15 GB free):
curl -fsSL https://raw.githubusercontent.com/metavert-io/metacomputer/main/get.sh | bash
That's the whole install. There's no VM for you to set up: the script builds
it, sets it up for Claude Code and Codex (whichever you have), and checks that everything works. On a Mac
that already has Homebrew and Apple's Command Line Tools it takes about 5 minutes
and asks you nothing; on a new Mac it offers to install those first.
Try it
Start a new Claude Code or Codex session (restart open Claude Code sessions, so
they load the plugin), then ask:
Get yourself a virtual computer and tell me what's on its screen.
Make a LibreOffice Calc spreadsheet of the planets' diameters, add a column
chart, and save it as planets.xlsx.
Does wikipedia.org look the same in Firefox and Chrome? Show me the differences.
Someone sent me this link: https://example.com. What does it do, and is it safe to open?
The agent says which computer it's using before it acts, starts the VM if it isn't
running, checks its own results and tells you where the evidence is. To watch it
work, metacomputer view --open opens the live desktop in Screen Sharing; say
yes once and Screen Sharing remembers its password, so there's nothing to paste.
More ideas:
Prompt a computer into existence.
What the install does, what you click, and how long it takes
What happens:
- It checks the Mac: Apple silicon, macOS 14 or later, free disk, memory, the network.
- It offers Homebrew and Apple's Command Line Tools, only if they're missing.
- It clones metacomputer into
~/metacomputer and runs ./install.sh --yes, which
adds Go, GnuPG and ffmpeg from Homebrew if they're missing, builds the VM runner
(mcomp-vm) and the secrets vault from source, writes this Mac's settings, installs
metacomputer for Claude Code and Codex (whichever is installed), and builds the VM: about 1.5 GB of downloads (Ubuntu's
cloud image and packages, Cua Driver, the Go and Swift code the build needs),
unattended provisioning, then a clean snapshot.
- It starts the VM, runs
metacomputer status and a short self-test, and prints
three prompts to try. The VM is left running; metacomputer stop stops it, and
your agent starts it again when it needs it.
What you click or answer. On a Mac that already has Homebrew and Apple's
Command Line Tools: nothing. On a new Mac, press Enter when get.sh offers to run
Homebrew's installer, then Return and your Mac password in Homebrew's own
installer (it needs an administrator account); if the Command Line Tools are
still missing, click Install and Agree in Apple's dialog. get.sh itself
never asks for a password and never runs sudo.
Google Chrome goes into the VM next to Firefox, which means accepting
Google's terms. To leave it out:
curl … | bash -s -- --no-chrome.
How long it takes. Measured from scratch (nothing cached, no VM) on a Mac that
already had Homebrew, its packages and the Command Line Tools, on a fast
connection: 5 min 5 s, about 5 min 15 s, and 5 min 40 s. About a minute of that
is yours (pasting the command and reading what it printed); the rest runs
unattended. Estimates, not yet measured, for when it takes longer:
- Homebrew still has to install Go, GnuPG and ffmpeg: add 2-5 minutes;
- the connection is slower: at about 50 Mbit/s, 10-15 minutes in all;
- the Mac is brand new: 15-30 minutes, mostly Apple's and Homebrew's downloads,
of which about 5 minutes need you.
It needs about 15 GB of free disk and refuses to start with less (it checks each
disk it writes to). The install itself uses about 6 GB. Running it again is safe:
finished steps are skipped, and it never deletes a VM.
From Claude Code first. If you'd rather start in Claude Code, add the plugin: