Run multiple Linux desktops on your machine or self-host them on a server you control. Each desktop is a Docker container with XFCE, Chromium, a noVNC viewer, and an HTTP daemon that lets agents operate the whole desktop.
Install Docker and Node.js 20 or newer, then run:
git clone https://github.com/tanav29/desktop.git
cd desktop
node desktop-cli.mjs new --name research --cpus 2 --memory 3g
node desktop-cli.mjs new --name coding --cpus 1.5 --memory 4gThe launcher builds the image on first use. It prints each desktop's API URL,
bearer token, noVNC URL, and separate viewer password. Once the container is
healthy in docker ps, open the printed noVNC URL and enter its password.
Each desktop has its own ports, configurable CPU and memory limits, and a
workspace at .desktop-workspaces/<name> mounted as /workspace. Stop and
start desktops independently with Docker. Removing a container keeps its
workspace on the host.
See the Docker guide for fixed ports, workspace settings, and lifecycle commands.
Give your agent the desktop's API URL and supply that desktop's bearer token
through your agent's secret configuration. Ask it to read GET /. The response
includes health information and a Markdown guide to operating the desktop.
| What the agent can do | Daemon endpoint |
|---|---|
| Launch GUI apps and run shell commands | POST /api/create, POST /api/cmd |
| Focus a window, type, paste, click, and drag in one request | POST /api/actions |
| Inspect windows and capture the current screen | GET /api/windows, GET /api/observe |
| Save screenshots and build recordings | POST /api/screenshot, POST /api/record/build |
Use any HTTP client or build the TypeScript SDK from source. See the Daemon API reference for request and response examples.
Run the same launcher on a Docker host and reach each desktop through an SSH tunnel. The launcher binds the API and noVNC ports to the host's loopback interface and generates separate per-desktop credentials by default.
The bearer token grants full desktop access, including commands that run as root inside the container. Give it to trusted agents and mount only a dedicated workspace. The included Compose file publishes its ports on all interfaces and leaves credentials unset by default. Follow the self-hosting guide for encrypted remote access and a loopback-only Compose configuration.
The image, launcher, daemon, SDK, and docs are developed in this public repository. Recent changes added authenticated named desktops, configurable resource limits, and agent instructions directly from the daemon. Follow the commit history or open an issue to report a bug or suggest an improvement.
| Directory | What it contains |
|---|---|
daemon/ |
Python HTTP daemon for desktop control |
novnc/ |
Browser viewer assets |
sdk/ |
TypeScript client for the daemon |
docs/ |
Documentation site and Markdown guides |