Architecture
How each Docker desktop connects to agents, browsers, and its host workspace.
Agent / TypeScript SDK ── HTTP ──> Daemon ──> Shell and desktop input
│
XFCE on Xvfb
│
Browser <──────── noVNC <──────── x11vnc
Container /workspace <── bind mount ──> Host workspace
One container per desktop
Each container runs its own XFCE session, daemon, and noVNC viewer. The named
launcher gives each desktop a separate workspace and configurable CPU and
memory caps. The desktop name is available at GET /api/identity. Clients
connect to the published API address and use its bearer token.
| Port inside the container | Service |
|---|---|
6080 | noVNC viewer at /vnc.html |
8095 | Daemon HTTP API |
5900 | Internal x11vnc service |
The launcher maps the API and noVNC to free localhost ports unless you specify fixed ports. Use the addresses printed at launch. Run multiple desktops
How agents control the desktop
The daemon runs inside the container and uses xdotool for input, ImageMagick
for screen capture, and Bash for shell commands. It accepts HTTP requests
from your agent directly or through the TypeScript SDK.
POST /api/actions can wait for a window, focus it, and perform several
keyboard and mouse actions in one request. GET / returns the instructions
an agent needs to start.
What persists
The named launcher maps /workspace to .desktop-workspaces/<name> by default.
Files there survive container removal and recreation. Starting a fresh
container resets changes outside the workspace, such as packages installed
after launch.
For network bindings, credentials, and remote access, see Self-hosting and security.