For the complete documentation index, see llms.txt. Every page is also served as Markdown at its URL followed by .md.

standards
Cloud browsersAgents

Cloud browsers

Give agents and routines a hosted browser they drive with agent-browser, signed in from a profile you prepare yourself, and watch them live.


A cloud browser is a Chrome browser hosted by our browser provider, not on anyone's machine. An agent starts one with browser_launch and drives it with agent-browser, a command-line browser tool, through exec_command in its sandbox, so it works in a routine that runs with nobody at the keyboard. A cloud browser starts from your personal browser, from a profile — a named browser that keeps its cookies and sign-ins between runs — or blank when asked for one. It needs the agent's sandbox: an instance without a sandbox service offers no cloud browser at all.

Your personal browser

Each person has one personal browser, listed first under My profiles as My browser. It is where an agent acting for you starts when no profile is chosen, so a site you signed in to there stays signed in for the next conversation or run. It is created the first time it is needed — a launch with no profile chosen, or Prepare on its row.

  • It keeps its cookies and storage between browsers; open tabs may not survive a browser closing.
  • It never expires. To start over, its menu offers Reset, which asks first, closes its open browsers and erases everything it holds; it keeps its id, and the next browser starts signed out of every site.
  • Prepare opens the same preparation window as on a profile, to sign in yourself.
  • It is always private: it cannot be renamed, shared or deleted, and only your agents use it. On a shared agent or routine, it is the browser of the person the run acts for.

When a member leaves the workspace, their personal browser is erased and deleted.

Profiles

Profiles live under Settings → Agents → Browsers, in two lists: My profiles and Workspace. Each row shows the profile's name, when it was last prepared ("prepared 2 days ago", or "never prepared"), its visibility, its owner, the routines and agents that use it, and Prepare for its owner. Its menu renames it, shares it or makes it private, and deletes it. The section is listed only on an instance that offers cloud browsers, and only to someone who may create a profile (browser-profiles:create, which member holds).

A profile is private by default: only its owner sees it and only the owner's agents use it. Sharing it with the workspace lets every member's agents act on the signed-in sites in the owner's name, so it asks first: "Members will be able to have their agents act on the sites signed in to in this profile, in your name. They will see neither your passwords nor your cookies." Nobody — members, agents, Standards — ever sees a password or a cookie: the agent drives the browser, it does not read its storage.

Only the owner renames, shares, prepares or deletes a profile. Deleting it closes its open browsers and removes it from every agent and routine that was granted it.

Preparing a profile

New profile asks for a name and a visibility, then Create and prepare opens the preparation window: a large live view of the profile's browser that you drive yourself. Sign in to the sites the agent will need, then click Done: the browser closes and the profile is saved with its sign-ins. Nothing is typed for you and no password is stored, by us or by the browser provider.

Closing the window without Done loses nothing: the browser closes after 15 minutes of inactivity and the profile is saved then. Prepare on an existing profile opens the same window, to sign in again when a site has signed you out.

A profile has one writer at a time, and preparing it takes that place. An earlier preparation, or the browser of a conversation, is closed first — the profile is saved as it was — and the preparation opens; the agent gets a fresh browser on its next browser_launch. The browser of a routine run is closed only once you confirm: Prepare first answers 409 with BROWSER_PROFILE_LOCKED and details.holder: "run", and the window offers Close and prepare, which asks again with { "takeOver": true } — the run loses the page it was on.

Using one in a conversation or a routine

An agent granted a cloud browser has browser_launch, and the agent-browser built-in skill that teaches it the rest. browser_launch takes profileId, a profile's id, and, where a blank browser is granted, blank: true for a blank, signed-out one. With no profile named (profileId left out or null), it opens the only granted profile if there is exactly one, else — when a blank browser is granted — the personal browser of the person the run acts for, else it answers with the names of the profiles to choose from. The result carries the browser's sessionId, its handle (personal for the personal browser), the profileId and profile (both null for a blank browser), writesProfile, the exact command prefix that reaches it, and open: every browser the session may drive, each with its handle and prefix. It never carries a link to the browser.

Launching the same profile again returns the browser already open, with the same handle; another profile, or a blank browser, opens its own browser beside the others. The first browser opened is the default: its prefix is a bare agent-browser, and every later browser's prefix is agent-browser --session <handle> --cdp "$STANDARDS_BROWSER_<HANDLE>_CDP". The agent starts each command with the prefix of the browser it means, then the verb: agent-browser open https://example.com, agent-browser snapshot -i, agent-browser click @e3. It never sets --session, --cdp or the session variables itself, and it reads agent-browser's own guide (agent-browser skills get core) before its first command.

The connection to the browser reaches the sandbox only as a variable of the command, redacted from every output, message and trace; a command from a session that was not granted that browser is refused. One browser serves a whole conversation, sub-agents included, as far as each is granted it.

  • A conversation keeps its browsers between turns. A browser closes after 15 minutes without a command, or when the conversation is archived; the agent launches it again if it needs it later. A command on a browser that has closed fails with "Failed to launch Chrome", "Auto-launch failed" or "Invalid CDP value": the agent calls browser_launch again and uses the prefix it returns.
  • A run closes its browsers when the run ends, whether it completes, fails or is cancelled.

A browser asleep between two commands wakes on the next one; the first command after a pause takes a little longer. Screenshots go to /workspace/output/screenshots in the sandbox, and the agent looks at one with read.

What agent-browser may not do

Cookies, tokens and session state must not land in a transcript, a stored file or a trace, so two layers refuse what would put them there, and a refusal changes nothing in the browser:

  • An action policy shipped in the sandbox image (/etc/agent-browser/policy.json) is enforced by agent-browser's own daemon, so it also covers a batch read from standard input. It denies reading or writing cookies, storage, saved sessions (state), saved authentication (auth, credentials), network details (requests, request_detail, responsebody, har) and stream. Everything else is allowed.
  • A command check before the command runs refuses --restore, --state, --session-name, --profile, --config and --action-policy, an AGENT_BROWSER_ACTION_POLICY= override, the same settings as AGENT_BROWSER_* variables, and any command aimed at a browser the session is not granted. It also refuses a command whose agent-browser call it cannot attribute to a browser, such as one inside a subshell, backticks or eval: the agent writes each invocation directly in the exec_command text. A script file is not read: run on its own it gets no browser connection, so its agent-browser calls fail. Once one invocation is admitted, though, the whole command runs with the browsers' variables, a script or source in it included. The refusal is AGENT_BROWSER_COMMAND_REFUSED (400), and its message names the rule to follow.

Ordinary commands are untouched: fill @e1 "state of the art", find text "cookies", open https://example.com/auth and batch "snapshot -i" "click @e1" run. Sign-ins live in the profile, so the agent never needs to save or restore a session.

A script in the page can still read cookies

agent-browser eval runs JavaScript in the page and is allowed: a script can read document.cookie. The sandbox is one trust boundary for the agents of a conversation; do not grant a browser signed in to a site whose session an agent must never be able to read.

Watching

While a cloud browser is open, the card of the browser_launch call and of each agent-browser command shows a live view, and a strip above the message box names each open browser ("Cloud browser · <profile>") with View to open it large, one tab per browser. Anyone who may see the conversation or the run watches it, and can click and type in it: step in when the agent is stuck on a security code, a two-factor step or a captcha, then let it go on. Step in while the agent waits for you rather than while it acts: the conversation's Stop ends the run, and nothing else holds the browser back, so a click the agent aims at an element it read earlier lands wherever the page now is. After a pause the agent lists the tabs again before acting. The preparation window is driven by the profile's owner only. After the browser closes, the card reads Closed and keeps the agent's screenshots. The live view is an iframe served by the browser provider: a host with a Content Security Policy adds the provider's origins to frame-src (see Dedicated instances).

GET /cloud-browsers/:sessionId/live returns { url }, the interactive live view. Someone who may not see the conversation or the run gets 404, and so does a browser that has closed (CLOUD_BROWSER_CLOSED).

The live-view link is a key

Whoever holds a live-view URL can watch and drive that browser until it closes. It is handed only to people already allowed to see the session, read on each request and never stored; it never appears in a tool result, a message or a log. Do not paste it elsewhere: whoever opens it can drive the browser.

Signing in

The person signs in, once, in the live view: Prepare on My browser (or on a profile) opens the preparation window, and what they sign in to there stays signed in for every later browser. After a first launch of a personal browser nobody prepared, the launch card offers Sign in to your tools, which opens the same window. Standards stores no password and the agent types none of its own.

When a page asks an agent to sign in, or a session has expired, the agent calls request_setup with a browser_login item — the profile, the site and why — and stops. The card it leaves shows Reconnect <profile> to the profile's owner, which opens the preparation window, and Ask <owner> to anyone else, which mentions the owner in the conversation. Preparing a profile closes the agent's browser on it; the card closes on its own once the profile has been prepared again, and the agent launches the profile again and gets the same handle. Single sign-on, passkeys, captchas and a page with no sign-in form always go this way.

A saved login the agent may use (see Logins) is a set of variables of its sandbox: the agent types it with agent-browser fill @e4 "$QONTO_PASSWORD" and never prints it. When the site rejects a saved login, or the login lacks the one-time code the site asks for, the agent asks for the login itself with a request_setup login item, mode: "replace"; when the site has a sign-in form but no saved login, with mode: "create". The card opens the New login dialog, filled in with the name and site, and the person types the values there: they never reach the conversation or the model. A new login is kept in the person's own secrets by default; someone who may create workspace secrets can share it with the whole workspace. A member facing a rejected workspace login they cannot edit can create their own, private, with the same name: it takes precedence for them.

A routine run may ask for both, unlike any other request_setup item: the card appears in the run and the run ends instead of waiting. The person saves the login or reconnects, and the next run starts signed in. Automated actions can break a site's terms of use, and the signed-in account is the person's: the preparation window says so.

Granting it

Cloud browsers are granted in toolGroups like any other tool (see Tools and connectors):

GrantGives
cloud-browserbrowser_launch for a blank browser and the personal browser.
browser-profile:<profileId>browser_launch for that profile.

Both need sandbox in the same grants, since the agent drives the browser with exec_command: granting either without it is refused, and the add-tool menu adds sandbox with it. A routine may hold both. A shared (workspace) agent or routine holds only shared profiles (AGENT_TOOL_GROUP_NOT_CONTAINED), and a profile cannot be made private while a shared agent or routine still holds it — the refusal names them. Granting either to something that runs with nobody present needs agents:manage. Neither is part of the grants a new agent starts with. The general chat has every cloud browser its person may use: a blank one and every profile they see.

At run time, the person the run acts for must still see the profile; a profile that went private, or was deleted, gives no tool. Making a profile private also closes, at once, the browsers other members' agents have open on it.

What is kept where

The browser and the profile — its cookies, its local storage — run and are stored at our browser provider. Standards keeps the profile's name, visibility, owner and dates, and for each browser it starts, when it ran and for how long. The provider gives no data-residency guarantee, even for a browser started in an EU region: do not prepare a profile on a site whose data must stay in a given region.

Limits

  • One writer per profile. The first browser on a profile saves what changes in it (new cookies, refreshed sign-ins). A second browser started on the same profile meanwhile runs normally but read-only: its changes are not saved. A site that renews its session on every visit may then ask for a reconnect sooner. Preparing a profile takes over its writer: a conversation's browser is closed, a routine run's only after you confirm.
  • 15 minutes without a command closes a conversation's browser; a preparation closes after 15 minutes of inactivity.
  • 24 hours is the longest any cloud browser stays open.

API

RoutePermissionPurpose
GET /browser-profilesauthenticatedThe profiles you see: id, name, visibility, ownedBy, preparedAt, lastUsedAt, inUse ({ kind: "agent" | "prepare", sessionId } while a browser writes it, else null), usedBy (the agents and routines that grant it) and personal (true on your personal browser).
POST /browser-profiles/personalauthenticatedYour personal browser, created on the first call; the same profile on every later one.
POST /browser-profilesbrowser-profiles:createCreate { name, visibility?, confirmShared? }; name has 1 to 100 characters.
PATCH /browser-profiles/:idownerChange name or visibility.
DELETE /browser-profiles/:idowner204: close its browsers, remove its grants, delete it.
POST /browser-profiles/:id/prepareownerOpen a preparation browser; returns { sessionId } for the live view. Closes an earlier preparation or a conversation's browser on the profile; body { "takeOver": true } also closes a run's.
POST /browser-profiles/:id/prepare/finishowner204: close the preparation and save the profile.
POST /browser-profiles/:id/resetowner204: close its open browsers and erase its cookies and storage; the id stays.
GET /cloud-browsers/:sessionId/livewho may see the session{ url } (see Watching).

visibility: "workspace" needs confirmShared: true, on create and on update; without it the request answers 400 with SCHEMA_VALIDATION_FAILED. A name another profile of the workspace already uses answers 409 with SCHEMA_DUPLICATE. A profile you cannot see answers 404; one you see but do not own answers 403 on the owner routes. Renaming, sharing or deleting your personal browser is refused. On an instance without cloud browsers, every route answers 503 with CONFIGURATION_REQUIRED, and no agent is offered browser_launch.

Errors

CodeHTTPWhen
CLOUD_BROWSER_LAUNCH_FAILED502The browser provider could not start the browser.
CLOUD_BROWSER_PROVIDER_FAILED502The browser provider failed on anything else: closing, waking, the live view, creating or deleting a profile.
CLOUD_BROWSER_CLOSED404A live view of a browser that has closed.
AGENT_BROWSER_COMMAND_REFUSED400An exec_command that would reach a browser the session is not granted, or carry cookies or session state into the transcript (see What agent-browser may not do). The message names the rule.
BROWSER_PROFILE_LOCKED409Preparing a profile a routine run's browser is writing, without takeOver: true: details.holder is run. A browser that took the profile in the same instant answers agent or prepare; ask again.

Inside a conversation or a run, an agent meets these as a failed tool call or command rather than an HTTP answer. A command on a browser that has closed is not an error code: the agent calls browser_launch again. See Errors for the shared codes.

Next steps