Computers
Every browser task a bot runs happens on a computer: a real Chrome the bot drives while you watch, approve risky steps, or take over. This page covers where those computers run, how they stay fast, and how they scale.
API (agent loop + action gateway) ──CDP──▶ backend
├─ chrome one local Chrome per task (dev, single host)
├─ remote any CDP browser: Lightpanda, a Chrome container
└─ controld a computer per workspace: Firecracker microVM
(prod) or Docker container (dev), warm pool
The agent, the gateway that judges every action, the audit trail and the live view sit above the backend and don't change between them.
Your own browser
In the desktop app, Settings → Computer access → Where bots browse lists the Chromium-based browsers installed on the computer (Chrome, Brave, Edge, Arc, Chromium). Pick one and the bot's computer runs there instead of the cloud, while the app is open:
- The API queues a
browser_opencall for that person's online desktop app with a one-time secret. - The app starts the browser with its own Biscuit profile (never the personal one) and DevTools on
127.0.0.1only. - The app opens two outgoing WebSockets, to that DevTools port and to
GET /v1/cdp/{session}?k=SECRETon the API, and relays messages between them. - The API joins that socket to chromedp through a loopback listener that serves a single connection.
Nothing on the person's computer listens to the network. The secret works once and expires after 30 seconds. The agent, the action gateway, the request guard, the audit trail and the live view are unchanged. When the app isn't open, bots use the cloud browser. Safari and Firefox aren't offered: they don't speak the Chrome DevTools Protocol.
controld: a microVM per workspace
biscuit-controld (services/api/cmd/biscuit-controld, package internal/controld) runs the computers on
one host:
- One machine per workspace. It's started on its first task and shared by that workspace's concurrent tasks, each in its own tab. Workspaces never share a machine.
- Isolation. With the Firecracker driver, each computer is a microVM with its own kernel, a read-only
root filesystem and a private
/30network. The host firewall (host-setup.sh) lets VMs reach the internet but not the host, the LAN, cloud metadata or each other, so the API can setBISCUIT_COMPUTER_ISOLATED=1. - One door. The API connects to
ws://controld:9300/v1/computers/{owner}/cdpwith a bearer token, and controld relays the WebSocket to that workspace's Chrome. Nothing else is exposed.
Why it feels instant
| Where time could go | What controld does |
|---|---|
| Booting a machine for a new workspace | Warm pool. CONTROLD_WARM machines (default 2) are booted ahead of time with no owner. The first task takes one in microseconds, and the pool refills in the background. |
| Booting again for the next task | Sticky machines. A workspace keeps its machine for CONTROLD_IDLE_TTL (default 10 min) after its last task, so follow-ups start on a hot Chrome. |
| Copying a disk per VM | No copies. Every VM boots the same read-only rootfs.ext4; everything writable lives in tmpfs and disappears with the VM. |
| Ten tasks arriving at once | One boot. Concurrent requests for the same workspace wait on a single start rather than racing. |
| A provider's per-minute token limit | Retry, don't fail. The model gateway waits out a 429 (Retry-After) and retries, and Groq and Gemini cover for each other. |
Measured locally (Docker driver, Apple Silicon): a new workspace's first browser step 3.0 s after the task
was sent, model thinking included, with no boot on the user's clock (controld_warm_hits_total).
Running it
Development (macOS or any Docker host). The Docker driver runs each computer as a
chromedp/headless-shell container:
docker build -f services/api/Dockerfile.controld -t biscuit-controld:dev services/api
docker run -d --name biscuit-controld --network <api-network> \
-v /var/run/docker.sock:/var/run/docker.sock \
-e CONTROLD_TOKEN=$(openssl rand -hex 24) -e CONTROLD_DOCKER_NETWORK=<api-network> \
biscuit-controld:dev
Then point the API at it:
BISCUIT_COMPUTER=on
BISCUIT_COMPUTER_BACKEND=remote
BISCUIT_COMPUTER_CDP_URL=ws://biscuit-controld:9300/v1/computers/{owner}/cdp
BISCUIT_COMPUTER_CDP_TOKEN=<the same token>
Production (Linux with KVM: bare metal, or an instance with nested virtualization).
- Build the VM disk on any Linux machine with Docker:
services/api/deploy/microvm/build-rootfs.sh. It writesout/rootfs.ext4(Chromium +biscuit-init) and fetches a Firecracker guest kernel (out/vmlinux). - On the host, copy both to
/var/lib/biscuit-controld/. Installbiscuit-controldto/usr/local/binandhost-setup.shto/usr/local/lib/biscuit-controld/. - Put
CONTROLD_TOKEN=…and sizing in/etc/biscuit-controld.env. Installdeploy/microvm/biscuit-controld.serviceand runsystemctl enable --now biscuit-controld.
controld checks for /dev/kvm, the kernel, the rootfs and the firecracker binary at startup, and says
exactly what's missing.
Scaling out
Run one controld per host and list them all in the API, comma-separated:
BISCUIT_COMPUTER_CDP_URL=ws://c1:9300/v1/computers/{owner}/cdp,ws://c2:9300/v1/computers/{owner}/cdp
- Routing. The API picks a host per workspace by rendezvous hashing. A workspace always lands on the same host, so its warm machine is reused.
- Adding a host. Only about 1/n of workspaces move to the new host. There's no coordinator and nothing to rebalance.
- When a host is full. It answers
503withRetry-After, and the bot's task reports that computers are busy. - Sizing. Firecracker's overhead per VM is a few MiB, so memory is the limit. Allow Chrome's working
set (~300–600 MB per busy workspace) and set
CONTROLD_CAPACITYto what the host's RAM allows.CONTROLD_WARMspares count toward that capacity.
Teach a task
Show a bot how to do something once and it drafts a skill from what you did.
- Open the bot's computer full screen and press Teach. You take control and a red Recording pill counts up. Click, type, scroll and open pages as usual.
- Each input is stored as a
humanstep with the page URL, the element's label and a stable selector hint (test id, role+name, an id, or a short CSS path), resolved under the click point in the page. Typed text is never kept: it is stored as‹typed›with its length, and anything typed into a password, one-time code or card field as‹secret›. No audio. - Press Stop (recording also stops by itself after 10 minutes, or when you hand back), then Make a skill. The default model reads the step log as data, never as instructions, and writes a draft skill: When to use, Inputs, Steps, Done when, Ask before. It needs the browser and opens in the skill editor for review before you publish it.
API: POST /v1/computer/{id}/teach {action: start|stop} and POST /v1/computer/{id}/skill-draft
(see API.md). Bot steps record their page URL too.
Operating it
- List machines:
GET /v1/computers(with the token) shows each machine's owner, state (starting · busy · idle), users, age and idle time. - Stop one:
DELETE /v1/computers/{owner}stops a workspace's machine now. - Metrics:
GET /metricsexposescontrold_computers{state=busy|idle|starting|warm},controld_capacity,controld_starts_total,controld_start_failures_total,controld_warm_hits_total,controld_stops_idle_totalandcontrold_start_seconds_sum. Alert when warm hits stop growing while starts do: the pool is too small for the arrival rate. - Shutdown:
SIGTERMstops every machine before exit. On start, the Docker driver removes computers an earlier controld left behind.
Credentials
Bots sign in with logins people save in Settings → Vault (or through the secure form a bot posts in chat). The model never sees a value:
- The planner lists usable logins as
name (hosts)and offersfill_credential {id, item, field}. - The gateway allows it only when the current page's host equals one of the login's hosts or is a
subdomain of one; anything else (including lookalikes like
example.com.evil.io) is denied with a reason. The host is checked again right before typing, in case the page navigated. - The API opens the sealed value at that moment and types it into the focused field the same way a person's secret input is typed: the field is masked, and the value is redacted from every later snapshot. One-time codes are computed server-side from the saved TOTP seed (RFC 6238, SHA-1, 30 s).
computer_actionsrecords onlyitemandfield; turns, history, state, SSE and logs never carry the value. Each use adds an activity line naming the item.- Single sign-on, passkeys, security keys and human checks still hand over to the person.
Settings
| Variable | Default | |
|---|---|---|
CONTROLD_DRIVER |
docker |
docker or firecracker |
CONTROLD_ADDR |
:9300 |
listen address |
CONTROLD_TOKEN |
— | required bearer token (empty only in development) |
CONTROLD_CAPACITY |
8 |
machines on this host, warm spares included |
CONTROLD_WARM |
2 |
spares kept booted for new workspaces |
CONTROLD_IDLE_TTL |
10m |
stop a workspace's machine this long after its last task |
CONTROLD_MAX_AGE |
6h |
refresh machines this old once they're idle |
CONTROLD_START_TIMEOUT |
45s |
boot + Chrome ready |
CONTROLD_MEM_MIB, CONTROLD_VCPUS, CONTROLD_CPUS |
1024, 2, — |
per machine |
CONTROLD_DOCKER_NETWORK, CONTROLD_DOCKER_IMAGE |
—, chromedp/headless-shell |
Docker driver |
CONTROLD_FC_BIN, CONTROLD_FC_KERNEL, CONTROLD_FC_ROOTFS |
firecracker, —, — |
Firecracker driver |
CONTROLD_FC_SUBNET, CONTROLD_FC_RUN_DIR, CONTROLD_FC_BOOT_LOG |
172.30.0.0/16, /run/biscuit-controld, off |
Firecracker driver |