Logo vun Byob

Byob

Communautéit
wxtsky

Bring Your Own Browser — let your AI agent use the Chrome you already have open

Editeurwxtsky
Repositorybyob
SproochJavaScript
Forks
18
Stären
143
Disponibel Tools
0
Transporttypstdio
LizenzMIT
Linken
  • Tools mat KI-Workflows verbannen

    Byob stellt MCP-Funktioune bereit, déi vu kompatibele KI-Clienten a KI-Agente kënne benotzt ginn.

  • 0 disponibel Tools

    Kuckt Iech déi opruffbar Aktiounen hei drënner un, mat Nimm a Beschreiwungen, wa se vum Server geliwwert ginn.

  • Konfiguratioun fir ze kopéieren

    Benotzt d'Installatiounsbeispiller, fir dëse Server an Ärem bevorzugte MCP-Client ze konfiguréieren.

  • Indicateure fir Open Source

    143 Stären an 18 Forks aus dem verlinkte Repository.

byob

Bring Your Own Browser — let your AI assistant use the Chrome you already have open.

License: MIT MCP Chrome MV3 v0.5

English · 中文


byob is a local MCP server that lets AI coding tools (Claude Code, Cursor, Cline, Windsurf, etc.) directly control your real Chrome — the one where you're already logged into everything.

"read my Twitter timeline and summarize the top 5 posts"
"google 'mcp protocol spec', click the first result, read the page"
"take a screenshot of example.com"
"grab my GitHub session cookie so I can curl with it"
"open my Gmail tab and tell me how many unread"
"fill in this form with my details and submit it"
WebFetchHeadless Puppeteerbyob
Sees logged-in pages❌⚠️ manual cookie copy✅ already logged in
Passes bot detection❌❌✅ real human browser
Setup time0hours~5 min
Cloud costfree$$free

Compared with tools that attach over Chrome's remote-debugging port (DevTools MCP, agent-browser, Playwright --cdp): byob is an extension, so there's no debugging port to open, no "Allow remote debugging?" prompt on every connection, and nothing else on your machine can hijack your logged-in browser through it.


Install

Quick install (recommended)

sh
curl -fsSL https://raw.githubusercontent.com/wxtsky/byob/main/install.sh | bash

On Windows, run the same command from Git Bash or MSYS2. The script checks prerequisites (Node.js ≥ 20, bun, Chrome/Edge/Brave), clones the repo, builds everything, and walks you through MCP registration interactively. If bun is not installed, it offers to install it for you using the native installer for your OS.

Set BYOB_INSTALL_DIR to change the install location (default: ~/byob). Advanced: BYOB_REPO, BYOB_REF, and BYOB_SKIP_SETUP=1 are supported for forks, pinned refs, and CI-style dependency install only.

Manual install

Requires Node.js ≥ 20, bun, Chrome, and any MCP-compatible AI tool.

sh
git clone https://github.com/wxtsky/byob
cd byob
bun install
bun run setup

bun run setup walks through the install interactively:

  1. Pick output language (English / 中文)
  2. Generates a unique extension key for you
  3. Builds the Chrome extension
  4. Writes the config that lets Chrome talk to byob
  5. Prompts you to multi-select your AI tools. Claude Code gets the bundled plugin (Skill + auto-started MCP); other clients get their MCP config.

After the script finishes, three manual steps remain:

Step 2 — Load extension in Chrome

Open chrome://extensions in Chrome.

  1. Top-right → turn ON Developer mode
  2. Top-left → click Load unpacked
  3. Select the folder printed in your terminal, something like:
    /your/path/to/byob/packages/extension/output/chrome-mv3

Step 3 — Restart Chrome

Quit Chrome completely (⌘Q on Mac / close all windows on Windows), then reopen.

Closing a single tab or window is not sufficient — Chrome only reads the Native Messaging config at startup.

Step 4 — Claude Code plugin / manual MCP reference

The setup script registers your selected tools automatically. The block below is for reference only — use it if you skipped the prompt or want to register a different tool later:

sh
claude plugin marketplace add wxtsky/byob
claude plugin install byob@byob --scope user

Run /reload-plugins in Claude Code after installing. The plugin includes the /byob:control-chrome Skill and starts its bundled MCP server automatically; do not also register a second byob MCP server.

For local development without installing:

sh
claude --plugin-dir /path/to/byob/plugins/byob
sh
claude mcp add byob -s user -- /path/to/tsx /path/to/byob-mcp.ts

To enable browser_evaluate, add -e BYOB_ALLOW_EVAL=1 after -s user.

sh
codex mcp add byob -- /path/to/tsx /path/to/byob-mcp.ts

Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global):

json
{
  "mcpServers": {
    "byob": {
      "command": "/path/to/tsx",
      "args": ["/path/to/byob-mcp.ts"]
    }
  }
}

Add to ~/.codeium/windsurf/mcp_config.json (same JSON format as Cursor):

json
{
  "mcpServers": {
    "byob": {
      "command": "/path/to/tsx",
      "args": ["/path/to/byob-mcp.ts"]
    }
  }
}

Open Cline sidebar → MCP Servers → Configure, then add (same JSON format):

json
{
  "mcpServers": {
    "byob": {
      "command": "/path/to/tsx",
      "args": ["/path/to/byob-mcp.ts"]
    }
  }
}

The actual paths are printed by the setup script. The examples above use shortened paths for readability.
To enable browser_evaluate, add "env": { "BYOB_ALLOW_EVAL": "1" } to the config (or -e BYOB_ALLOW_EVAL=1 for CLI tools).

Step 5 — Wait for setup to confirm the bridge is online

After you finish steps 2 and 3 (load the extension and ⌘Q-restart Chrome), setup auto-detects the bridge coming online and prints ✓ bridge online. The installation is complete — open a new session in your AI tool and try "use byob to read ...".

If you exited setup early with Ctrl+C, or want to check the state later:

sh
bun run doctor

bun run doctor prints actionable fixes under every ✗ (e.g. "⌘Q-restart Chrome", "extension ID mismatch", etc.).


Tools

v0.5 has 25 tools. Elements are targeted by refs from the snapshot ([ref=e12]), a CSS selector, or x/y.

ToolWhat it does
browser_snapshotThe page as an accessibility outline with refs — interactive-only, diff, scoped; iframes (even cross-origin) inline
browser_findFind by role+name / text / label / placeholder / testId, optionally click/fill/check right away
browser_clickClick (real mouse events), double/right click, modifiers; auto-waits and reports navigation / new tabs / dialogs
browser_typeFill inputs, textareas, contenteditable (React/Vue-safe); per-key mode; submit
browser_press_keyKeys and combos with real key codes (Enter, Shift+Tab, ControlOrMeta+A)
browser_hover / browser_select / browser_scroll / browser_dragMenus, <select>, page or container scrolling, HTML5 drag-and-drop
browser_upload_fileAttach local files to <input type=file>
browser_batchMany steps in one call (fill a whole form and submit)
browser_waitWait for element state, text, URL, load / network idle
browser_readContent as text / markdown (reader mode) / html / links / tables, with outline and filter
browser_screenshotViewport / full page / element / clip → image returned to the model; ref labels; PDF
browser_navigateOpen a URL in a background tab, back / forward / reload
browser_tabsList / open / select / close tabs, search history
browser_consoleConsole messages and page errors, buffered
browser_networkRecord traffic (summary / JSON / HAR) or intercept: block / mock / modify
browser_inspectElement box / state / styles, Web Vitals
browser_storageCookies and local/session storage — get / set / clear
browser_dialogAnswer alert / confirm / prompt explicitly
browser_emulateDevice, dark mode, geolocation, timezone, locale, offline, headers
browser_clipboardRead / write clipboard text
browser_download_imagesSave a page's images
browser_evaluateRun page JavaScript (only with BYOB_ALLOW_EVAL=1)

Schemas: shared/src/tools.ts. Upgrading from 0.4? Tool names changed — see the changelog.


How it works

AI tool → byob-mcp → byob-bridge → Chrome extension → your tab
         (stdio)    (Unix socket) (Native Messaging) (Chrome DevTools Protocol)
  • byob's own page scripts run in an isolated world: they share the DOM but not JavaScript with the page — no window.__byob*, no data-byob-* attributes, nothing a site can see or tamper with.
  • Refs live in the extension's memory, bound to Chrome's backend node ids; they survive re-renders and are refused (never silently re-targeted) after navigation.
  • Each MCP client session has its own working tab; tabs the agent opens are grouped under byob and never steal focus.

All communication stays local. No data leaves your machine. When Chrome closes, all byob processes exit automatically.


Everyday commands

sh
bun run setup      # install or re-install
bun run doctor     # check what's working
bun run bridges    # list running bridge processes
bun run logs       # tail the bridge log
bun run unsetup    # remove everything
bun run policy     # show / change which sites byob may touch (flags below)

All run from the byob repo root.


Reliability

  • Auto-waiting actions. Before clicking or typing, byob waits until the element is attached, visible, stable, enabled and actually on top at its center; errors say what's wrong ("covered by <div#cookie-banner>").
  • Actions report their effects — navigation (waited for), same-page URL changes, new tabs, JS dialogs — so the agent doesn't have to poll.
  • Dialogs never hang a call. A click that opens confirm() returns immediately with the dialog text.
  • End-to-end cancellation. Ctrl+C propagates through the entire chain (MCP → bridge → extension → Chrome).
  • Sleep/wake recovery. After a laptop sleep cycle, byob resets its debug sessions so the next call starts clean.
  • Tested end to end on Chrome for Testing: BYOB_E2E=1 bun test e2e (see CONTRIBUTING).

Security

  • browser_evaluate (and browser_wait's fn) are off by default — enable with BYOB_ALLOW_EVAL=1. Every call is audit-logged.

  • chrome://, file://, Google/MS/Apple login pages are blocked by default.

  • Per-site allow/deny lists, set by you — never by the agent:

    sh
    bun run policy --deny "**.chase.com" "mail.proton.me"   # never touch these
    bun run policy --allow "**.github.com"                  # or: only these
    bun run policy --clear-allow --clear-deny                # reset
    bun run policy --allow-file on                           # permit file:// URLs

    Patterns: example.com (exact), *.example.com (subdomains only), **.example.com (apex + subdomains), * (everything). Deny wins over allow. A non-empty allow list means allow-list-only. Enforced when byob attaches to a tab, so it covers every tool.

  • JS dialogs are never auto-accepted; a confirm stays open until the agent answers it explicitly.

  • Credential fields are redacted. Values in password / OTP / card / email inputs are never sent to the model; they surface as [redacted].

  • Each install gets a unique extension key — no collisions.

  • Socket files are 0600, dirs are 0700. Other users can't see them.

  • Zero outbound network traffic. No analytics, no pings, no crash reports.

  • Chrome displays a "byob is debugging this browser" banner on active tabs. This is a Chrome security feature and cannot be suppressed.


Troubleshooting

SymptomCauseFix
No live bridgeChrome not running or extension disabledCheck chrome://extensions
cdp_attach_failedDevTools open on that tabClose DevTools
url_forbiddenBlocked by your site policybun run policy
stale_refThe page navigated since the snapshotSnapshot again
element_coveredA banner / modal is on topClose it, or force:true
extension_not_connectedExtension lost connectionReload at chrome://extensions
Nothing works after installChrome was not fully restartedQuit Chrome completely (⌘Q) and reopen

Run bun run doctor for detailed diagnostics on which step failed.


Platform notes

PlatformAutoManual
macOSAuto-registers selected MCP toolsOpen chrome://extensions and load the unpacked extension
WindowsSame + writes Native Messaging host to registrySame as macOS
LinuxAuto-registers selected MCP toolsSame as macOS

More

MIT licensed. byob has broad access to your browser — only use it on machines and accounts you own.

Byob MCP mat verschiddene KI-Modeller benotzen

TypingMind verbënnt MCP-Tools um Niveau vum Aarbechtsberäich. Soubal Byob verbonnen ass, kënnt Dir et mat verschiddene KI-Modeller an TypingMind benotzen, amplaz et fir all Modell separat anzeriichten. Dës MCP-Integratioun leeft lokal iwwer den TypingMind-MCP-Connector op Ärem Apparat.

Ariichtungsuleedung fir de lokale Connector ze benotzen

Benotzt dës Optioun, wann den MCP-Server Zougrëff op lokal Fichieren, Appen oder privat Ressourcen op Ärem Computer brauch.

1

D'MCP-Astellungen opmaachen

Gitt an TypingMind op „Astellungen“, „Erweidert Astellungen“, dann op „Model Context Protocol“ a wielt „Connector ariichten“.

  1. Maacht TypingMind an Ärem Browser op.
  2. Klickt op d'Astellungssymbol.
  3. Gitt op „Erweidert Astellungen“.
  4. Maacht d'Sektioun „Model Context Protocol“ op.
  5. Klickt op „Connector ariichten“ a wielt „Dësen Apparat“.
Ariichtungsbildschierm vum TypingMind-MCP-Connector mat „Dësen Apparat“ ausgewielt
2

De Connector-Befeel ausféieren

Wielt „Dësen Apparat“, kopéiert de Befeel aus TypingMind a féiert en am Terminal aus. Loosst de Prozess lafen, wärend Dir MCP benotzt.

  1. Kopéiert den Ariichtungsbefeel, deen TypingMind uweist.
  2. Maacht Terminal op macOS oder Windows Terminal op Windows op.
  3. Pescht de Befeel an a féiert en aus.
  4. Bestätegt d'Installatioun vum Package, wann den Terminal Iech freet, ob Dir weiderfuere wëllt.
  5. Loosst den Terminal an de Prozess doranner lafen, wärend Dir MCP-Tools benotzt.
3

Byob als Server derbäisetzen

Wann de Connector-Status „Prett“ ass, klickt op „Serveren änneren“ a pescht d'MCP-Serverkonfiguratioun an.

  1. Waart, bis de Connector-Status „Prett“ weist.
  2. Klickt op „Serveren änneren“.
  3. Pescht d'MCP-Serverkonfiguratioun vu Byob an.
  4. Späichert d'Serverlëscht.
  5. Aktualiséiert, wann Dir kontrolléiere wëllt, ob de Connector nach ëmmer prett ass.
MCP-Astellunge vun TypingMind mat aktivem Server an dem Knäppchen „Serveren änneren“
{
  "mcpServers": {
    "byob": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

D'Verbindung mat verschiddene Modeller benotzen

Späichert d'Serverlëscht, maacht „Plugins“ op an aktivéiert d'MCP-Tools vu Byob. Wielt dann e belibegen ënnerstëtzte KI-Modell an TypingMind a benotzt d'Tools am Chat oder weist se engem KI-Agent zou.

  1. Maacht d'Säit „Plugins“ an TypingMind op.
  2. Aktivéiert d'MCP-Tools vu Byob.
  3. Start e Chat a wielt de KI-Modell, deen Dir benotze wëllt.
  4. Benotzt d'MCP-Tools am Chat oder weist se engem KI-Agent zou.
  5. Wiesselt bei Bedarf op en anere KI-Modell, ouni MCP nei ze verbannen.
TypingMind-Chat mat aktivéierte MCP-Tools an engem ausgewielte KI-Modell
Hëlleft Dir mir bei dëser Aufgab mat Byob?
Byob
Jo. Ech hunn et gelies.
Dat hunn ech mat Byob fonnt.

Heefeg gestallte Froen

Fir wat gëtt de MCP-Server Byob benotzt?

Byob ass e MCP-Server, deen et kompatibele KI-Clienten erlaabt, sech mat externen Tools a Kontext ze verbannen. An TypingMind kënnt Dir dëse MCP-Server eemol derbäisetzen a seng Tools an Ärem KI-Aarbechtsberäich zur Verfügung stellen.

Kann ech Byob MCP mat méi KI-Modeller an TypingMind benotzen?

Jo. TypingMind verbënnt MCP-Tools um Niveau vum Aarbechtsberäich. Sou kënnt Dir Byob mat verschiddene KI-Modeller wéi Claude, ChatGPT, Gemini oder anere Modeller benotzen, déi Dir an TypingMind konfiguréiert hutt, ouni de MCP-Server fir all Modell separat anzeriichten.

Firwat Byob MCP mat TypingMind benotzen?

TypingMind ass eng vun de beschte Benotzeruewerfläche fir LLM-Chat, well et méi KI-Modeller, Prompts, Plugins, KI-Agenten, API-Schlësselen a MCP-Tools an engem Aarbechtsberäich zesummebréngt. Wann Byob verbonnen ass, kënnt Dir seng MCP-Tools mat Äre bevorzugte Modeller benotzen a gläichzäiteg Är Chataarbecht an TypingMind organiséieren.

Wéi verbannen ech Byob MCP mat TypingMind?

Byob leeft iwwer de lokale MCP-Connector vun TypingMind. Dat eegent sech am beschten, wann de MCP-Server Zougrëff op lokal Fichieren, Desktop-Apps, Kommandozeilen-Tools oder privat Ressourcen op Ärem Computer brauch.

Wéi eng Tools stellt Byob MCP an TypingMind zur Verfügung?

Byob stellt MCP-Funktiounen zur Verfügung, déi Dir op der Plugins-Säit vun TypingMind aktivéiere kënnt, fir se am Chat ze benotzen oder KI-Agenten zouzeweisen.

Muss ech meng API-Schlëssele mat TypingMind deelen, fir Byob MCP ze benotzen?

Nee. TypingMind setzt op lokal Veraarbechtung a léisst Iech d'Kontroll iwwer Är Modellubidder, API-Schlësselen, Prompts a MCP-Konfiguratioun. Wann Byob eng Authentifizéierung verlaangt, setzt déi néideg Headeren, OAuth-Astellungen oder lokal Konfiguratioun fir dee MCP-Server derbäi, wann Dir d'Verbindung erstallt.

Änlech MCP-Serveren

All weisen

Elo Ären eegene KI-Workspace ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇