A second Mac for your agent

localix-twin runs macOS virtual machines on your Mac that an agent, or you, can see, click, type into and run commands in. One binary, an MCP server, and a Claude Code plugin.

A real session, recorded live: a twin made, started, given commands, pictured and stopped.

What it does

Engine, screen, shell, images, agents, style

Engine

Its own engine, one binary

twin runs macOS on Apple’s Virtualization framework itself: no other VM tool to install. A twin is a copy-on-write clone of an image, made in a hundredth of a second and ready for commands about 16 seconds after twin up --wait.

$ twin create work --from tahoe-leancreated work from tahoe-lean$ twin up work --waitwork is up and ready in 15.7 s$ twin down workwork is down

Screen

It sees and clicks; you keep your screen

Screenshots, clicks, typing, keys, scrolling and drags go to the twin’s own screen, from the host. Nothing is granted inside the guest, and nothing touches the Mac in front of you. A full screenshot takes 10 to 40 ms.

A twin’s screen taken with twin screenshot: macOS in dark mode with a TextEdit window open on notes.md

Shell

Commands like your own shell

twin sh runs a command in the twin and gives back its output as it comes, its exit code, and your standard input. No terminal is opened in the guest. A command costs about 7 ms on top of its own work.

$ twin sh work -- 'sw_vers -productVersion; node -v; bun -v'26.6.2v26.14.01.4.5$ twin sh work -- 'for i in 1 2 3; do echo step $i; sleep 1; done'step 1step 2step 3

Images

Your own images, from Apple

twin image install downloads macOS from Apple and installs it. Scripts in the repository turn that into a golden image (an agent, automatic login, no sleep, no updates) and a developer one with Xcode’s command line tools, Homebrew, Node, Bun and Python.

$ twin image listtahoe         4 cpus, 8192 MiB  macOS from Appletahoe-golden  4 cpus, 8192 MiB  ready for an agenttahoe-dev     4 cpus, 8192 MiB  and the toolstahoe-lean    4 cpus, 4096 MiB  and quieter

Agents

For any agent, through MCP

twin mcp serves every command as a tool: list, create, up, down, screenshot, click, type, key, scroll, drag, wait, exec, put, get, style. A screenshot comes back as a picture. The Claude Code plugin is the first client, with skills on how to drive a twin.

Style

A clean screen for screenshots

A style profile sets the look: dark or light, the accent, the wallpaper, the Dock, desktop icons, the resolution. twin shows the plan first, programs with their arguments and no shell, then applies it in the guest.

$ twin style plan look.json --os macosappearance       dark appearanceaccent           blue accentwallpaper-set    set the wallpaperdock-autohide    dock autohidedock-size        dock icon sizedesktop-icons    desktop icons

Honest

What it needs, and what it doesn’t do yet

A Mac with Apple silicon. Apple allows two macOS guests at a time on one Mac. A running twin holds its memory plus about 1.5 GB on the host. Saving a running twin to resume it in a second does not work yet, and the first step of an image, Apple’s setup assistant, is still done by hand.

Documentation

6 pages →

Give your agent its own Mac

Free · MIT license

  1. Build twin

    cargo build --release, then scripts/sign target/release/twin to give it the right to run virtual machines.

  2. Install macOS

    twin image install tahoe downloads macOS from Apple and installs it, about 17 minutes once.

  3. Make a twin

    twin create work --from tahoe and twin up work --wait; add the plugin to drive it from Claude Code.