desktop-act
Computer-use primitives + multi-desktop pool + autonomous act() loop for
Claude Code. One MCP server, no API key.
desktop-act lets Claude (or any MCP client) drive a desktop: screenshot it,
click, type, scroll, launch apps, run a goal-driven loop. It is OS-agnostic —
a backend is selected at startup from platform.system():
- Linux (
X11Backend): python-xlib primitives + a pooled Xvnc/websockify
backend so you can spin up isolated desktops on demand, each streamed over
noVNC for live viewing.
- macOS (
MacBackend): screencapture for frames, cliclick/osascript
for input, and the single real logged-in session (no Xvnc pool). Built-in
Screen Sharing (VNC :5900) is bridged to noVNC via websockify when enabled.
- Windows (
WinBackend): Pillow ImageGrab for frames, pyautogui (or
ctypes SendInput fallback) for mouse/keyboard, EnumWindows for window
list, os.startfile / shell for launch. Single interactive desktop (lease
model matches macOS — no multi-seat VNC pool).
All tool signatures and return shapes are identical across backends, so callers
never need to know which platform they're on.
Auth path is Claude CLI OAuth via claude-agent-sdk — costs ride on a
Claude Max subscription, no ANTHROPIC_API_KEY needed.
Install
With claude-ops (recommended)
claude-ops ships
this plugin in the same ops-marketplace and co-installs it with ops:
/plugin marketplace add Lifecycle-Innovations-Limited/claude-ops
/plugin install ops@ops-marketplace
/plugin install desktop-act@ops-marketplace
# or let /ops:setup and /ops:update run scripts/install-companions.sh
The ops desktop-act-launcher.py resolves the marketplace checkout first, then
falls back to a per-user cache clone ($XDG_CACHE_HOME/desktop-act-mcp on
Linux, ~/Library/Caches/desktop-act-mcp on macOS, %LOCALAPPDATA%\desktop-act-mcp
on Windows) when $DESKTOP_ACT_REPO is set.
Standalone Claude Code plugin
/plugin marketplace add Lifecycle-Innovations-Limited/desktop-act
/plugin install desktop-act@desktop-act
Manual
git clone https://github.com/Lifecycle-Innovations-Limited/desktop-act.git
# Point your MCP host at desktop-act/mcp-server/run.sh (stdio transport)
The first invocation auto-bootstraps a Python venv at ${CLAUDE_PLUGIN_ROOT}/.venv
(or $DESKTOP_ACT_VENV if set) from requirements.txt (Python 3.11+).
System dependencies
Linux (X11Backend)
You need an X11 stack and a VNC server reachable as Xvnc (TigerVNC):
# Amazon Linux 2023 / RHEL / Fedora
sudo dnf install -y tigervnc-server websockify metacity xterm python3
# Ubuntu / Debian
sudo apt install -y tigervnc-standalone-server websockify metacity xterm python3-venv
Optional but recommended: openbox, xdotool, firefox, nautilus,
libreoffice (whatever GUI apps you want to drive).
macOS (MacBackend)
Input is driven by cliclick; everything
else (screencapture, osascript, open) is built into macOS.
brew install cliclick
# Optional — for a live noVNC view bridged off built-in Screen Sharing:
brew install websockify # (or: pip install websockify)
Required macOS permissions (System Settings → Privacy & Security):
- Screen Recording — for
screenshot/observe/act_step (the
screencapture capture path). Without it, captures fail with
could not create image from display.
- Accessibility — for
click/type_text/keypress/scroll (the
cliclick and System Events input path).
Grant both to the host process driving the MCP server (your terminal, Claude
Code, etc.). For a live view, optionally enable Screen Sharing (System
Settings → General → Sharing → Screen Sharing); acquire_desktop still returns
a session without it and surfaces a vnc_hint.
Windows (WinBackend)
Runs against the logged-in interactive session (same machine the MCP host
is on). No Xvnc pool — multi-agent exclusive leases still apply, but there is
only one real desktop (win-main).
# Python 3.11+ (see pyproject.toml requires-python); venv from requirements.txt
py -3 -m venv .venv
.\.venv\Scripts\pip install -r requirements.txt
# pyautogui is installed only on win32 (see requirements marker)
Requirements / limits:
- An interactive desktop session (console or RDP with a real desktop). Pure
headless / Session 0 service accounts cannot drive GUI input.
- Optional: install a browser or app you want
launch_app to start
(chrome, notepad, path to .exe / .lnk).
pyautogui is preferred; if it is missing, WinBackend uses ctypes
SendInput + clipboard paste for type_text.
- Multi-seat isolation is Linux-only. On Windows, concurrent agents share one
screen and must coordinate via leases (
ensure_desktop / heartbeat_desktop).