# fastbrowse public documentation > Every public usage document for fastbrowse at commit 633121ade207c7e3e415bdf4fd26f7a0f2608c58. Each document appears once, with its upstream source link. Source: https://www.fastbrowse.ai/ --- # First run Source: https://github.com/agent-labs-dev/fastbrowse/blob/633121ade207c7e3e415bdf4fd26f7a0f2608c58/README.md#try-it Install fastbrowse with uv, choose a cloud or local browser, and run a first task from the command line. ## Try it You need [uv](https://docs.astral.sh/uv/), which fetches Python 3.13 or newer itself, an [OpenRouter](https://openrouter.ai/) key and the [fastbrowse extension](https://chromewebstore.google.com/detail/fastbrowse/ghodfgfhbfaghhfdabopagbfopdjgpop) in Chrome. Run `uvx fastbrowse extension install` once to register it: ```sh export OPENROUTER_API_KEY=... # Jev, the model that picks each action, and the LLM for start pages, written field values and composed answers uvx fastbrowse "What is the title of the top story right now?" --start https://news.ycombinator.com/ ``` A browser task runs in your own Chrome, signed in as you are, through the extension; with no extension connected the command stops before it spends anything. Pass `--cloud` with a `BROWSER_USE_API_KEY` for a Browser Use Cloud browser, which passes bot checks and prints a URL to watch the run live. `AI_GATEWAY_API_KEY` (Vercel AI Gateway) serves the LLM when `OPENROUTER_API_KEY` is unset. With both keys, the automatically selected OpenRouter LLM moves to the gateway for the rest of the run if OpenRouter refuses its key. Jev can also run through the gateway as a last resort, or another decision host with `FASTBROWSE_DECISION_SOURCE`. [Jev routing](https://github.com/agent-labs-dev/fastbrowse/blob/633121ade207c7e3e415bdf4fd26f7a0f2608c58/docs/jev.md#provider-failover) covers the order and [other hosts](https://github.com/agent-labs-dev/fastbrowse/blob/633121ade207c7e3e415bdf4fd26f7a0f2608c58/docs/jev.md#other-decision-hosts). Set `EXA_API_KEY` to let Jev choose web search without opening a browser. The LLM proposes queries, and Exa returns result links and metadata that the run can cite or open. Each request has a `search` cost receipt; the run checks its dollar budget before sending it. A browser already in use stays open behind the results. Keys can live in a `.env` file in the working directory ([`.env.example`](https://github.com/agent-labs-dev/fastbrowse/blob/633121ade207c7e3e415bdf4fd26f7a0f2608c58/.env.example) lists every setting), but values named by `--secret` must be in the process environment. `uv tool install fastbrowse` keeps the command on your PATH, `uv add fastbrowse` adds it to a project, and `npm install fastbrowse` gives Node.js the same agent with no Python. `fastbrowse self-update` names how a copy was installed and prints the command that upgrades it. Steps go to stderr; the status, cost, step count, why a run stopped short, and the answer go to stdout. `--json` prints the full result: every step, the quotes behind the answer, cost by component, and the build that ran it. The exit code is the status, and only `complete` exits 0. ```sh export SAUCE_PASSWORD=secret_sauce uvx fastbrowse "Log in as standard_user with the saved password and add the backpack to the cart." \ --start https://www.saucedemo.com/ --secret password=SAUCE_PASSWORD --authorize ``` The [command-line reference](https://www.fastbrowse.ai/docs/flags#flags) has every flag, your own signed-in Chrome and Bitwarden logins, driving open windows and [desktop apps](https://www.fastbrowse.ai/docs/attach#desktop-apps), model and provider settings, and every status with its exit code. ## Use your own Chrome Run fastbrowse in the Chrome you already use, where you are already signed in. You need [uv](https://docs.astral.sh/uv/), Chrome and an [OpenRouter](https://openrouter.ai/) API key. Model calls are billed by your provider; this mode needs no Browser Use Cloud key. The extension has to match the fastbrowse you install: the Store's **0.1.0** works with fastbrowse **0.10.x**, and fastbrowse **0.11.0 or later** requires extension **0.1.1 or later** with its supported-command list. A run that finds an older extension stops before it spends anything and names the version it needs. If the Store does not list the version you need yet, run `fastbrowse extension path`, open `chrome://extensions`, enable **Developer mode**, choose **Load unpacked** and select the printed folder. 1. Install the CLI and register it with your browser: ```sh uv tool install fastbrowse export OPENROUTER_API_KEY=... # replace with your key fastbrowse extension install ``` 2. [Add fastbrowse to Chrome](https://chromewebstore.google.com/detail/fastbrowse/ghodfgfhbfaghhfdabopagbfopdjgpop). Open it from Chrome's Extensions menu to see runs and their **Stop** buttons. 3. Start a task from your terminal: ```sh fastbrowse "What is the title of the top story?" --start https://news.ycombinator.com/ --extension --browser ``` A run that reaches the page confirms the connection. If it ends `unavailable` with no browser connected, [follow the setup checks](https://www.fastbrowse.ai/docs/troubleshooting#the-extension-is-not-connected). Chrome shows a debugging bar while fastbrowse works. The [setup and usage guide](https://www.fastbrowse.ai/docs/signed-in-sites#your-own-chrome) covers signed-in tasks, browser selection, permissions and stopping a run. --- # Use fastbrowse with your agent Source: https://github.com/agent-labs-dev/fastbrowse/blob/633121ade207c7e3e415bdf4fd26f7a0f2608c58/docs/skill.md#use-fastbrowse-with-your-agent Install the fastbrowse skill, configure a browser and delegate cited website tasks with explicit authorization. ## Use fastbrowse with your agent The [fastbrowse skill](https://github.com/agent-labs-dev/fastbrowse/blob/633121ade207c7e3e415bdf4fd26f7a0f2608c58/skills/fastbrowse/SKILL.md) lets an agent that supports Agent Skills delegate a website task to fastbrowse and interpret its status and citations. The CLI uses your own Chrome through the fastbrowse extension by default. Pass `--cloud` for Browser Use Cloud, or use an MCP server configured for the chosen browser. Agents without skill support can use the CLI or MCP server directly. Installing the skill installs instructions; the browser and model credentials still need configuration. ### Install From a checkout of this repository, install the skill for your agent with the [Skills CLI](https://github.com/vercel-labs/skills): ```sh npx skills add ./ --skill fastbrowse ``` The same installer can fetch the skill from GitHub without a checkout: ```sh npx skills add agent-labs-dev/fastbrowse --skill fastbrowse ``` Choose your agent when the installer prompts. The installer uses project scope by default. Add `--global` for all projects, or `--agent codex claude-code` to select those two agents explicitly. Review the skill before installing it. For a manual install, copy `skills/fastbrowse` into `.agents/skills/fastbrowse` for Codex or `.claude/skills/fastbrowse` for Claude Code in the project where you want to browse. Keep its `references` directory beside `SKILL.md`. Personal installs use `~/.agents/skills/fastbrowse` or `~/.claude/skills/fastbrowse`. Start a new agent session after installation. ### Configure and use Install [uv](https://docs.astral.sh/uv/getting-started/installation/) for the CLI path. Set `OPENROUTER_API_KEY`, the recommended route, for Jev and the LLM. `TYPESAFE_API_KEY` is the direct Jev route. `AI_GATEWAY_API_KEY` is the LLM fallback, and on its own also serves Jev as a last resort. Set keys in the calling process environment or a local `.env`, outside the conversation. Local CLI browsing requires the [fastbrowse extension](https://www.fastbrowse.ai/docs/signed-in-sites#your-own-chrome) and only the model key. `--cloud` selects Browser Use Cloud and needs `BROWSER_USE_API_KEY`. The [CLI guide](https://www.fastbrowse.ai/docs/getting-started#try-it) covers browser profiles, secrets, and budgets. For MCP, use the [server setup](https://www.fastbrowse.ai/docs/mcp#use-it-from-an-mcp-client) instead; credentials belong to the server's environment. In Codex: ```text Use $fastbrowse to find the top story on https://news.ycombinator.com/ and return its title with a citation. ``` In Claude Code: ```text /fastbrowse Find the top story on https://news.ycombinator.com/ and return its title with a citation. ``` The skill also supports automatic selection from its description. It uses the CLI's uncapped resource defaults unless you supply limits or an existing task budget requires them. MCP server ceilings still apply. Cloud browser charges are added when the browser stops, separately from any model-spend cap. For a form, include its URL and the values to fill. State whether the agent should stop before submission or submit the specified content. The skill does not authorize writes on its own. A result of `complete` means the task was verified; other statuses describe the missing input, authorization, evidence, or access. --- # Command-line flags Source: https://github.com/agent-labs-dev/fastbrowse/blob/633121ade207c7e3e415bdf4fd26f7a0f2608c58/docs/cli.md#flags Every flag the fastbrowse command takes: the start page, browser choice, authorization, secrets, limits, traces and recordings. ## Flags Steps go to stderr; the status, cost, step count, why a run stopped short, and the answer go to stdout. `--json` prints the full result: every step, the quotes behind the answer, and cost by component. | Flag | Effect | |:--|:--| | `--start URL` | the first page; worked out from the task when omitted | | `--context TEXT` | background the run may use but never treats as the task | | `--extension` | run in your own Chrome, signed in as you are, through the fastbrowse extension; this is the default for a browser task, see [Your own Chrome](https://www.fastbrowse.ai/docs/signed-in-sites#your-own-chrome) | | `--local` | an alias for `--extension` | | `--extension-browser LABEL` | with the extension connected in more than one browser, use the one its popup labels `LABEL` | | `--cloud` | run in a Browser Use Cloud browser instead, which needs `BROWSER_USE_API_KEY` | | `--cloud-profile ID` | with `--cloud`, run on a signed-in Browser Use Cloud profile | | `--fetch` | read pages over HTTP with no browser, for a task that only reads | | `--desktop APP` | start a Linux desktop app and drive it instead of a browser, through [deskpilot](https://github.com/cjber/deskpilot); see [Desktop apps](https://www.fastbrowse.ai/docs/attach#desktop-apps) | | `--browser` | start a cloud browser from the first step, rather than reading over HTTP until the task needs one; extension runs already start in Chrome | | `--viewport WIDTHxHEIGHT` | with `--cloud`, the screen size requested from the cloud Chrome; does not emulate mobile, touch, device scale or user agent. Refused without `--cloud` | | `--attach` | with the extension, drive the window you have open instead of a tab of its own | | `--target-match TEXT` | with the extension, attach to the first window whose title or URL contains `TEXT` (implies `--attach`) | | `--foreground` | bring the run's tab to the front instead of working behind the current one | | `--proxy-country CC` | with `--cloud`, browse from that country (`uk`, `de`, ...; default `us`); starts the cloud browser before reading | | `--authorize` | allow submit, pay, delete and send; otherwise the run stops at `needs_confirmation`. It does not override a task that says to change nothing or not to download | | `--secret NAME=ENV_VAR[@ORIGIN]` | let the agent type `$ENV_VAR` on `ORIGIN` (`https://*.site.com` covers its hosts), or on the `--start` origin; models see `NAME` only | | `--bitwarden ITEM` | use a vault login on the origin its saved URIs match, including its one-time code | | `--max-steps N`, `--max-dollars N` | bound steps and model and web-search spend; unlimited by default | | `--downloads DIR` | keep downloaded files | | `--json` | print the full result | | `--trace FILE` | append each model call with its full request and reply, read and check, and with `--extension` every message to and from the extension (image data left out), to `FILE` as JSON lines (`-` for stderr); `FASTBROWSE_TRACE` does the same for `serve` and MCP. The requests carry page text, so treat a trace as you would the pages | | `--record FILE` | save a captioned MP4 of the run (needs `ffmpeg`); it shows what the pages showed, so watch it before sharing | | `--recipe FILE` | replay a [recipe](https://www.fastbrowse.ai/docs/design#recipes): offer Jev each saved action alone where its page and control match, and reuse saved values | | `--input NAME=VALUE` | a named value the task refers to ("the person named in input person"), typed into a field by name; a recipe saved with it types the next run's value (repeatable) | | `--file PATH` | a local file the run may attach to a file input on the page, offered under its file name, so a task can say "upload shrike_lid.stl"; the file is read when the run starts and sent to the page as bytes, also to a browser on another machine (repeatable) | | `--save-recipe FILE` | write the run's steps as a recipe when it ends `complete`; naming the `--recipe` file repairs it after steps the agent had to decide | | `--no-cursor` | don't draw the agent's cursor. By default it is drawn over a Chrome window that shows the run (`--foreground`, or an attached front tab) with fastbrowse's focus marker through [Cua Driver](https://github.com/trycua/cua) 0.45.4 or later on X11, or with [deskpilot](https://github.com/cjber/deskpilot) on Hyprland, and skipped anywhere else | | `--cursor` | also bring the window to the front, including with `--extension`, so the live cursor can be drawn | On X11, fastbrowse installs its own versioned Cua theme on first use and keeps the live marker visible between steps. To keep it upright and still at rest, run these with Cua Driver's daemon running. They apply to every Cua cursor: ```sh cua-driver config set cursor.rotate off cua-driver config set cursor.float off ``` ```sh export SAUCE_PASSWORD=secret_sauce fastbrowse "Log in as standard_user with the saved password and add the backpack to the cart." \ --start https://www.saucedemo.com/ --secret password=SAUCE_PASSWORD --authorize ``` The CLI refuses `--headed`, `--profile`, `--cdp-url` and `--cdp-port`. A profile of its own, a headless Chrome or a DevTools endpoint is the Python, Node and Go SDKs' job: see [A profile of its own](https://www.fastbrowse.ai/docs/signed-in-sites#a-profile-of-its-own) and [Open windows and Electron apps](https://www.fastbrowse.ai/docs/attach#open-windows-and-electron-apps). --- # Signed-in sites and secrets Source: https://github.com/agent-labs-dev/fastbrowse/blob/633121ade207c7e3e415bdf4fd26f7a0f2608c58/docs/cli.md#signed-in-sites Set up the Chrome extension to run where you are signed in, reuse a profile, or type origin-scoped secrets from a Bitwarden vault. ## Signed-in sites ### Your own Chrome A browser task runs in the Chrome you already use, where you are already signed in. `--extension` is the default and `--local` is an alias for it. Pass `--cloud` for a Browser Use Cloud browser, `--fetch` to read over HTTP, or `--desktop` for a desktop app. Start tasks from your terminal; the extension connects fastbrowse to Chrome and shows the runs you can stop. You need Chrome, [uv](https://docs.astral.sh/uv/) and an [OpenRouter](https://openrouter.ai/) API key. Model calls are billed by your provider. You do not need a Browser Use Cloud key for this mode. The extension has to match the fastbrowse you install: the Store's **0.1.0** works with fastbrowse **0.10.x**, and fastbrowse **0.11.0 or later** requires extension **0.1.1 or later** with its supported-command list. A run that finds an older extension stops before it spends anything and names the version it needs. If the Store does not list the version you need yet, run `fastbrowse extension path`, open `chrome://extensions`, enable **Developer mode**, choose **Load unpacked** and select the printed folder. 1. Install fastbrowse and configure your model key: ```sh uv tool install fastbrowse export OPENROUTER_API_KEY=... # replace with your key ``` 2. Run `fastbrowse extension install`. It registers the installed program with the Chromium browsers it finds for your user. Chrome, Chromium, Edge and Brave are supported on Linux, macOS and Windows. 3. [Add fastbrowse to Chrome](https://chromewebstore.google.com/detail/fastbrowse/ghodfgfhbfaghhfdabopagbfopdjgpop). Open it from Chrome's Extensions menu to see runs and their **Stop** buttons. 4. Run a task that reads a public page: ```sh fastbrowse "What is the title of the top story?" --start https://news.ycombinator.com/ --extension --browser ``` A run that reaches the page confirms the connection. If it ends `unavailable` with no browser connected, restart Chrome or turn the extension off and on, then [check the connection](https://www.fastbrowse.ai/docs/troubleshooting#the-extension-is-not-connected). The terminal prints the answer and status. Only `complete` means the whole task was verified. To read a signed-in site, use its address and describe what you need: ```sh fastbrowse "Find my last order's delivery date. Do not change anything." \ --start https://www.amazon.com/ --extension ``` `--attach` drives the window you have open instead of a tab of its own, and `--target-match TEXT` picks the window whose title or URL contains `TEXT`. Each run works in a tab group of its own, named after the task, and closes its tabs when it ends. A run that stops at `needs_confirmation`, `needs_input` or `needs_login` leaves the tab it stopped in open, out of the group, so you can finish the step in the page it filled. While a run is attached, Chrome shows a bar saying an extension started debugging the browser. Each run has three ways to stop it, and each ends the run `cancelled` with an error that says which one stopped it: **Stop** in the extension's popup, **Cancel** on that bar (which stops every run in that browser), or closing all of the run's tabs. The extension relays page-level commands, including reading page content and carrying out clicks and typing. It cannot read cookies, saved passwords or other sites' storage through browser APIs, and fastbrowse accepts connections only from the extension's own ID, over a socket only your user can open. The extension sends that content to the local fastbrowse program, which can send it to the model providers you configure. The run's [authorization](https://www.fastbrowse.ai/docs/flags#flags) rules still apply: actions classified as irreversible wait for `--authorize`. Classification can miss a change, so state read-only constraints in your task and check important actions yourself. A run with `--file` needs an extension that can intercept the browser's file chooser. If the run reports that interception failed, update the extension. For an unpacked extension, run `fastbrowse extension path` with the current CLI and click **Reload** on the extension's card in `chrome://extensions`. With no browser connected, the run ends `unavailable` before it spends anything; it never falls back to another browser. It also ends `unavailable` when the extension is older than fastbrowse and cannot relay a command fastbrowse sends, naming the commands: update the extension from the Chrome Web Store. With the extension in more than one browser, label each one in its popup and pick one with `--extension-browser LABEL`. `fastbrowse extension install --policy` (Linux) prints a Chrome policy for you to write as root, which installs the extension for every profile with no debugging bar and marks Chrome as managed by your organization; `fastbrowse extension uninstall` removes what `install` wrote; remove the extension separately in Chrome. For extension development, `fastbrowse extension path` writes an unpacked copy. Open `chrome://extensions`, turn on Developer mode, choose **Load unpacked** and select that folder. Use the store version for ordinary runs. **Other extensions can take the run's tab away.** Chrome lets no extension debug a tab while the page holds a frame from another extension, and some extensions add one to every page: screen recorders, password managers and writing assistants are common ones. When that happens the run ends `unavailable` and names the extension. Open `chrome://extensions`, choose **Details** on that extension, and set **Site access** to **On click**: it then adds its frame only where you click it, and runs work again. See [Another extension's frame takes the tab away](https://www.fastbrowse.ai/docs/troubleshooting#another-extensions-frame-takes-the-tab-away). **Other extensions also see the run's pages.** A run's tabs are ordinary tabs, so every extension with site access reads and can change them as it does any other tab, signed-in pages included: a coupon finder is sent the address, an ad blocker or a translation overlay changes what the run reads. For sensitive work, or runs you want to reproduce, use a separate Chrome profile with only fastbrowse installed. ### A profile of its own The extension uses the profile of the Chrome it is installed in, so sign in there. For a kept profile apart from your everyday Chrome, use an SDK: `chrome=LocalChrome(profile=..., headed=True)` in Python (see [Embed it](https://www.fastbrowse.ai/docs/python#embed-it)) keeps the sign-in between runs; the CLI refuses `--profile` and `--headed`. On a cloud browser, `--cloud --cloud-profile prof_1234` runs as a [Browser Use Cloud](https://cloud.browser-use.com) profile someone signed in once. The run inherits its cookies and no model sees a credential. `--bitwarden ITEM` types a Bitwarden vault login. The item's saved URIs must match `--start`. Models see only `username`, `password` and, when the item holds an authenticator key, `one_time_code`, computed as it is typed. With [rbw](https://github.com/doy/rbw) installed, fastbrowse reads the item through it, and a locked vault asks for your password through rbw's pinentry. rbw reads its local copy of the vault, so run `rbw sync` after adding an item, and pass the item's id when its name matches more than one entry: ```sh fastbrowse "Add a UGREEN USB-A to USB-C cable, 2m, to my cart." \ --start https://www.amazon.com/ --bitwarden Amazon ``` Without rbw, fastbrowse reads the item through the [Bitwarden CLI](https://bitwarden.com/help/cli/), unlocked first: ```sh export BW_SESSION="$(bw unlock --raw)" fastbrowse "Add a UGREEN USB-A to USB-C cable, 2m, to my cart." \ --start https://www.amazon.com/ --bitwarden Amazon ``` To change a password, add the replacement as an origin-scoped secret named `new_password`, refer to it in the task, and pass `--authorize`. fastbrowse never generates a password or reuses the old one. A single field marked `autocomplete=new-password` can also appear on a sign-in page. Jev uses the task and form context to choose its role; when the role is unclear, the run stops at `needs_input`. --- # Attach to a running browser Source: https://github.com/agent-labs-dev/fastbrowse/blob/633121ade207c7e3e415bdf4fd26f7a0f2608c58/docs/cli.md#open-windows-and-electron-apps Drive a Chrome or Electron window over its DevTools port, attach to a window that is already open, or keep runs in a background tab. ## Open windows and Electron apps The CLI drives a window you have open through the extension: `--attach` takes over the first window and `--target-match TEXT` picks one by title or URL, and neither opens a DevTools port. Without `--start` the run begins on whatever the window shows, and the window stays open afterwards. Popups the window opens join the run. An Electron app, or a browser you start with `--remote-debugging-port`, has no extension, so drive it from an SDK with `cdp_url=` or `cdp_port=`, `attach=True` and `target_match=` (see [Embed it](https://www.fastbrowse.ai/docs/python#embed-it)). The CLI refuses `--cdp-url` and `--cdp-port`. A DevTools port gives any program on the machine full control of the app and its sessions: close the app, or restart it without the flag, when you are done. ## Desktop apps `--desktop APP` starts a native Wayland app on a Hyprland desktop and runs the task in its window, through [deskpilot](https://github.com/cjber/deskpilot). `APP` is the command line that starts the app, split into words as a POSIX shell splits them, with no shell running it. The run starts it with deskpilot's `launch` as a deskpilot agent of its own, so the window opens on that agent's hidden workspace, and the app closes when the run ends. A window that is already open is not driven: deskpilot sends input in the background only to an app its agent launched. It needs a deskpilot with `launch` ([cjber/deskpilot#86](https://github.com/cjber/deskpilot/pull/86)); with an older one the run ends `unavailable`. Jev picks each action from the window's accessibility tree, and deskpilot clicks and types in the background, so the pointer and keyboard focus stay where you left them: ```sh fastbrowse --desktop gnome-text-editor "Write 'hello' in a new document." ``` An app that runs as one instance, such as one you already have open, may hand its new window to that copy, so `launch` sees no window of its own and the run ends with deskpilot's error. Pass the app's flag for a separate instance when it has one. A password field is never read, and `--secret NAME=ENV_VAR@desktop://` types a secret only into the window of that app class. `--authorize` and the step and spend ceilings work as for a browser. An open combo box's list and a popup menu's entries are controls like any other, and the run clicks the item it wants. Choosing a combo box's option by name uses the keyboard: a list the click opened is closed again and the arrow keys move the choice. The run stays in the one window: a dialog the app opens as a window of its own is out of its reach. Recipes, `--start` and every browser option are refused. Set `FASTBROWSE_DESKPILOT` to run a `deskpilot` that is not on `PATH`. --- # Models Source: https://github.com/agent-labs-dev/fastbrowse/blob/633121ade207c7e3e415bdf4fd26f7a0f2608c58/docs/cli.md#models Choose planning and reading models, override them for specific tasks, and set reasoning effort. ## Models The LLM defaults to `openai/gpt-6-luna` at low reasoning, for proposing a first address when no `start` is given and for writing an answer that must be composed from more than one fact. | Setting | Effect | |:--|:--| | `FASTBROWSE_LLM_MODEL` | the model for every purpose | | `FASTBROWSE_LLM_REASONING` | `none`, `low`, `medium` or `high`; `none` turns reasoning off for a model such as DeepSeek V4.1 Flash that otherwise reasons at every effort | | `FASTBROWSE_LLM_PROVIDER` | `openrouter`, `gateway`, `openai`, `anthropic`, `gemini`, `groq`, `together`, `mistral`, `deepseek`, `xai`, `fireworks`, `azure`, `ollama`, `lmstudio`, `vllm` or `custom`; each reads its own key, such as `OPENAI_API_KEY`, and sends it to that provider alone | | `FASTBROWSE_LLM_BASE_URL`, `FASTBROWSE_LLM_API_KEY` | any OpenAI-compatible endpoint, such as a local vLLM at `http://127.0.0.1:8000/v1`; it needs `FASTBROWSE_LLM_MODEL`, and never receives the OpenRouter or gateway key | | `FASTBROWSE_LLM_STRICT=0`, `FASTBROWSE_LLM_EXTRA_BODY` | for that endpoint: send schemas in non-strict form, and add a JSON object to every request | [LLM providers](https://github.com/agent-labs-dev/fastbrowse/blob/633121ade207c7e3e415bdf4fd26f7a0f2608c58/docs/llm-providers.md) lists what each preset sends and its default models. Jev still needs its own key. An endpoint that reports no price leaves those calls' cost unknown, so `--max-dollars` stops the run after the first one. Jev, the decision model, has settings of its own: | Setting | Effect | |:--|:--| | `FASTBROWSE_DECISION_SOURCE` | `typesafe`, `openrouter` or `gateway` picks Jev's first provider, or another decision host by name | | `FASTBROWSE_DECISION_BASE_URL` | retargets the selected source, and turns off automatic failover | | `FASTBROWSE_DECISION_MODEL` | pins the decision model, and turns off automatic failover | | `FASTBROWSE_DECISION_API_KEY` | the key for a decision host that takes one | [Jev routing](https://github.com/agent-labs-dev/fastbrowse/blob/633121ade207c7e3e415bdf4fd26f7a0f2608c58/docs/jev.md#provider-failover) gives the provider order and failover, and [other decision hosts](https://github.com/agent-labs-dev/fastbrowse/blob/633121ade207c7e3e415bdf4fd26f7a0f2608c58/docs/jev.md#other-decision-hosts) lists each host with its key and models. --- # Run statuses and exits Source: https://github.com/agent-labs-dev/fastbrowse/blob/633121ade207c7e3e415bdf4fd26f7a0f2608c58/docs/cli.md#results Every status and exit code, what complete means, and how a run reports an exhausted budget. ## Results The exit code is the status. Only `complete` exits 0; configuration refusals exit 1 and bad syntax exits 2. | Status | Exit | Meaning | |:--|--:|:--| | `complete` | 0 | Jev judged the task done | | `unverified` | 10 | Jev finished, but the requested data could not be filled from the page or the site refused a requested step | | `needs_confirmation` | 3 | stopped before an irreversible action; re-run with `--authorize` | | `needs_login` | 4 | a sign-in wall that no `--secret` covers | | `blocked` | 6 | a bot check (a CAPTCHA) that did not clear; not a sign-in, so no secret passes it | | `needs_input` | 5 | a required value or file is missing, or an upload exceeds the configured size limit | | `stuck` | 9 | the stall budget ran out without reaching a page state the run had not seen | | `budget_exceeded` | 7 | a resource limit was reached, or a missing cost prevents enforcing the dollar cap | | `observation_limit` | 11 | the page or required evidence cannot fit the configured prompt budget | | `unavailable` | 8 | a model or browser provider stayed unavailable through every retry, or the page says an item the task requires cannot be bought; the same run later may pass | | `cancelled` | 12 | you stopped an `--extension` run in your browser: from its popup, the debugging bar or by closing its tabs | | `error` | 1 | a model or browser failure | The JSON result says why a run stopped where a caller can act on it: - `budget` names the limit a `budget_exceeded` run hit (`steps`, `seconds`, `dollars`, `jev_calls` or `llm_calls`) and its value. - `browser` says which browser the run drove: `via` is `cloud`, `launched`, `attached` or `extension`, with the `profile` and the `browser` product and version where known. A run that read every page over HTTP has none. - `wall` describes a `needs_login` or `blocked` page: its `kind` (`password`, `one_time_code`, `sign_in` or `bot_check`), `origin`, the `fields` it asked for and `seen_at_ms`. A caller that can read the user's email or texts can answer a `one_time_code` wall with a secret scoped to that origin and run again. - A run that stops before completion can retain a cited partial answer from checked claims while their source evidence remains unchanged. A `stuck` or `unverified` run can also compose an answer from evidence it read. Partial answers may start with `Partial evidence only.`, and one from a run that left a step of its task undone starts by saying so; the status determines whether the task completed. A cost a provider omits is looked up from its receipt, or bounded from OpenRouter's listed prices. A cost that cannot be bounded is unknown, and a run with a dollar cap then stops with `budget_exceeded`. A page that stops answering (15 seconds for an input event, 120 for any other command) is reopened once during an action; a second hang returns `unavailable`. Step and dollar limits do not bound elapsed time: `Limits(max_seconds=...)` does. A run's `proxy` cost line on a Browser Use Cloud browser has the basis `unsettled`: the service meters proxy data about 30 seconds after a browser stops, and a run returns without waiting, so the figure can read low. An unsettled line makes the total incomplete, even when it carries a provisional dollar figure. The `browser_id` in the run's browser event reads the settled figure from `GET /browsers/{id}` once that time has passed. ## Updating `fastbrowse self-update` prints how this copy was installed and the command or link that upgrades it, then exits 0. It reads what the installer recorded and makes no network call, and it never replaces the running binary. | Installed with | It prints | | --- | --- | | `uv tool install fastbrowse` | `uv tool upgrade fastbrowse` | | `uvx fastbrowse` | `uvx fastbrowse@latest` | | `uv add` or `uv pip install` | `uv lock --upgrade-package fastbrowse && uv sync`, or `uv pip install --upgrade fastbrowse` | | `pip install fastbrowse` | `python -m pip install --upgrade fastbrowse` | | `npm install fastbrowse` | `npm install fastbrowse@latest` | | A release binary | the latest release link and this platform's `fastbrowse-rust-.tar.gz` | | A checkout | `git pull && uv sync --all-extras` | Another installer, or one that left no record, gets the [PyPI page](https://pypi.org/project/fastbrowse/). --- # Use it from Python Source: https://github.com/agent-labs-dev/fastbrowse/blob/633121ade207c7e3e415bdf4fd26f7a0f2608c58/README.md#embed-it Embed run_task, request schema-validated data, read citations and events, stream frames, and attach over CDP. ## Embed it `uv add fastbrowse` first, then: ```python import asyncio from pydantic import BaseModel from fastbrowse import run_task from fastbrowse.models import Limits class Release(BaseModel): package: str version: str async def main() -> None: result = await run_task( "Find the httpx package and report its name and latest released version.", start="https://pypi.org/", output_schema=Release, limits=Limits(max_dollars=0.10), ) print(result.status, result.data, f"${result.cost.known_dollars:.4f}") for evidence in result.evidence: print(f' "{evidence.quote}" from {evidence.url}') asyncio.run(main()) ``` **Choosing the browser.** With no browser argument, `run_task` starts a Browser Use Cloud browser with `BROWSER_USE_API_KEY`, or the key in `browser_api_key=`. The CLI defaults to your own Chrome through the extension. `chrome=LocalChrome()` runs local Chrome instead, and `cloud_extensions=[...]` loads up to three of your account's Browser Use Cloud extensions into a cloud browser. `cdp_url=` or `cdp_port=` drives a browser already running: the run opens and closes its own tab and leaves the rest, though cookies the task sets can persist. `attach=True`, `target_match=` and `foreground=True` work as the matching flags do. Passing a cloud key and a CDP address together is an error. **Recipes and recordings.** `save_recipe=Path("recipe.json")` stores the actions of a completed run. A write failure is logged without changing the task status; check the file before replay. Pass `recipe=Path("recipe.json")` with the same task to reuse values when Jev selects a matching live action. A changed page or control falls back to the agent. Reading and completion are always checked live. Naming the same file for both arguments saves the healed sequence after another completed run. Recipes can contain personal information from ordinary fields; stored secrets are kept only by name. `fastbrowse.recipes.validate_recipe()` checks recipe JSON with the same Rust parser as the file loader; `recipe_schema()` exports its JSON Schema for client validation. `record=Path("run.mp4")` writes captioned and plain videos, and needs ffmpeg. The action cursor also needs ffprobe; if frame dimensions cannot be read, the cursor is omitted with a warning. **A cloud browser that outlives a run.** `open_cloud_browser(browser_api_key=...)` starts a Browser Use Cloud browser no run owns and returns a `CloudBrowser` with its `id`, `cdp_url` and `live_url`. It takes `run_task`'s cloud options without the `cloud_` prefix (`profile=`, `extensions=`, `timeout_minutes=` and the rest). Runs given its `cdp_url` with `attach=True` leave it running, and `stop_cloud_browser(browser, browser_api_key=...)` stops it; until then it bills, up to its timeout. A start that fails or is cancelled stops the browser it created. ```python from fastbrowse import open_cloud_browser, run_task, stop_cloud_browser async def main() -> None: browser = await open_cloud_browser(browser_api_key=KEY, profile=PROFILE_ID, timeout_minutes=60) print("watch at", browser.live_url) try: await run_task("Open my inbox.", cdp_url=browser.cdp_url, attach=True) finally: await stop_cloud_browser(browser, browser_api_key=KEY) ``` **Your own script on the page.** `connect_cdp()` hands you the attached page without the agent: ```python from fastbrowse import connect_cdp async def main() -> None: async with connect_cdp(9222, target_match="my-project") as page: print(await page.observe()) ``` **Moving from 0.8.** The Python modules that 0.9 removed with the Python core have these replacements: | 0.8 import | Now | |---|---| | `fastbrowse.adapters.browser_use_cloud.BrowserUseCloudBrowser` | `open_cloud_browser` to start one and `stop_cloud_browser` to stop it, without the `http=` and `allow_resizing=` arguments | | `fastbrowse.models.BrowserConnection` | `fastbrowse.CloudBrowser`, holding `id`, `cdp_url` and `live_url` | | `fastbrowse.clients.environment.Settings` | `run_task(settings={...})`, keyed by the environment variable names | | `fastbrowse.adapters.totp` (`TotpError`, `one_time_code`) | `fastbrowse.totp` | **Access controls:** - `allowed_origins=["https://app.example.com"]` limits the documents a run may read and control to those exact origins. Navigations, redirects, frames and popups elsewhere are refused before they are sent, so a sign-in that redirects through another origin needs it listed too. It scopes documents, not the network, and a scoped run sends no live frames or screenshots and cannot record. The JavaScript, Go, Java and .NET clients take it as `allowedOrigins` or `AllowedOrigins`. - `check_access=`, which only the Python API offers, is an async callback awaited before the browser starts and before every read, navigation and action. If it raises, the run ends with status `error` (`connect_cdp` raises `BrowserError`), naming only the exception's type. **Citations.** `result.citations` holds a `Citation` per numbered link in `result.answer`: `id`, `text`, `url`, `quote` and `deep_link`. Each claim cites the notes it states. A count, total, cheapest or largest value is worked out in code from every note read and cites each record it rests on. A `quote` is the page's text, a table row as its cells separated by spaces. A `deep_link` is a [text fragment](https://wicg.github.io/scroll-to-text-fragment/#syntax) URL that scrolls to the quote; it may not resolve on a page that changes or needs a session. Each page a quote was read from is kept as a `capture` artifact in `result.artifacts`, holding the masked page text, and the quote's `Evidence` names it in `capture_artifact`; `start` and `end` index into that text. Its `links` lists each link inside the quote: the link's `text`, where that text sits as `start` and `end`, and the `href` it leads to. Captures go where downloads go, so pass `downloads` or `artifact_sink` to keep them past the run. A page fetched over HTTP keeps none. **Watching a run.** - `on_event=` gets a `BrowserEvent` with a cloud browser's live-view URL, then a `StepEvent` per step, carrying the facts that step added. `Config(step_frames=True)` adds a PNG of each step's page. - A task requesting a final screenshot receives a safe PNG in `result.final_frame` without enabling step frames. JSON clients receive a `screenshot` artifact with a base64 data URI. A missing requested image leaves a completed task `unverified`. - `Config(step_choices=True)` adds `choices` to each step Jev decided: the controls it was offered, each with its `id`, `role`, masked `label` and `context` (the card or row that tells twins apart) and `operations`, and the one it picked marked `chosen` (a drag marks its destination too). It shows whether the element a run should have used was there to pick. Off, a step has no `choices` key. - `on_frame=` gets JPEG frames of the active tab as they render. The handler runs on your event loop, so it must honour cancellation: one that swallows `CancelledError` keeps `asyncio.run` waiting at shutdown. A cancelled `run_task` raises `fastbrowse.models.RunCancelled`, an `asyncio.CancelledError` with a `receipt` of reported steps, known cost lines and finished recordings once the browser closes. A cancellation before the core starts may have no receipt. The receipt has no status or answer; unpriced charges stay `unknown`. `ConfigurationError` and `RecordingError` also carry a `receipt` when they stop a run after work or charges have accrued; otherwise their `receipt` is `None`. JSON-RPC preserves this receipt in error data, or in the error result for recording failures. MCP keeps it in `_meta["fastbrowse.ai/receipt"]` beside the tool error. A callback failure raises the original exception with a `receipt` attribute when the core retains one, including when the callback fails as the run completes. - `with traced() as events:` collects the run's trace in-process, as `--trace` writes it. No frame or screenshot is sent while a resolved secret may show on the page. `run_task(jev=...)` and `run_task(llm=...)` take your own decision model or LLM client; a `jev` client is asked at Jev's limits and thresholds. See [Jev routing](https://github.com/agent-labs-dev/fastbrowse/blob/633121ade207c7e3e415bdf4fd26f7a0f2608c58/docs/jev.md#provider-failover) and `fastbrowse.llm`. **Choosing the model backend without the environment.** New in 0.9.1. `run_task(settings={...})` takes the same names as the environment variables (`OPENROUTER_API_KEY`, `AI_GATEWAY_API_KEY`, `TYPESAFE_API_KEY`, `FASTBROWSE_DECISION_SOURCE`, `FASTBROWSE_LLM_PROVIDER`, `FASTBROWSE_LLM_MODEL` and the rest) and reads them instead of the environment and `.env`, so a service that keeps its credentials elsewhere hands the run exactly the keys it means to: ```python result = await run_task("Find the latest httpx release", settings={"OPENROUTER_API_KEY": my_key}) ``` **The same rules outside a run.** New in 0.9.1. `fastbrowse.origins` (`origin_of`, `parse_origin`) parses `allowed_origins` as the run does; `fastbrowse.safety` (`secret_allowed`, `origin_of`, `ScopedSecrets`) answers where a secret may be typed, `*.` patterns included; `fastbrowse.totp.one_time_code(key)` makes the codes an authenticator key gives. Each wraps the core's own rule, so the answer before a run is the one the run gives. --- # Use it from JavaScript Source: https://github.com/agent-labs-dev/fastbrowse/blob/633121ade207c7e3e415bdf4fd26f7a0f2608c58/README.md#use-it-from-javascript Install the TypeScript SDK, run a task, and keep secrets, authorization and output validation in your process. ## Use it from JavaScript `npm install fastbrowse` gives a Node.js 20+ program the same agent with no Python on the machine. The SDK has no dependencies; npm also installs a native binary for your platform (`@fastbrowse/darwin-arm64`, `darwin-x64`, `linux-arm64`, `linux-x64` or `win32-x64`). No install script runs and nothing downloads on first use. It reads the same keys from your environment, and finds local Chrome, starts a cloud browser or drives one already running, as the CLI does. ```sh npm install fastbrowse zod export OPENROUTER_API_KEY=... ``` ```ts import { Fastbrowse } from 'fastbrowse'; import { z } from 'zod'; const Release = z.object({ package: z.string(), version: z.string() }); const fb = await Fastbrowse.start({ local: true }); try { const result = await fb.run('Find the httpx package and report its name and latest released version.', { start: 'https://pypi.org/', output: Release, limits: { maxDollars: 0.1 }, onEvent: event => { if (event.type === 'step') console.error(event.step.operation, event.step.target); }, signal: AbortSignal.timeout(120_000), }); console.log(result.status, result.answer); if (result.status === 'complete') console.log(result.output.package, result.output.version); for (const evidence of result.evidence) console.log(` "${evidence.quote}" from ${evidence.url}`); } finally { await fb.close(); } ``` - One instance runs one task at a time; start more instances to run side by side. The process exits with yours. - `run` resolves with the result whatever the status. It rejects when no run finished (`RpcError` for a refused request, `AbortError` when `signal` stopped it, `ProcessExitedError` when the process is gone), and with `OutputValidationError` when the data fails your schema. - The result is Python's `RunResult`, with Python field names. `output` is `data` validated by your Zod (4.2+), ArkType or Valibot schema, or a plain JSON Schema; data the schema refuses rejects with `OutputValidationError`. A run fills a flat object of required string, number, integer and boolean fields. Secrets and the final check stay in your code: ```ts await fb.run('Log in as standard_user with the saved password and add the backpack to the cart.', { start: 'https://www.saucedemo.com/', authorization: { irreversibleActions: true }, secrets: { refs: [{ name: 'password', origins: ['https://www.saucedemo.com'] }], resolve: name => vault.get(name), }, until: url => url.endsWith('/cart.html'), }); ``` `resolve` is called each time a value is typed, only on an origin its ref covers. `until` gets the final address, and anything but `true` keeps the run from `complete`. The other options are `run_task`'s in camelCase; the [SDK README](https://github.com/agent-labs-dev/fastbrowse/blob/633121ade207c7e3e415bdf4fd26f7a0f2608c58/packages/sdk/README.md) lists them with the error model. There is no binary for musl systems such as Alpine; point `binaryPath` or `FASTBROWSE_BINARY` at your own. The macOS binaries are ad-hoc signed, not notarized, and the Windows binary is unsigned. Bun and Deno are untested. --- # Use it from an MCP client Source: https://github.com/agent-labs-dev/fastbrowse/blob/633121ade207c7e3e415bdf4fd26f7a0f2608c58/README.md#use-it-from-an-mcp-client Serve the browse tool over MCP, with server-side limits, fixed browser choices and HTTP authorization. ## Use it from an MCP client `fastbrowse-mcp` serves one `browse` tool over [MCP](https://modelcontextprotocol.io) to Claude Code, Claude Desktop, Cursor or any MCP client. It returns the answer with numbered citation links, typed `fields` if asked for, the quotes behind them, the status and what to do next, and reports progress every step. ```sh claude mcp add fastbrowse -e OPENROUTER_API_KEY=... -e BROWSER_USE_API_KEY=... \ -- uvx --from fastbrowse fastbrowse-mcp --max-dollars 0.25 ``` For a client configured by JSON, such as Claude Desktop: ```json { "mcpServers": { "fastbrowse": { "command": "uvx", "args": ["--from", "fastbrowse", "fastbrowse-mcp"], "env": { "OPENROUTER_API_KEY": "...", "BROWSER_USE_API_KEY": "..." } } } } ``` The server's flags set what a calling model may do; a call can ask for less, never more. | Flag | Effect | |:--|:--| | `--launch`, `--headed`, `--profile DIR` | start separate Chrome; a headed window or kept profile implies launch | | `--foreground`, `--downloads DIR`, `--cursor`, `--no-cursor` | fixed for every call | | `--cloud-profile ID` | every call runs as that cloud profile | | `--local`, `--extension`, `--extension-browser LABEL` | every call runs in your own Chrome through the fastbrowse extension; see [Your own Chrome](https://www.fastbrowse.ai/docs/signed-in-sites#your-own-chrome) | | `--allow-authorize` | let a call pass `authorize`; without it irreversible actions always stop at `needs_confirmation` | | `--secret NAME=ENV_VAR@ORIGIN` | typed when a call's start page is on `ORIGIN`; the model sees `NAME` only | | `--bitwarden ITEM` | a vault login a call may name in `bitwarden` | | `--max-steps N`, `--max-dollars N`, `--max-seconds N` | ceilings per call; unlimited by default | | `--max-concurrent N` | runs at once, default 1; more calls wait | | `--transport http`, `--host`, `--port` | streamable HTTP at `/mcp` instead of stdio | Over HTTP, set `FASTBROWSE_MCP_TOKEN` and every request but `/healthz` needs `Authorization: Bearer `; the server refuses to bind beyond loopback without one. A run takes seconds to minutes, so raise the client's tool timeout if it has one (`MCP_TOOL_TIMEOUT` in Claude Code). --- # Safety model Source: https://github.com/agent-labs-dev/fastbrowse/blob/633121ade207c7e3e415bdf4fd26f7a0f2608c58/README.md#safety-model How fastbrowse checks authorization, handles secrets and treats page content as data. ## Safety model - **Irreversible actions.** Jev judges each click, key chord and dialog acceptance, including Enter presses. Without authorization, a irreversible action stops at `needs_confirmation`. This is a classifier, not a guarantee: a page can word a harmful control to look harmless. - **Secrets.** Models see names only. A value is resolved at the moment it is typed, only on its declared origin, and redacted from everything the run returns. A password field is typed only from a stored secret. - **Page content is data.** Every prompt says so, and what a run reports is copied from quotes on the page. --- # How it works Source: https://github.com/agent-labs-dev/fastbrowse/blob/633121ade207c7e3e415bdf4fd26f7a0f2608c58/docs/design.md The step loop, reading and citations, prompt limits, run events and images, and browser capabilities over CDP. fastbrowse splits a browser agent into three owners: - **Jev decides, reads and finishes.** A batched request chooses an operation and its possible targets from indexed controls. On a page denser than the step's control budget, a batched relevance check keeps the controls the task can use rather than the first ones in document order. A page too dense even on screen offers the controls that fit and scrolls for the rest rather than ending the run. Large target sets use a second choice within the selected group. Jev also checks sign-in and bot walls on fresh pages, picks what a page says from its quoted spans, and ends the run by choosing DONE. - **An LLM helps where nothing can be copied.** With no start page given, it proposes the first address from the task. When Jev says a field takes a value the task asks for without stating it word for word, such as a search query, it writes that value from the task and the field's label, never from the page. When Jev says an answer has to be put together from more than one fact, it writes that answer from the notes. A run given a start page whose values and answers Jev can quote calls no LLM. - **Code owns the gates.** Freshness and hit-tests before every input, no automatic retry of a mutation, authorization for irreversible actions, secret resolution and redaction, and budgets. Code does not second-guess a DONE: the run ends `complete` with what Jev read, and a requested record that cannot be filled, a composed claim still unsupported after recovery, an answer its composer says leaves a requested value unestablished, or a requested step the page shows the site does not allow ends `unverified`. Once the run has acted, Jev's finish check answers whether every step the task asks for was carried out: `done`, `undone` (the run recovers), or `refused` (the run reads, answers and ends `unverified`). When a field value or key chord is copied, Jev selects its source and first word. If its end needs a separate choice, each choice shows the complete text that would be typed from that first word to the candidate end, with one more answer: the value does not begin at that word. Jev then picks the first word again without it. The beginning is checked the same way against copies that end where the value ends, and an end Jev rejects there is picked again. Code copies the selected span unchanged. A task-provided key chord is copied only from the task, never from page text. Controls with standard ARIA keyboard interactions also offer their role's keys for Jev to choose. Earlier typing is shown as history, without assuming rejection or requiring a different value when the page changed the field. That loop runs in Rust, in [crates/](https://github.com/agent-labs-dev/fastbrowse/blob/633121ade207c7e3e415bdf4fd26f7a0f2608c58/crates): `fastbrowse-agent` holds the run loop, `fastbrowse-browser` the page and its indexing, `fastbrowse-clients` the Jev and LLM clients, and `fastbrowse-py` builds them as `fastbrowse._native` into the wheel ([ADR 0004](https://github.com/agent-labs-dev/fastbrowse/blob/633121ade207c7e3e415bdf4fd26f7a0f2608c58/docs/adr/0004-rust-core-by-default.md)). With `plan_ahead` enabled, Jev can choose to read a list across its observed same-origin next-page links when the task covers every page or a resolved page range. Each new page still asks Jev whether to read it as part of that list or return to ordinary actions, alongside the usual sign-in, bot-check and site-failure questions. These requests omit unrelated action and target choices. Every read and navigation remains a separate step with its own citations and budget admission. The list read stops on a changed list, dialog, modal, tabs or origin, a failed page, a read adding no evidence, or the task's last page. Only the ordinary finish path can declare the task complete. `plan_ahead=false` disables list reads and planned field fills. ## Authorization Jev judges every model-selected click, drag or key chord, including links, navigation to a caller-supplied address, every Enter press and acceptance of confirm, prompt and before-unload dialogs. Code-selected pagination is exempt. One rule applies: the action proceeds when Jev judges it not irreversible, or when the run is authorized and Jev judges the task asked for it; otherwise the run stops at `needs_confirmation`. The irreversibility and task-authorization questions receive the action's control context and drag destination, the non-sensitive value submitted with Enter, and non-sensitive values from the submitted form. Sensitive values are excluded. A submission of a form that holds more than one password field changes an account's credentials whatever the page calls it, so Jev is not asked whether it is irreversible: an unauthorized run stops at `needs_confirmation`, and an authorized one proceeds only when Jev judges the task asked for it. A refusal is recorded as a failed step with a reason. The classifier can be wrong, so this gate is not a guarantee that every externally visible change is detected. These questions are asked with the task and the page's origin only, never the page's content, so a page cannot argue an action through. An authorized run also asks, in the same request, whether the task asks for the action only in some state of the page or site ("reply if nobody has answered yet"). When it does, or the run has already carried out a commit, and the action commits or leaves something the site keeps, a second Jev request asks, as a choice, whether in the state the page shows the task says to do it with these values, says not to, has already produced the requested result according to the page or recorded effects and is not asked for again, or cannot be told. A prior executed input is reported as an attempt, not proof that its result happened. It does not say the action is conditional, so a step the task asks for outright before a condition on a later one is judged as asked. The same request asks which of the task's values the action uses: those to use at first, or those the task gives only once something happens ("if the site rejects anything, use SW1A 1AA"). For the later values the action also needs a yes that the run has done what the task asks first and the page or a recorded effect shows the site responded the way the task gives those values for, so a step that skips ahead to a correction is refused. That request gets the masked page text, controls, media, dialog and tabs, with the notes and recent actions, and can only refuse: the action proceeds only on a yes, and any other answer refuses it once so the run can read the page or finish. Repeated refusals spend recoveries and end the run `stuck`, never by committing. Two rules come from the task itself, judged once per run by Jev from the task text and kept for the run. When the task rules out downloading, a control the page says downloads a file is refused. When the task rules out changing anything, a fill, a select or a click on a setting control (a checkbox, radio, switch, option, or any control that reports a checked state) is refused, and from then on those operations are no longer offered. Typing into a search box is exempt, since searching is how a read-only task finds things. Authorization does not lift either rule: it lets a run commit what the task asks for, never what the task forbids. Unmarked password fields leave the current-or-replacement role to Jev using the task and page context. Field count and order do not establish that role. An explicit `current-password` marker identifies an existing credential. A `new-password` marker identifies a replacement within a multi-password form; a lone marker remains contextual because sign-in pages also use it to prevent autofill. Replacement values come only from the scoped `new_password` secret. ## Navigation The operation choice can open another literal HTTP(S) address from the caller's task. The address is a closed choice, revalidated before dispatch, and uses the browser's origin grant and live access checks. Page instructions cannot add addresses to that choice. When a site failure that can clear stands on the current page (an HTTP 408, 419, 429 or 5xx status, an address the browser could not open, or a page Jev judges to report that the site failed), the page's own address joins that choice, so Jev can reload it. Code states the failure and how many steps it has stood in the step state's `page_facts`, with the reminder that a failure is not the task's answer; Jev picks the reload, a retry control, or another route. A run whose stall budget runs out on such a failure ends `unavailable` with its address. On each page state it has not judged yet, Jev is also asked whether the page says an item the task requires cannot be bought, such as one marked sold out, with no way on the site to get it. A yes ends the run `unavailable` before the step: the run's LLM names the item and the reason from the task and the page text, and the page's block holding the words it quotes is the stop's evidence. An editable search field can be filled directly, including when focusing it opens an editor. Opening or focusing the field does not enter a query. Screenshot facts use the `llm_image` reader label; Jev-selected facts use `jev_choice`. The LLM screenshot reader records `image_read` calls separately from answer composition. Jev image limits apply to Jev questions; the LLM reader uses its own client, which must refuse unsupported image input explicitly. Screenshot readings pass the same support and requested-coverage checks as composed text before completion. When Jev is asked what output the task wants, it also says whether the task asks how the page looks, such as its colours, styling, artwork or layout. For such a task the screenshot is read when the run answers, on any page and beside what its text answered, and the reader describes what the image shows of the look as well as quoting text. A page styled only by CSS states its colours nowhere in its text, so the image is the evidence. A successful screenshot reading that finds no answer is reused for identical pixels within one run. A changed screenshot is read again; failed model calls are not cached. Model screenshots check fresh page text for resolved secrets before capture. Image readings mask resolved secret values before they enter notes and evidence. A filled form that requires confirmation stops before optional image reading. Content shown only under the pointer is reached by a hover target, which moves the real pointer there. An element is offered as one when a stylesheet hover rule reveals hidden content inside it, or when it is a card of a list that shows a picture and holds no control of its own, because a script may render such a card's controls only while a pointer is over it. The next observation offers what appeared. A control fading in under the pointer counts as shown from the start of its fade, unless it ignores the pointer until the fade ends, and one fading out counts as gone. A hover only shows content, so a task to carry out is not done by hovering alone. An element with no role, tabindex or pointer cursor is offered as a button when a script gave it a click, mousedown, pointerdown, mouseup or pointerup listener, as a Vue or React handler on a bare icon is. The listeners are read with Chrome's own `getEventListeners`, which only an evaluate with DevTools' command line API has. That evaluate runs once per document and keeps the function where the page cannot reach it, so the page sees no hook, and each observation asks it afresh about the elements it weighs, so a removed listener takes its control away. A listened element follows the rules a pointer cursor does: one inside a control, or holding one, is not offered, and neither is a container whose listener hears its children's clicks while one of them is pressable. Listeners on the window, the document, the root element and the body hear the whole page, so they mark nothing. The browser visits each changed frame, then transfers unchanged control rows by their existing node ids and sends only changed rows and guards. The receiver reconstructs the ordered controls against the exact document and previous read named by the delta. Each request names the receiver's baseline; a missing or mismatched baseline returns a full read directly. Each frame read releases saved snapshots of detached child frames, preserving live child snapshots across tab switches. Rust retains the raw rows with their validated snapshot, so an unchanged response reuses that parse. A delta that cannot be reconstructed requests a full read. Page text, modal state and other frame metadata travel in full. A read that enters open shadow roots or same-origin child documents is kept like any other: each root it walks gets its own mutation observer and event listeners, and the saved read records every frame's document and address, so a frame that shows another document, or becomes readable, renews it. Captures and citation spans keep their own read path. Context construction indexes peer labels once per read, preserving shared labels when excluding a control. Within a changed frame, structural queries and control names reuse their previous results while their inputs match. A mutation invalidates the affected subtree and its ancestors. A name records the nodes, ARIA references, label associations, visibility and native values it used, and checks those dependencies before reuse. Queries are also tied to their document or shadow root. Layout and event listeners are read afresh, and action guards query current state. Each saved snapshot or glance keeps its own pending custom-element definitions, since an upgrade can change label ownership without a DOM mutation. Before reusing a read, the browser checks the elements of every tree it visited for newly attached shadow roots, which also produce no mutation, and compares each tree's live values, stylesheets, address, scroll, size and running animations. It also compares the native pointer-listener checks used by the saved read. Each atomic read asks for a node's listeners once; later action guards ask again. A saved read also compares the rendering facts it consumed: computed style properties, visibility, element and text-node boxes, rendered text, live selector matches, focus and live control or media values. Scroll controls also record extents and positions, overflow propagated from the body, and the writing-mode, direction and flex styles that determine their axes. Generated CSS content can change those extents without a DOM mutation. Those facts stay in the installed script's private closure and name the exact document and read they validate. A CSS state can then renew a read without writing a DOM node or attribute. The frame keeps each document or shadow root's element order and static control membership. A child-list change renews order through saved element-child edges; unchanged siblings keep those edges. Attribute changes renew membership, while geometry, listeners and render facts are read fresh. Full reads rebuild the index. Text spans still come from the text walker and capture path. Each control's fields and context decisions are derived from the current page. Reusing the rows of untouched controls was measured and does not pay: a changed read is dominated by the native style, visibility, box and text reads that would prove a row unchanged, and the hover, scroll and guard passes read the same facts again when the walk no longer has them. Saved reads compare fresh boxes and selector results directly with their snapshots, without allocating new comparison arrays. Repeated heading and scope text reuses its normalized lines only when a fresh native read returns the exact same text. A browser observation reports each control's `focused` state. A custom page may leave it unknown. The optional `invalid` flag reports `aria-invalid` or a failed native constraint on a field that participates in form validation. It describes the current field, without claiming that a submission occurred. A field that fails a native constraint also carries `validation_message`, the browser's own words for why, which Jev sees with the field: a refused submit shows that reason only in a browser bubble, not in page text. Jev can choose `blur` for an editable field observed as focused, leaving that field without pressing another control or submitting its form. The field must still be the same node and hold focus when the action runs. A replacement field is not retried. Page change and blur handlers run as they do when the field is left; their observed effects reach the next decision. A focus change counts as a changed page state, but does not by itself prove a value was set or accepted. ## Reading and citations READ is one of Jev's operations. On a page that has changed, Jev is also asked whether it shows something the task asks to be told that the notes do not hold yet; when it does, and Jev picked another operation, the run reads first, because an order total is gone once the order is placed. The step state's `page_facts` tell Jev when a page was read and has not changed since, and when it changed after it was last read. Every READ Jev picks goes to the reader. A read that adds no new source quote counts toward the stall rule like any other step that moved nothing. With `EXA_API_KEY`, Jev can choose a web search at the start or during a run. The LLM proposes queries from the task, current page and evidence; Jev picks a query. Exa auto search returns up to ten results. Every returned result field is kept in a citable record, and result addresses become links that use the existing navigation and origin checks. The results view retains the current browser session. Repeating identical results counts as no progress. A quote from result metadata cites the API response address; open the result to obtain a citation from its page. The ledger reserves the documented search price before dispatch and records the provider receipt, or its bounded price when the receipt is unavailable. No key leaves search unavailable. Fetch reads the same way: by default a run reads pages over HTTP and follows links there, with the page's form controls offered as what it has. A disabled control (`disabled`, `aria-disabled="true"` or `inert` on the element) is not offered, as a browser capture leaves it out, so a disabled next link is no next page. A step only a browser can take starts one on the same page, and the run carries on with what it knows. A served page is not the page a browser shows: it holds text a stylesheet hides and lacks what scripts build. So a run over HTTP that took no step cannot finish a task that asks for one, whatever it asks to be told: a browser does it. `fetch` forbids the browser, and `browser` starts one from the first step. Fetched documents have no pixels, so optional screenshots and step frames are skipped. A JSON response, including `application/*+json`, is read by its structure: each object key is a heading, and each string, number, `true`, `false` and `null` is its own block under the path of keys and array indices that leads to it. A string reads as its decoded text, a number as written, and repeated keys keep every value. A response that is not entirely valid JSON, and other `text/*` responses, are read as one quoted text block. Neither is parsed as HTML, and delimited data keeps its whitespace. Browser captures of a JSON document are still read as one code block. Browser and HTTP heading paths follow heading ranks. A heading inside a repeated record ends earlier headings of the same or deeper rank, without naming later records. Headings hidden by the capture do not change that context; HTTP sees hidden attributes and inline styles, but does not apply stylesheets. Browser captures record an icon-only link's destination with nearby container text, passing through empty layout wrappers. The search stops at a paragraph even when it is empty, and never uses the page root as nearby text. Browser captures write each checked checkbox, radio or switch as `Label: checked`, a native one hidden behind a visible label included, so text a page re-renders for the option chosen, such as an order total per shipping method, is read with the option it belongs to. Browser and fetch captures write a `time` or custom element's `datetime` in brackets after the text it shows, so a relative date such as "3 weeks ago" keeps the exact date the page holds. `ins` and `del` are excluded, and nothing is added when the shown text already states the value. Browser and fetch captures leave a footnote reference out of the text it marks, so an infobox cell reads `41,798,407 (37th)`, not `41,798,407[3] (37th)`. A reference is told by structure: a link marked `doc-noteref`, or an in-page link whose target links back to that link, or to a wrapper showing only it, as Wikipedia, GitHub and Pandoc footnotes do. A table of contents entry or a "back to top" link has no such back link and stays. The notes themselves stay where the page lists them. A citation quoting across a removed marker can miss its text-fragment highlight, since the page still shows the marker there. Jev moves through a list. A `rel="next"` link is a stated fact on its element, and every other link keeps its href, so choosing the next page is an ordinary step. A page number drawn as text rather than a link or a button is offered when it is focusable and has visible text, including a label wrapped in child elements. Hidden menu links do not exclude the trigger that reveals them. An element already inside a control, or holding visible controls, leaves actions to those controls. A field is named by its label, never by its value. A select or a combobox or listbox widget is not named from the options, chips or buttons it shows. A widget wrapping exactly one field borrows that field's label, and its own label comes first. A field with no label is offered by its role under its section, such as a fieldset legend, and the text it shows never names that section. A control whose own clip or clip-path leaves it no area is not offered, as a tag picker keeps the select it replaces on the page that way, and a hidden checkbox, radio or file input is reached through its label. Select on a select that allows more than one choice toggles the one option Jev picks, as a Ctrl-click does, and leaves the others as they were. Jev is asked which option to toggle and told which are selected now. A change handler that puts the selection back fails the step, as on a single select, and the action guard and page fingerprint read every selected option, so choosing or removing any one of them is a change. Press sends a key Jev selects from the target control's ARIA role, or a key chord copied from the task. Sliders, spin buttons, tabs, lists, trees, menus and grids offer their standard WAI-ARIA keyboard interactions when focus can reach them. An explicit `aria-orientation` on a widget or its owning composite is included in its context, so the key chooser knows its direction. Widget value changes count as progress. A composite container is indexed for keyboard use when it has a `tabindex`. An active descendant keeps DOM focus on its owner while receiving the chosen key. Native selects keep their Select operation. The selected chord is stated to the irreversible-action classifier before dispatch. When the task forbids edits, Jev also judges whether that chord changes a value or only moves through the page. Its modifiers and DOM key are sent as one browser input, and a chord that can submit or save goes through the same irreversibility and authorization gates as Enter. Scrollable containers are indexed separately for each overflowing axis, including open shadow roots and accessible frames. Jev chooses a scroll area and an available direction. Code moves that container by its visible width or height; horizontal right-to-left areas retain physical left and right directions. Container offsets contribute to the page fingerprint, so a scroll that exposes content counts as progress even when its text is unchanged. A scroll without a target retains viewport scrolling. A read offers Jev one bounded choice over the page's quoted spans, with two more answers: the page does not hold the answer, or the answer must be composed from more than one fact. On a page with more spans than one choice can offer, a relevance pass narrows them first. If no value choice fits, a page that fits Jev's input limit can still supply facts for synthesis. Jev's pick stands. Code cut the spans from the capture, so neither Jev nor the LLM writes page text. A span Jev picks becomes a fact, and identical values from the same page and frame share one choice with all their source contexts. When Jev says the answer must be composed, every nonempty source block is kept as a fact and the answer is composed when the run tries to finish, with recovery for a rejected draft. The recovery decision is told which claim failed which check, and a draft rejected for leaving out something the task asks for is shown to it whole, since no one claim is to blame and only the draft says what it lacks. A fresh read, including source quotes kept for synthesis, retires earlier facts from the same address when their quotes are no longer shown. The facts stay as history. Quotes still shown and evidence from other addresses remain. The composer and the claim support check receive each source's known superseded state. They judge the state the task asks about, retaining earlier quotes for historical answers and comparisons. An answer that must be composed is always composed and checked. The composer is not skipped by asking Jev of each note on its own whether it is the answer as written: such a question cannot tell which of two similar notes, such as the headings of an opener and the window it opened, is the one the task asks about. Before choosing DONE, Jev sees the selected answer with its citation links separately from retained evidence. The selected answer must give every requested fact and value; a value kept only as context does not answer it. When composition or the caller's schema extraction is pending, the same decision judges whether the retained sources cover the request; the generated result is checked before delivery. Answer claims use numbered Markdown links built from those notes. `RunResult.citations` exposes the cited facts and text-fragment deep links; unused facts have no citation. The LLM writes a composed answer from the notes. Jev judges each final claim against its original cited quotes, including record identity and values, after any packing rounds. The composer selects source wording by note id in private text parts, either the whole note or a part of it, such as one field of a record, that code finds in the note's text exactly as written. Code copies the selection and adds quotation delimiters when requested; prose parts, objects like the others so the composer does not write connecting wording as a source part, keep explanatory wording separate. A tally has one computed part, which code fills without replacing matching text inside a source part. Packed compositions expose their original sources separately, and kept claims retain these parts through a rewrite. Split notes cannot be selected as whole sources. The delivered claims keep the same text, cells, tally and evidence id fields. For a comparison restricted to each group's minimum or maximum, the composer also names a private selection: the grouping field, the inner field and its extreme. Group names must copy an exact span from the record's quote or, for captured page text, its own captured heading path. Code selects each group's tied extremes before applying the outer comparison. The claim cites every qualifying record used in the selection; record association checks see only the outer winners. This selection survives packing and rewrites without adding fields to delivered claims. A count, total, minimum or maximum, or a place after one such as the second cheapest, is never written or judged as a number. The composer marks it as a tally with the kind of record and the field, and Jev answers one question per note read: for a count, whether it holds exactly one such record, and for a total or extreme, whether it holds one with its field, then which number in it is the field. A date, ISO or a day, month name and year, is offered whole with its year beside it, and its day and month are not offered alone, since neither orders anything; code orders dates for an extreme and never adds them. A record's name, heading or a link to it holds no value, so it is not counted as a record without one. Code counts, adds or compares, writes the value into the claim and cites every record it rests on. For a count per group, such as quotes per author, the composer names only the group its claim counts: the run's LLM copies each record's group from its quote, a read that is not text of that quote leaves the count unstated, and code groups the records, counts each group and checks the claim's place among all of them. A minimum or maximum the claim record's name, heading or a link to it holds no value, so it is not counted as a record without one. A record read from a screenshot or an element's markup is in the reader's words, so Jev is also asked which record on the same page it repeats, if any, and a repeat is not counted again. Code counts, adds or compares, writes the value into the claim and cites every record it rests on. A minimum or maximum the claim answers with its record's name instead keeps that name, and only the record check judges it. Such a claim gets no support question over the value: Jev is asked only whether the claim, with `[computed]` in the value's place, states nothing besides the tally. For a minimum or maximum both questions are choices: whether the claim states the value, the record holding it, both, or something else as well, and which record it names, none, one of those code found at the extreme, or another. Jev is also asked what the task asks to be told about the tally's records, offered every operation a tally does with the tally's own among them, and the claim holds only when Jev chooses that one: the composer chooses the operation, and code then works out exactly a count where the task asked for a total. An operation another tally of the same records gives is not offered, so a task asking for the number of orders and their total is answered by a count and a sum, and a table row's tally is asked the same. A failed check tells the composer which it was, such as a claim that also lists each record's value, which then goes in a claim of its own. Packing continues only when fewer requests are needed or the rewritten claim text shrinks. Removing source-state metadata alone does not count as progress. For a table, each cell is judged with the whole row and its quotes as context; every cell must be supported. The composer and support check interpret a requested field by its meaning: descriptive prose can supply its value without a matching heading, and that value contradicts a claim that the field was not shown. The support question distinguishes facts about a quoted subset from claims about a whole set, and what a counter on the page says about its source, which supports a claim that restates it, from the number of records the answer reports. Initial and repaired compositions are checked for both claim support and requested answer coverage in one decision batch. A claim with no cited quote or no support judgment is withheld and ends `unverified`. When every check is answered and Jev rejects a composed claim, the run spends an existing recovery to correct the draft or gather more evidence. Rejected prose is feedback, never a source fact. Code keeps each claim that passed every check, with its citations, word for word in the corrected draft, and the composer writes only the rest, unless the coverage or step check failed, which fault the claims together; a claim it writes again with the same text is kept once. A rewrite that retyped a passed claim could change a copied name and fail where the first draft had passed. A corrected draft must pass citation checks and cover every requested fact or value. If the combined answer exceeds Jev's input limit for the coverage check, individually supported claims remain available as an unverified partial answer; the result identifies the coverage limit. The coverage check judges the written facts and values, not the form the task asks for, such as JSON, since code writes every answer as claims; citation support and browser actions have separate checks. A whole-answer check beside coverage judges the claims against the steps the run carried out on the page: an answer that says something was not done, or already existed, when one of those steps may have done it has every claim withheld, and a run still finishing spends a recovery to write it again. Only that rewrite gives the composer the steps, as the run's own record and never as citations; on every other draft a long run's clicks would crowd out the notes it writes from. Runs with a caller-supplied output schema spend the same recovery, and when it ends without a checked answer they retain their extracted data and end `unverified`. Each schema field is chosen after the answer is checked, with its claims beside the candidates, or with the claims that passed when a rewrite is pending: a field choice alone cannot compare records, and chose the other package where the answer worked out which was newer. Recovery is not attempted when a claim lacks a retained source quote or packed composition cannot reduce to one request. The composer says when its answer is partial and names what it leaves unestablished, such as a total over a list that continues unread. Such an answer is never `complete`: a finished run ends `unverified` with that account as its error, and a stuck run keeps its status. Exhausted composition recovery retains supported claims and ends `unverified`, unless a missing field value or site failure establishes another status. Those claims can be reused without another composition call only while their source evidence remains unchanged and the run has taken no further step. A later nonempty checked repair replaces the retained draft; an empty repair preserves the earlier draft. Other stops also retain checked partial claims alongside their status, wall or budget details. A run that already stopped keeps its stop status. Otherwise the answer is drafted from the facts Jev picked, with the same words picked on more than one page stated once and citing each. The request that checks the draft covers the task also asks whether each picked text is only what the task asks, in the form it asks for. A pick is a span code cut from the page, such as a table cell or a sentence, and can hold the value beside other text, or be a whole date where the task asks for its year. When it holds more, the composer writes the answer from the picks and their context, told that they held more than the task asks, and its claims pass the same checks as any composed answer. A composed answer is judged for exactness on the text it copies through its source parts, since its own wording holds no page text: a source part can insert its note's whole text, so a composed answer can copy more than the task asks too. The check rejects copied page information the task neither asks for nor names, such as another field's value, an identifier or another record, not the task's own words or a sentence that states only an asked value. ## Prompt limits and progress `Config.observation` names the group size for group-then-element choices. `Config.tokens` names the input budgets. A step request shows Jev the whole viewport, working notes and history; one that does not fit Jev's limit loses its oldest actions first and then has its long texts cut, each cut saying what it left out. Cut page text carries a marker when there is room for one; an excerpt too small to carry the marker is empty. A money, time or step limit keeps collected facts and their citations in a partial answer. The status stays `budget_exceeded`. A run whose answer must be composed can make reporting calls after its last browser step; these calls share the run's receipts and still obey its dollar, time and model-call limits. The same deadline wraps browsing and partial composition, so a stalled reporting call is cancelled when time runs out. A composing run stops browsing a tenth of its time limit (at most 60 s) early to write that partial answer within the limit. A time budget stops active work; the return also waits for owned requests and browser cleanup. Injected clients must honor cancellation and finish their cleanup. Returning while a paid request still runs would lose its cost receipt. Split batches collect provider receipts once. Custom decision clients that return partial answers without recording receipts retain those answers' costs through the error. Jev cost lines carry an optional `decision_purpose`: `action`, `authorization`, `relevance`, `read`, `verify` or `locate`. The owning call supplies it before dispatch, so retries, provider failover and cancellation keep the same attribution. LLM lines retain their separate `purpose` field. Calls made directly through a decision client without an agent purpose omit `decision_purpose`; older receipts remain readable. Purpose labels group calls without changing their charges. Cancellation returns a receipt of reported steps, cost lines and finished recordings after cleanup. Protocol 2 keeps error code `-32002` and adds the optional `error.data` receipt; other errors omit it. Rust returns `RunError::Cancelled(receipt)`. A cancelled cloud start keeps known charges as `unsettled`, or an `unknown` browser charge when the provider has not answered. A failed start retains its final known charges. An MCP browse error caused by runner cancellation puts the receipt in `_meta["fastbrowse.ai/cancellation"]`, outside the browse result schema. By default MCP allows the runner its time limit plus a 60-second overrun grace before forcing cancellation, then waits up to a further 60 seconds for cleanup and its receipt. A runner that does not cooperate can therefore take its time limit plus 120 seconds to return. Client cancellation notifications respond immediately without a receipt while cleanup continues for up to 60 seconds. The request ID is released before that response, so cleanup cannot remove a later call's cancellation entry. Progress and log notifications stop before the response, while cleanup continues. A run that does not finish cleanup before the grace expires is abandoned without a receipt. Only visible effects or added evidence count as progress. Rewriting the value already in the observed field cannot count, even when it opens an autocomplete popup. Control changes are compared within one document; a new document reports its controls instead of treating reused IDs as edits to the page left behind. A navigation retains its observed source page for decisions on the destination, including recovery and decisions after a redraw. The source's text, controls and Jev's sign-in reading are given only while a wall is suspected on the destination: the sign-in question is asked on that step, the destination's sign-in reading is above even odds, or it answered with a 4xx status. Otherwise the decision gets only the source's URL and title. The source is reported as a past observation whose current state is unknown. Credential availability uses each field's frame origin, as secret resolution does. When that origin has no stored secrets, the decision receives that fact before the historical source. The sign-in question distinguishes a restricted route from a task that requires an account; Jev still decides whether the wall blocks the task. Retained context is masked again before a model reads it. If the request exceeds Jev's documented input limit, retained page facts are shortened with an omission marker before the current page's text is shortened. A navigation or a step settles once no frame of the tab, embedded frames included, is still loading its document up to DOMContentLoaded, within the same settle deadline. A frame that loads after its page is ready is part of what the navigation opened, so its controls are in the first observation and the next step's effect does not claim them. The step also tracks function timers and animation frames scheduled during its input task, including their nested callbacks. Timers due before the settle deadline hold the wait; frame chains use the existing quiet window so an endless animation can settle. Cancelled callbacks, callbacks from earlier actions, timers due after the deadline, unrelated page timers and the cookie-banner helper's background timers do not hold it open. A `wait` step lasts until the page changes by itself: a change to what the settle fingerprint compares, a player starting, pausing, ending or muting (in the page, a granted child frame or a frame in a process of its own that an observation reads), a same-document navigation, a navigation to another document, or a dialog. It has no fixed bound. A run with `max_seconds` waits at most until it must stop browsing, and a run without one waits for the change. The wait samples the fingerprint twice a second beside the events it hears, since a script writing `checked` as a property raises none. A wait that ends with nothing changed is a step that changed nothing, under the one stall rule, unless a player's clock moved meanwhile. A cancelled wait removes what it installed in the page. A direct `Page::act` Wait has no deadline; an embedder bounds it through `Page::wait` or cancellation. Desktop waits use the same run deadline while polling the window's accessibility tree for a change. An empty observation waits on loading events before action history and progress are recorded. The same blank state is waited out once until a readable page appears, so a later navigation gets its own wait. Reloading remains restricted to an untouched opening page, since retrying a later page could repeat a submission. `StallRules` has one stall rule: a step that changes nothing, a read that adds nothing, a return to a page state already seen with nothing read since, or a further return after one return has already counted for the same evidence is no progress, since one read buys one return. `unchanged_actions` such steps in a row ask Jev again. A page state not seen before or a read that adds evidence resets the count and renews the `max_recoveries` budget. The new ask names what failed and leaves the stalled action out of its options, and Jev's pick is the next decision on that page. Before a run would end `stuck` past `max_recoveries`, the LLM proposes fresh known addresses using the current observation, evidence and history. Code excludes the current page and addresses already observed, offered, opened or walled. Jev chooses whether to take a proposed route; authorization and spending limits still apply. Without a fresh route the run ends `stuck`, or `unverified` for a rejected composition, unless an unfilled field requires `needs_input` or a site failure establishes another status. An HTTP error page goes to Jev like any other, with its status among the step's page facts, so Jev reloads it when the status can clear, goes back or picks another link; code only waits out a 403, 429 or 503 once per document. ## Run events and images `on_event` receives a `BrowserEvent` followed by `StepEvent` objects. Each step includes added facts, their reader and source links in `StepResult.facts`, and any available explanation in `StepResult.note`. `Config(step_frames=True)` attaches a PNG to each step unless a fresh observation shows a resolved secret. This safety reading preserves the pending action's guards and leaves download notices for the next decision. Jev identifies whether the task requests a final image, text, both, or an action without a report. A requested final screenshot does not require step frames. Image-only output skips answer composition and text evidence requirements; a request for both keeps the text evidence checks. An HTTP-first run opens a browser when its requested output needs pixels. A fresh secret check can withhold the image; a completed task without its requested image becomes `unverified`. Python and Rust expose the PNG as `RunResult.final_frame`. JSON clients receive a `screenshot` artifact with an `image/png` MIME type, SHA-256 digest and a base64 data URI. `Config(step_choices=True)` adds `StepResult.choices`, the controls Jev was offered for the decision the step carried out, after any shortlist or cap, with Jev's pick marked `chosen` (for a drag, the destination too). `on_frame` receives JPEG bytes from the active tab. Frames are acknowledged after the async handler returns; there is no fixed frame rate, and only the latest pending frame is retained. Delivery runs separately from the agent, and handler failures are logged. A handler must honour cancellation: it runs on the caller's event loop, so one that swallows `CancelledError` keeps that loop alive and `asyncio.run` waits for it at shutdown. Live images and MP4 recordings are held back from the moment a secret is typed, and whenever the page is read showing one, until a reading shows none; a recording holds its last clean frame meanwhile. ## Recipes A recipe is the steps a `complete` run took, stored as JSON. `--save-recipe FILE` writes one and `--recipe FILE` loads it. The task must match the recorded task. When `--recipe` is supplied without `--start`, its recorded start address is used for a new tab. An attached tab keeps its current page unless an explicit `--start` overrides it. A recipe start must be a credential-free HTTP or HTTPS URL with a usable host and port. Naming the same file for both flags replaces it atomically after another completed run, including actions the agent chose when a saved step no longer matched. A step identifies its full page address and a control's role, label, context, link and input attributes. Node ids and selectors are not stored. Query strings, fragments and generated path segments must match too: two orders can have identical controls without being the same order. A missing or ambiguous control is left to Jev. Jev judges every page for answers, errors and sign-in walls, and chooses every action. When the next saved step is on the page it was saved on, the original run read nothing before it, exactly one live control is the one it names, and a fill has a saved value the field may take, that control is the only one Jev is offered. Jev can take it, read, or stop, and it is not sent a screenshot or asked to shortlist the page's controls. A step Jev declines, or one that fails, is decided with the whole page in view from then on. Any other step is decided as in a fresh run, and when Jev's action agrees with a matching remaining recipe step, even if an earlier action is still offered, the fill can reuse the saved value. A step carried out from the recipe reports `decided_by: "recipe"`. Freshness checks, hit testing, authorization and secret handling still apply. Password fields always use the live credential checks. A stored secret is kept only by name, caller inputs by name, and text copied word for word from the task as a literal. Values taken from page evidence, values the LLM composed and select options are decided live on every run. Recipes can contain personal information from ordinary fields, so keep them private like the task that produced them. A step whose page address or control metadata reveals a resolved secret is omitted and decided live on replay. A recipe serves any run of the same task, so a value that changes between runs belongs in a named input rather than in the task: `fastbrowse "Search Wikipedia for the person named in input person" --input person="Ada Lovelace" --save-recipe r.json`, then the same task with `--input person="Grace Hopper" --recipe r.json`. Jev reads the task with each value it names shown beside the name ("input person (Ada Lovelace)"), and a fill that types an input's value is saved as the input's name, so the replay types the new value. The recipe keeps the task as written. Pages after it, such as the article, have a different address and are decided live. If the task or start URL contains a resolved secret, no recipe is saved: a redacted task would fail the exact task match required for replay, and a redacted start URL would not open the original page. Reading, answering and the check for `complete` always run live. Replay searches the remaining saved steps without an arbitrary lookahead or miss cutoff, so a non-replayable step does not discard later reusable actions. A recipe is not evidence that the present task has succeeded. After a mismatch, actions decided live can advance the saved sequence. A recipe save failure is written to server stderr without losing the completed run's result. SDK responses do not carry that warning; callers that require the file should check it exists on the server. The public Python `fastbrowse.recipes.validate_recipe()` accepts a JSON string, UTF-8 bytes or a dictionary and returns the normalized recipe, including defaults. Unsupported versions and invalid fields raise `ValueError` before a browser opens. `recipe_schema()` exports the Rust-owned file schema, also kept in `protocol/recipe.schema.json`. The schema checks field shapes; use `validate_recipe()` for URL semantics, including credentials and ports. Validation does not prove that a control exists or authorize an action. To regenerate the schema, run `FASTBROWSE_UPDATE_GOLDEN=1 cargo test -p fastbrowse-core --test recipe_schema`. ## Cursor feedback The run shows where the agent is about to act, through the Cua Driver's synthetic cursor on X11 or deskpilot's agent cursor on Hyprland, whenever its tab is on screen: by default it is drawn wherever it can be placed, `--cursor` (`run_task(cursor=True)`) also brings the window to the front so it always can be, and `--no-cursor` (`cursor=False`) turns it off. A plain `--headed` run works in a background tab behind `about:blank`, so the default draws nothing there; nothing of the run is on screen to mark. The click itself is still sent over CDP, so the overlay cannot change what an action did and is never retried. The page hook is in `CdpPage.act`, where the hit-tested point is known; a secret's field is never marked. MP4 recordings draw a timed cursor at those points, with a glide between actions and a pulse on clicks. The recording uses ffprobe to read its frame dimensions. If that fails, it omits the cursor with a warning. `browser/cursor.py` owns one `cua-driver mcp` child per run, speaking JSON-RPC over stdio, and stops it when the run ends, including on cancellation. The driver's `move_cursor` is sent in `window` scope only, so the real pointer and focus never move. The page point becomes a screen point from what the page reports: `screenX/Y`, `outerWidth/Height`, `innerWidth/Height` and the zoom from `Page.getLayoutMetrics`. The top inset is `outerHeight - innerHeight * zoom`. The cursor is drawn only when exactly one driver window matches the page's reported frame (which also shows the two share a scale, so a scaled display is skipped), that window is in front of every other, the tab is visible and the point is inside the viewport. Otherwise it is hidden. Once drawn it stays for the whole run, with the driver's idle fade off: a navigation, a scroll or a point outside the viewport leaves it at its last position, and a watcher hides it as soon as the tab stops showing, the frame can no longer be placed, or another window comes in front. Any driver failure turns the feature off for the run. On a Wayland session the cursor is drawn only under Hyprland, through `deskpilot mcp` (`FASTBROWSE_DESKPILOT` or `deskpilot` on `PATH`), since `cua-driver` lists no windows there. Chrome on native Wayland cannot know where its window is, so the window is the one listed by deskpilot's `windows` with the browser's pid and the page's `outerWidth x outerHeight`, and the point is sent to `move` in that window's pixels. Nothing is drawn when no window or more than one matches, the window is on a workspace no monitor shows, or any other window on screen overlaps it: Hyprland gives no stacking order, so an overlap cannot be shown to be behind. `move` reports the global point it drew at, and a point other than the window's position plus the one sent turns the feature off, since deskpilot scales a point by its latest shot of that window when it holds one. deskpilot has no session or hide: its arrow fades after eight idle seconds, so an arrow drawn just before another window covers the browser can stay that long. `take_pointer`, `show` and `focus` are never sent, so the user's pointer and focus stay where they are. The driver answers `move_cursor` only once its glide has landed, and at its own pace a glide across the screen takes one to three seconds, longer than the half second between quick clicks: each glide was cut off by the next, so the arrow landed on nothing, and a glide past the two-second call bound turned the feature off. The run asks `set_agent_cursor_motion` for fixed timing with a glide paced between 550 and 2,200 ms, and waits up to six seconds for the move itself. The outer deadline also allows two seconds each for refreshing the session, finding its window, restoring visibility and updating the pace. Shorter glides land sooner but cross the screen in a few frames. The glide a move is drawn with is paced to a travel speed, not to a duration: it takes as long as its distance needs at `GLIDE_PX_PER_S`, between `GLIDE_MS` and `GLIDE_MAX_MS`. One fixed duration made a sweep across the page the same length as a hop between neighbours, so the long move crossed four or five times faster and could not be followed. The floor is the value tuned to land the arrow on every click, and the cap keeps one sweep from holding up the step behind it. On the measured replay a sweep peaked at 1,350-2,400px/s and now peaks near 750px/s. `glide_duration_ms` is only the glide length under `timing: fixed`; every other timing keeps the style's own curve and ignores the number, so the run asks for `fixed` when it sets a glide and again when it re-paces one. The paced value is sent with `set_agent_cursor_motion` only when it changes, and a driver without that tool keeps the glide it was started with. Limits: Linux only, on X11 or Hyprland; other Wayland compositors, macOS and Windows are not verified. X11 needs `cua-driver` 0.28.3 or newer with the session cursor tools, and Hyprland needs deskpilot with its plugin loaded. Cloud and headless browsers are skipped. The desktop cursor has no click pulse through `move_cursor`; recordings add one in the video. A docked DevTools panel or a pinch zoom hides the desktop cursor, and a window partly covered by another counts as covered. CDP screenshots do not show the desktop cursor. ## Browser capabilities over plain CDP Verified over raw CDP against local headless Chrome and a Browser Use cloud browser: | Capability | Mechanism | Local | Cloud | |---|---|---|---| | Own tab rendered | `Target.createTarget` + `Target.activateTarget` + `Emulation.setFocusEmulationEnabled` | pass | pass | | Own tab rendered behind a visible window | `Target.createTarget(background)` + `Emulation.setFocusEmulationEnabled` + a 16px `Page.startScreencast` on a second session | pass | not used | | Upload caller bytes | in-page `DataTransfer` + `File` on the input, `input`/`change` events (no host path needed) | pass | pass | | Download bytes | `Fetch.enable` at Response stage for Document responses (download-attribute anchors included), `Fetch.getResponseBody` on `Content-Disposition: attachment` | pass | pass | | Cross-origin iframe | `Target.setAutoAttach(flatten)` on the page session, evaluate in the iframe session | pass | pass | | Popup ownership | `Target.targetCreated.openerId` equals our target | pass | pass | | Dialogs | `Page.javascriptDialogOpening` + `Page.handleJavaScriptDialog` | pass | pass | Downloads arrive whole over the DevTools socket, so a session keeps them up to `Config.max_download_bytes` (512 MiB by default) and refuses a response whose stated `Content-Length` is larger without reading it. A refusal is reported once in the observation (`[Download not kept: ...]`) rather than dropped, so a run that clicked an export it could not hold says the file was not saved instead of reporting success. The kept name is the response's `filename*` (RFC 5987), else the URL's path segment without its query, reduced to one safe path segment. A PDF is kept the same way, inline or downloaded, and its text is read in a helper process: the host program run again with `__fastbrowse-helper pdf-text 1` as its arguments, the PDF on stdin and a framed reply on stdout. The run kills and reaps it after 10 seconds, when the run is cancelled, and when its runtime shuts down, and a parser crash ends only the helper. Only that one process is killed, so each host names a program that is the helper itself. The `fastbrowse` binary runs itself. The Python package runs its interpreter's own executable as `-I -S fastbrowse/_helper.py`, never a venv's `python.exe`, which on Windows starts the interpreter as a child. It does so when Python parsed the process arguments, detected by `sys.argv` differing from `sys.orig_argv`; a frozen application or an embedding host that keeps its own arguments registers nothing. The Node addon runs the binary selected by `binaryPath`, `FASTBROWSE_BINARY` or its platform package, and a Rust program calls `fastbrowse::helper::run_if_requested()` first in `main`. A program that registers no helper still keeps the PDF, and the observation says its text was not read (`[Downloaded file: ...] The file was kept, but its text was not read: ...`), naming why: no reader, a read past 10 seconds, a file that is no PDF, or a reader that did not start or ended without an answer. Downloaded XLSX workbooks, DOCX documents and ZIP archives use the same killable helper. Workbooks retain each worksheet's name and each stored cell's row, column and value. Empty coordinates are omitted, so sparse sheets are read without allocating the rectangle between their cells. Formulas are not evaluated. Word text retains paragraph, table-cell, tab and line-break boundaries, with its package part named. Archive members are read in memory, never extracted onto the host. Text, CSV, TSV, JSON, XML, Markdown and HTML members are read as UTF-8 text; XLSX, DOCX and PDF members use their document readers. Other or invalid members remain named with an explicit notice that their contents were not read. Nested archives are not expanded. Generic or missing MIME types use the download filename to select these readers. The configured `max_download_bytes` also bounds aggregate decompressed container bytes and extracted output; a document exceeding it is reported unread, rather than returning truncated text. The cloud browser ignores `Browser.setDownloadBehavior(deny)`, so bytes come from response interception, never from the remote filesystem. Host-path `DOM.setFileInputFiles` is only valid for a browser on the same machine. ### Foreground and background Chrome raises and focuses the whole window of a tab that is activated (`Target.activateTarget`, `Page.bringToFront`) or created in front, so a session does either only when `BrowserConnection.foreground` is set: on a cloud browser, whose live view shows the front tab, on headless Chrome, which has no window, and when the caller asks to watch. Otherwise the tab is created with `background: true` and nothing activates it. A tab behind another is hidden, so two things stand in for being in front. Focus emulation makes the document visible and focused, which runs animation frames and lets it take typing. A screencast keeps the tab's compositor awake, without which a screenshot of an idle page waits seconds for a frame; it is 16 pixels, every thousandth frame, on a session of its own so that live frames and recordings cannot replace it. Measured on Chrome 155 in a headed window beside a focused window of another program: none of the session's commands moved focus. New popup pages pause until Fetch can capture their first response, including an inline PDF, and scoped sessions install service-worker bypass before that first request. Renderer setup follows resuming the page because a paused popup may have no renderer yet. A page outside the run's ownership is resumed and detached. What still moves it is Chrome's own doing: a popup a page opens is created in front, and a pointer press dispatched to the front tab of an inactive window activates that window, as an attached window often is. ### Attached windows A session normally opens its own tab and closes only the tabs it owns. With `BrowserConnection.attach` it opens none: it takes the first page target whose title or URL contains `target_match`, or without one the first web page, skipping browser-internal pages such as extension options, `chrome://`, `chrome-untrusted://` and `devtools://` windows unless `target_match` names one, and putting `http`/`https` pages before Electron and app windows. It owns nothing, so `closeTarget` is never sent. An attach with no usable window, scoped or not, as in a fresh browser showing only `about:blank`, takes over an empty window (`about:blank` that no page opened, still holding the empty document) when there is one, and otherwise opens one blank tab, keeping either open on exit like the window it stands in for; it closes an opened tab only if setup fails. A new tab page is never taken over: it can list the person's most visited sites. That page loaded before the session's new-document scripts were registered, so they are also evaluated once in it; otherwise freshness tracking would start only at its next navigation. Turning target discovery on replays `targetCreated` for every window already open, so an attached session turns it on only after recording those, and none of them joins the run. Popups of a tracked window join without being owned. Windows with no opener join only when `target_match` is set: an Electron main process opens its windows that way, and so does a browser for each tab a person opens by hand. `allowed_origins` scopes documents with the same Fetch hook downloads use. A scoped session also pauses every `Document` request before it is sent and fails one outside the grant with `ERR_ABORTED`, which commits no page that could name the address. Redirect hops, iframes and popups all pause as documents, so one check covers each. Pages and child targets attach paused (`waitForDebuggerOnStart`) and resume only once their Fetch is on, so a popup or out-of-process frame cannot send its first request unchecked. Reads check the address each text was read from, the committed address of the active tab, and nested document addresses, so an opaque document (`about:blank`, `srcdoc`, `blob:` or `data:`) or a foreign page restored from the back-forward cache is refused rather than read. Nested blank documents remain refused even when `document.write` gives them their parent's address. A window already open outside the grant is never matched, and no window is navigated to enforce anything. Service workers are bypassed on every scoped session (`Network.setBypassServiceWorker`, undone on an attached window at close), so no navigation is answered without meeting the gate. A scoped run delivers no live frames, screenshots or recordings, because pixels cannot be matched to a document. The grant covers documents, not network egress: subresources and requests a granted page makes are not scoped, and neither are workers. `check_access`, when given, is awaited before browser startup and every browser read and action, scoped or not. Before a pointer press, the browser waits for a stable target and rechecks its guard and hit-test. A replacement control must match the original semantics and receiving document; ambiguous matches are refused. A target covered by a band fixed to the window (an anchored ad, a sticky footer) is scrolled clear of it, and one the band still covers is focused and pressed or typed into from the keyboard, so the band is never clicked. Any other cover, such as a dialog, an open menu or popover, or a full-window backdrop, is reported as `covered`. The screenshot fallback clicks only while a fresh viewport still matches the pixels Jev used to choose its coordinates. When focus is in a suggesting field, it leaves that field first, which presses nothing, and the control is checked again, so a list the field left open does not hold up the next one. Focus and the receiving field are checked before typing. Settling waits for an interactive document and a quiet DOM. It does not guess at loading indicators by class name: a page still loading is read as it stands, and the reader and Jev judge from its text whether to look again. --- # Troubleshooting a run Source: https://github.com/agent-labs-dev/fastbrowse/blob/633121ade207c7e3e415bdf4fd26f7a0f2608c58/docs/troubleshooting.md What each run status and exit code means, its common causes and what to try next, from sign-in walls and bot checks to limits. A run that does not end `complete` says why in three places: its status, its exit code and its `error` text. This page covers each status you are likely to meet, in exit-code order: what it means, the common causes and what to do next. The full table is in [Results](https://www.fastbrowse.ai/docs/results#results). | Status | Exit | In short | |:--|:--|:--| | [error](https://www.fastbrowse.ai/docs/troubleshooting#error-exit-1) | 1 | a failure retries do not cover, or a refused option | | [needs_confirmation](https://www.fastbrowse.ai/docs/troubleshooting#needs_confirmation-exit-3) | 3 | an irreversible action needs your authorization | | [needs_login](https://www.fastbrowse.ai/docs/troubleshooting#needs_login-exit-4) | 4 | a sign-in wall that no secret covers | | [needs_input](https://www.fastbrowse.ai/docs/troubleshooting#needs_input-exit-5) | 5 | a value or file the task did not give | | [blocked](https://www.fastbrowse.ai/docs/troubleshooting#blocked-exit-6) | 6 | a bot check or a refusal | | [budget_exceeded](https://www.fastbrowse.ai/docs/troubleshooting#budget_exceeded-exit-7) | 7 | a limit you set was reached | | [unavailable](https://www.fastbrowse.ai/docs/troubleshooting#unavailable-exit-8) | 8 | a model or browser provider stayed down | | [stuck](https://www.fastbrowse.ai/docs/troubleshooting#stuck-exit-9) | 9 | Jev found no way forward | | [unverified](https://www.fastbrowse.ai/docs/troubleshooting#unverified-exit-10) | 10 | the requested data could not be filled from the page, or the site refused a requested step | | [observation_limit](https://www.fastbrowse.ai/docs/troubleshooting#observation_limit-exit-11) | 11 | the page does not fit the prompt budget | | [cancelled](https://www.fastbrowse.ai/docs/troubleshooting#cancelled-exit-12) | 12 | you stopped an `--extension` run in your browser | ## Reading a stopped run The CLI prints the status, cost and step count, then the error and anything the run read before it stopped. `--json` prints the whole result, including every step and the quotes behind the answer. A run that stops `stuck`, `unverified`, `budget_exceeded`, `observation_limit`, `unavailable` or `error` after reading something still returns those cited quotes, so check `evidence` before you browse again. A `stuck` or `unverified` run can also write an answer from them when the task asks for one. Other stops can retain an already checked partial answer while its source evidence remains unchanged, including a sign-in wall or pending authorization. Preserve any returned answer as partial. Some partial answers start with `Partial evidence only.`; use the status to determine whether the task completed. The causes below name Jev, the model that picks each action from the controls on the page; the LLM plans, reads and writes. See [Models](https://www.fastbrowse.ai/docs/models#models). ## error (exit 1) **What it means.** A model or browser failure that is not a provider outage, or a run that never started. Configuration refusals also exit 1. **Common causes.** - A model or browser call failed in a way retries do not cover. `error` holds the whole failure, with any secret redacted. - The browser could not be reached as configured, for example `no DevTools endpoint at http://127.0.0.1:/json/version ()` from `--cdp-port`, or a pair of browser options that cannot go together, such as `cdp_url and cdp_port both name a browser to attach to; pass one`. - A callback in the embedding API or the JavaScript SDK threw, or `check_access` raised. - The CLI refused its options before starting, printing `fastbrowse: `, such as `--secret names unset variables: ` or `--bitwarden needs --start: the vault item is matched against its origin`. With `--json` it prints a result with status `error` and that reason. **Next step.** - Read `error`. - For a refused option or browser choice, fix the command and run again. - For a model or browser failure, run again. If it repeats, open an issue with the task, the start page and the `--json` step trace, as [CONTRIBUTING.md](https://github.com/agent-labs-dev/fastbrowse/blob/633121ade207c7e3e415bdf4fd26f7a0f2608c58/CONTRIBUTING.md) describes. ## needs_confirmation (exit 3) **What it means.** The run stopped before an action Jev judged irreversible, such as submit, pay, delete or send, because the run was not authorized to take it, or was authorized but Jev judged the task did not ask for it. That action was not taken. **Common causes.** The task leads to an irreversible action, and the run had no authorization. The error is ` '' needs confirmation`, and the refusal appears as a failed step. **Next step.** Read the step the run stopped on, since the irreversible check can be wrong. If the action is what you want, run again with authorization: - the CLI: `--authorize`; - the embedding API: `authorization=Authorization(irreversible_actions=True)`; - MCP: pass `authorize` on the call. The server must be started with `--allow-authorize`, or every such action stops here; ask the user to take the step, or to restart the server with that flag. ## needs_login (exit 4) **What it means.** The run met a sign-in wall that no secret covers. **Common causes.** - Jev judged a fresh page to be a sign-in wall, and no secret is declared for that page's origin. The error is `sign-in required at `. It names the fields the page asks for, and `a security key or passkey` when the page marks a passkey field (`autocomplete="webauthn"`). - The run reached a field that takes a secret, such as a password, and none is stored. The error is `'' wants a secret and none is stored`. - The site answered HTTP 401 and Jev found no way on. The error is `Could not complete the task after HTTP 401 at in this browser session; the cause is unknown.` - A secret is declared, but for a different origin. A field is offered only the secrets declared for the origin of the frame it sits in, so this reads the same as no secret. - A secret is declared for the origin but resolves to nothing, such as a password manager item that changed during the run. The error is `sign-in required at : secret is not available there`. The CLI adds what to pass: `Pass --secret NAME=ENV_VAR@https://host with the password in that environment variable; credentials in task text are not used.` The result's `wall` field says what the wall asked for, so a caller can route it without parsing the error; see [Results](https://www.fastbrowse.ai/docs/results#results). **Next step.** Give the run a way in, then run it again: - `--secret NAME=ENV_VAR@https://host`, with the value in that environment variable. Without `@ORIGIN` the secret is scoped to the `--start` origin. Check that origin against the address the form is on. - `--bitwarden ITEM`, when the vault item's saved URIs match `--start`. - `--extension`, to run in your own Chrome where you are already signed in. See [Your own Chrome](https://www.fastbrowse.ai/docs/signed-in-sites#your-own-chrome). - `--cloud --cloud-profile ID` for a Browser Use Cloud profile, or a local profile through the SDK. See [Signed-in sites](https://www.fastbrowse.ai/docs/signed-in-sites#signed-in-sites). - Over MCP, the server's operator adds the secret with `--secret` or `--bitwarden`, or signs in once in the server's `--profile`. Once a secret covers an origin, its sign-in wall is work for the run and no longer stops it. ## needs_input (exit 5) **What it means.** The run needs a value or a file that the task did not give, or an upload is over the size limit. **Common causes.** - The run opened no page: `the task names no page to start from, and none was given`. - A field needs a value the task never states. The run first tries to go on without it, then stops with `'' needs a value the task does not give`, followed by the reason it gave up. A field the task asks nothing of is left as it is, and is named here only when the page marks it required. - The page asks for a file and the run has none: `the page asks for a file and none was provided`. - A file is larger than `Config.max_upload_bytes` (25 MiB by default): ` exceeds the upload size limit`. - A password change without a replacement secret: `A replacement password requires --secret new_password=ENV_VAR@https://host; set ENV_VAR to the new value instead of putting it in the task.` - A field that takes no credential chose a secret declared for the origin that resolves to nothing, such as a password manager item that changed during the run: `secret is not available for `. A sign-in field ends `needs_login` instead, see [needs_login](https://www.fastbrowse.ai/docs/troubleshooting#needs_login-exit-4). - A drag with nowhere to drop: `the page offers no drop target for the drag`. - An address the run would open contains a resolved secret: `navigation address contains a resolved secret`. **Next step.** Supply what the error names, then run again: - Give `--start`, or name the page in the task. - Put missing text in the task. The embedding API and the JavaScript SDK also take `inputs` for exact field text. - Pass files as `attachments` in the embedding API or the JavaScript SDK. The CLI and the MCP tool cannot supply files. - Supply a new password as `--secret new_password=ENV_VAR@https://host`, and fix the origin of a secret scoped to the wrong one. ## blocked (exit 6) **What it means.** The site stopped the run with a bot check, or refused it. **Common causes.** - A bot check, such as a CAPTCHA, that did not clear. The run waits while the page is still loading, or while a Browser Use Cloud browser's CAPTCHA solver works on the check, up to the run's time limit. A load counts as still loading for as long as a navigation is given, 225 s from its start. It stops at once when nothing is working on the check or the solver gives up. The error is `bot check at ; it is not a sign-in and no credential passes it, and no other route to the task was found. Retry after the check clears or choose another source for the task.` - The site answered HTTP 403 and Jev found no way on. The error is `Could not complete the task after HTTP 403 at : the site refused this browser session, which may be an access or bot check or a sign-in it requires.` A bot check can block a cloud browser before any task step runs. Credentials do not pass a CAPTCHA, so `--secret` and `--bitwarden` do not help here. **Next step.** - Retry in your own Chrome through the extension (the CLI default), or choose another source for the research. - Give `--start` a URL past the check. - Solve the check by hand in the Chrome profile with the extension installed, then retry. ## budget_exceeded (exit 7) **What it means.** The run reached a limit you set, or it cannot enforce its dollar cap. **Common causes.** The JSON result's `budget.resource` names the limit and `budget.limit` its value: | `budget.resource` | Error | Set by | |:--|:--|:--| | `steps` | `step limit reached` | `--max-steps`, `Limits(max_steps=...)` | | `dollars` | `spend limit $ reached` | `--max-dollars`, `Limits(max_dollars=...)` | | `dollars` | `spend limit $ cannot be enforced: a call reported no cost` | the same dollar cap | | `seconds` | `time limit s reached` | `Limits(max_seconds=...)`, the MCP server's `--max-seconds` | | `jev_calls` | `Jev call limit reached` | `Limits(max_jev_calls=...)` | | `llm_calls` | `LLM call limit reached` | `Limits(max_llm_calls=...)` | Other results have `budget: null`. The embedding and MCP APIs carry the same object. A cloud browser bills when it stops, after the run, so its charge appears in the result's cost but cannot stop the run that incurred it. **Calls with an unknown cost.** If a model completion omits its cost, fastbrowse looks up the matching OpenRouter or Vercel generation receipt. If that receipt is still unavailable, a run with a dollar cap stops with `cannot be enforced: a call reported no cost`, because an unpriced call could have spent anything. The known charges may still be under the cap. A run without a dollar cap does not stop for this. **Next step.** - Run again with a higher limit for the resource named, or split the task. - For an unknown cost, run again so the receipt lookup can succeed. Supplied `inputs` give exact field text without a field-writing generation. ## unavailable (exit 8) **What it means.** A model or browser provider stayed unavailable through every retry. The task itself may be fine, and the same run later may pass. A run that had already taken a step that may have changed the site, such as a click on Post, ends `error` instead: its error names those steps, so check the site before running the task again. **Common causes.** - Jev or the LLM failed in transport or ran out of retries. - A Browser Use Cloud browser could not be started: the service could not be reached or answered with a retryable status. - Before the first step, the start page never loaded, or Chrome reported a dropped, refused or empty connection. A name that does not resolve is not counted here, since it can be a mistyped address. - The site answered HTTP 408, 419, 429 or a 5xx status, and Jev found no way on. - Mid-run, the browser could not open an address the run chose, after its own retries: `Could not complete the task after opening failed in this browser session: .` - Jev judged that the page reports the site failed, such as an error shown in place of search results, a maintenance notice or a load that never finished, and reloading found no way past it: `Could not complete the task after the page at reported that the site failed to deliver what was asked.` - A browser command went unanswered while the browser still answered health checks. A command to a page that goes unanswered for 10 seconds has the page asked whether it still answers, and one that does not answer in 10 more is hung; an input event gets 15 seconds and any other command 120 seconds. The first page that stops answering an action is reopened once at the address the tab shows; a second hang, or one outside an action, ends the run, and the error says the page did not answer or the browser stopped answering. - The run's tab closed and no tab it owns remains. - With `--extension`, Chrome took the run's tab away because the page loaded another extension's frame; see [Another extension's frame takes the tab away](https://www.fastbrowse.ai/docs/troubleshooting#another-extensions-frame-takes-the-tab-away). - With `--extension`, no browser has the fastbrowse extension connected. The error is `no browser has the fastbrowse extension connected`. **Next step.** - Read `error` for the provider or address, then run the task again later. - For a deadline, set `Limits(max_seconds=...)` in the embedding API, or `--max-seconds` on the MCP server. Step and dollar limits do not bound elapsed time. - For a stalled run, write its trace with `--trace FILE` or `FASTBROWSE_TRACE=FILE` and keep the last event with the result. Each `decide_choices` event lists the controls a step was chosen from, the chosen one marked. ### An attached Chrome that waits for approval With SDK `cdp_url` or `cdp_port`, the run connects to a browser you started. The CLI requires the extension instead. If that browser never completes the DevTools handshake, the run ends `unavailable` with: ```text CDP.start failed (): the browser did not complete the DevTools handshake. If this is a Chrome you started yourself, it may be waiting for you to approve remote debugging, or the address may be stale; check the browser window and the address, then retry. ``` **Next step.** Look at the Chrome window for a prompt to allow remote debugging and accept it, check that the address is the browser's current one, and run again. Chrome asks again on every connection, so for your everyday Chrome use `--extension` instead, which needs no approval; see [Your own Chrome](https://www.fastbrowse.ai/docs/signed-in-sites#your-own-chrome). ### The extension is not connected `--extension` reaches Chrome through the fastbrowse extension, which Chrome connects to fastbrowse when the browser starts. When the run ends `unavailable` with `no browser has the fastbrowse extension connected`: - Check that `fastbrowse extension install` ran for this user, and run it again after moving or reinstalling fastbrowse, since it records where fastbrowse is. - Check that the [store extension](https://chromewebstore.google.com/detail/fastbrowse/ghodfgfhbfaghhfdabopagbfopdjgpop) is installed and on at `chrome://extensions`, and that Chrome is open. - After installing, restart Chrome or turn the extension off and on, so it connects. - The error names the directory the run looked in. A connected browser's host writes there too, and on Linux both use `$XDG_RUNTIME_DIR/fastbrowse-hosts`, or `/run/user//fastbrowse-hosts` when the variable is unset. A run started with `FASTBROWSE_EXTENSION_DIR` set, or with a different `XDG_RUNTIME_DIR` from Chrome's, looks somewhere else. If the error says the extension does not report its supported commands, it is too old for this build. Extension 0.1.1 or later must advertise every required command. Store 0.1.0 cannot do that. Update the extension, or run `fastbrowse extension path` and load its folder unpacked through **Developer mode** at `chrome://extensions`. A newer version number alone does not establish compatibility. ### Another extension's frame takes the tab away Chrome lets no extension debug a tab while the page holds a frame from another extension, and takes the tab away from fastbrowse as soon as one appears. Screen recorders, password managers and writing assistants add such frames to every page. The run ends `unavailable` with `Chrome detached fastbrowse from the run's tab when the page loaded a frame from another extension (chrome-extension://)`. **Next step.** Open `chrome://extensions/?id=` from the error, set **Site access** to **On click**, and run again. The extension then adds its frame only on pages where you click it. With `--trace FILE`, every message between the run and the extension is in the trace as an `extension` event, with screenshots and screencast frames replaced by their length, and an `extension_tab_lost` event names the frame that took the tab. ### DevToolsActivePort and finding the DevTools address SDK `cdp_port=PORT` reads the browser's websocket address from `http://127.0.0.1:PORT/json/version`. When nothing there answers with one, the run ends `error` with `no DevTools endpoint at http://127.0.0.1:PORT/json/version ()` or `... named no webSocketDebuggerUrl`. Pass the browser's `ws://` address with SDK `cdp_url` instead. A local Chrome that fastbrowse starts itself picks its own DevTools port and writes it to a file named `DevToolsActivePort` in its profile directory, which the run reads. If Chrome exits first, or does not answer on the port it wrote within 90 seconds, the run fails before any status is reported, with `Chrome exited with status before DevTools started` or `Chrome did not start DevTools within 90s`. Both messages end with Chrome's complete diagnostic output, which names the cause; fix that and run again. ## stuck (exit 9) **What it means.** The stall budget ran out without reaching a page state the run had not seen. **Common causes.** - Jev, told each time what failed, found no way forward before `max_recoveries` ran out. - The task says to change nothing, so the run cannot type into fields, pick options or tick boxes. A run that needs a value entered must not forbid edits. Typing a search is still allowed. - The run chose to open an address that neither the task nor `--start` supplied: `navigation address was not supplied by the caller`. - The page does not exist: `Could not complete the task after HTTP 404 at : the page does not exist.`, or the same with HTTP 410. When the address the run started at answers this, a run that leaves it and stalls on another page still ends with this error. Check the address, or whether the page is public yet. - The site answered an HTTP error that maps to no other status: `Could not complete the task after HTTP at in this browser session; the cause is unknown.` - The run stopped with a canvas, a picture or a video in view, and reading its screenshot did not answer the task. The error then ends with `This page shows a canvas, picture or video beside its text, and its screenshot was not read as answering the task.` The page may still carry everything in its text: the stall can have another cause. **Next step.** - Try a `--start` URL closer to the goal, or a narrower task. - Name any address the run needs in the task or in `--start`. - On a drawn page, fastbrowse reads the DOM first, so it has two limits: a control that exists only in the pixels has no element to act on, and text that exists only in the pixels is not in the page text it quotes. The screenshot is the fallback for reading. When Jev's route accepts images, each step on a drawn page sends Jev the viewport, and before the run answers or gives up, the LLM reads the screenshot for text that answers the task, cited as read from the image. A drawn control still cannot be clicked, so start from a page of the site that offers the same action as an HTML control. - Open an issue with the task, the start page, the status and the `--json` step trace, as [CONTRIBUTING.md](https://github.com/agent-labs-dev/fastbrowse/blob/633121ade207c7e3e415bdf4fd26f7a0f2608c58/CONTRIBUTING.md) describes. ## unverified (exit 10) **What it means.** Jev finished, but the data the run was asked for could not be filled from the page, or a step the task asks for was not carried out because the site does not allow it. Treat the result as unconfirmed. **Common causes.** - A field of the requested data was not backed by the page. - The output schema has a field the run cannot fill. A run fills a flat object of required string, number, integer and boolean fields; with any other field it ends `unverified` with no data. - The site refused a requested step, for example an option it marks unavailable or a control it shows disabled. The run ends with its answer, which says what was and was not done, and the error says a requested step was not carried out because the site does not allow it. **Next step.** - Read the answer and `evidence` in `--json`, and check what is cited before relying on it. - Flatten an output schema to the field types above. - Try a `--start` URL closer to the page that holds the answer, or a narrower task. ## observation_limit (exit 11) **What it means.** The page cannot fit the configured prompt budget. **Common causes.** - A page whose state exceeds Jev's input limits even with no controls offered: `the state on exceeds Jev's input limits with no controls`. **Next step.** - Try a `--start` URL closer to the goal, or a narrower task that needs fewer facts in one answer. - To raise the budgets, set `observation` and `tokens` in `Config` in the embedding API. ## cancelled (exit 12) **What it means.** You stopped an `--extension` run in your browser before it finished. **Common causes.** - **Stop** in the fastbrowse extension's popup. - **Cancel** on Chrome's bar saying an extension started debugging the browser. That bar belongs to the whole browser, so it stops every run the extension is driving. - Closing every tab in the run's tab group. The result keeps the steps the run took and what it spent. **Next step.** Run it again if you still want it done. To watch a run without stopping it, leave the bar and the run's tabs alone; the run closes its own tabs when it ends. ---