cmd/allternit-cloud-api/src/services/provisioning.rs), share one state machine, one metering table and one admin route, and boot the same Allternit Desktop app in provisioned mode, which pairs itself and holds the relay.
The
provider field on every computer (GET /api/v1/provisioned-instances) reads incus or orgo.
Since 2026-11-14 Platform runtimes and credits computers run on the standby host (ALLTERNIT_COMPUTE_PROVIDER_PLATFORM=incus, ALLTERNIT_COMPUTE_PROVIDER_CREDIT=incus); Orgo stays configured but unused (its plans sell per-computer slots). What users are told: “Hosted computers run on Allternit servers. They sleep when idle.” If a class is routed to Orgo again, change that line in the app, the console and these docs.
Route a class to a provider
Four classes of computers can be routed separately. Each variable isincus or orgo:
A class routed to Orgo lands only on an enabled
orgo:// host; every other class never lands on one. If no orgo:// host is enabled, the create fails with “No enabled orgo:// host is registered” and does not fall back to Incus.
Capacity fallback. When a new computer is routed to Orgo and Orgo has no room, cloud-api places it on the standby (Incus) pool instead. “No room” means any capacity refusal: Orgo’s own insufficient_memory, the running cap, the daily budget (unpaid classes only, see Guards), or a full orgo:// host ledger. The standby pool applies its usual admission: the host ledger, plus memory admission and idle sleep for free computers. Only when standby has no room either does the create answer 503 computer_capacity. This applies to creates only. A wake of an existing Orgo computer stays on Orgo, because its disk lives there, and answers 503 computer_capacity when Orgo is full.
Reserved hosts. host_mail (the production mail VPS) never receives a computer, even though it is a registered, enabled host. Add more host ids with ALLTERNIT_RESERVED_HOSTS (comma-separated). The rule is in select_host, so it covers every placement, Meetings pods included.
Two exceptions:
- Developer computers (
/v1/computers, see Hosted computer driver) always stay on Incus. They need the egress-filtered network profile, and Orgo has nothing like it. - A paid re-subscribe that restores a cancel snapshot stays on the Incus host that holds the snapshot image.
Add the Orgo host
- Put the Orgo API key in the cloud-api env as
ORGO_API_KEY(sk_live_…). It is never logged.ORGO_API_BASEoverrideshttps://www.orgo.ai/api(tests only). - Set
ALLTERNIT_ORGO_DESKTOP_DEB_URLto an https URL of the Allternit Desktop linux-x64.deb, andALLTERNIT_ORGO_DESKTOP_DEB_SHA256to its sha256. Without the URL no Orgo computer is created, so none is billed. - Register one host row for your Orgo workspace with the existing admin route:
- Restart cloud-api (or deploy) so it reads the env, then set the
ALLTERNIT_COMPUTE_PROVIDER_*variable for the class you want on Orgo.
Guards
Orgo computers reserve nothing in the host memory admission that Incus free computers use. These limits apply instead, to creates, wakes and paid starts:
Past either limit a new computer goes to the standby pool (see the capacity fallback above); a wake, or a create with standby full, answers
503 computer_capacity with Retry-After: 30. The message starts “Cloud computers are at capacity” and does not show the spend; the reason is in the cloud-api log. A paid computer that can’t be created for this reason sends the team an ops alert.
Orgo’s own refusal is the same answer. When Orgo returns HTTP 500 with code insufficient_memory (its host has no room for the size), a create or wake answers 503 computer_capacity with Retry-After: 30, and the Platform API relay answers it right away instead of runtime_starting after a long wait. The raw Orgo text stays in the cloud-api log.
The spend estimate is the running time in today’s metering sessions plus the time computers spend in first boot, times the hourly price of the computer’s Orgo size:
A computer’s size is the smallest Orgo cpu and ram at or above what it asks for. A Platform API runtime asks for Small. Stopped computers cost about 5% of the running price; the estimate leaves that out.
First boot
Orgo computers boot Orgo’s own Ubuntu 24.04 desktop image (custom images need Orgo’s top plan). They have no systemd and accept shell commands through Orgo’s bash API, at most 300 seconds per call. So cloud-api sets each one up after it is created:POST /computerswith hourly billing, the computer name set to our instance name, and our instance id as theIdempotency-Key.- Wait for
running, set Orgo’s idle auto-stop (best effort), and write/etc/allternit/bootstrap.json(the one-time pairing contract). - Write
cmd/allternit-computer-cloud/guest/orgo/setup.shto the computer and start it detached. cloud-api checks its state file every few seconds until it readsdoneorfailed. - The script installs supervisor if it is missing, downloads and installs the
.deb(checking the sha256), and replaces bundled sidecars that need a newer glibc than the computer has with the ones from the runtime feed. It then runs the app as the supervisord programallternit-desktop(ALLTERNIT_PROVISIONED=1 /usr/bin/allternit --no-sandbox, as root) on the X display Orgo’s desktop uses. Next to it, it installs the Factory pane engine (andallternit-nodewhen the runtime feed has it) from the runtime feed, using the sharedinstall-pane-engine.shthat cloud-api writes beside the script. See Cloud computer terminals. - The app reads the bootstrap file and pairs. The computer then shows
runtimeOnline: true.
provisioning until then, and the Platform API answers runtime_starting for a project runtime that is still being set up. The script can run again safely. Its log is /var/log/allternit-orgo/setup.log on the computer.
If first boot fails, the computer is stopped, its row goes to error with the reason (including the end of the setup log), its capacity is released, and the team gets an ops alert. That owner’s next create waits 15 minutes, then deletes the failed computer and makes a new one.
Idle, sleep and wake
Every computer on Orgo sleeps when idle, paid ones too:- Free computers and Platform API runtimes sleep after the free idle window (
ALLTERNIT_FREE_IDLE_MINUTES, 15 by default), as on Incus. - Paid and credit computers sleep after
ALLTERNIT_ORGO_PAID_IDLE_MINUTES(30 by default) with no relay activity. - Orgo’s own auto-stop is also set as a backstop:
ALLTERNIT_ORGO_AUTO_STOP_PAID(30m, also used for credit computers),_PLATFORM(15m) and_FREE(15m). Set one to empty to leave Orgo’s default.
POST /api/v1/provisioned-instances/:id/wake, or /start for a paid one) starts it again. The relay waits up to 90 seconds for an Orgo computer, because Orgo restores the disk from storage first. After the start, cloud-api runs /usr/local/sbin/allternit-orgo-ensure on the computer, which brings the app back under supervisord. A paid computer the owner stopped by hand stays stopped until they start it.
What Orgo computers don’t support
- Cancel snapshots. A cancelled paid computer on Orgo is stopped and kept, because it is the only copy of the disk. The 30-day sweep never deletes it. Delete it by hand (or through account erase) when it should go.
- Restore points and downloadable copies. These answer
501. - Resize while stopped. Orgo resizes only a running computer, and the disk only grows. A plan change on a stopped or sleeping computer applies at the next resize while it runs.
Compute gate and credit computers
These flags turn on the compute gate described in Account compute status API. All three are off by default, so a merge changes nothing until they are set. The prices, hours and retention below are the decided values (2026-11-13); clients read them fromGET /api/v1/account/compute-status, so changing the env changes every surface.
How credit billing works:
- A task in cloud-api ticks every minute. For each credit computer it debits the whole minutes since its billing cursor (
provisioned_instances.credit_billed_through): minutes the computer ran (from the metering sessions) at the running price, the rest at the stopped price. The debit, acredit_transactionsrow (source = credit_computer) and the cursor move happen in one transaction, so a repeated tick or a restart never charges a minute twice. - The wallet is clamped at $0. At $0 the computer stops, its status becomes
suspendedanddelete_afteris set to the end of the retention window. Suspended computers are not billed. Warnings are recorded at 24 hours and 2 hours of runway and on days 7 and 13 of retention; then the computer is deleted. - Starting it again with enough credits resumes the same computer, and billing starts from that moment.
POST /api/v1/provisioned-instances/freeanswers410 free_computers_retiredfor everyone except admins (ALLTERNIT_ADMIN_USER_IDS).
132_credit_computers.sql and 133_compute_gate.sql. Production skips sqlx migrations, so apply them by hand as described in Database migrations.