agent-desktop
Give an AI agent its own macOS account to work in.
It gets a real desktop — a genuine login session, not a virtual framebuffer — and
can see and click there through computer use. You watch it live in a browser and
grab control whenever you want. Nothing it does lands on your own screen.

Why a whole user account
The alternatives are worse. Driving your own desktop means fighting you for the
mouse. A VM means no real apps, no real logins, no real Keychain. A second macOS
account is the only thing that gives an agent somewhere real to work while
keeping a hard boundary around your own session — one macOS already enforces,
with per-account permissions you grant and revoke in System Settings.
How the pieces fit
agent account (a real macOS login, running in the background)
├── agensis-cu the hands: MCP server, screen capture + input
└── mac-vnc-server the eyes: streams that desktop
│
└── noVNC in a browser (websockify, or the viewer app's built-in bridge)
the agent itself runs anywhere (Claude Code, Codex, a relay)
and reaches the hands over MCP
Two separate channels on purpose. The agent drives through MCP; you watch
through VNC. Watching never blocks the agent, and you can always see what it is
doing.
Install
Prebuilt (signed + notarized): download
AgentDesktop-<version>-arm64.dmg from the repo's Releases page, drag
Agent Desktop to Applications, and launch it — skip the build steps below.
From source:
git clone <this-repo> agent-desktop
claude plugin marketplace add ./agent-desktop
claude plugin install agent-desktop@agent-desktop
Once it is pushed somewhere, claude plugin marketplace add <owner>/<repo>
replaces the clone step.
Then build everything (needs a Swift toolchain — install Xcode):
skills/agent-desktop-setup/scripts/install.sh
That builds the two hosts and AgentUser.app, and installs them into
/Users/Shared/agensis.
Use
Open AgentUser.app. It is one app with three faces, chosen by the account
it is running in and how far setup has got, so there is never a question of
which tool to reach for next:
| where | what you get |
|---|
| your account, setup unfinished | the wizard |
| the agent's account | the permissions wizard |
| your account, setup finished | the viewer |
The wizard polls the real state, so a step goes green when it is actually
true — never because you told it so. Adding an agent creates the macOS account
for you: the app's "Add an agent" sheet asks for your administrator password
once (the standard macOS prompt), generates the account, and shows you a
random password to type once at the login screen. Two steps stay yours, and
it says why on each: only the real login window can start a desktop session,
and the agent's permissions are granted inside its own account.
Why an app rather than another script: running inside the agent's account it
can ask macOS for the permissions itself, so the dialogs appear in front of
you. It also opens the right System Settings pane and reveals the binary
in Finder beside it — agensis-cu and mac-vnc-server are plain executables,
and macOS often will not list them until one is dragged in. That is the step
people lose the most time to, with nothing on screen to say so.
The viewer wraps noVNC and signs in for you with the stored password, and has
an "I'm driving" switch for when you take over.
If you would rather be walked through it in the terminal, /agent-desktop does
the same sequence, and SETUP.md is the written version.
The two steps that stay yours
- Creating the account, which needs admin rights.
- Logging it in via Fast User Switching, then switching straight back.
No script can do this, and a reboot means doing it again. The backgrounded
session keeps rendering, which is exactly what makes screen capture work.
Granting Screen Recording and Accessibility is also yours, but it happens
inside the agent account — easiest once the browser view is up.
Check status at any time:
skills/agent-desktop-setup/scripts/check-setup.sh
What bounds the agent
Only the macOS permissions you grant to agensis-cu inside that account.
Deny Screen Recording and screenshots fail, loudly. Nothing here works around a
denial or second-guesses a grant. The account is standard, not admin, so the
agent cannot administer the machine.
The one rule the skills enforce hardest: never send input into a session a
human is using. If you are connected to that desktop through the viewer, input
lands in whatever window you have focused.
Demo media