browxai
browxai is an MCP server that lets an AI agent drive a web page or a native app with the same tools.
browxai.com · brand kit
Point any MCP client (Claude Code, Codex, Pi, …) or a typed TypeScript script at it. `snapshot`, `find`, `click` and `fill` work the same on a web page in Chromium, Firefox, WebKit, Safari or Chrome on an Android phone, on an app in an Android emulator or the iOS Simulator, on a desktop Electron app you already have open, and (with `native-desktop` opted in) on native desktop apps on macOS, Windows and Linux.
A browser is what browxai drives most. Its tools return small, structured results. Only `read`, `navigation`, `action` and `human` are on by default, and every other capability is off until you turn it on.
Eleven engines sit behind that one tool surface, in three families. The families have different amounts of evidence behind them, and each paragraph below says how much. The [engine evidence table](https://browxai.com/reference/tool-reference/sessions/#engine-evidence) lists, for each engine, what ran, where, on which version, on what date and how to rerun it.
**Five browser engines.** Chromium, Firefox and WebKit are browsers browxai launches for you. `safari` drives real Safari.app over `safaridriver`. `android` drives Chrome or an embedded WebView (`BROWX_ANDROID_WEBVIEW_APP`) on an Android emulator or an allowlisted physical handset over `adb`. It is attach-only: the browser has to already be running on the device, and a managed launch refuses with `android-launch-not-supported`. CI runs the keystone suite on Chromium, Firefox and WebKit on every branch push. Safari needs macOS, so it runs by hand, and the last recorded run is 2026-09-10 (0.10.0). `android` is fixture-verified in CI against a stand-in `adb` plus real headless Chromium, and the repo records no passing run on a physical phone yet.
**Two native mobile-app engines**, both behind the off-by-default `native-device` capability, which `open_session` checks before anything boots, installs or launches. Neither is a browser: no DOM, no URL, and `eval_js`, the network family and web storage all refuse by name. What each app does return is the same `A11yNode` tree with the same `[ref=eN]` refs `snapshot` returns for a page, so `find` and `click` work on it unchanged.
- `android-app` drives an app on an Android emulator (`emulator-` serials by default; physical serials refuse with `android-device-real-refused` unless opted in via env-only `BROWX_ANDROID_DEVICE_ALLOWLIST`, `BROWX_ANDROID_DEVICE_APPS` and `BROWX_ANDROID_APP_ID`) through UiAutomator, over `adb`. It was verified end to end against a live Android 14 emulator for 0.11.0 (2026-09-23), through the real MCP server; the newer physical-device, log, video, replay, permission and file-transfer lanes are fixture-verified in CI against stand-in `adb`/`aapt2` and unverified on real phone hardware. A device is leased, because two UiAutomator clients on one device break every hierarchy read for both.
- `ios-app` drives an app on the iOS Simulator through XCUITest, with an opt-in real-device path (`BROWX_IOS_TARGET=device`, off by default, requiring explicit device and app allowlists). The `simctl` half of it (resolve, boot, install, launch, screenshot, terminate) is what the keystone drives against a real simulator when the machine has one, and the repo records no passing run of it yet. The keystone drives the WebDriverAgent transport against a stand-in HTTP server, which covers the engine registration, the ref minting, the action verbs and the tool handlers. The WebDriverAgent endpoints browxai reads were probed against a real iPhone on 2026-11-24 (iOS 27.2) and the pinch route was corrected after that run. The full engine against a real device is unverified on hardware.
WebDriverAgent, Xcode and the Android SDK are yours to install and run. browxai bundles none of them, creates no AVD and no simulator, and a missing WebDriverAgent refuses session creation, so `snapshot` never returns an empty tree.
**Four desktop-app engines.**
- `electron` attaches to a running Electron application over the `--remote-debugging-port` it was launched with, so VS Code or Slack is in reach. It works because an Electron app is Chromium: the engine reuses the same substrate bundle the Chromium engine uses and adds no new capture code. It differs from an ordinary BYOB attach in three ways the keystone measures. It is attach-only, and `electron-launch-not-supported` says so; browxai will not start a desktop application. `navigate` refuses, because loading a URL into an Electron renderer would run that page inside the application's own privileged renderer. A single-window app exposes one page target and cannot mint another, so a second session refuses with `attach-target-creation-unavailable`. The gate is `byob-attach`, the same one a BYOB Chrome needs, and the debugging port is unauthenticated for the app's lifetime: read [`docs/threat-model.md`](https://browxai.com/security/threat-model/) before pointing it at an app that holds your data. The Electron evidence is one app, on one machine, in one run (recorded for 0.11.0, 2026-09-23): VS Code 1.122.1 on Electron 39.8.8, where `snapshot` returned a 132-line tree in 36 ms, `find` ranked three real candidates with bounding boxes, and a `click` by ref landed. Attachability is a property of the app and the version, and browxai cannot promise it. Figma's desktop client calls `app.commandLine.removeSwitch("remote-debugging-port")` at startup, read out of the shipped `app.asar` of 126.8.18 on macOS, so it never opens a port and there is nothing to attach to. Check the app you actually have.
- `macos-app`, `windows-app` and `linux-app` drive native desktop applications through the OS accessibility tree and fenced OS input via per-OS native helpers, behind the off-by-default `native-desktop` capability and an env-only `BROWX_DESKTOP_APPS` allowlist. Every input event checks the foreground fence, window bounds, hit test, human-first idle pause (`BROWX_DESKTOP_HUMAN_IDLE_MS`), per-session rate limits, and password-field refusals; high-reach apps (terminals, browsers, password managers, settings) require human confirmation through `native_desktop_app`. Evidence differs by OS: `linux-app` (X11 + AT-SPI2 helper in `helpers/desktop/`) runs its live Xvfb keystone in CI; `macos-app` (`macos/desktop-helper/`) runs fake-helper unit and input keystones in CI and recorded a live read + capture pass on a signed, notarized `Browxai.app` 0.24.0 (macOS 26.5.0 arm64, 2026-12-02), while live frontmost input, idle pause, rate limits, secure-field refusal, and `macos-app.keystone.test.ts` have not run yet; `windows-app` (UI Automation helper in `helpers/desktop/`) cross-compiles and passes clippy in CI, and **Windows helper runtime behavior has not yet been verified on Windows hardware**. Published Linux and Windows D20 release pins stay empty until signed helper binaries ship.
A task rarely stays inside the tab, so browxai reaches a short way onto the host machine. Each reach sits behind its own capability, and none of them is in the default set (`read`, `navigation`, `action`, `human`):
- **The real OS clipboard** (`clipboard`). A copy or cut writes through to `pbcopy` on macOS, `clip` on Windows or `xclip` on Linux, at the moment of the command and never in the background. It is write-only: browxai never reads the OS clipboard back into a session, so a session cannot pick up what you or another session put there.
- **Your password manager** (`credentials`). browxai shells out to 1Password, Bitwarden, LastPass or `oathtool` for a username and a TOTP code, with fixed argv and no shell interpolation. The password is never handed to the agent in cleartext; it is registered under an alias the runtime substitutes at dispatch.
- **A workspace on disk** (`file-io`). File reads and writes are rooted at `$BROWX_WORKSPACE` and any path escaping that root is rejected. Scope is that one directory.
- **A phone over USB.** Device discovery and port forwarding run `adb devices` and `adb forward`, and nothing else.
- **Allowlisted native desktop apps** (`native-desktop`). Drives only exact app identities named in env-only `BROWX_DESKTOP_APPS` through a per-OS native helper, with foreground, hit-test, human-first and rate-limit fences, plus human confirmation for high-reach apps.
That is the whole of the host reach, each piece off until you opt in. browxai has no general shell tool.
## What your agent can do with it
- **Drive a live web app.** Have a coding agent `navigate` to a page, `find` a control by natural-language query, `fill` a form, `click`, and verify the outcome from a structured `ActionResult`.
- **Work inside an authenticated session.** Open a `persistent` or `attached` (bring-your-own-browser) session so the agent operates inside a real, logged-in profile and can automate multi-step flows that need the existing cookies.
- **Extract structured data from a script.** From one autonomous TypeScript file: `createBrowxai()`, then `navigate()`, then `extract({ schema })`, then `close()`, with the same safety gates as the MCP path.
- **Log in without seeing the password.** With `credentials` and `secrets` on, the agent asks for an account by name, browxai fetches the username from your vault, and `fill` submits a password the agent only ever knows by alias. Each account needs a `BROWX_CREDENTIAL_ORIGINS` entry naming the origins its password may be typed into.
- **Run cross-engine checks.** Drive the same tool surface on Chromium, Firefox, WebKit, real Chrome-on-Android, or real Safari. Pick the engine per session and validate a flow on more than Chromium. Chromium is the full surface; the non-CDP engines run a curated subset and **structurally refuse** the CDP-deep tools with a named reason (see the per-engine tables in the [tool reference](https://browxai.com/reference/tool-reference/), and the [engine evidence](https://browxai.com/reference/tool-reference/sessions/#engine-evidence) for what has run on each).
- **Drive a native app on an emulator.** With `native-device` on, open an `android-app` or `ios-app` session and the agent taps, types and swipes through the same `find` / `click` / `fill` it uses on a page. Ten `device_*` and `app_*` tools cover boot, install, launch and reset. A verb the platform has no primitive for refuses and names what is missing, so `gesture_pinch` works on iOS and refuses on Android.
- **Drive the desktop app you already have open.** Start VS Code or Slack with `--remote-debugging-port`, point `BROWX_ATTACH_CDP` at it, grant `byob-attach`, and `snapshot` / `find` / `click` read and drive the app's own UI. browxai names the engine `electron` off `Browser.getVersion` without being told, so an agent is never told it is driving a plain Chromium tab.
- **Run in CI without wedging.** Stand the server up headless in a pipeline; every call has a hard anti-wedge deadline, so a stuck page never hangs the run. See [Run browxai in a container and in CI](https://browxai.com/guides/containers-and-ci/).
- **Share one server across agents.** Run `browxai serve --socket` and attach several SDK clients to one long-running server, say a parent agent plus a helper script. They share its sessions and its settings. Each session the server launches is still its own browser process.
- **Point several MCP clients at one server.** `browxai bridge` is an MCP server on stdio that relays to a `browxai serve --socket` daemon, so Claude Code, Codex, Cursor and Claude Desktop share one session registry and the browsers its sessions launched. See [Connect MCP clients to one daemon](https://browxai.com/guides/bridge/).
- **Drive it from a shell.** An agent with a shell tool and no MCP client runs `browxai call ''` against a `browxai serve --socket` daemon and reads one JSON document back, with exit codes to branch on. `browxai tools` lists the tools. See [Drive browxai from a shell](https://browxai.com/guides/shell-route/).
## Why browxai
- **Model-agnostic.** It works with any MCP client (Claude, Codex, …), so no part of it ties you to one model.
- **Engine-agnostic.** The same tools drive Chromium / Firefox / WebKit / Android Chrome / Safari / a desktop Electron app, each over the protocol that fits it (CDP, WebDriver BiDi, safaridriver), the two native mobile-app engines over UiAutomator and XCUITest, and the three native desktop engines (`macos-app`, `windows-app`, `linux-app`) over OS accessibility helpers. Pick with `--engine` / `BROWX_ENGINE`; the default is Chromium. Coverage is uneven and the gaps are named: navigation, actions, snapshot/find, screenshots and storage work across the browsers, while the CDP-deep family (tracing, heap, coverage, network interception) is Chromium-only and refuses elsewhere with an explicit `engine:` reason. A native mobile or desktop session refuses more, starting with `eval_js` and the whole network family.
- **Compact snapshots.** `snapshot()` returns a compact accessibility tree with stable element refs. Results are scoped, paginated, and budgeted.
- **Safe by default.** Capability-gated tools, an origin allow/blocklist, confirmation hooks, and a hard per-call deadline. The dangerous surface (arbitrary JS, full response bodies, OS clipboard, password-manager lookups, workspace file IO, attaching to your real Chrome, native mobile and desktop apps) is off until you opt in.
- **Reaches past the browser, on your say-so.** The OS clipboard, your password manager, a workspace directory, a USB-attached phone, a native app on an emulator, a running Electron app and allowlisted native desktop apps are all in scope, each behind a capability that starts off.
- **Owns the full session lifecycle.** Managed profiles, BYOB attach, and sessions that can be authenticated, headed, or headless.
## Stability
browxai follows semver. The public tool surface (tool names, documented input/output shapes, the `ActionResult` shape, and the default capability set) is frozen and semver-governed, so you can adopt it freely and pin your version. Anything behind an off-by-default capability is explicitly experimental and not covered by the stability guarantee. See the [Stability and semver](https://browxai.com/reference/tool-reference/#stability-and-semver) policy.
## What "safe by default" does and does not mean
The capability gate, origin allow/blocklist and confirmation hooks are **policy**: they govern what the tool surface will do when an agent asks. They are not a sandbox around the process.
Two consequences worth knowing before you deploy:
- **Plugins run in-process with full Node access.** The trust tier tells you where a plugin came from; the loader treats every tier identically at runtime, and nothing intercepts a plugin's calls. Adopting a plugin is exactly as consequential as adding an npm dependency, transitive deps included. See [plugin governance](https://browxai.com/plugins/governance/).
- **Run it in a container.** For anything beyond driving your own machine against sites you own, run browxai in a container or VM as a non-root user with no route to your local network. [`deploy/Dockerfile`](https://github.com/kalebteccom/browxai/blob/main/deploy/Dockerfile) is a working starting point, and the [deployment checklist](https://browxai.com/security/best-practices/) is short.
Browsers that browxai launches itself (a managed profile, an incognito session, the headless shell, the installed Chrome it opens for a session) try to run with Chromium's OS sandbox on. `BROWX_CHROMIUM_SANDBOX` defaults to `auto`: when the process is not root and the host can run the sandbox (macOS, Windows, and Linux), browxai asks for it. As root or in a container it launches every browser with `--no-sandbox`. On a Linux kernel without unprivileged user namespaces, or with an AppArmor policy that restricts them, the bundled Chromium and the headless shell skip the sandbox and a launch of the installed Google Chrome still tries it. Wherever it skips the sandbox it logs one warning that says why and how to turn the sandbox on. If a launch fails on the sandbox, browxai retries once without it, logs a warning, and skips the sandbox for later launches of that browser kind in that process, including after a failure that was only transient: restart the server or set `on` to retry. On Windows there is no launch-time failure signal for a restricted environment, so if pages crash there set `off`. `BROWX_CHROMIUM_SANDBOX=on` refuses to fall back, and `off` keeps `--no-sandbox` (Playwright's default) without warnings. Where the sandbox is off, it does not isolate page content from your host, and the container or VM you run browxai in is the containment. The capability gate and origin lists above are policy. A Chrome you start yourself and attach to, `browxai chrome start` included, keeps whatever sandbox that Chrome has, normally on. See the [threat model](https://browxai.com/security/threat-model/).
## Install
Needs Node 22 or later.
```bash
npm install -g browxai
npx playwright-core@1.65.1 install chromium # only without Google Chrome: Chromium plus headless shell, about 300 MB download, 700 MB on disk
cd your-project
browxai init . # one command: writes .mcp.json and your MCP client config, checks a first snapshot
```
`browxai init` creates `.browxai/` and writes a `.mcp.json` in the directory you give it, (its `browxai` and `browxai-attached` entries set `BROWX_WORKSPACE` to that `.browxai/` folder), and prints the exact command or snippet for each MCP client it finds on the machine: Claude Code, Cursor, Codex and Claude Desktop. It also adds browxai to the user-level config of each of Cursor, Codex and Claude Desktop it finds, such as `~/.cursor/mcp.json`. It prints the change first, merges into a file that exists and keeps the old copy as `.browxai-bak`. Pass `--no-write-user-config` to leave those files alone, or `--no-write` to print everything and write nothing. A file it will not edit (not plain JSON, or one that already has a `browxai` entry) is left as it is and does not fail the run. A read or write error on a config does: init tries every client, then exits 1. (`--write-user-config` from earlier versions still works and does nothing extra.) It ends by opening a headless private session on `about:blank`, taking one snapshot and closing it, then prints `✓ first snapshot in N ms`, or says what to fix and exits 1. On a machine without Google Chrome the check runs on the bundled Chromium and prints a note that sessions with no channel need `BROWX_CHANNEL=chromium`. `--no-smoke` skips that check.
`browxai doctor` checks the machine and prints one line per area, with the next step under anything that fails. `browxai doctor --verbose` prints every check.
browxai launches the Google Chrome already installed on the machine (the default since 0.13.0), on one default profile per workspace (`/profile`), so logins carry over between sessions. On a machine without Chrome, such as a container or a CI box, a session is refused with `chrome-not-installed`. Set `BROWX_CHANNEL=chromium` (or pass `channel: "chromium"` to `open_session`) to launch Playwright's bundled Chromium instead (`npx playwright-core@1.65.1 install chromium`). Loading extensions needs that opt-in too, because branded Chrome ignores `--load-extension`. `browxai doctor` says whether Chrome is installed and what a session with no channel will launch. Firefox and WebKit sessions use their own Playwright builds (`npx playwright-core@1.65.1 install firefox webkit`).
Every session browxai launches itself (`persistent` or `incognito`) is its own browser process, with a window of its own unless `BROWX_HEADLESS` is set. That holds under `browxai serve --socket` too: the daemon shares its session list between clients, and each session in it still launches a browser. To put sessions in a Chrome you already run, start it with `browxai chrome start` and attach (see [Running several clients](#running-several-clients)).
If a session opens a window titled "Google Chrome for Testing" and nothing sets `channel: "chromium"`, the MCP client is starting an older install, which launched the bundled build by default (before 0.13.0) or when Chrome was missing. Point the client entry at a current version, for example `npx -y browxai@latest`, and restart the client.
Wire it into an MCP client over the stdio transport, e.g. in an `.mcp.json`:
```json
{
"mcpServers": {
"browxai": { "command": "browxai" }
}
}
```
No global install? Use `{ "command": "npx", "args": ["-y", "browxai"] }` as the entry instead.
To keep client entries on the newest release without editing them, install a runtime with `npx -y browxai runtime install`. It keeps each release side by side under `~/.browxai-runtime`, gives every client one launcher path, and a background job (or `browxai runtime update`) checks a new release before switching to it. Turn the job off with `browxai runtime config auto-update off` or `--no-agent`, and read what changed with `browxai runtime notes`. A new major version, a release your node can't run and, on a machine without Google Chrome, a release that needs a Chromium download wait for you, `browxai runtime rollback [--to V]` goes back offline, and `install --link` puts the launcher on your `PATH` as `~/.local/bin/browxai`. See [Keep browxai current with a runtime](https://browxai.com/guides/runtime-updates/).
Restart the client, then ask your agent to open a page and describe it. A Chrome window opens (set `BROWX_HEADLESS=1` or `true` for none) and the agent works through `navigate`, `snapshot`, `find` and `click`. Tools that need an off-by-default capability, such as `eval_js`, answer with an error that names the capability until you enable it. `BROWX_CAPABILITIES` replaces the default set, so list the defaults too: `read,navigation,action,human,eval`.
browxai does not defeat or spoof bot detection, and it cannot clear a challenge page for you. `browxai chrome login` opens the same Chrome profile with nothing attached, so you can clear the challenge and sign in by hand: see [Sites behind bot protection](https://browxai.com/guides/sites-behind-bot-protection/). For drop-in setup per harness, see [Harness setup](#harness-setup) below.
## Running several clients
Each MCP client entry starts its own browxai server, and each server launches its own browsers. Three ways to run several clients on one machine:
- **Separate servers, one workspace.** The first server to open its `default` session holds the workspace default profile. A second client's `default` session is then refused with `profile-in-use`, which names the profile and the holder. Have the second agent call `open_session` with `mode: "incognito"` for a throwaway session, or with its own `profile: "name"`. Each is one more browser and window. Giving each client its own `BROWX_WORKSPACE` also avoids the refusal.
- **One daemon, many clients.** Run `browxai serve --socket PATH` once and give every client `browxai bridge --socket PATH`. The clients share one server: its sessions, capabilities and config. Two clients that leave out `session` drive the same `default` session, so give each client its own session ids. Sessions in the daemon still launch one browser each. See [Connect MCP clients to one daemon](https://browxai.com/guides/bridge/).
- **One Chrome you started.** `browxai chrome start` opens your installed Chrome with a debugging port, and a server with `BROWX_ATTACH_CDP` and the `byob-attach` capability drives it. Every attached session gets its own tab in that one Chrome and shares its logins. Actions wait for a person's confirmation by default. A server tracks the tabs its own sessions hold, so with `BROWX_ATTACH_CLAIM_EXISTING` set, prefer one attached server per Chrome. See [Sessions and lifecycle](https://browxai.com/concepts/sessions-and-lifecycle/).
## SDK (programmatic surface)
To author a single TypeScript script and run it autonomously, browxai ships a typed SDK. Same tool registry, same capability gates, same egress hygiene, over a different transport.
```ts
import { createBrowxai } from "browxai";
const browxai = await createBrowxai(); // in-process, single-script
await browxai.navigate({ url: "https://example.com" });
const result = await browxai.extract({
schema: {
type: "object",
properties: {
title: { type: "string", "x-browx-source": { selector: "h1" } },
},
},
});
console.log(result.data.title); // "Example Domain"
// A selector that matches nothing adds a line to `result.warnings`, and a failed
// extract is { ok: false, failure }.
await browxai.close();
```
Three transports:
- **In-process** (default). One Node process, with the SDK driving the server inside it. `close()` shuts the embedded server.
- **Stdio child** (`transport: "stdio-child"`). Spawns the `browxai` bin as a subprocess and speaks MCP-over-stdio. `close()` ends the child.
- **Socket-attached** (`endpoint: "unix:///tmp/foo.sock"`). Connects to a long-running `browxai serve --socket /tmp/foo.sock` process. Several clients can attach to one server, for example a parent agent plus a child script that drive the same session ids. Each session on that server launches its own browser. `close()` ends only the local connection.
The same safety gates apply as on the MCP path. Tools that broaden the security posture (`eval_js`, `network_body`, `register_secret`, `upload_file`, …) are **off by default** and only appear once their capability is named in `createBrowxai({ capabilities })`, and in the server's own capability set (`BROWX_CAPABILITIES`), which gates the same tool independently. Calling a non-exposed tool, even via `client.callTool("eval_js", …)`, fails with a `BROWXAI_SDK_NOT_EXPOSED` error before anything hits the wire; a name no tool registers fails with `BROWXAI_SDK_UNKNOWN_TOOL`.
`client.callTool(name, args)` reaches **every** registered tool whose capability is active, the same surface the MCP server exposes. The typed methods on the client are a curated ergonomic subset for the tools most agent loops use.
Every SDK call resolves to the tool's own result. A result that is one JSON text item comes back parsed (an object, or an array for `console_read`), and a plain-text result such as `snapshot()` comes back as a string. A result with an image or several content items, such as an inline `screenshot()`, comes back as `{ content, data? }` with the raw MCP `content` array. A tool that fails on the server returns its message as a string or as `{ ok: false, ... }`, and a call the SDK refuses itself (a gated or unknown tool, a closed client) throws. `callTool(name, args)` takes the result type you expect as `T`. Before 0.18.0 every call returned `{ content, data }`, see the [changelog](https://github.com/kalebteccom/browxai/blob/main/CHANGELOG.md).
## Harness setup
**[`harness/`](https://github.com/kalebteccom/browxai/tree/main/harness/)** holds ready-to-use setup for the common agent harnesses: MCP-server registration plus a portable "driving browxai well" Agent Skill. One adapter each for [Claude Code](https://github.com/kalebteccom/browxai/tree/main/harness/adapters/claude-code/), [Codex](https://github.com/kalebteccom/browxai/tree/main/harness/adapters/codex/) and [Pi](https://github.com/kalebteccom/browxai/tree/main/harness/adapters/pi/).
## The surface
- **`snapshot`** returns a compact accessibility tree plus a DOM-walk pass, and every node carries a stable `[ref=eN]`.
- **`find`** turns a natural-language query into ranked candidate locators with `selectorHint`, `stability`, a visible-rect `bbox`, and an `actionable` verdict.
- **action tools** (`click` / `fill` / `navigate` / `select` / `wait_for` / …) each return a structured `ActionResult`: what navigated, what structure changed, a console/network slice, and a post-action element probe.
- **read tools** cover `text_search`, `inspect`, `console_read`, `network_read`, `ws_read` and `screenshot`.
- **sessions** each get their own refs and buffers, come in `persistent`, `incognito` or `attached` (BYOB) flavours, and are configured over MCP. An `incognito` session has its own cookie jar, a `persistent` session's cookie jar is its profile, and every `attached` session uses the attached Chrome's.
- **capabilities**: `read`, `navigation`, `action` and `human` are on by default; `eval`, `network-body`, `clipboard`, `file-io`, `byob-attach`, `secrets`, `extensions`, `native-device`, `native-desktop`, … are explicit opt-ins.
- **native mobile sessions** (`android-app`, `ios-app`) answer `snapshot` and `find` from a view hierarchy and have no DOM, and add `device_*` and `app_*` lifecycle tools.
- **native desktop sessions** (`macos-app`, `windows-app`, `linux-app`) sit behind `native-desktop` and env-only `BROWX_DESKTOP_APPS`, answer `snapshot`, `find`, `click`, `fill` and `screenshot` through per-OS accessibility helpers, and add five `desktop_*` tools.
- **an `electron` session** is Chromium over CDP, with `navigate` refused and no second page target to open.
The full per-tool reference, the security model, and the stability policy are on the **[documentation site](https://browxai.com/)**.
## For contributors
```bash
corepack enable && pnpm install
pnpm install-browser # Chromium for playwright-core
pnpm typecheck && pnpm test
pnpm build # builds dist/, the `browxai` bin is dist/cli.js
pnpm test:keystone # headless end-to-end keystone (real Chromium)
pnpm docs:dev # the documentation site, locally
```
Three test lanes, in ascending cost. `pnpm test` is hermetic and browser-free.
`pnpm test:keystone` drives real browsers: Chromium, Firefox and WebKit in CI.
Android, Safari, the two native engines and Electron need a device, a Mac, an
emulator or a running app, so they run manually and skip cleanly when nothing is
attached. The engine evidence table says which of them has a recorded run, and when. Then
`packages/capability-testbed/` is a multi-surface web app plus a harness that
drives **every** tool against it, run on demand because it needs real browsers
with every off-by-default capability switched on. Its most recent recorded pass, on Chromium on 2026-06-16, went from 181/196 to 196/196 and
turned up six real defects a mocked unit test cannot see: a virtual-time race in
`clock`, a cookie path-filter mismatch, an `extract` array leaf resolving empty,
a `text_search` visibility filter discarding every match, a page-function
serialization error in `drop_files`, and `set_locale` never moving
`navigator.language`.
Project docs:
- [CONTRIBUTING.md](https://github.com/kalebteccom/browxai/blob/main/CONTRIBUTING.md): contributor workflow + DCO.
- [AGENTS.md](https://github.com/kalebteccom/browxai/blob/main/AGENTS.md): operating rules for AI-harness contributors.
- [SECURITY.md](https://github.com/kalebteccom/browxai/blob/main/SECURITY.md): how to report a security issue, and the disclosure policy.
- [MAINTAINERS.md](https://github.com/kalebteccom/browxai/blob/main/MAINTAINERS.md): maintainer roster + responsibilities.
- [RELEASING.md](https://github.com/kalebteccom/browxai/blob/main/RELEASING.md): release ritual + OIDC publish flow.
- [CODE_OF_CONDUCT.md](https://github.com/kalebteccom/browxai/blob/main/CODE_OF_CONDUCT.md): Contributor Covenant adoption.
## License
Code is MIT. See [LICENSE](https://github.com/kalebteccom/browxai/blob/main/LICENSE).
The **browxai name and logo are trademarks of Kalebtec** and are not
covered by the MIT License. The brand assets under [`brand/`](https://github.com/kalebteccom/browxai/tree/main/brand/)
are all-rights-reserved (see [`brand/LICENSE`](https://github.com/kalebteccom/browxai/blob/main/brand/LICENSE)). See
[TRADEMARKS.md](https://github.com/kalebteccom/browxai/blob/main/TRADEMARKS.md) for the full brand policy and what
nominative use is allowed.