/v1/computers lets outside developers create Allternit computers and drive them with the computer and browser toolsets. The developer guide is Hosted computers. This page covers what Allternit runs.
How a call travels
- The developer’s key hits cloud-api
POST /v1/computers/{id}/toolset(cmd/allternit-cloud-api/src/routes/platform_v1/computers.rs). - cloud-api checks the project flag, the
computersscope, the spend cap and the per-key cap. - It relays the call, signed as the computer’s owner, to the computer’s own allternit-api executor at
/api/v1/computers/this-device/toolset. That is the same relay hosted agents use. - The executor runs contract validation, the control lease, policy, approval, the audit row and then the action. cloud-api never runs an action itself.
- A 409
approval_requiredgoes back to the developer. The project owner approves it in the console, or a key does when the project’sapproval_modeisapi_key.
platform-drv:<computer id>, never a person’s account. It sleeps when idle and wakes on the next call (POST /v1/computers/{id}/start wakes it too).
Where they run (Eoj, 2026-10-08)
Developer computers always run on our own Incus hosts, never on Orgo, whateverALLTERNIT_COMPUTE_PROVIDER_* says: they need the egress-filtered network below. See Compute providers.
Developer computers run on the Mail VPS (host_mail, Incus at https://127.0.0.1:8443 from cloud-api on the same host), not on allternit-standby. Customer cloud computers stay on standby. The split is ALLTERNIT_HOSTED_DRIVER_HOSTS=host_mail: that host takes only developer computers, and developer computers go only there.
The Mail VPS also runs the prod Postgres, prod allternit-api, MinIO, the trading services and three qemu VMs, so the developer pool is hard-capped:
Headless image
Developer computers bootallternit-computer-headless (ALLTERNIT_HOSTED_DRIVER_IMAGE), not the full allternit-cloud-computer desktop. It’s built from the cloud computer image by cmd/allternit-computer-cloud/guest/build-headless-computer-image.sh: the desktop session (XFCE, LightDM, VNC, the screen mux) and the services a developer computer doesn’t use (printing, Avahi, Tailscale, the subscription gateway) are masked. The Allternit app runs as allternit-headless.service in provisioned mode on a bare Xvfb :0 (allternit-xvfb.service, 1280×800, no window manager). It still redeems the bootstrap token, holds the relay and runs allternit-api, gizzi-code, the computer-use sidecars and Chrome. The Factory pane engine and allternit-node come from the base image; the build reruns install-pane-engine.sh (optional FACTORY_BIN / NODE_BIN replace them). See Cloud computer terminals.
The computer toolset drives that screen through the Allternit Driver that ships in the image (phase D1b): the driver runs as allternit-driver.service on a shared session bus (allternit-session-bus.service, so the app, the AT-SPI registry and the driver see the same accessibility world on the bare Xvfb), and serves read_ui/act/run_batch/verify plus the pixel members over /run/allternit/driver.sock. allternit-api reaches it through the guest exec channel and falls back to xdotool/scrot only when the driver doesn’t answer. Agent browsers are not headless: each agent gets its own bare Xvfb display (:10 and up) with Google Chrome headed on it and a profile that is kept between runs. There is no VNC on this image, so a run’s live view is the driver’s screenshot of that run’s display. See Agent browsers on Linux.
The Xvfb still starts at boot because the current Linux app (1.1.x) segfaults on Chromium’s headless Ozone platform when it opens its window. When the app can run without a window, drop allternit-xvfb.service from the image; allternit-api already starts the screen on demand.
Rebuild it on the Mail VPS after a new cloud computer image or allternit-api:
bash cmd/allternit-computer-cloud/guest/validate-image.sh allternit-computer-headless then proves the driver service, its hello capability report, a populated read_ui, and that the pane engine answers on the socket allternit-node is given, on the new image (it launches a throw-away local container; never run it against the fleet).
Internal service token (Desktop and cloud computers)
gizzi adds its bundledallternit-connectors and allternit-tools MCP servers only when ALLTERNIT_INTERNAL_SERVICE_TOKEN is set (cmd/gizzi-code/src/runtime/tools/mcp/bundled.ts). Those servers carry the phone (phone_text, phone_call), mail (allternit_mail_*), agent_knowledge_search and agent_channel_post tools. allternit-api checks the same token on /internal/connectors/mcp and /internal/tools/mcp (internal_auth.rs). With no token, every call answers 401.
The Allternit app sets it for every runtime it hosts: a personal Desktop, and every cloud computer, which runs the same app headless (this includes Orgo computers that host Platform API agents).
- Desktop main makes one 32-byte token on first launch and saves it encrypted at
<userData>/auth/internal-service-token(mode 0600). It reuses the token on every launch, so an API or gizzi that is already running and gets adopted still matches. An unreadable file is moved aside and replaced. An exportedALLTERNIT_INTERNAL_SERVICE_TOKENtakes priority over the saved one. - The same value goes to the allternit-api sidecar (first start, crash respawn and Restart backend) and to gizzi (
surfaces/allternit-desktop/src/main/internal-service-token.ts). - gizzi also gets
ALLTERNIT_USER_ID= the runtime’s paired owner. That is the signed-in user’s id on a personal Desktop andplatform:<project_id>on a Platform API project computer. gizzi sends it asx-allternit-user-id. allternit-api listsphone_text/phone_callonly for an owner who has a number, and finds Platform agents under that owner. Before the runtime is paired, the owner is not set, and gizzi falls back tolocal-dev-useruntil it restarts. - The fabric worker (
gizzi-code fabric-worker) does not use MCP and does not get the token.
curl -s 127.0.0.1:4096/mcp. The output must list allternit-connectors and allternit-tools. If it shows {}, the runtime started without the token.
Host setup (Mail VPS)
cmd/allternit-cloud-api/deploy/incus/dev-pool-mailvps.sh does the one-time setup, after backing up the Incus config, iptables rules and the cloud-api .env to /root/backups/dev-pool-<time>/: the btrfs pool cow, the egress script below, the host_mail ledger row, and the cloud-api env. It restarts nothing; the next cloud-api deploy (or systemctl restart allternit-cloud-api) picks up the env.
Launch flag
Nothing works untilplatform_projects.hosted_driver_enabled is true for the project. Every route answers 404 hosted_driver_disabled until then, except GET /v1/computer_settings. Developers can’t set the flag. Turn it on by hand:
Configuration (cloud-api env)
Free pool memory and capacity
Free computers, and the hosted runtime behind each Platform API project (ownerplatform:<project_id>), reserve only disk in the host ledger, so awake free computers are checked against host memory when they start. A create or wake is admitted only if the memory of paid computers on the host, plus the free computers that are running, waking or provisioning, plus this one, fits under the host total minus headroom. If it does not, the longest-idle running free computer on that host (idle at least 2 minutes, never the one being started) is put to sleep with reason pool_full, and the check runs once more. Still full: 503 computer_capacity with Retry-After: 30. The Platform API sends the same code and header for runtime_starting.
4 GB minimum
No Allternit computer is created or woken with less than 4096 MB of memory. The floor is the constantMIN_COMPUTER_MEMORY_MB, and it applies to free computers, the hosted driver and project runtimes, and to paid and credits computers. An env value below 4096 is raised to 4096.
A computer that already exists with less memory is raised to 4096 MB the next time it wakes, before the capacity check. If the resize fails, it wakes at its old size and the next wake tries again. The raise applies to free, project runtime and hosted driver computers on Incus. It does not apply to Orgo computers or to paid computers.
The floor changes no price. A computer minute is a flat rate and does not depend on memory.
Because each awake computer now reserves 4096 MB, a host fits fewer awake computers at once. Expect computer_capacity sooner when a host is full.
A project runtime that never connected is replaced at most three times (after 5, 15 and 45 minutes), and not while a new one would be refused for capacity.
The provisioned-instance view also returns
provider (incus, or the endpoint scheme), sleeps_when_idle, state_detail (waking or null) and retry_after_seconds (null).
Egress rules
Hosted-driver computers must not reach private networks: RFC1918,100.64.0.0/10 (our mesh), link-local 169.254.0.0/16 (this includes the metadata address 169.254.169.254), loopback, IPv6 ULA and link-local ranges, and the host’s own addresses.
Incus enforces this with a network ACL on a dedicated managed bridge. Run the setup once per fleet host that takes hosted-driver computers:
allternit-hosted-driver-egress (which also rejects the host’s own global IPv4 addresses), an nft table inet allternit_drv_guard that lets the bridge send the host only DHCP and DNS (so Postgres 5432, MinIO 9000/9001, allternit-api, SMTP 25, the Incus API and the qemu VNC ports are closed to these computers on every host address), the unit allternit-drv-guard.service that restores it and the Docker DOCKER-USER accepts at boot, the bridge allternit-drv0 (default 10.231.0.1/24; override with HOSTED_DRIVER_SUBNET) and the profile allternit-hosted-driver. DNS to the bridge gateway stays allowed.
If a host doesn’t have the profile, Incus refuses to create the computer, so a hosted-driver computer can’t start without the filter.
Metering
There are two meters:computer_minute (running minutes, recorded on each call, stop and delete) and computer_action (one per executed toolset call). Both count toward usage at $0 until prices are set. They’re in the Stripe dry-run plan as pending meters, and --apply doesn’t create them.