Computer use and desktop sharing
Computer use lets an agent on a worker click, type, take screenshots, and drive applications with a UI. Agents can also drive a browser when the worker has Chrome or Chromium installed. Desktop sharing lets authorized viewers watch or take control of the agent's desktop from Cursor. For the product behavior on managed Cloud Agents, see Capabilities.
Both features are explicit opt-ins and are never enabled by the server. Computer use currently requires a Linux worker; see Requirements.
Install dependencies
On each Linux worker, install the desktop packages. Cursor does not install system packages for you:
sudo apt-get install -y --no-install-recommends \ dbus-x11 ffmpeg tigervnc-standalone-server \ x11-utils x11-xserver-utils xdotool xfce4xdotool, ffmpeg, and the X11 utilities are always required. tigervnc-standalone-server and xfce4 are needed when the worker creates a desktop itself: the managed display for computer use on headless machines, and the isolated desktop for desktop sharing.
Install Chrome or Chromium (optional, recommended) for browser computer use.
For pools, bake the packages into your worker image so every machine comes up ready.
Enable computer use
Start the worker with --computer-use:
agent worker --computer-use startPool workers take the same flag:
agent worker --computer-use --pool gpu startChoose the X11 display
The worker resolves the display for computer use in this order:
--display <display>. Require an existing X11 display, for example:0. If the display isn't reachable, worker start fails instead of falling back.- Inherited
DISPLAY. Without--display, the worker reuses a reachableDISPLAYfrom its environment. If it isn't reachable, the worker falls back to a managed desktop. - Managed desktop. With no display configured, the worker starts its own TigerVNC desktop running an Xfce session. This is the default on headless machines and needs the
tigervnc-standalone-serverandxfce4packages.
# Reuse a desktop you already runagent worker --computer-use --display :0 start# Let the worker create a managed desktop (headless machines)agent worker --computer-use startShare the agent desktop
To let authorized viewers watch or control the agent desktop from Cursor, add --share-desktop:
agent worker --computer-use --share-desktop start--share-desktop takes an optional mode: view (watch only) or view_and_control (viewers can take mouse and keyboard control, the default). Sharing uses a worker-created, isolated agent desktop, not the machine's own session, and requires tigervnc-standalone-server. A fail-closed input filter on the machine enforces control, and clipboard transfer stays blocked.
Pixels leave the machine only through the worker's existing outbound connection. No inbound ports open.
Verify the setup
Run the preflight report. It checks each required binary, whether the configured display is reachable, and whether the worker can fall back to a managed desktop:
agent worker debugNext steps
- API reference: endpoints for workers, pools, the pending-request queue, and worker tokens.
- Cloud Agent capabilities: desktop and browser control on managed Cloud Agents.