← 返回
开发者工具 中文

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...
通过 OpenClaw Browser Relay 扩展控制用户本地 Chrome 浏览器。使用时机:(1) 用户要求控制/访问其浏览器 (2) 用户需要自动化...
meowlegemy-sudo
开发者工具 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 1,268
下载
💾 2
安装
1
版本
#latest

概述

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:

  1. Get extension path:

```

~/.openclaw/browser/chrome-extension

```

Or run: open ~/.openclaw/browser/chrome-extension (macOS)

  1. Install in Chrome:
    • Open chrome://extensions
    • Enable "Developer mode" (top right)
    • Click "Load unpacked"
    • Select the extension folder
  1. Get Gateway token:

```

openclaw config get gateway.auth.token

```

  1. Configure extension:
    • Click extension icon → Settings
    • Enter the gateway token
    • Save
  1. 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=<targetId>)

Navigate

browser(action=navigate, profile=chrome-relay, targetId=<targetId>, 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

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-19 22:01 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

developer-tools

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 671 📥 324,337
content-creation

image-to-pdf

meowlegemy-sudo
将多张图片自动旋转合并为单个PDF,支持根据Excel清单重命名及扫描PDF的OCR文字提取。
★ 1 📥 947
developer-tools

Gog

steipete
Google Workspace 命令行工具,支持 Gmail、日历、云端硬盘、通讯录、表格和文档。
★ 921 📥 185,821