Home / Blog / Twin – macOS VMs on Apple Silicon your agent can see, click…
Tech News

Twin – macOS VMs on Apple Silicon your agent can see, click and record

Localix Lab released localix-twin, a free MIT-licensed tool for running Apple Silicon macOS virtual machines with VNC control, MCP, and 60 fps video.

By Dillip Chowdary • Dec 06, 2026 • Source: github.com

Twin – macOS VMs on Apple Silicon your agent can see, click and record
Image: github.com

At a glance

Product
localix-twin (twin CLI and MCP server)
Developer
Localix Lab
License and price
Free, MIT license
Requirements
Apple silicon Mac, macOS 15 or newer
VM limits
Max 2 macOS VMs, 4096 MiB default RAM
Benchmarks
Under 60 ms screenshot, under 20 ms click

Localix Lab has released localix-twin on GitHub, an open-source tool that gives AI agents and developers a dedicated macOS virtual machine on Apple silicon Macs. Packaged as a single binary named twin, it combines a command-line interface, a Model Context Protocol server, and a Claude Code plugin so agents can see, click, type, record video, and execute shell commands without touching the host screen.

This article covers how twin installs and runs on macOS 15 or newer, its command-line capabilities and performance budgets, and its integration with GitHub Actions and MCP clients. It is intended for engineers building computer-use agents, desktop app test suites, automated demo recorders, or ephemeral macOS CI runners on local Apple hardware.

01Quick start and installation on Apple Silicon

Running a twin requires a Mac with Apple silicon on macOS 15 or newer, and Localix Lab distributes a signed and notarized binary archive named twin-macos-arm64.tar.gz for installation into ~/.local/bin. Developers who prefer building from source can clone the repository and compile it with Rust using cargo build --release, though they must run scripts/sign on the binary to attach the virtualization entitlement required to boot any VM.

  1. Install the binary Download and extract twin-macos-arm64.tar.gz into ~/.local/bin and add that directory to PATH.
  2. Download macOS Run twin image install tahoe once to fetch macOS from Apple, which takes about 30 minutes.
  3. Launch a VM Run twin create work --from tahoe followed by twin up work --wait to boot the guest.
  4. Capture the screen Run twin screenshot work to save a frame and print the resulting PNG file path.

02Screen control, commands, and video recording

Every twin command operates on the virtual machine's own display or guest agent, and accepts a --json flag that outputs a single JSON value. Failures return a structured error code such as unreachable, timeout, or not_found alongside a non-zero exit code. According to bench/budgets.json and the twin bench tool, a held 2048x1536 frame renders as a screenshot in under 60 ms, while a click reaches the guest screen in under 20 ms.

CapabilityCommandBehavior
Screen capturetwin screenshotSaves a PNG frame or region using exact click coordinates
Input controltwin click, type, key, doSends clicks, drags, scrolls, key chords, or batched steps
Guest shelltwin sh, put, getStreams command output in milliseconds and transfers files
Screen synctwin waitBlocks until screen updates stop without a fixed delay
Video capturetwin recordWrites Retina MP4 up to 60 fps with optional --camera zoom
Styling and statetwin style plan, list, showConfigures theme, Dock, and packages or inspects VM uptime

03Ephemeral GitHub Actions runners and MCP agents

Advertisement

Tech Pulse Daily

Get tomorrow's pulse first

Join engineers who read Tech Pulse before stand-up. Free, weekday mornings.

Localix Lab includes a workflow for running ephemeral self-hosted GitHub Actions jobs inside a fresh twin that boots in 20 to 35 seconds. Using the gh CLI on the host, an operator pipes a registration token into stdin so it never appears on a command line, downloads actions-runner-osx-arm64-2.338.2.tar.gz, and runs config.sh with --unattended and --ephemeral for jobs targeting runs-on: [self-hosted, macOS, twin]. Once ./run.sh finishes, twin rm discards the VM and any leftover artifacts.

For AI agents, twin mcp exposes one tool per command over stdio, and twin_screenshot returns the image directly so the agent can view it in the same turn. Claude Code users can install localix-twin@localix-lab from localixai/plugins, which locates twin via $TWIN_BIN, PATH, or target/release/twin and adds three skills for driving a twin, styling it for screenshots, and recording demos with the live camera.

04Virtualization framework, VNC, and vsock architecture

Under the hood, twin runs each guest using Apple's Virtualization framework as an instant copy-on-write clone of the base macOS image. Screen operations including screenshots, clicks, typing, scrolling, dragging, and waiting travel from the host to the VM's built-in VNC server, meaning the agent needs neither Screen Recording nor Accessibility permissions on the host Mac.

Shell commands, file transfers, and video recording take a separate path over a virtual socket, or vsock, directly to twin's guest agent without opening windows or typing on screen. When tearing down a session, twin down shuts macOS down in about 6 seconds. For external environments, twin attach can also drive VMs in UTM or Parallels, cloud Macs, or Linux machines running a VNC server.

05Image contents, resource limits, and security caveats

The default image logs in automatically as the user twin with dark theme enabled, sleep and automatic updates disabled, and Siri, Spotlight indexing, and Apple Intelligence turned off. It comes preloaded with Xcode command line tools, Homebrew, git, Node with npm and pnpm, Bun, Python with uv, jq, ripgrep, fd, and gh, while style profiles can re-enable services such as spotlight when needed.

Each running twin consumes its allocated memory, which defaults to 4096 MiB unless overridden with --memory, plus roughly 1.5 GB of host overhead, while clone disks occupy no space until modified. Because Apple limits a single Mac to two concurrent macOS VMs, one host can run at most two CI runners at once. Localix Lab publishes twin.localix.ai and the code under the MIT license for free, noting that Linux guests on the vz engine are planned next.

Note: A twin is designed to be thrown away and is not safe for storing secrets, because the guest account twin uses the password twin and has passwordless sudo. Inside the guest, AppleScript automation and screencapture permissions are pre-granted for agents signed as ai.localix.twin.

Frequently asked questions

What are the system requirements for running localix-twin?

You need a Mac with Apple silicon running macOS 15 or newer. Downloading the base macOS image with twin image install tahoe takes about 30 minutes, while booting a copy-on-write clone takes 20 to 35 seconds.

Does twin require Screen Recording or Accessibility permissions on the host Mac?

No. Screen interactions such as screenshots, clicks, typing, and waits go through the virtual machine's own VNC server from the host, so your host screen and permissions remain untouched.

How many macOS virtual machines can run on one Mac at the same time?

Apple allows at most two macOS virtual machines simultaneously on a single Mac. Each running twin uses its configured memory, 4096 MiB by default, plus about 1.5 GB of overhead.

Can localix-twin run Linux virtual machines?

Not yet on Apple's vz engine, though Linux guest support is planned next. However, twin attach can already connect to and drive an existing Linux machine that runs a VNC server.

Is it safe to store credentials or secrets inside a twin?

No. The guest user is named twin with the password twin and passwordless sudo access, so Localix Lab recommends treating every twin as a disposable machine.

Sources

Dillip Chowdary

Author

Dillip Chowdary

Writes Tech Bytes coverage of AI, engineering, and the tools that actually ship. Editor of Tech Pulse Daily.

Related on Tech Bytes

Advertisement

5-min tech signal

Weekday briefing for engineers who skip the noise.

No spam · Unsubscribe anytime

Advertisement

✈️ CareerPilot

Your AI job-search copilot

Match your resume against live Ashby, Greenhouse & Lever openings — fit scores, job-specific resume optimization and email alerts.

Find matching jobs →

Free Tools

Browse all tools →