Chrome Relay
/install chrome-relay
Chrome Relay Browser Control
Control the user's local Chrome browser through the OpenClaw Browser Relay extension. This provides access to the user's real logged-in browser sessions.
Setup (First Time)
If user doesn't have Browser Relay extension installed:
-
Get extension path:
~/.openclaw/browser/chrome-extensionOr run:
open ~/.openclaw/browser/chrome-extension(macOS) -
Install in Chrome:
- Open
chrome://extensions - Enable "Developer mode" (top right)
- Click "Load unpacked"
- Select the extension folder
- Open
-
Get Gateway token:
openclaw config get gateway.auth.token -
Configure extension:
- Click extension icon → Settings
- Enter the gateway token
- Save
-
Connect:
- Open the Chrome tab you want controlled
- Click the extension icon to attach (badge shows ON)
Usage
Check Connected Tabs
openclaw browser tabs --profile chrome-relay
Or use the tool:
browser(action=tabs, profile=chrome-relay)
Read Page Content
browser(action=snapshot, profile=chrome-relay, targetId=\x3CtargetId>)
Navigate
browser(action=navigate, profile=chrome-relay, targetId=\x3CtargetId>, url="https://...")
Interact with Page
Note: aria-ref based selectors have reliability issues in chrome-relay mode. Prefer JavaScript evaluation for complex interactions:
// Click element
browser(action=act, kind=evaluate, profile=chrome-relay,
fn="document.querySelector('selector').click()")
// Type in input
browser(action=act, kind=evaluate, profile=chrome-relay,
fn="document.querySelector('input').value = 'text'")
// Get element info
browser(action=act, kind=evaluate, profile=chrome-relay,
fn="document.querySelector('selector').innerText")
Limitations
- aria-ref selectors may timeout; use JavaScript evaluate instead
- Extension must be attached (icon shows ON) for each tab
- Only works with Chrome browser
- Connection port: 18792
Troubleshooting
Red ! badge on extension:
- Gateway not running → start with
openclaw gateway start - Token mismatch → verify token in extension settings
Can't find element:
- Page may have loaded new DOM → re-snapshot
- Use browser devtools console to find selectors first
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install chrome-relay - 安装完成后,直接呼叫该 Skill 的名称或使用
/chrome-relay触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Chrome Relay 是什么?
Control the user's local Chrome browser via OpenClaw Browser Relay extension. Use when: (1) User asks to control/access their browser (2) User wants to autom... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 750 次。
如何安装 Chrome Relay?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install chrome-relay」即可一键安装,无需额外配置。
Chrome Relay 是免费的吗?
是的,Chrome Relay 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Chrome Relay 支持哪些平台?
Chrome Relay 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Chrome Relay?
由 meowlegemy-sudo(@meowlegemy-sudo)开发并维护,当前版本 v1.0.0。