Instant, resettable Windows, Ubuntu and Arch Linux ARM desktop VMs for AI agents on Apple Silicon.
Runs on your machine from its package; the steps are below.
At most: moves money, runs code or commands, deletes data, or sends messages for you.
Odel charges nothing per call. The publisher may charge for its own service.
Runs locally over stdio
This server isn't hosted — your MCP client launches it from a package registry. Use one of the commands below, or drop the config into your client (e.g. Claude Desktop).
Distributed as an MCP bundle (`https://github.com/pawanpaudel93/agentpc/releases/download/v0.1.12/agentpc-0.1.12.mcpb`) — download it and import the bundle in your MCP client.
Instant, resettable Windows, Ubuntu and Arch Linux ARM desktops for AI agents, on your Mac.
Website: https://agentpc.pawanpaudel.com.np
agentpc gives AI agents (Claude Code, Claude Desktop, Codex, Cursor, Gemini CLI, VS Code, or any MCP client) real desktop computers to work in: create a VM in seconds, let the agent click, type, take screenshots and run commands, then reset it to a clean state. It is a single Rust binary that runs VMs with QEMU on Apple's hypervisor and serves them to agents over MCP.
reset returns a VM to a clean state just as fast.agentpc mcp-install sets up the popular ones.agentpc create ubuntu --open or MCP open_in_browser: true to open it in the Mac’s
default browser after readiness; neither opens a tab by default.ubuntu-x86apps / arch-x86apps run
x86_64 Linux programs and amd64 containers through FEX.127.0.0.1 only.| Requirement | Details |
|---|---|
| Hardware | Apple Silicon Mac (M1 or later; tested on M4) |
| OS | A macOS version QEMU supports: the current one and, for up to two years, the previous one (tested on macOS 15) |
| Runtime | QEMU from Homebrew (the installer handles it, installing Homebrew too if needed) |
| Memory | 4 GB per running Ubuntu or Arch VM, 8 GB per running Windows VM |
| Disk | ~10 GB per Ubuntu or Arch image, ~30 GB per Windows image (each including its snapshot) |
curl -fsSL https://agentpc.pawanpaudel.com.np/install.sh | sh
The installer:
agentpc to ~/.local/bin (no sudo) and adds it to your PATH,agentpc mcp-install),agentpc doctor.To upgrade later, run agentpc update (or agentpc update --check to just look); rerunning the
installer works too. Installer options:
| Variable | Effect |
|---|---|
AGENTPC_VERSION=0.1.0 | Install a specific version |
AGENTPC_INSTALL_DIR=<dir> | Install somewhere other than ~/.local/bin |
AGENTPC_NO_MCP=1 | Skip registering the MCP server |
To build from source instead, see Development.
Ubuntu:
agentpc create ubuntu # first run: downloads (~1.2 GB) and prepares the image; then ~1 s per VM
Arch Linux ARM:
agentpc create arch # first run: downloads and prepares the image; then ~1 s per VM
Windows: Microsoft's license doesn't allow redistributing Windows images, so each Mac builds its own once. agentpc downloads the official Windows 11 ARM64 ISO from Microsoft (7.3 GB, checksum-verified) unless you already have one:
agentpc image build windows # once: download + ~12 min install; or pass --iso <path>
agentpc create windows # ~4 s per VM
Then ask your agent something like:
uname -a."To watch a VM yourself, open the viewer URL printed by agentpc info <name>.
agentpc is an MCP server (agentpc mcp, stdio). One server handles every VM.
In Claude Code, install the agentpc plugin. It bundles the MCP server with a skill that teaches Claude when and how to use the VMs:
/plugin marketplace add pawanpaudel93/agentpc
/plugin install agentpc@agentpc
The plugin runs the installed agentpc binary, so install that first
(see Installation). When the plugin is installed it already registers the MCP
server for Claude Code, so agentpc mcp-install skips Claude Code to avoid a duplicate.
Register it with every supported agent that's installed (the installer does this):
agentpc mcp-install # or pick: agentpc mcp-install claude claude-desktop codex
Supported: Claude Code, Claude Desktop, Codex, Cursor, Gemini CLI and VS Code (restart Claude
Desktop after registering). Updating an existing JSON mcpServers.agentpc or Codex
[mcp_servers.agentpc] entry preserves custom environment/options while refreshing the
managed command and arguments, and keeps the comments and blank lines around them. Config
is written through a private temporary file. Invalid config is refused, not replaced;
multiline TOML values are edited as complete values. For any other MCP client, add:
{
"mcpServers": {
"agentpc": { "command": "agentpc", "args": ["mcp"] }
}
}
This repository also contains project-level configs (.mcp.json, .codex/config.toml,
.cursor/mcp.json, .gemini/settings.json, .vscode/mcp.json), so agents opened in a clone
pick the server up automatically.
| Tool | Description |
|---|---|
list_vms | VMs (owner, state, size, checkpoints, viewer and, for running x86apps VMs, x86_tso) and the available images with their OS versions |
create_vm | Create a VM (optionally of a given version, size, or offline) and wait until its desktop is ready. Retrying it with the same name and image in the same session returns the VM already created, booting it if it was stopped. open_in_browser: true opens its viewer in the Mac’s default browser after readiness (default false; per-call only). Browser-launch failure warns without failing creation |
start_vm / stop_vm | Boot a stopped VM / shut one down cleanly |
reset_vm | Discard all changes: back to a fresh copy of the image |
checkpoint_vm / restore_vm | Save a VM's disk and memory under a label; go back to it in seconds |
delete_checkpoint | Delete one checkpoint by label; the VM is untouched |
delete_vm | Delete a VM with its disk and checkpoints |
take_screenshot | PNG screenshot from the hypervisor; save_to also writes it to a path on your Mac |
run_command | Run a command (PowerShell on Windows, bash on Ubuntu and Arch); returns exit code, stdout and stderr. A foreground run is killed at timeout (default 120 s) with partial output; background: true returns a job id for get_job_status |
get_job_status | Check a background job by its id: running, exited (with its code), stopped, or ended without an exit code, plus the tail of its log |
stop_job | Stop a background job and everything it started (its systemd scope on Linux, which detached processes can't leave; its process tree on Windows). For a job that already exited, it stops only what the job left running |
upload_file / download_file | Copy files or folders between your Mac and a VM |
forward_port | Reach a server running in a VM from your Mac (TCP over an SSH tunnel, works even for servers bound to the guest's own 127.0.0.1; or protocol: "udp" for a UDP server listening on 0.0.0.0) |
list_forwards / delete_forward | List a VM's active port forwards / stop one by its host port (and optional protocol) |
read_vm_log | Read the tail of a VM's qemu or serial log, for when a VM won't boot or the desktop is unreachable |
list_desktop_tools | List the desktop-control tools inside a VM, with each one's required arguments and whether it's read-only; a wrong name returns close matches |
use_desktop_tool | Call one of them: click, type, launch apps, read the UI tree, … A call with wrong arguments or a wrong name returns the tool's arguments or close matches |
If a desktop-tool reply starts with a reconnect note (the VM or its driver restarted), earlier
snapshot ids and browser sessions are gone: take a new snapshot and run browser_prepare again.
VMs an MCP session created, started, reset or restored are stopped (never deleted) when the
session ends, unless AGENTPC_KEEP_RUNNING=1. If the session's server was killed instead, the
next MCP server to start stops them; list_vms marks such VMs owner_running: false, and
create_vm with the same name and image hands one back to the session that asks. Session shutdown is
bounded at about 45 s per VM (lock wait, ACPI shutdown, then a forced quit); a VM another
session has taken over is left alone.
Every desktop action goes through use_desktop_tool, which is marked destructive, so clients that
confirm tool calls ask before each click or keystroke. To approve agentpc's tools up front:
| Client | Setting |
|---|---|
| Claude Code | Allow mcp__agentpc (all of its tools) with /permissions, or in permissions.allow in settings |
| Codex | default_tools_approval_mode = "approve" under [mcp_servers.agentpc] in ~/.codex/config.toml |
| Gemini CLI | "trust": true on the agentpc server in ~/.gemini/settings.json |
| Others | The client's own tool-approval settings |
That approves every agentpc tool, including upload_file and download_file, which read and write
files on your Mac. The VMs themselves are throwaway: reset_vm undoes anything done inside one.
| Guest | Desktop | Desktop-control server |
|---|---|---|
| Windows | Windows 11 (ARM64), 1280x800, Edge | cua-driver (over SSH) |
| Ubuntu | Ubuntu 24.04 or another release, XFCE on X11, 1280x800, Google Chrome; double-clicking a .deb installs it | cua-driver (over SSH) |
| Arch | Arch Linux ARM (rolling), XFCE on X11, 1280x800, Chromium; sudo pacman -Syu --noconfirm <pkg> | cua-driver (over SSH) |
AGENTS.md has usage tips for agents.
Commands that act on VMs take several names (agentpc stop a b), check them all before
doing anything, and carry on past a failure (exit status 1 if any failed). Every command has
--help.
| Command | Description |
|---|---|
agentpc create <image> [name] [--memory GB] [--cpus N] [--offline] [--open] | Create a VM from ubuntu, windows, arch or a version such as ubuntu-22.04; fetches Ubuntu and Arch images if missing. A name is up to 64 letters, digits, . - _. --memory is 2–64 GB, --cpus 1–16 (default 4); a non-default size boots cold instead of resuming. --offline: no internet or access to this Mac. --open (alias --open-in-browser): open the ready VM’s viewer in the Mac’s default browser; off by default |
agentpc list [--json] (ls) | VMs and images; --json gives the same data as the MCP list_vms tool |
agentpc info <name> | Viewer URL (with the VNC password), SSH and VNC details, checkpoints, and on x86apps VMs how x86 programs run (x86 programs: FEX, hardware|emulated TSO) |
agentpc start <name>… | --all | Boot stopped VMs |
agentpc stop <name>… | --all | Shut VMs down cleanly; disks are kept. An Arch image captured before agentpc handed the power button to logind waits out a ~3 min timeout on each stop until agentpc image snapshot <image> refreshes it |
agentpc reset <name>… | Discard all changes: back to a fresh copy of the image |
agentpc rm <name>… (delete) | Delete VMs with their disks and checkpoints |
agentpc checkpoint <name> <label> [-d] | Save a VM's disk and memory (a running VM pauses ~5 s), or delete a checkpoint |
agentpc restore <name> <label> | Put a VM back exactly as it was at a checkpoint (resumes in seconds) |
agentpc ssh <name> [command] | Run a command, or open a shell with no command |
agentpc screenshot <name> [file] | Save a PNG screenshot |
agentpc cp <src> <dst> | Copy files; the VM side is <name>:<path>, e.g. agentpc cp app.msi windows-1:Downloads/ |
agentpc forward <name> <guest-port> [host-port] | Forward 127.0.0.1:<host-port> to a port in a running VM (over SSH). --udp forwards UDP instead (to a guest server on 0.0.0.0). --list shows a VM's forwards; --rm <host-port> stops one (add --udp/--tcp to pick a protocol) |
| Command | Description |
|---|---|
agentpc image pull <image> | Download a published image, e.g. ubuntu, ubuntu-22.04, ubuntu-x86apps, arch, arch-x86apps or a pinned ubuntu-24.04-YYYYMMDD / arch-rolling-YYYYMMDD. Pulling again after a failure resumes, reusing the parts already verified |
agentpc image build <image> [--iso <path>] | Build an image locally (Ubuntu ~3 min, Arch ~6 min, ubuntu-x86apps ~8 min, arch-x86apps ~10 min, Windows ~12 min + ISO download) |
agentpc image ls (list) | List local images with their OS versions |
agentpc image info <image> | Version, source, build date and desktop server of an image |
agentpc image rm <image>… (delete) | Delete local images (refused while VMs, or a build, pull or snapshot, use one) |
agentpc image snapshot <image> | Apply this agentpc's guest setup to the image and recapture the snapshot VMs resume from (build and pull do this); its VMs must be deleted first |
agentpc image push <image> | Maintainers: publish an Ubuntu or Arch image to ghcr.io |
| Command | Description |
|---|---|
agentpc mcp | Run the MCP server on stdio (what agents launch) |
agentpc mcp-install [clients…] | Register the MCP server with agents (skips Claude Code when the plugin is installed; raises Codex's MCP timeouts so slow builds and boots don't trip it) |
agentpc mcp-uninstall [clients…] | Remove it from agents again |
agentpc update [--check] | Update to the latest release (checksum-verified; images and VMs are kept; agentpc list then marks images whose guest setup is older, and agentpc image snapshot <image> refreshes one). Alias: upgrade. If the binary's directory isn't writable, it suggests sudo agentpc update or reinstalling with AGENTPC_INSTALL_DIR |
agentpc doctor | Check prerequisites, with the macOS and QEMU versions (warns below macOS 15, where x86apps VMs get emulated TSO, and below QEMU 9.0) |
agentpc clean [-n] | Free disk space: downloads fetched again when needed (ISOs, cloud images, the ~830 MB Arch Linux ARM tarball), leftovers of interrupted builds, pulls or checkpoints, and other versions' TSO libraries. Never touches images or VMs, and keeps what a running build, pull or push uses ("kept …"); lists images no VM uses |
agentpc uninstall [--keep-data] [-y] | Remove agentpc (see Uninstalling) |
agentpc completions <shell> | Print tab completion for bash, zsh or fish, e.g. agentpc completions zsh > ~/.zfunc/_agentpc |
An image is a read-only disk with the OS, desktop and agent tools installed. Every VM is a copy-on-write clone of an image, so a VM starts from a clean install and costs only a few MB.
Images are named <os>-<version>, and several can be installed side by side; each VM
remembers which one it came from. A bare ubuntu means ubuntu-24.04, a bare arch means
arch-rolling, and a bare windows (or windows-11) means windows-11-25h2. To save a 12-minute build, create and
image info fall back to your newest installed Windows 11 image if 25H2 isn't built. Pin the
full name when the release matters, e.g. in test harnesses.
| Image | Source | How to get it |
|---|---|---|
ubuntu = ubuntu-24.04 | Official Ubuntu 24.04 cloud image | image pull (automatic on first create) or image build |
ubuntu-<release> | Any release in cloud-images.ubuntu.com/releases, e.g. 22.04, 26.04 | image build ubuntu-22.04, or image pull if published |
ubuntu-x86apps = ubuntu-24.04-x86apps | Ubuntu 24.04 that also runs x86_64 and i386 Linux programs (see x86_64 Linux programs) | image pull (automatic on first create; built locally, ~8 min, if the download fails) or image build ubuntu-x86apps |
ubuntu-22.04-x86apps | 22.04 with x86 programs (x86apps is for 22.04 and 24.04 only) | image build ubuntu-22.04-x86apps, or image pull if published |
arch = arch-rolling | Arch Linux ARM (a community port of Arch), installed from its aarch64 tarball in an Ubuntu helper VM | image pull (automatic on first create; built locally, ~6 min, if the download fails) or image build arch (needs the Ubuntu image, fetched if missing) |
arch-x86apps = arch-rolling-x86apps | Arch Linux ARM that also runs x86_64 and i386 Linux programs (see x86_64 Linux programs) | image pull (automatic on first create; built locally, ~10 min, if the download fails) or image build arch-x86apps |
windows-11-25h2 (windows) | Windows 11 25H2 (Home/Pro), 7.3 GB ISO from Microsoft | image build windows |
windows-11-24h2, windows-11-23h2 | Earlier Windows 11 releases (Home/Pro) | image build windows-11-23h2 |
windows-<name> | Your own Windows 11 ARM64 Home/Pro ISO | image build windows-<name> --iso <path> |
Only ARM64 Windows runs at native speed on Apple Silicon, so x64-only releases aren't offered,
and Windows 10's ARM64 build hangs at boot on Apple Silicon, so Windows 11 is the minimum.
The unattended install uses the Home/Pro setup key, so Enterprise and LTSC ISOs aren't
supported. An ISO in ~/Downloads is used when its file name shows the release being built;
--iso with a release name must match it too (a 24H2 ISO can't become windows-11-25h2).
Windows runs unactivated (a watermark, nothing else); activate it with your own key if you
need to.
Images are clean installs, like a customer's new PC: Windows has no Visual C++ redistributable,
no .NET (only the built-in .NET Framework 4.8.1) and no PowerShell 7. A program that runs on
your machine but fails in a VM with a missing VCRUNTIME140.dll or similar is missing a
dependency its installer should provide. Microsoft's evaluation ISOs aren't offered: they install already expired and shut
down every hour.
Microsoft serves only its current ARM64 ISOs; the older ones download from archive mirrors
(archive.org, bobpony.com). Every ISO is checked against a pinned SHA-256, so a mirror can't
substitute a modified file, and kept in ~/.agentpc/cache. All are en-us; for another
language, download it yourself and pass --iso.
agentpc image build ubuntu-22.04 # ~3 min
agentpc create ubuntu-22.04 # VMs from different versions run side by side
Each image records what it is (agentpc image info <image>):
{
"os": "windows",
"version": "Windows 11 Pro 25H2 (build 26200.6584)",
"version_id": "11-25H2",
"arch": "arm64",
"base": "Windows 11 25H2 (Home/Pro) ISO, ARM64, en-us",
"built": "20260927",
"agentpc": "0.1.0",
"desktop_server": "cua-driver 0.30.3",
"iso_sha256": "32cde007…"
}
Published images live in one package, ghcr.io/pawanpaudel93/agentpc, tagged by image
name. Windows images can't be redistributed:
| Tag | Meaning | Pull with |
|---|---|---|
ubuntu-24.04 | Newest build of Ubuntu 24.04 (also tagged ubuntu) | agentpc image pull ubuntu |
ubuntu-<release> | Newest build of another release | agentpc image pull ubuntu-22.04 |
ubuntu-24.04-YYYYMMDD | One specific build (pinned; can't be built locally) | agentpc image pull ubuntu-24.04-YYYYMMDD |
ubuntu-24.04-x86apps | Newest build of Ubuntu 24.04 with x86 programs | agentpc image pull ubuntu-x86apps |
ubuntu-24.04-x86apps-YYYYMMDD | One specific build (pinned; can't be built locally) | agentpc image pull ubuntu-24.04-x86apps-YYYYMMDD |
arch-rolling | Newest build of Arch Linux ARM (also tagged arch) | agentpc image pull arch |
arch-rolling-YYYYMMDD | One specific build (pinned; can't be built locally) | agentpc image pull arch-rolling-YYYYMMDD |
arch-rolling-x86apps | Newest build of Arch Linux ARM with x86 programs | agentpc image pull arch-x86apps |
arch-rolling-x86apps-YYYYMMDD | One specific build (pinned; can't be built locally) | agentpc image pull arch-rolling-x86apps-YYYYMMDD |
A pinned build is download-only: image build refuses it, and a create whose download fails
doesn't fall back to building today's instead. Short names work too (ubuntu-x86apps-YYYYMMDD
is ubuntu-24.04-x86apps-YYYYMMDD). A push updates rolling tags but leaves an
existing dated tag untouched, even after recapturing the local image. The dated tag
still selects its original publication, not necessarily the current rolling image.
Publishers on different machines must serialize pushes for a new date: without
registry-side immutable tags, a tag check and creation are not atomic.
| Variable | Default | Description |
|---|---|---|
AGENTPC_HOME | ~/.agentpc | Where images, VMs, keys and caches live |
AGENTPC_IMAGE_REPO | ghcr.io/pawanpaudel93/agentpc | Package for image pull/push (tagged by image name) |
WIN_ISO | an earlier download, a matching ISO in ~/Downloads, else a download | Windows ISO used by image build windows-… without --iso |
Each VM gets its own ports on 127.0.0.1, derived from its slot number n (an existing VM
moves to its new ports the next time it starts):
| Port | Use |
|---|---|
47000 + n | SSH |
47200 + n | noVNC WebSocket (for the viewer) |
47300 + n | VNC |
8100 | Browser viewer, shared by all VMs |
The guest login is agent / agent for the desktop and sudo; SSH takes only agentpc's key
(password logins are off). Each VM also has its own VNC password (see
Security).
start after stop is a normal boot; reset resumes a fresh copy again.agentpc checkpoint <name> <label> --delete removes one, and deleting the VM removes all of them.create checks free disk and RAM up front and checkpoint checks disk;
restore is atomic (a failed one leaves the VM as it was) and resumes a VM that was left paused;
operations on one VM are serialized, and a stale pid file from a crash is detected rather than
trusted. The guest clock follows the Mac's time zone. SSH keepalives hold long calls open, a
desktop tool call gives up after 120 s, and a viewer that won't start no longer fails a VM
start. The browser viewer (noVNC) is downloaded against a pinned checksum.qemu-img check before it replaces the
current image.C:\OEM\failed.txt and C:\OEM\setup.log in the guest) instead of timing out.cua-driver telemetry enable in the VM.~/.agentpc/cache/alarm for the next build (agentpc clean removes it).ubuntu-x86apps and arch-x86apps, guests/<os>/x86apps.sh builds
FEX (tag and commit pinned there) from source as a static-pie with
guests/ubuntu/fex.patch (so x86 containers work) and installs an x86 root filesystem: Ubuntu's
as a squashfs the kernel mounts read-only at boot (not FEX through FUSE, which a sandboxed
service can't), Arch Linux's unpacked so fex-pacman can add packages to it.
QEMU for these VMs loads src/hvf_tso.c, which turns on the CPU's TSO mode; agentpc checks
the result after each boot and tells FEX, which falls back to emulating x86 memory ordering
when TSO is off.agentpc doctor.agentpc screenshot <name>, or open the viewer URL from
agentpc info <name>.~/.agentpc/instances/<name>/: qemu.log (QEMU errors) and
serial.log (guest console).agentpc reset <name>.image build/pull/rm refuses: VMs still depend on that image; agentpc rm them
first. Build and rm also refuse while a running build uses the image (an Arch build runs in
a clone of the Ubuntu image), and rm while a pull or snapshot of it runs; try again when it
finishes. A pinned …-YYYYMMDD image can only be pulled.agentpc image build <image>.agentpc update can't write to its directory (e.g. a root-owned /usr/local/bin): run
sudo agentpc update, or reinstall there with AGENTPC_INSTALL_DIR=<dir>.Each VM sits behind QEMU's user-mode NAT, so VMs are isolated from each other but share the Mac's network (a VPN or proxy configured on the Mac applies to a VM's outbound traffic).
agentpc forward <name> <guest-port> [host-port]
(MCP: forward_port), then connect to 127.0.0.1:<host-port>. It tunnels over SSH, so it
reaches a server bound to the guest's own 127.0.0.1 and the Windows firewall doesn't apply.
A forward lasts until the VM stops or you remove it (--rm <host-port> / delete_forward);
--list (MCP: list_forwards) shows a VM's forwards.--udp (MCP: protocol: "udp"). A UDP
forward is a QEMU host forward rather than an SSH tunnel, so it reaches the guest's network
address (10.0.2.15): the server must listen on 0.0.0.0, not 127.0.0.1, and on Windows
it needs a firewall rule. It's dropped on stop, restore and reset like a TCP forward, and
isn't available on offline VMs.10.0.2.2 is the Mac host — the NAT maps it to the Mac's
loopback, so a dev server listening on 127.0.0.1 or 0.0.0.0 is reachable at
10.0.2.2:<port> from inside the VM.forward_port(B, guest_port, host_port)), then from the other VM connect to
10.0.2.2:<host_port>. For UDP pass protocol: "udp" and have B's server listen on 0.0.0.0.--offline / offline: true) can't reach 10.0.2.2 or the internet, but
TCP ports you forward from the Mac still reach them. UDP forwards don't work there: the
offline network drops every UDP datagram the guest sends, replies included.HTTP_PROXY
and HTTPS_PROXY inside the guest, and import your corporate root CA with
Import-Certificate (Windows), update-ca-certificates (Ubuntu) or
sudo trust anchor --store <cert> (Arch).Rebooting a guest (a Windows Update install, some installers) drops the SSH connection. Call
start_vm on the same VM — it waits until the desktop is ready again even when the VM is
already running — or simply retry run_command once it's back.
GUI installers return immediately. Run them silently and wait for the process:
Start-Process installer.exe -ArgumentList '/S' -Wait -PassThru (the switch varies:
/S, /silent, /quiet), then check its ExitCode. A run_command process ends when
the command returns, so start servers and GUI apps with background: true.
Windows Update is disabled in the image (the wuauserv service is stopped and set to
Disabled, and the NoAutoUpdate policy is set) so updates never interrupt a task. This also
blocks optional features that fetch from Windows Update — DISM /online (e.g. .NET 3.5) and
Add-WindowsCapability (RSAT, language packs; OpenSSH is already installed). To use one,
re-enable it temporarily and set it back afterwards:
Set-Service wuauserv -StartupType Manual; Start-Service wuauserv
# … Add-WindowsCapability / DISM …
Stop-Service wuauserv; Set-Service wuauserv -StartupType Disabled
Defender real-time protection is on. agentpc only disables SmartScreen, not Defender, so
Defender may quarantine a freshly built or unsigned test binary. Exclude your work directory
with Add-MpPreference -ExclusionPath C:\work, or turn real-time monitoring off with
Set-MpPreference -DisableRealtimeMonitoring $true (Tamper Protection may block the latter).
x64 apps run through emulation. The guest is Windows 11 ARM64. x64 and x86 programs (installers, desktop apps, CLIs) run through Windows' built-in Prism emulation, roughly 2–4× slower than native; x64 drivers, kernel-mode software and anti-cheat don't run. Prefer an ARM64 build when a download offers one.
sudo pacman -Syu --noconfirm <pkg> (Arch doesn't support partial upgrades).
The first -Syu may upgrade the whole system, so give run_command a longer timeout or
background: true; after a kernel upgrade, reboot (start_vm) before loading new modules./tmp is a tmpfs, cleared at every boot (unlike Ubuntu's); keep files elsewhere.The Ubuntu and Arch guests are arm64. For x86_64 (and i386) Linux programs, create a VM from
the ubuntu-x86apps or arch-x86apps image (agentpc create ubuntu-x86apps, or create_vm
with version: "x86apps"). It adds FEX, which translates each x86 program
to arm64 as it runs; the kernel and desktop stay native. Run the program directly (./tool).
agentpc list --json (list_vms) shows which a VM got as
x86_tso: hardware or emulated. FEX keeps translated code in ~/.cache/fex-emu, so a
program's second start is several times faster than its first.sudo apt install libfoo:amd64 (the image has amd64 package sources set up),
or an amd64 .deb with sudo apt install ./app_amd64.deb; its install scripts (run by the
native dpkg) see an x86_64 machine in uname -m, arch and dpkg --print-architecture, so
vendor packages that check pass. Installing an amd64 library can
upgrade its arm64 twin, since both must be the same version. Arch has no multiarch, so on
arch-x86apps x86 programs use FEX's x86 Arch Linux tree, and
sudo fex-pacman -Sy --noconfirm --needed <pkg> installs more x86 packages into it (the x86
pacman, run in a chroot, pinned to that tree's Arch Linux Archive date so nothing is
partially upgraded).GODEBUG=asyncpreemptoff=1; the image sets it for
x86 programs.zygote_host error: FEX can't create the namespaces Chromium's sandbox uses. Launch them
with --no-sandbox (e.g. code --no-sandbox).sudo pacman -Syu --noconfirm docker && sudo systemctl start docker) and run docker run --platform linux/amd64 <image>.
FEX runs them from the image's own x86 files.StateDirectory= or a private /tmp/fex-emu-<uid>). A
unit with MemoryDenyWriteExecute= or LockPersonality= would stop FEX, as it stops any JIT,
so a systemd generator (/etc/systemd/system-generators/agentpc-fex) relaxes those two for
every unit whose ExecStart is an x86 program; native services keep them, and systemctl cat
shows the drop-in. A unit that runs its x86 program another way (a script) needs
sudo fex-unit <unit> (--undo removes it); without it the service dies at start with a
SIGSEGV inside FEX and an AArch64 core dump, which looks like an application crash. With
ProtectSystem=strict, give the unit a writable directory (StateDirectory= or PrivateTmp=).uname -m run unmodified under the x86 bash:
sudo FEXBash ./install.sh. Its uname, useradd, systemctl and other tools then run as
x86 programs, so the script sees an x86_64 machine. For a paste block
(curl ... | sudo VAR=... bash -s -- args), start FEXBash and paste it there: the real
sudo is setuid and runs natively, so FEXBash puts its own sudo first on PATH, which has
the real one start the command through FEXBash and keeps it x86.Guests have a fixed 1280x800 display, a 2D-only virtio GPU (no 3D/GPU acceleration; WebGL is software-rendered or unavailable), and no audio device.
agentpc uninstall # asks first; -y skips the prompt
This stops all VMs, removes the MCP server from every agent mcp-install registered it with,
deletes ~/.agentpc (images, VMs, checkpoints and keys; --keep-data keeps them) and the
agentpc binary. It leaves shared things alone and lists them: the PATH line the installer
added (~/.local/bin is used by other tools too), QEMU (brew uninstall qemu if nothing else
needs it) and the Claude plugin (/plugin uninstall agentpc@agentpc).
To only reclaim disk space, agentpc clean deletes what can be downloaded again, and
agentpc image rm <image> deletes an image you no longer use.
127.0.0.1 only.vnc-pass, mode 0600, in its instance dir). The viewer URL
from agentpc info <name> carries it (&password=…) so the browser viewer connects without a
prompt; a native VNC client (vnc://127.0.0.1:<port>) asks for it — copy it from that URL or
read ~/.agentpc/instances/<name>/vnc-pass.agent / agent for the desktop and sudo. SSH takes only
agentpc's key, since every VM's SSH port is reachable from the other VMs and local users.~/.agentpc is private to you (0700): it holds guest disks, RAM checkpoints and the SSH key.#, which no request sends, and is
only given out when the server on port 8100 is agentpc's own. Commands verify
the viewer with a fresh HMAC-SHA256 challenge; the private identity key is never served
over HTTP, and an observed response cannot authenticate a different challenge.10.0.2.2, services on your Mac. Create
a VM with --offline (offline: true in create_vm) to cut both off, e.g. for untrusted
software; SSH, the viewer and forwarded ports keep working.list_vms, take_screenshot, list_desktop_tools,
get_job_status, list_forwards and read_vm_log are read-only, and tools that discard or overwrite state (including download_file, which writes
to your Mac) are marked destructive, so clients can auto-approve or confirm accordingly.cargo build --release # target/release/agentpc
scripts/check.sh # all CI checks, including site SEO/link checks
scripts/smoke.py --bin target/release/agentpc # drives fresh VMs through the MCP server
python3 scripts/lifecycle-stress.py --bin target/release/agentpc --rounds 3
The lifecycle stress suite requires an existing, current Ubuntu snapshot; it never downloads or builds images. It briefly holds an idle image lock to delay cloning, checks that queued start/delete calls wait for initialization, and verifies a one-worker MCP server remains responsive. It then races named creates, starts, stops and deletes and checks killed-session orphan recovery and graceful session shutdown. It uses only uniquely named task-owned VMs, deletes them afterward, and refuses to start when unrelated running orphan VMs could be reaped. Logs omit raw MCP responses and viewer credentials. CI checks its syntax; VM tests run locally on Apple Silicon.
Run the smoke test after changing guest scripts, the desktop driver or the MCP gateway (rebuild the affected images first). It checks that guests open apps without first-run dialogs, that the desktop tools read and type, and that the gateway explains bad arguments.
Guest provisioning files in guests/ are embedded into the binary. AGENTS.md
describes the code layout for contributors and coding agents.
main, run scripts/release.sh X.Y.Z (needs gh logged in,
Node for npx, and jq). It sets the version everywhere (skipped when Cargo.toml is
already at X.Y.Z), runs the CI checks, builds dist/ (binary tarball, MCP bundle
agentpc-X.Y.Z.mcpb, their .sha256 files, a filled-in server.json and NOTES.md,
the release notes grouped from the Conventional Commit subjects since the last tag), then
asks before it commits chore: release vX.Y.Z, tags vX.Y.Z, pushes main and the tag,
and creates the GitHub Release. --dry-run stops after building dist/.ubuntu, ubuntu-x86apps, arch and arch-x86apps): log oras in with a
token that can write packages (gh auth refresh -s write:packages, then
gh auth token | oras login ghcr.io -u <user> --password-stdin), then for each image run
agentpc image build <image> and agentpc image push <image>. A push uploads 64 MB parts,
retries failures and links the package to this repo; make the package public once in its
settings.brew install mcp-publisher, mcp-publisher login github,
then mcp-publisher publish dist/server.json.MIT © 2026 Pawan Paudel