Skip to content

Browser

Some pages have nothing in them until JavaScript builds them: dashboards, single-page apps, anything that shows a spinner first. Fetching one of those over plain HTTP gives you an empty shell, which is why Rookery can also open a page in a real browser.

Two things happen with it. Agents and chat can read rendered pages. And an agent can use one — sign in, fill a form, click through a flow — with your permission needed only for the steps that cannot be undone.

rookery onboard offers it during setup, on Linux, macOS and Windows alike — it downloads the right browser for whatever machine you are on. Say yes and there is nothing else to do. Say no and it tells you the command to run later.

If you already have it, setup does not mention it at all.

To install it separately, or after declining:

Terminal window
rookery browser install
rookery browser status

Without it everything else works normally and only JavaScript-rendered pages are unreadable. /healthz reports which state you are in, and the agent page tells you if a browser is missing rather than quietly offering a switch that would do nothing.

After an upgrade, the browser may need updating too: each Rookery release is built against one version of it. rookery upgrade does this for you. If you upgraded another way — dnf or apt — the server notices at startup, logs a warning, reports browser_outdated in /healthz, and puts one notice in each workspace’s inbox. Run rookery browser install as yourself, then restart Rookery.

On Linux, Chromium also needs some system libraries. Setup and install both print the exact command for your package manager, or --with-deps installs them for you if you can run it as root. macOS and Windows need nothing extra.

Nothing to configure. When an ordinary fetch comes back with no readable text, the agent is told the page renders with JavaScript and opens it in the browser instead. Chat can do the same, so asking about a page that used to come back blank now works.

Web search benefits too. When every search engine returns a “checking your browser” page rather than results, Rookery renders one properly and reads the results from it. The answer tells you which engine actually served it.

Agents read pages and use them: clicking, filling in forms, signing in. You do not have to allow that. An agent you asked to log into your energy account and fetch this month’s bill simply does it — approving “clicking” for a job you described in words would be friction with nothing behind it, and an agent can already make the same requests with a script anyway.

One thing asks you first: an action that cannot be undone. Paying, placing an order, transferring money, deleting an account.

You are asked while you are designing it. When the plan involves such an action, the build button reads Allow and build and says so above itself. Approving builds the agent and switches the permission on, so it works the first time rather than stopping halfway through its first run for something you already agreed to.

The permission then sits on the agent’s page, above the schedule, and you can switch it off whenever you like. Turn it off and the agent goes right up to that step, stops, and tells you exactly what it would have done — which button, on which page, and what it would have caused. Nothing else about the run is affected.

If an agent turns out to need it that was never flagged during design — a site changed, or the plan did not mention it — the first run to reach that step stops the same way, and the permission appears on its page with an explanation.

Payment pages are where forms are at their worst, and the browser is built for them:

  • Fields are typed key by key, the way a person types. Many card and expiry boxes only react to real keystrokes — a value pasted in looks right on screen and is then ignored when the form is sent. After typing, the agent is told whether the field actually took the value, so it does not carry on believing it did.
  • Dropdowns are filled by naming the option you want (“Portugal”, “12”). That works for an ordinary dropdown and for the button-plus-list kind that payment pages use for an expiry month. If more than one option could match, the agent is shown the choices rather than given a guess, and it only ever picks from the list it opened.
  • Fields without a proper label are still offered — under the text written beside them, a table row’s contents (a “select this row” checkbox), or the hint inside the box (MM/YY). A field with nothing at all is offered as “unlabelled” rather than hidden.
  • Something in the way is named. If a cookie banner or a pop-up covers what the agent is trying to click, it is told what is covering it and which buttons that has, instead of clicking blindly. A disabled button and a page that failed to load are reported the same way.

Each step in a run’s log names the field or button it used — browser_fill "Credit Card Number" ← ${CARD_NUMBER} — so you can read what the agent did without guessing.

You will not see any of this on an agent that only reads, or only does things that can be undone. That is deliberate: a permission shown on everything is one nobody reads by the time it matters.

An agent with the permission on can spend money on its schedule, without asking, while you are asleep. That is what it is for — and why it is a deliberate, separate act rather than something bundled into “allow browsing”.

The permission guards the browser. An agent can also make web requests from a script, and those are not covered by it. If an agent has a stored credential and a task that involves spending money, the honest summary is that you are trusting the agent, and this checkbox reduces one common way that goes wrong rather than closing the category.

An agent never receives your passwords. It refers to a secret by name, and Rookery types the value into the page itself:

${ENERGY_ACCOUNT_PASSWORD}

Store the value under Secrets first. If the agent asks for a secret that does not exist it stops and tells you — it will not invent one or type the placeholder.

Values are also stripped back out of everything the agent sees afterwards: the page text, the field’s own contents, the address bar, and any error the page produces. That includes a value the page has reformatted — a card number shown as 4111 1111 … or masked down to its last four digits. A field filled from a secret is simply shown to the agent as “filled from ${CARD_NUMBER}”. Screenshots are never given to an agent at all, because a picture of a filled-in form cannot be redacted.

When a box is shorter than what you stored — a two-digit year box and a four-digit year — the agent can take part of a secret without seeing it: ${CARD_EXPIRY_YEAR[-2:]} is the last two characters.

This protects what passes through the browser. An agent that also runs scripts has your secrets available to those scripts, as described under Secrets.

Captchas and bot checks. If a site is behind Cloudflare’s browser check or asks for a captcha, the agent reports that and stops. Rookery does not try to defeat these, and an agent will not go looking for another way in.

This is worth knowing before you build something. When you mention a site while designing an agent, Rookery opens it and tells you what is actually there — reachable, behind a sign-in, or behind a bot wall — so you find out during the conversation rather than after a build that was never going to work.

Your own network. By default the browser cannot reach localhost or addresses on your LAN. It follows links chosen from search results and page content, and those private addresses are where Rookery’s own internal machinery lives. If you genuinely want an agent to read a dashboard on your own network, see ROOKERY_BROWSER_ALLOW_PRIVATE. Many self-hosted services already have a proper connection, which is a better route.

Staying signed in between runs. A login lasts for the run that made it. The next run signs in again. Sites that dislike a fresh sign-in every time may ask for a code.

Some payments finish in your banking app: the site asks, your phone buzzes, and the page only continues once you approve. An agent cannot tap that for you — but it does not need to. It waits for the page to change.

Before it starts waiting it messages you, straight away, telling you what to do:

Approve the payment in your banking app

That message arrives immediately rather than at the end of the run, which matters because a scheduled agent runs when nobody is watching. It then waits up to fifteen minutes. If nothing happens in that time it tells you plainly what did not arrive and where the payment got to, rather than silently trying again.

Codes are a different matter. If the site sends you a code to type rather than a push to approve, the agent cannot receive it — unless it can read the code itself, which it can when the code arrives in a mailbox you have connected.

The browser runs as a separate, confined process. It cannot read the database, the encryption key, your notes, or anything else on the machine — only its own scratch space. All of its traffic goes through a filter that refuses private addresses, which catches redirects and page resources too, not just the address the agent asked for.