Agent Browser Gateway documentation
Get Started
Share one Chrome tab, read it with abg, then stop sharing it.
You need: a Mac with Apple Silicon on macOS 14 or newer, Google Chrome 120 or newer, and Homebrew. For Windows or source builds, see Install.
Quick start
Section titled “Quick start”-
Install the extension from the Chrome Web Store.
-
Install the Gateway app and the
abgCLI:Terminal window brew tap arcmanagement/agent-browser-gateway https://github.com/arcmanagement/agent-browser-gatewaybrew trust --cask arcmanagement/agent-browser-gateway/agent-browser-gatewaybrew install --cask agent-browser-gateway -
Start the Gateway and check that the extension is connected:
Terminal window open -a "Agent Browser Gateway"abg statusThe menu bar icon appears. In the JSON from
abg status,runningistrueandextensionCountis 1 or more. -
Open the page you want to share. Click the ABG extension icon and choose Share this tab with agents. A green
ONbadge appears on the icon. -
List the shared tab:
Terminal window abg tabs --compact[{"accessMode" : "manual","browser" : "chrome","ref" : "t1","tabId" : 418,"targetId" : -1,"title" : "Example Domain","url" : "https://example.com/"}]refis the short name you pass to other commands.tabIdandtargetIdwill differ on your machine. Aprofilekey also appears when you set a profile label in the popup. For one line per tab, runabg tabs --format text:t1 418 manual [Example Domain] https://example.com/ -
Read the page as Markdown:
Terminal window abg read t1 --format markdownThe command prints the page content as Markdown. Use the
reffrom step 5 if it is nott1. -
Stop sharing the tab:
Terminal window abg revoke t1The command returns
ok: true, and the tab no longer appears inabg tabs --compact.
To let Claude Code or Codex use the tab, install the agent skills with
npx skills add arcmanagement/agent-browser-gateway -g and give the agent the tab ref. See
Agent skills and MCP.
If it does not work
Section titled “If it does not work”Every abg error is JSON with an error code and, in most cases, a nextCommand to run next.
gateway_not_running: the Gateway app is not running. Runopen -a "Agent Browser Gateway", thenabg status.- The shell cannot find
abg: the CLI is not on yourPATH. Runbrew info --cask agent-browser-gatewayto confirm the cask is installed, then open a new terminal. extensionCountis 0, or the popup says Disconnected: the extension cannot reach the Gateway. Make sure the extension is enabled atchrome://extensionsand the Gateway app is running, then open the popup again.abg tabs --compactreturns an emptytabslist withpermittedTabCount0, orabg tabs --format textprintsNo permitted tabs.: nothing is shared. Repeat step 4.tab_ref_not_found: no shared tab has that ref. Runabg tabs --compactand use the currentref. A tab shared again after a revoke gets a new ref.no_permitted_tabsortab_not_permitted: the tab is not shared, or its share ended because it closed, changed origin, or was revoked. Share it again, then runabg tabs --compact.- The popup asks you to allow ABG in incognito: Chrome blocks extensions in incognito windows by default. Turn on Allow in incognito for the extension. See Install.
How sharing works
Section titled “How sharing works”- The agent sees no tabs until you share one.
- A share ends when the tab closes, navigates to another origin, or you revoke it from the popup,
the shortcut, or
abg revoke. - Write commands such as
click,fill,paste,navigate, anduploadopen a local approval window by default. Read-only commands do not prompt, but they still need a shared tab. - Every operation is written to a local audit log. Run
abg audit --lines 50to see recent entries.
Shortcuts act on the current tab only:
| Shortcut | Action |
| --- | --- |
| Alt+Shift+S (Option+Shift+S on macOS) | Share the tab, or revoke it if it is already shared. |
| Alt+Shift+C (Option+Shift+C on macOS) | Copy the numeric tab ID. This does not share the tab. |
| Alt+Shift+A (Option+Shift+A on macOS) | Start or stop annotating. Share the tab first if needed, using the existing sharing checks. |
| Alt+Shift+M (Option+Shift+M on macOS) | Switch Area/Text while annotating. |
| Unassigned | Clear all annotations; press twice within three seconds to confirm. |
| Unassigned | Show or hide the annotation toolbar. |
The badge, its tooltip, and the popup show the result. Change the keys at
chrome://extensions/shortcuts. The popup and annotation toolbar display the current assignments.
Drag the toolbar by its grip, or focus the grip and use the arrow keys. Its position and collapsed state are remembered. Dismiss a notice with its close button or Escape; ABG stops further Escape propagation and leaves annotation mode unchanged. Page handlers already registered on window capture can run first.
Domain sharing
Section titled “Domain sharing”In isolated profiles or sandbox machines, select Matching domains under Tab sharing to share matching existing and new tabs automatically. Add multiple exact domains, wildcard subdomains such as *.example.test, or full-hostname regular expressions. Any matching condition is sufficient, subject to the shared HTTPS and port restrictions. Preview the matching tabs before applying. Leaving the allowed scope revokes automatic access. Rules are saved per connection, and editing them cancels Sandbox auto-resume consent. This mode requests the same optional <all_urls> permission as All tabs; use manual sharing in personal or mixed-use profiles.