Skip to content
Projets

Ă€ propos

🤖 Browser Bridge for Agentic AI Development - browser extension, MCP, and skilled CLI

IA et apprentissage automatique

Comment ces chiffres sont mesurés

Progression mesurée des étoiles

in 24h
0
in 7 days
0
in 15 days
+1
in 1 month
+3

Variations nettes sur des périodes qui se chevauchent, pas des totaux quotidiens. Les mesures absentes restent vides. Les étoiles indiquent l’intérêt, pas la qualité.

README.md

Original

Browser Bridge (BBX)

Browser Bridge (BBX): Connect AI Agent and Browsers

Chrome Web Store: Install Browser Bridge (BBX) from the Chrome Web Store. For local or custom builds, use the unpacked install flow in docs/unpacked-extension.md.

A local bridge between your coding agent and a real Chrome tab. Browser Bridge gives the agent structured access to DOM, styles, layout, console, network, accessibility data, reliable browser input, explicit JavaScript dialog handling, and reversible patches - starting from the actual tab you already have open, with all its real state intact.

See Quickstart to get started in another repo, or browse the rest of the guides in docs/index.md.

Upgrading an existing installation? Follow the v1 to v2 migration guide to update the extension, replace the Node.js runtime, and refresh agent setup.

Supported Agents

Managed installs support Codex (OpenAI), Claude Code, OpenCode, GitHub Copilot, Cursor, Devin Desktop (formerly Windsurf), Antigravity, Gemini CLI, Cline, Zed, Amp, Factory Droid, Pi, Kilo Code, Qwen Code, Goose, OpenHands, Muse Code, Grok Build, and generic .agents layouts for MCP and CLI skills. Devin Desktop keeps the windsurf setup target for compatibility. Cline, Goose, OpenHands, and Muse MCP setup is user-scope only; their CLI skills also support projects. Zed support targets its native agent; external agents keep their own configuration.

OpenAI Codex Claude Code Cursor GitHub Copilot
OpenAI Codex Claude Code Cursor GitHub Copilot
OpenCode Antigravity Windsurf .agents
OpenCode Antigravity Windsurf Generic agents

What it's for

  • Debugging a UI on localhost: read DOM, computed styles, layout, console logs, and network state without a screenshot
  • Exporting sanitized, metadata-only HAR 1.2 evidence after explicitly capturing a network reproduction
  • Verifying a code change actually rendered the expected result in Chrome
  • Patching the live page to prove a fix visually, then moving it into source and rolling the patch back
  • Running structured browser checks from any local agent or IDE, not just one AI product
  • Composing typed browser calls in an agent host's code sandbox through a generated Code Mode adapter, with the Go runtime and browser access checks unchanged
  • Calling website-provided WebMCP tools when the browser supports them, with exact-action user approval and DOM verification

Why Browser Bridge

Most adjacent tools optimize for different goals. Playwright and headless automation stacks are excellent for deterministic tests and CI - but they start from a clean browser context by design. Claude in Chrome is great for integrated Claude workflows, and the Codex extension is a great option if you use Codex, but both are vendor-specific. Generic MCP browser servers offer broad control without the developer-focused depth.

Browser Bridge is optimized for the opposite starting point: inspect the state that already exists in a real tab - logged-in sessions, feature flags, seeded storage, SPA state - use structured reads to understand it, test a patch in place, then fix the source. It's open-source, agent-agnostic, and scoped to one explicitly enabled browser window rather than ambient browser control.

Setup

  1. Install Browser Bridge from the Chrome Web Store in Chrome or another Chromium-based browser

  2. Install the native CLI with the script for your platform. No Node.js, npm, or Go installation is needed.

    macOS / Linux:

    curl -fsSL https://raw.githubusercontent.com/koltyakov/browser-bridge/main/scripts/install.sh | sh
    

    Windows x64, PowerShell:

    irm https://raw.githubusercontent.com/koltyakov/browser-bridge/main/scripts/install.ps1 | iex
    
  3. Return to the extension and choose your agent under Connect your agent. Start with MCP.

  4. Enable access for the browser window you want the agent to use.

  5. Ask your agent to use Browser Bridge.

The installers detect the newest installed extension and select the latest stable native patch in its major-minor line, falling back to GitHub's latest stable release if no extension is detected. Downloads are SHA-256 verified, installed to ~/.local/bin, registered for every supported browser where Browser Bridge is detected, and followed by a daemon restart. Existing native registrations are refreshed too. Supported platforms are macOS arm64/x64, Linux arm64/x64, and Windows x64. Keep ~/.local/bin on your shell's PATH on macOS and Linux. Windows adds it to your user PATH; open a new terminal afterward.

The setup panel shows the same short commands, without version arguments. Optional overrides remain available: BBX_VERSION=2.0 or PowerShell -Version '2.0' selects a release line, an exact version selects that release, and latest bypasses extension detection. The scripts also try to remove an existing global @browserbridge/bbx npm package so its launchers do not shadow the standalone CLI. See the installer options for browser, version, and installation-directory overrides.

Generated MCP configurations use the Go binary's absolute path, not npm, npx, Node, or a bbx shim. Native messaging launchers also execute the binary directly.

If the extension does not connect, run bbx install to detect and register its browsers, including Chrome Beta, Dev, Canary, and Chrome for Testing. Register one explicitly with, for example, bbx install --browser chrome-canary. Edge, Brave, Chromium, Arc, Vivaldi, and Opera also have installation targets. See browser detection for profile discovery, custom user-data directories, and fallback behavior.

On Ubuntu, Chromium is commonly installed as a strict snap, and Flatpak Chromium is similarly sandboxed. If native messaging stays disconnected there, use a non-sandboxed Chromium-based browser such as Google Chrome, Brave, or Edge.

MCP mode is self-contained: the dual-era stdio server supports legacy MCP clients and modern stateless MCP revision 2026-07-28, and exposes tools and matching startup instructions without requiring a separate CLI skill.

An optional authenticated MCP HTTP endpoint can run inside the shared daemon to avoid per-client MCP subprocesses. It is loopback-only and disabled by default; stdio remains the managed-install default and fallback.

Alternative: install with npm

With Node.js 20 or later installed:

npm install -g @browserbridge/bbx

The npm package is a bootstrap and launcher with zero runtime npm dependencies. It downloads and verifies the latest stable Go executable independently of the npm package version, then registers the native host. Set BBX_VERSION to select a release line or exact native version. Local dependency installs do not register a browser; if install scripts were skipped, the first command downloads the executable, then run bbx install to register it. See the native CLI guide.

Binaries with the GitHub updater automatically discover versioned releases when the extension reconnects and during periodic daemon checks. The newest installed extension across browsers selects the release line: extension 2.3.0 selects the newest stable 2.3.x native binary. Downloads verify that release's checksum, exact asset size, and executable self-test, without a separate update feed. This works for npm and standalone installs without overwriting running executables. Exact native-version pins opt out, as does bbx config set auto-update off. Older unconfigured binaries need a one-time native upgrade; an extension update cannot add the missing native code.

For a manual native update, run bbx update, then bbx restart when the result reports restartRequired: true. Use bbx update check to check without installing.

How it works

  • The extension is scoped to one explicitly enabled Chrome window at a time - no ambient browser access
  • Requests default to the active tab in that window unless a tab is targeted explicitly
  • Targeted input actions reject hidden, disabled, ambiguous, stale, or obscured targets instead of silently guessing; their responses report the resolution and DOM/CDP execution path (cdp_press_key and scroll_into_view use separate contracts)
  • Native pointer/text input, dialog handling, all-resource network capture, accessibility trees, screenshots, and raw CDP reads use the existing debugger permission only when requested
  • HAR export is a read of an already armed CDP capture: start capture, reproduce, export, then stop. Export never starts, stops, or clears capture, and omits headers, cookies, bodies, authorization values, and unsupported size/timing detail
  • HAR and screenshot artifacts are opaque, owner-scoped daemon handles with a five-minute lifetime and no browser-host path; CLI capture commands download, verify, delete, and write them on the CLI host
  • File workflows include staged uploads, trusted PNG paste, and browser-native large downloads with progress, pause/resume, and cancellation
  • Opt-in recording supports child-tab watch, timing correlations, durable crash-recovery journals, continuous renderer playback, and local MP4 export
  • Element references are document-local and strict by default; stale input recovery is opt-in, same-document, requires one strong unique semantic match, and fails safely when its bounded scan cannot prove uniqueness
  • Semantic DOM baselines provide explicit create/compare/describe/release verification without modifying the page; compact snapshots stay memory-only, expire after five minutes, and are invalidated by navigation or access teardown
  • Patches keep per-document rollback history and Browser Bridge attempts best-effort rollback when window access is disabled or switched; committing the patch baseline keeps current changes but discards their rollback history
  • URL waits observe full navigation and same-document SPA changes, and report the final URL and observed navigation kind
  • Structured DOM/style/layout reads are the primary transport; screenshots are a fallback
  • Browser input dispatch does not prove the application accepted the intended change, so agents should verify with a wait or structured read
  • Open-ended investigation should start with structured reads on a smaller, lower-cost subagent when the client supports delegation
  • Recovery diagnostics use process-local five-minute counters for six fixed, content-free categories. health.ping, daemon.metrics, and bbx doctor expose no page data; three failures in the same category group within 60 seconds produce an active-loop warning and fixed recovery guidance
  • Performance reads are raw browser-maintained CDP counter point samples with browser-defined names and units, not Web Vitals or Browser Bridge navigation measurements
  • The native host daemon auto-starts on demand

Documentation

Privacy

The extension and native host communicate on the browser machine, and local clients connect to that daemon by default. If you explicitly configure an authenticated remote destination, bridge results can travel over your user-provided SSH tunnel or network route to the selected client. Browser Bridge does not operate a Browser Bridge cloud service, and raw remote TCP is not presented as encrypted.

Your connected agent or IDE may still forward tool calls or tool results to remote services under that product's own settings and privacy policy. See PRIVACY.md for the Browser Bridge policy.

Responsible Use

Browser Bridge is intended for local development, debugging, and testing of web resources you own, control, or are explicitly authorized to test. Do not use it for web scraping, unauthorized data collection, or impersonating or acting as another user. You are responsible for the agents you connect, the actions they perform, and compliance with applicable laws, permissions, website terms, and third-party rights. See the Responsible Use Agreement.

License

MIT. See LICENSE.

Explorer des projets similaires

Chargement…