Orkestia
Blog
Runners

Browser groups and cloud seats

purpose=browser — runner groups that hold cloud Chromium seats for agents, on Orkestia's cluster or in your App Host site, with logins that survive and approvals for every send

A browser group is a runner group with purpose=browser. It holds seats: cloud Chromium browsers that agents drive with the same browser_* tools as a paired Chrome. A seat keeps its own profile disk, so a site you log in to once stays logged in the next time the seat starts.

Use a seat when the work should not depend on someone's laptop being open: a Staff actor that checks a portal every morning, or an app that gives each of its users a browser of their own. Use your own Chrome when the agent should work in the session you already have open.

Browser groups are created for you. Do not create one in the runners wizard: the Browser sessions choice there asks for a connection and a backend, but seats always run on Orkestia's cluster (or in your site's namespace) and ignore both. Turn browsers on from Organization → Browsers or with browser.org.enable.

Two kinds of browser group

Organization browsersSite browsers
Turn on withOrganization → Browsers → Turn on Orkestia browser, or browser.org.enableapphost.addon.browser.apply on an App Host site
Where seats runOrkestia's clusterYour site's namespace, as the site's own operator
Who gets seatsMembers and Staff actors of the organizationEnd users of the site's identity app, one workspace at a time
Seat sizeFixed: 0.1 CPU / 512 MiB requested, up to 1 CPU / 2 GiB, 1 GiB diskThe add-on's sku (table below)
Default browserThe first seat becomes the organization's defaultA site seat never becomes the organization default

Both kinds are stored as a runner group with backend_type=kubernetes, purpose=browser and integration_type=none. The server enforces those three values and turns agent scheduling off on the group, so a browser group never hosts agent sessions or CI jobs.

Organization browsers

browser.org.enable takes no input. It creates the group if the organization has none and, when a person calls it, leases a first seat named Browser and makes it the default. Calling it again returns already_enabled.

The console card says it plainly: the platform provides the cluster, you do not choose a namespace.

Site browsers

apphost.addon.browser.apply   site_uuid, sku = small | medium | large
apphost.addon.browser.status  site_uuid
apphost.addon.browser.remove  site_uuid
skuRequestedLimitProfile disk
small0.1 CPU / 512 MiB1 CPU / 2 GiB1 GiB
medium0.25 CPU / 1 GiB1 CPU / 3 GiB2 GiB
large0.5 CPU / 2 GiB2 CPU / 4 GiB5 GiB

Apply again with another sku to resize: new and recreated seats take the new size. Seats in a site reach DNS and the public internet only, never private address ranges, and run with no Kubernetes token.

The apply result returns the site's workspaces and a warning when no end user could get a seat yet (the site has no identity app, or the app has no workspaces).

apphost.addon.browser.remove deletes every seat of the site with its profile disk. The logins on those disks are gone; there is no backup.

Seats

A seat has a name (up to 80 characters, default Browser) and, optionally, the Staff actor that uses it. Its state is idle, joined (someone has the live view open) or released.

ActionWorkflowWhat happens
Get a seatbrowser.runner.lease (runner_group_uuid, optional name, actor_uuid, make_default)Starts the browser. A name that was released before comes back with the same disk, so it is still logged in
Renamebrowser.runner.rename (lease_uuid, name)Same browser, same disk. Refused if another live seat already has that name
Releasebrowser.runner.release (lease_uuid)Stops the browser and keeps the disk for the next lease of that name
Deletebrowser.runner.delete (lease_uuid)Stops the browser and deletes the disk (its logins) and the stored snapshots
Make defaultbrowser.org.set-default (lease_uuid)Agents that do not name a seat use this one
Listdata.browser.runner.listYour seats, with is_default

One person (or actor, or end user) can hold several seats with different names. Each name has one live seat and one disk at a time. Remove on the Browsers page releases a seat; it does not delete the disk.

Watching a seat

browser.runner.join returns a view_url that opens the live view in the console. While the view is open the seat is joined, and browser.runner.frame returns a live screenshot. data.browser.runner.snapshot returns the last stored screenshot, even after the seat was released. Agents' commands run whether or not anyone is watching.

Sends wait for the seat's person

A seat approves the agent's session by itself. What it holds is the same set of actions the Chrome extension asks about: typing with submit, Enter in a form, a click that submits a form or opens a file upload, a click on a control named like pay, buy, send, delete, confirm, sign, transfer or publish (in English, Portuguese and Spanish), and any click whose target the seat could not inspect.

A held action answers APPROVAL_PENDING. The seat's person, or the member linked to that end user, decides it with browser.runner.approval.list and browser.runner.approval.decide. The record keeps what, where and why, and the length of any typed text, never the text. An undecided action expires after 10 minutes (APPROVAL_TIMEOUT), and while one is pending, other input on that seat is refused with APPROVAL_PENDING_OTHER. An admin cannot decide for someone else, and an agent cannot approve its own action.

browser_request_user is not available on a seat (USER_ACTION_UNAVAILABLE). For a login, open the live view and log in yourself.

Who can use a seat

The person and organization always come from the authenticated run. An id in the request that does not match is refused.

CallerCan leaseCan release, rename, delete, view
A memberTheir own seat, or a seat for an end user linked to themThose same seats
An organization admin or ownerA seat for anyone in the organizationAny seat of the organization
An end user of an appOnly through the app's own composition: lease is not end-user eligible—
A run with no person (a schedule, a Staff actor)A seat for the subject it names, recorded as acting on behalf of that subject—

An end user can call data.browser.runner.list, data.browser.runner.snapshot and the two browser.runner.approval.* workflows directly, and sees only their own seats. An end-user seat needs the end user's active workspace: without one the lease fails with "this end user has no active workspace".

A group in another organization reads as not found.

Running and recovery

  • No warm pool. Each seat is one browser started on lease. There is nothing to size with min or max.
  • Health. A seat is ready once it holds its connection to Orkestia, and Chromium is restarted if it stops answering. The browser runs as a non-root user with a read-only root filesystem, no added capabilities and a capped /tmp.
  • Recovery. A platform job brings back any live seat whose browser the cluster lost, with a fresh credential and the same disk, every few minutes. A joined seat comes back as idle.
  • Usage. Each hour, seat CPU, memory and disk are recorded as organization usage (browser_seat_cpu_hours, browser_seat_memory_gib_hours, browser_seat_disk_gib_hours), plus session counts and minutes. Disk time counts from the first lease until the seat is deleted, so releasing a seat does not stop its disk time; deleting it does.

Workflows

WorkflowUse
browser.org.enableTurn on organization browsers
browser.org.set-defaultChoose the default seat
browser.runner.lease / .release / .rename / .deleteSeat lifecycle
browser.runner.join / .view-open / .view-closeLive view and presence
browser.runner.frameLive screenshot while joined
browser.runner.approval.list / .decideHeld actions
data.browser.runner.list / data.browser.runner.snapshotSeats and last screenshot
apphost.addon.browser.apply / .status / .removeSite browsers

See also