Take full control of everything in your own browser.
๐บ๏ธ Project Map ยท Tool Reference (45) ยท Client Config ยท ๐ ็ฎไฝไธญๆ ยท Releases
๐ก Background: Why BrowserClaw? (Click to expand)
Traditional browser automation frameworks (Playwright, Puppeteer, browser-use) run in isolated, throwaway sandboxes. They fail to inherit your active logins, cookies, and extensions. Attempting to copy user profile directories on Windows crashes with [WinError 32] exclusive file sharing locks, while --remote-debugging-port triggers intrusive security banners that ruin unattended automation.
BrowserClaw solves this from the inside: an MV3 Chrome extension paired with a local Native Messaging bridge. It runs inside your everyday Chrome โ zero login loss, zero file locks, and zero focus-stealing โ turning your real browser into a secure, high-speed automation surface for AI agents.
BrowserClaw is a high-performance Model Context Protocol (MCP) platform that gives AI agents complete, authenticated control over your active Chrome browser:
- ๐ช 100% Session & Auth Reuse: Keeps your active Google, GitHub, and enterprise SSO sessions. No re-logging in.
- ๐ฏ Dual-Engine Precision: 1-based pruned DOM tree (token savings >85%) with 1:1 CSS viewport coordinate visual fallback.
- ๐ฒ AX Compact Semantic Tree (
format: "compact"): Accessibility-tree-inspired representation without verbose closing tags, slashing token usage by 60%~75%. - ๐ Code-Driven Chained Execution (
mcp.*): Run multi-step interactions (mcp.click,mcp.fill,mcp.waitFor,mcp.extract) in a singlechrome_javascriptcall, reducing 4~6 roundtrips to 1. - ๐ก๏ธ Shadow DOM Penetration & Self-Healing Interception: Deep composed-tree hit testing across closed shadow roots with actionable dialog names returned on obstruction.
- ๐ฏ Optimal Action Point & Click Probe Fallback: Viewport-weighted visible coordinates with automatic synthetic DOM fallback if Chromium throttles background CDP events.
- ๐ก 4-Tier Layered Scraping Protocol: Seamless escalation from zero-token direct API fetch (
chrome_network_request) to silent response sniffing, compact DOM, and visual fallback. - โก Autonomous DOM Diffing (
includeDelta): Single-step click/fill responses include local DOM mutations, eliminating 50% of roundtrips. - ๐ Targeted Grep (
chrome_grep): Sub-100 token instant element and text search across large documents. - ๐ฑ๏ธ Human-Grade Aesthetics: 1:1 spring-kinematics virtual cursor overlay and dedicated tab groups lifecycle management.
- ๐ก๏ธ Zero-Jitter Session Retention: 10-minute session-aware CDP retention eliminates infobar dropping and viewport accordion shifts.
- ๐ช Window Isolation Mode & Color Tab Groups: Toggle between quiet in-window Tab Groups (with background focus emulation) or a fully dedicated OS Window where CDP infobars are strictly confined.
- ๐ฉบ Instant Environment Doctor (chrome_doctor & CLI): One-command health checks for 12306 port connectivity, tokens, and browser settings.
- ๐ Site Playbook Recipes (skill/recipes/): Cache and persist proven DOM interaction pipelines for specific websites, cutting exploration tokens by 80%+.
- ๐ Manage Everything in Your Real Browser: Unlike conventional automation tools confined to throwaway headless bubbles, BrowserClaw gives your agent full, authenticated control to manage everything in your everyday local browser โ active tabs, windows, cookies, browsing history, and bookmarks.
Copy and paste this message directly to your AI assistant (Claude Code, Cursor, Windsurf, Codex):
"Set up BrowserClaw for me: https://github.com/GoldenLoaf24h/browserclaw. Read
INSTALL.mdand follow the steps."
Your agent will configure the backend automatically. Afterwards, download browserclaw-extension-latest.zip, open chrome://extensions (with Developer mode enabled), and drag the unpacked folder in.
In ChatGPT or Codex, open the Plugin Store / Marketplace, click + in the top-right corner to add a new marketplace, and enter:
https://github.com/GoldenLoaf24h/browserclaw
Then click install on BrowserClaw.
git clone https://github.com/GoldenLoaf24h/browserclaw.git
cd browserclaw && pnpm install && pnpm build
cd app/native-server && node dist/scripts/register-dev.jsThen load app/chrome-extension/.output/chrome-mv3 into chrome://extensions.
Every tool in the browser automation ecosystem has distinct architectural tradeoffs and sweet spots. Here is an objective comparison across the dimensions developers and users care about most:
| Capability / Architecture | BrowserClaw (This Project) | browser-use (Python/CDP) | Playwright MCP (Microsoft) | Stagehand (Browserbase) |
|---|---|---|---|---|
| Everyday Chrome Auth & Logins | โ
100% Native Extension Directly reuses active Google, GitHub, and SSO sessions |
Separate process; profile copying often triggers bot challenges |
โ Ephemeral Sandbox Fresh blank profile on every run; no access to daily logins |
โ Cloud Sandbox Remote cloud container; requires manual cookie exports |
| Autonomous Agent Loop Included | Plug into your existing agent (Cursor, Claude, Codex) |
โ
Batteries-Included Built-in autonomous LLM reasoning loop out of the box |
โ MCP Tools Only Pure protocol tools; requires an external agent orchestrator |
โ
Natural Language Drive actions directly via page.act("click login") |
| Cross-Engine Support (Firefox/WebKit) | โ Chromium-Only Deeply optimized for Chrome, Edge, Brave, and Opera |
Primarily targets Chromium via CDP |
โ
Full Native Engines Native multi-browser support for Chromium, Firefox & WebKit |
Cloud containers primarily run Chromium |
| Cloud Elastic Concurrency | โ Local Desktop First Built for your local workspace, not cloud container clusters |
Requires provisioning your own multi-container infrastructure |
Requires setting up your own GitHub Actions / runner matrix |
โ
Elastic Cloud Fleet Instantly scales to thousands of remote browsers on Browserbase |
| Token Cost per Action | โ
Ultra-Low (<800 Tokens) Pruned 1-based DOM tree + autonomous diff ( includeDelta) |
Full DOM snapshot evaluation or vision model roundtrip per step |
โ High (>10,000 Tokens) Dumps full raw ARIA accessibility trees on every interaction |
โ High (LLM-in-Loop) Re-infers target locators through models on every semantic step |
| Massive Page Targeted Search | โ
chrome_grep (<100 Tokens)Sub-millisecond regex/text scan without dumping the DOM |
โ Full DOM Ingestion Must dump entire page contents into LLM prompt context |
โ Raw Tree Traversal Agent must parse through tens of thousands of lines of text |
Re-evaluates page context via prompt inference |
| Multi-Step Action Pipelines | โ
Closed-Loop batch_actionsChains fills, clicks, waits, assert and extract in 1 RTT |
Each discrete action requires a full agent decision roundtrip (10s+) |
โ Single-Action Calls No built-in batching, assertions, or data extraction |
page.act() executes actions individually with per-step billing |
| Visual Polish & Human Coexistence | โ
1:1 Spring Virtual Cursor Retina cursor flies naturally; dedicated colored Chrome Tab Groups |
โ Headless / Raw Jumps No visual cursor overlay; tabs pile up unorganized |
โ No Visual Layer Designed strictly for test suites; zero visual feedback |
Renders browser feed in cloud web dashboard |
| 2FA & Captcha Takeover | โ
Frosted Banner Takeover Softly dims page, yields to human, and auto-resumes on continue |
โ Timeout / Crash Blocks on interactive challenges until action watchdog expires |
โ Test Failure Throws timeout exception when blocked by challenges |
Must open cloud provider web console to solve manually |
| Windows OS Reliability | โ
Native Messaging Zero file locks, zero port conflicts, runs silently in background |
โ WinError 32 Collision Direct profile copying triggers Windows exclusive sharing locks |
Abrupt exits may leave background chrome.exe zombies |
โ
Cloud-Isolated Runs completely off-device, avoiding local OS lock issues |
| Full Local Browser Management | โ
Tabs, History & Bookmarks Agent directly manages everyday tabs, windows, history, and bookmarks |
โ Stateless Sandbox Isolated container; cannot access or manage host browser |
โ Test Sandbox Only Throwaway profile wiped upon termination |
โ Remote Cloud Only Isolated cloud run; zero host browser integration |
- Choose browser-use if you want a complete, standalone Python agent that runs its own autonomous loop from the terminal.
- Choose Playwright MCP if you need an official Microsoft tool to run cross-browser test suites across Firefox, WebKit, and Chromium in CI/CD.
- Choose Stagehand if you need to scale to thousands of ephemeral cloud browsers without managing local desktop infrastructure.
- Choose BrowserClaw if you want your AI coding assistants (Claude Code, Cursor, Windsurf, Codex) to control the Chrome you actually use every day โ inheriting all your active logins, slashing token costs by 85%+, and enjoying human-grade cursor aesthetics with graceful 2FA takeover.
All 45 schema-validated tools are grouped into 6 logical categories below. Click any category to expand its tool listing. For machine-readable JSON schemas and detailed option flags, consult docs/TOOLS.md.
๐ 1. Navigation & Tab Management (7 Tools)
chrome_navigate: Navigate to any URL, refresh, or travel history ("back"/"forward"). Nativebackground: trueopens tabs silently without stealing user focus.chrome_switch_tab: Switch the active browser tab or bind session-level tab affinity without disrupting the user.chrome_close_tabs: Close tabs by ID array, URL pattern, or safely close active/session tabs (requiresconfirm: trueto protect personal tabs).chrome_move_tab: Reposition tabs by index or detach/transfer tabs across separate browser windows.get_windows_and_tabs: List all open Chrome windows and tabs with IDs, active state, URLs, and window titles.chrome_attach_tab: Explicitly attach the low-level Chrome DevTools Protocol debugger to a specific tab.chrome_detach_tab: Explicitly detach the debugger session from a tab.
๐ 2. Content Perception & Data Extraction (5 Tools)
chrome_read_dom: Pruned interactive DOM tree with 1-based numeric indices. Reduces prompt token consumption by >85%.chrome_grep: Sub-100 token instant regex or text search across elements and text lines without full DOM dumping.chrome_get_markdown: Clean, structured Markdown content extraction (supportsincludeLinks: truefor link graph extraction) optimized for long-form reading and article summarization.chrome_inspect_media: Lossless in-memory extraction of raw<img>and<canvas>data, with 200%+ super-sampling crop fallback for noisy captchas.chrome_get_dropdown_options: Inspect all selectable options within native or custom<select>dropdown elements.
๐ฑ๏ธ 3. Action Execution & Pipeline (11 Tools)
chrome_interact_index: Native trusted click, hover, dblclick, or click sequence (pointsarray) by 1-based index; supportsincludeDelta: truefor autonomous DOM diff feedback.chrome_fill_index: Native trusted text input with automatic value clearing, Enter key submission, andincludeDelta: truemutation checking.chrome_batch_actions: High-performance multi-step pipeline combining click, fill, press, and wait in a single roundtrip, with built-inassertandextractrules.chrome_smart_scroll: Viewport overflow-aware scrolling with pixel precision and accurate remaining page counts (pages_down/pages_up).chrome_keyboard: Dispatch physical keystrokes (Enter, Tab, Esc), combinations (Ctrl+C/V), or targeted text input.chrome_upload_file: Intercept file chooser dialogs dynamically or inject absolute local file paths into<input type="file">.chrome_handle_dialog: Handle or pre-arm responses for native JavaScript dialogs (alert, confirm, prompt).chrome_handle_download: Track, monitor, and manage active native browser file downloads.chrome_computer: Anthropic Computer Use-compatible unified interface for mouse and keyboard control.chrome_request_human_intervention: Softly dim page, display a frosted-glass banner, park the virtual cursor, and yield control to the human for 2FA or slider captchas.chrome_undo_last_action: 5-step ring buffer undo engine to roll back recent navigation jumps or form input values.
๐๏ธ 4. Vision, Console & Low-Level CDP (3 Tools)
chrome_screenshot: Capture viewport or full-page PNGs with optional high-contrast pixel coordinate grid overlays for visual fallback.chrome_console: Capture, monitor, and filter page-level JavaScript console logs, warnings, and unhandled runtime exceptions.chrome_cdp_execute: Industrial-grade low-level CDP escape hatch with target polymorphic routing and anti-hang auto-detach guards.
๐ก 5. Network Intercept & Storage (5 Tools)
chrome_intercept_api: Silently sniff and decode backend API responses matching URL patterns to retrieve structured JSON data directly.chrome_network_capture: Start and stop full network traffic recording with status codes, headers, and request/response payloads.chrome_network_request: Dispatch native HTTP requests through the browser session, inheriting all active origin cookies and headers.chrome_storage: Read, write, or clear browser storage state (localStorage,sessionStorage, and cookies).chrome_javascript: Execute custom JavaScript expressions in the page context with automatic single-expression return detection.
๐๏ธ 6. Tab Groups, Bookmarks & Diagnostics (14 Tools)
chrome_tab_group_create: Create dedicated colored tab groups with adaptive task titles (default: "Agent").chrome_tab_group_update: Dynamically rename, recolor, or toggle the collapsed state of tab groups.chrome_tab_group_list: List all active tab groups in the window and their associated tabs.chrome_tab_group_ungroup: Remove specific tabs from their parent group.chrome_tab_group_close: Close all tabs in a group and purge the group with zero orphan residue.chrome_history: Query and filter historical browser visits across customizable time ranges.chrome_bookmark_search/add/delete: Search, create, and remove browser bookmarks.performance_start_trace/stop_trace/analyze_insight: Record and analyze Core Web Vitals and Chromium performance traces.chrome_tool_docs: Dynamic in-session capability discovery and profile activation (activateForSession: true).chrome_doctor: Diagnose environment health, check port 12306, Native Messaging Host, and extension bridge connectivity.
AI Client (Cursor / Claude / Codex)
โ MCP (HTTP / SSE / Stdio) @ 127.0.0.1:12306
โผ
Native Messaging Bridge (Fastify + Stdio Host)
โ Chrome Native Messaging (1MB buffer guard)
โผ
Chrome MV3 Extension (Service Worker + WXT + Vue 3)
โโโ Inpage DOM Engine (Isolated World, 1-based indexing)
โโโ CDP Session Manager (10-min retention, domain ref-counting)
โโโ Agent Cursor (Closed Shadow DOM spring kinematics overlay)
See docs/ARCHITECTURE.md for detailed topology and sequence flows.
- Project Map & Index: ๐บ๏ธ Master navigation hub, reading paths by role, and code topology.
- Tool Reference: Auto-generated parameter dictionary for all 46 tools.
- Agent Integration Guide: 6 core interaction rules and client configurations.
- Architecture Deep-Dive: Monorepo design, security boundaries, and ADR records.
- Troubleshooting: Instant diagnosis checklist for connection or execution errors.
BrowserClaw synthesizes architectural wisdom from the open-source community:
- hangwin/mcp-chrome: Foundational MV3 extension + Native Messaging IPC bridge.
- browser-use/browser-use: Token-efficient DOM-first indexing principles.
- browseros-ai/BrowserOS: Autonomous DOM diffing (
includeDelta) and element grep (chrome_grep). - ChatGPT Official Extension: Spring kinematics virtual cursor and tab group lifecycle patterns.
GNU Affero General Public License v3.0 (AGPL-3.0). Modifications or SaaS hosted deployments must remain open-source.
Disambiguation: BrowserClaw MCP is an independent Chrome extension and Model Context Protocol automation ecosystem, built for AI agents to control everyday user browsers. It is not affiliated with the standalone browserclaw Playwright library on npm.