Documentation

Connect any AI agent to your browser

Version 0.5.0 No SDK required Local-only
Works with any agent that can make an HTTP request

Claude Code, Cursor, a custom LangChain/OpenAI tool, an MCP server, or plain curl. AI Bridge exposes your authenticated browser over a local HTTP API on 127.0.0.1. There's no proprietary SDK to install; the protocol on this page is the entire interface.

1. What AI Bridge Gives Your Agent

AI Bridge runs a Chrome extension plus a small local server. Together they let an AI agent read a page, click and type, take screenshots, run JavaScript, and make authenticated calls to a site's own internal API using the session you're already logged into, without you copying tokens around by hand.

Everything runs on your machine. The only outbound calls are license validation and an optional Firebase token refresh. See the Privacy Policy for details.

2. Prerequisites

  1. Install the AI Bridge Chrome extension and open the side panel.
  2. Run the installer: download Install AI Bridge (macOS, Apple Silicon), open the DMG, and double-click Install AI Bridge. The installer is notarized by Apple, so it opens with no security warning. It copies the bridge into place and registers it. No Terminal, no config.
  3. Click Start Bridge in the side panel. This launches the local server, no terminal needed after setup.
  4. Activate your license key (get one at whop.com/ai-bridge), required for tab control and Deep Capture.
  5. Have a tab open in Chrome for the agent to act on.

Your agent shouldn't try to perform this setup itself. Have it check GET /health first and ask you to confirm the bridge is running before it attempts anything else.

Windows installer

Download and run the installer, no Python needed. It installs the bridge, registers it so the side-panel Start Bridge button works, and adds a Start Menu shortcut. Pick your chip:

Not sure? Nearly all PCs are Intel/AMD, use that one (it also runs on ARM via emulation). Windows may show a SmartScreen notice on first run since the installer isn't code-signed yet, click More info → Run anyway.

Prefer no install? Run the bridge from Python instead, paste in PowerShell: irm https://ai-bridge.online/downloads/install-windows.ps1 | iex (needs Python 3.10+, which it installs for you; keep the window open, it is the bridge).

Intel Mac / Linux

No native installer yet. Download the bridge, then pip install websockets aiohttp and run python3 bridge/server.py. Keep that terminal open; the extension connects to it automatically.

3. Connecting

Base URL: http://127.0.0.1:9124. Most routes require a shared-secret header, generated on first run and stored locally:

KEY=$(cat ~/.ai-bridge/key)
curl http://127.0.0.1:9124/health
curl -H "X-Bridge-Key: $KEY" http://127.0.0.1:9124/tokens

GET /health and GET /info need no key, so they are always safe to probe first. A 401 means the key is missing or wrong; a 502 on a tab action means the extension isn't connected (check the side panel); an error mentioning the license means the key isn't active yet.

4. Use it as an MCP server (Claude Desktop, Cursor, Cline)

Prefer native tools over raw HTTP? AI Bridge ships a small MCP server (bridge/mcp_server.py) that exposes the whole toolkit as MCP tools: open and close tabs, click, type, upload, select, hover, scroll, read, screenshot, list page elements, run JS, and call_site_api (hit a site's own API through your captured session). Your MCP client drives your real browser through them, with no glue code.

Make sure the bridge is running (Start Bridge in the side panel), then add this to your client config (for Claude Desktop, claude_desktop_config.json). With uv it installs its own dependency automatically:

{
  "mcpServers": {
    "ai-bridge": {
      "command": "uv",
      "args": ["run", "/ABSOLUTE/PATH/TO/bridge/mcp_server.py"]
    }
  }
}

No uv? Use { "command": "python3", "args": ["/ABSOLUTE/PATH/TO/bridge/mcp_server.py"] } after pip install mcp. The server reads the bridge key from ~/.ai-bridge/key automatically. Everything still runs locally and every sensitive action stays human-approved.

5. Endpoint Reference

No key required

Method
Path
Purpose
GET
/health
Status, token/request counts, license state
GET
/info
Key file location, protected-route list, extension connection state
GET
/license
Current license status/plan

Requires X-Bridge-Key

Method
Path
Purpose
GET
/token
Freshest captured Bearer token across all domains
POST
/proxy
Make an authenticated HTTP call through the browser's captured session. The fastest way to hit a site's own API without reimplementing auth
GET
/endpoints
Internal API endpoints observed per domain
GET
/requests
Recent captured network requests
POST
/tab/click
Click an element ({selector})
POST
/tab/type
Type into an element ({selector, text})
POST
/tab/action
Open a new tab ({action:"open_tab", args:{url}}); returns the new tabId
POST
/tab/action
Also close_tab, activate (focus a background tab), back/forward, scroll, hover, select (all {action, args}); screenshot takes fullPage:true
POST
/tab/action
Upload a file to an <input type=file> ({action:"upload", args:{selector, data}}, data is base64)
POST
/tab/read
Read text/DOM content
POST
/tab/screenshot
Base64 PNG of the active tab
POST
/tab/goto
Navigate the tab
POST
/tab/eval
Run JavaScript in the page
POST
/tab/action
Generic dispatcher for any action not listed above (accessibility tree, CDP-level input, etc.)

6. Example: Read, then Act

Don't guess selectors. Read or screenshot the page first, then act:

curl -X POST http://127.0.0.1:9124/tab/screenshot -H "X-Bridge-Key: $KEY"

curl -X POST http://127.0.0.1:9124/tab/click -H "X-Bridge-Key: $KEY" \
  -d '{"selector":"[data-testid=save]","reason":"Save the draft"}'

Prefer calling a site's own API over clicking through its UI whenever one is available. It's faster and more reliable than DOM automation:

curl -X POST http://127.0.0.1:9124/proxy -H "X-Bridge-Key: $KEY" \
  -d '{"method":"GET","url":"https://example.com/api/v2/items","use_token":true}'

7. Best Practices

8. Bonus: GHL Automation Skill

Included with your license: a portable skill that teaches your AI agent to automate GoHighLevel through AI Bridge, in three modes:

It's a single SKILL.md: drop it into ~/.claude/skills/ghl-automation/ (or any agent that reads skills) and it drives everything through your local bridge. The macOS installer can set this up for you. It offers to install both this and the AI Bridge skill during setup. You can also download it manually below.

A valid license is required for tab control

Passive capture (/token, /proxy, /endpoints, /requests) works without a license. Interactive tab actions and Deep Capture require an active key from whop.com/ai-bridge.