Skip to content

An agentic browser harness: an AI side panel & orb in your own logged-in Chrome, Edge, Arc, Brave or even Firefox run by the agent/subscription you already use (Claude Code, Codex, Antigravity). Free, open source, no API key. Also an MCP server.

docs: several browsers connect at once, a browser is known by its install id, and an outside caller reaches the one last in front

Shahriar45e3ac767ce7
diff --git a/docs/guide/limits.md b/docs/guide/limits.md
index 24af338..81b4680 100644
--- a/docs/guide/limits.md
+++ b/docs/guide/limits.md
@@ -20,14 +20,15 @@ tools return `TAB_UNREACHABLE` there. `page_navigate` still works and is the way
Ordinary sites self-heal: a tab that loaded before the extension did gets a content script injected
on first contact.
-## One browser link, one run at a time per tab
+## Several browsers, one run at a time per tab
-The daemon keeps a single live extension connection — a newer one supersedes the old. Several
-browsers can be *paired*, but only one is connected at a time.
+Several browsers can be paired and connected at once, each with its own side panel. A connection is
+superseded only by a newer one from the same browser profile. An MCP client outside the browser
+reaches one browser at a time — the one you were last in; see [pairing](pair.md).
Within the side panel, one instruction runs at a time **per tab session**; a second in the same tab
-returns `RUN_IN_PROGRESS`. Eight tab sessions may be open, three may run at once (raise with
-`maxConcurrentRuns`, ceiling 8).
+returns `RUN_IN_PROGRESS`. Eight tab sessions may be open, three may run at once across every
+connected browser (raise with `maxConcurrentRuns`, ceiling 8).
## Pairing controls which browser, not which process
diff --git a/docs/guide/mcp-clients.md b/docs/guide/mcp-clients.md
index 138df08..20ee1dc 100644
--- a/docs/guide/mcp-clients.md
+++ b/docs/guide/mcp-clients.md
@@ -109,7 +109,7 @@ clients get it too. It is not a proof against prompt injection — see [Limits](
## Several clients at once
-They share one daemon and one browser, so they interleave. Tool calls stay correctly correlated, but
+They share one daemon, and unless you have several browsers connected, one browser, so they interleave. Tool calls stay correctly correlated, but
page state can shift under either of them. The side panel can be running at the same time.
---
diff --git a/docs/guide/pair.md b/docs/guide/pair.md
index ad51cb9..77bad3f 100644
--- a/docs/guide/pair.md
+++ b/docs/guide/pair.md
@@ -85,11 +85,19 @@ for the mechanism, [internals/transport.md](../internals/transport.md).
```sh
browsentic sessions # which browsers are paired
browsentic revoke # unpair every browser
-browsentic revoke <origin> # unpair one
+browsentic revoke <id> # unpair one, by the id "sessions" prints
```
-Several browsers can be *paired*, but the daemon keeps **one live link** at a time — a newer
-connection supersedes the old one.
+Several browsers can be paired **and connected at once** — Chrome beside Brave, or two Chrome
+profiles. Each pairs with its own code and keeps its own key, and the side panel in each runs on its
+own. Every Chromium browser that loads the same folder presents the same extension origin, so a
+browser is known by an install id it mints on first run, never by its origin.
+
+A newer connection supersedes an older one only when both come from the same browser profile.
+
+An MCP client outside the browser reaches the browser you were last in. It stays with that browser
+through a burst of calls — tab ids only mean something in the browser that issued them — and follows
+you again once it has been quiet for two minutes. `browsentic_status` names the browser it reaches.
---
diff --git a/docs/internals/state.md b/docs/internals/state.md
index 5a09229..73298ae 100644
--- a/docs/internals/state.md
+++ b/docs/internals/state.md
@@ -7,7 +7,7 @@ Nothing lives in the repository.
```
~/.browsentic/ (mode 0700, override with BROWSENTIC_HOME)
├── daemon.json 0600 lockfile: pid, port, control token, protocol + daemon version
-├── auth.json 0600 outstanding pairing code, session keys per origin
+├── auth.json 0600 outstanding pairing code, session keys per browser
├── config.json optional, hand-written
├── approvals.json 0600 "always on this site" grants, one action + host per entry
├── daemon.log run starts, routed skills, every tool call and its outcome
@@ -27,7 +27,7 @@ Nothing lives in the repository.
| File | Written by | Notes |
| --- | --- | --- |
| `daemon.json` | Each daemon at startup | The control token dies with the daemon that minted it. Read it with `browsentic token` |
-| `auth.json` | Pairing | Session keys are per extension origin and survive restarts. Cleared by `browsentic revoke` |
+| `auth.json` | Pairing | Session keys are per browser profile, keyed by its install id, and survive restarts. Cleared by `browsentic revoke` |
| `config.json` | You, and the agent picker | Re-read before every run — no restart needed. [Reference](../guide/configuration.md) |
| `approvals.json` | **Always on ‹host›** | One action + host per entry. Only short-circuits a `confirm` |
| `cli/`, `bin/`, `runtime/` | [Browsentic.app](../guide/mac-app.md) | Replaced whole on every app update. `cli/.browsentic-app.json` is what makes `installKind()` answer `app`, which turns the npm self-update off |
diff --git a/docs/internals/transport.md b/docs/internals/transport.md
index e0ace67..5b16043 100644
--- a/docs/internals/transport.md
+++ b/docs/internals/transport.md
@@ -27,7 +27,7 @@ Every upgrade is classified by the handshake `Origin` header before anything els
| `Origin` | Role | Requirement |
| --- | --- | --- |
-| `chrome-extension://…`, `moz-extension://…`, `safari-web-extension://…` | `extension` | Proof of a pairing code, or of a session key bound to that same origin |
+| `chrome-extension://…`, `moz-extension://…`, `safari-web-extension://…` | `extension` | Proof of a pairing code, or of the session key minted for that browser's install id |
| Any other value | — | **Refused.** This is what keeps web pages out |
| Absent | `control` | `Authorization: Bearer <token>` matching the lockfile, compared with `timingSafeEqual` |
@@ -75,8 +75,11 @@ The extension connects to nothing until you pair it.
5. The daemon verifies, then proves *itself*: `welcome` carries
`HMAC(secret, "browsentic/server" ‖ transcript ‖ the rest of the welcome)`. The two labels are
distinct, so an impostor cannot reflect the extension's own proof back at it.
-6. On pairing, the daemon mints a **session key** (32 random bytes) bound to that extension origin
- and returns it XORed with a keystream derived from the same secret, so the long-lived credential
+6. On pairing, the daemon mints a **session key** (32 random bytes) bound to the **install id**
+ the `hello` carried — a UUID the extension mints once per browser profile. The origin cannot
+ name a browser: every Chromium browser loading the same unpacked folder presents the same one.
+ A session paired before install ids existed is found by its origin and claimed by whichever
+ browser proves its key. The daemon returns the key XORed with a keystream derived from the same secret, so the long-lived credential
never crosses the wire in the clear. It survives browser and daemon restarts and dies only when
you `browsentic revoke`.
diff --git a/docs/reference/cli.md b/docs/reference/cli.md
index 16b7cb9..45a2755 100644
--- a/docs/reference/cli.md
+++ b/docs/reference/cli.md
@@ -22,8 +22,9 @@ not — an uninstall that started a daemon would be absurd.
that folder at `chrome://extensions` with Developer mode on, and paste the code into the popup.
The install path never carries a version, deliberately. Chrome derives an unpacked extension's ID
-from the absolute path of its directory, and the daemon binds each session key to the resulting
-origin, so a versioned path would unpair the browser on every update.
+from the absolute path of its directory, and the browser keeps the extension's storage — the
+install id and the session key with it — under that ID, so a versioned path would unpair the browser
+on every update.
| Flag | Does |
| --- | --- |
@@ -62,7 +63,7 @@ See [guide/install.md](../guide/install.md) and [guide/maintenance.md](../guide/
| --- | --- |
| `browsentic pair` | Issue a one-time code to type into the extension popup. 8 characters, valid 10 minutes, single use |
| `browsentic sessions` | List paired browsers |
-| `browsentic revoke [origin]` | Unpair one browser, or all of them |
+| `browsentic revoke [id]` | Unpair one browser by the id `sessions` prints, or all of them. An origin still works, and unpairs every browser presenting it |
See [guide/pair.md](../guide/pair.md).