Token导航 LogoToken导航

Agent Skill · 研究检索

agent-browser-relay(Agent 浏览器中继)

agent-browser-relay 用于处理浏览器自动化、网页检查和页面信息提取,适合在 Codex、Claude、Cursor、Gemini CLI 中需要让 Agent 打开页面、读取网页或验证前端流程时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

agent-browser-relay 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为操作浏览器;许可证信息还不明确,第三方扫描有提醒项,按安装量在研究检索类的 73,675 个 Skill 里排第 29,811。

总安装 2,987周安装 122GitHub Stars 2下载 956核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:agent-browser-relay(Agent 浏览器中继)
来源仓库:https://github.com/mindgames/agent-browser-relay
仓库路径:skills/agent-browser-relay
安装命令:
npx skills add https://github.com/mindgames/agent-browser-relay --skill agent-browser-relay
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/mindgames/agent-browser-relay --skill agent-browser-relay

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

通过本地中继网关控制已连接的浏览器标签页,支持租约作用域管理。适用于 Codex、Claude 等宿主环境中需要安全浏览器控制的场景。核心能力包括标签页验证、并发工作流管理和主机身份识别。使用 skills add 安装扩展,通过 relay 命令与浏览器交互。注意当前仅支持 Chrome,多浏览器编排尚未完善。

来源仓库内路径:skills/agent-browser-relay

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/mindgames/agent-browser-relay --skill agent-br…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要操作浏览器,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

agent-browser-relay 怎么安装?

在终端执行 npx skills add https://github.com/mindgames/agent-browser-relay --skill agent-browser-rela…。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

agent-browser-relay 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

agent-browser-relay 需要什么权限?

权限级别是操作浏览器。该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

agent-browser-relay 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

agent-browser-relay 用的人多吗?

公开数据是累计安装 2,987 次,近一周安装 122 次,下载 956 次,GitHub 2 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

agent-browser-relay 安全吗?

第三方扫描有提醒项,说明存在需要人工确认的行为。安装前请打开源码看清它读了什么、联网到哪里。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
agent-browser-relay

Agent 浏览器中继 · 本页

2,9872操作浏览器未明确有提醒

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Agent Browser Relay

Use this skill to operate through the local relay gateway on an explicitly attached browser tab, verify readiness before reads, and keep concurrent tab workflows lease-scoped instead of falling back to direct browser-control tools.

Chrome is the documented target. Chromium-based browsers that can load the extension may also work, and relay status now surfaces detected host-browser identity plus a persistent profile id, but the skill does not yet provide first-class multi-browser orchestration.

Quick start

Fresh-machine rule:

  • skills add guarantees the installed skill at ~/.agents/skills/agent-browser-relay
  • the guaranteed Chrome load path after skills add is ~/.agents/skills/agent-browser-relay/extension
  • ~/agent-browser-relay/extension is only an optional visible convenience copy created by npm run extension:install
  • npm run extension:path, npm run relay:start, and npm run relay:global:install print the primary folder to load
  • npm run extension:path also prints stable absolute paths for read-active-tab.js and preflight.sh so agents can avoid cwd-dependent invocation
  • opening the extension popup once after relay startup now wakes the extension and lets npm run extension:status confirm that Chrome actually loaded it
  • on a new machine, the human must load the primary path in chrome://extensions before attach/read steps. Do not treat a missing visible convenience copy as a sandbox or socket-permission issue.

Defaults are set in code:

  • Host: 127.0.0.1
  • Port: 18793
  • Attach timeout: 120000 ms Override per command with --host, --port, and --attach-timeout-ms when needed.
  1. Install dependencies and start relay This prints the primary Chrome extension path to load in Chrome and refreshes the optional visible convenience copy when possible. npm run relay:start -- --status-timeout-ms 3000 Or pin host/port explicitly: npm run relay:start -- --host "127.0.0.1" --port "18793" --status-timeout-ms 3000 relay:start keeps running until you stop it or the process is restarted. If you want a bounded session, pass --auto-stop-ms explicitly: node scripts/relay-manager.js start --auto-stop-ms 10800000
  2. Load extension in Chrome

- chrome://extensions - Enable developer mode - Load unpacked from ~/.agents/skills/agent-browser-relay/extension after skills add - If the command printed the extension path, treat that printed path as the source of truth - Run npm run extension:path from the installed skill directory any time you want the exact path printed again - ~/agent-browser-relay/extension is optional; create it with npm run extension:install if you want a visible shortcut

  1. Confirm the extension is loaded in Chrome Open the toolbar popup once after relay is running. The popup should show Relay connected on <port>. Agent requirement: before any attach step on a fresh machine, ask the human to open the popup once, then confirm: npm run extension:status -- --port "18793" --wait-for-connected --connected-timeout-ms 120000 This now also reports the detected browser host and persistent profile id for the connected extension instance.
  2. Attach the extension to the target tab (open toolbar popup and click attach) Optional per-tab relay: in the popup, set Tab port before clicking attach if this tab should use a non-default relay port. If you want the agent to create its own first background tab instead, enable Allow agent to create new background tabs in the popup. Agent requirement: after extension:status confirms Chrome loaded the extension, pause and ask the human to do this attach step, then wait for confirmation before continuing. If your .agents skill folder drops extension/ after a git fetch or pull, repair it from the repo: cd ~/.agents/skills/agent-browser-relay 2>/dev/null || cd ~/.agents/skills/private/agent-browser-relay git sparse-checkout disable git config --unset-all core.sparseCheckout || true git config --unset-all core.sparseCheckoutCone || true git checkout --.
  3. Check readiness and attach state npm run relay:doctor -- --port "18793" --tab-id "<TAB_ID>" --json Resolve <TAB_ID> from status first (npm run relay:status -- --all --status-timeout-ms 3000). For all agent runs, use the assigned tab id: npm run relay:doctor -- --host "127.0.0.1" --port "18793" --tab-id "<TAB_ID>" --json Continue only if this command returns success.

Per-tab relay port behavior

  • If you run one relay process with multiple ports, the extension can manage different relay ports per attached tab.
  • A tab with no saved relay-port mapping uses the global default relay port (18793).
  • After a successful attach, the extension saves that tab’s mapped relay port and reuses it automatically.
  • Closed tabs have their mapping removed automatically.
  • This is per-tab port routing, not first-class multi-browser support.

Mandatory behavior for agents

  • Use fixed commands from this repo. Do not try to "discover" alternate script names.
  • Gateway-only rule: always communicate through the local relay gateway (/status and node scripts/read-active-tab.js).
  • Never use direct browser-control tooling for this workflow (for example Playwright, Puppeteer, Selenium, agent-browser, or ad-hoc Chrome control scripts).
  • Never take control of a random Chrome window/profile. Only operate on the explicitly attached target tab leased via --tab-id.
  • On a fresh machine, explicitly tell the human to load the primary extension path from npm run extension:path before any attach/read attempt. After skills add, that is normally ~/.agents/skills/agent-browser-relay/extension.
  • Canonical commands:

- npm run extension:path - npm run extension:status - npm run relay:start - npm run relay:status - npm run relay:doctor - npm run relay:stop - node scripts/read-active-tab.js

  • For relay health checks, always use explicit timeouts to avoid hangs:

- npm run relay:status -- --status-timeout-ms 3000 - curl --max-time 3 -sS "http://127.0.0.1:18793/status" - npm run relay:status -- --all --status-timeout-ms 3000

  • After relay:start, pause and ask the human to open the popup once so npm run extension:status -- --port "18793" --wait-for-connected --connected-timeout-ms 120000 can confirm Chrome actually loaded the extension.
  • Only after extension:status succeeds, either ask the human to attach the target tab before reads, or confirm that Allow agent to create new background tabs is enabled before first-tab creation workflows.
  • Run npm run relay:doctor -- --host "127.0.0.1" --port "18793" --tab-id "<TAB_ID>" --json before reads and proceed only when it succeeds.
  • If the workflow will open tabs via Target.createTarget, run npm run relay:doctor -- --host "127.0.0.1" --port "18793" --require-target-create --json and proceed only when it succeeds.
  • For all agent runs (single-agent and concurrent), always pass --tab-id <tabId> on check/read commands so every operation is lease-scoped.
  • In concurrent runs, attached tabs are shared extension state, but an attached tab can only have one active lease at a time. Inspect npm run relay:status -- --all --status-timeout-ms 3000 and prefer leaseSummary.availableAttachedTabIds or attachedTabs[].leasedSessionId when choosing the next --tab-id.
  • If doctor returns TAB_LEASED_BY_OTHER_SESSION, do not attempt takeover. Wait for that session to finish or retry with another attached tab that has no active lease.
  • When Target.createTarget is enabled, the extension may create and auto-attach the first agent-controlled tab for the session without a human seed attach step.
  • Do not stop/restart relay during the task unless the human requests it or recovery is explicitly required.
  • Do not restart relay only because code was updated locally; updates are applied on next explicit human-approved restart.
  • If the requested tabId is missing from relay status attachedTabs, stop and ask the human to re-attach the target tab in the popup before continuing.
  • If relay:start times out, report the actual relay log/error. Do not guess about sandbox restrictions unless the command output shows a concrete permission error.
  • If the page shows human-verification gates (for example "Are you human?" or CAPTCHA), stop immediately, alert the human with $attention-please, and wait for explicit human confirmation before continuing.
  1. Read structured tab payload node scripts/read-active-tab.js --host "127.0.0.1" --port "18793" --tab-id "<TAB_ID>"
  2. Optional one-command smoke test ./scripts/preflight.sh This is a local smoke wrapper. For agent workflows, the canonical preflight remains npm run relay:doctor -- --port "18793" --tab-id "<TAB_ID>" --json for attached tabs, or npm run relay:doctor -- --port "18793" --require-target-create --json for first-tab creation workflows.

If the current working directory is not the installed skill root, use the absolute Stable read CLI path printed by npm run extension:path instead of a relative node scripts/read-active-tab.js path.

Capabilities

read-active-tab.js returns capability metadata in every successful payload under:

source.capabilities

Version compatibility checks are also included under source.extension:

  • installedVersion
  • sourceVersion
  • relayVersion
  • observedExtensionVersion
  • versionMismatch

If a mismatch is detected, the command also prints a human-friendly update hint to stderr on every run.

  • scripts/read-active-tab.js default extraction: url, title, text, links, metaDescription.
  • Relay session leases (--tab-id) for concurrent agent isolation per tab on one relay port.
  • Runtime.evaluate expression mode with --expression, --expression-file, or --expression-stdin.
  • Screenshot capture mode via --screenshot (optional --screenshot-full-page, --screenshot-path).
  • Preset extraction for WhatsApp and generic chat-auditing with regex filters.
  • Attach-state polling with --check --wait-for-attach.

Concurrent workflow notes

  • Inspect npm run relay:status -- --all --status-timeout-ms 3000 before selecting a tab for a concurrent run.
  • Use attachedTabs plus leasedSessionId / tabLeases to understand which attached tabs are currently free.
  • If doctor returns TAB_LEASED_BY_OTHER_SESSION, do not force takeover. Wait for that session to release the tab or pick another attached tabId.
  • Lease isolation scopes relay command routing per attached tab. It does not imply a separate browser profile or stronger browser-process isolation.

Presets and filters

  • --preset values: default, whatsapp, wa, whatsapp-messages, chat-audit, chat.
  • Regex filters: --text-regex, --exclude-text-regex, --link-text-regex, --link-href-regex.
  • WhatsApp/chat filters: --message-regex, --exclude-message-regex, --sender-regex, --exclude-sender-regex.

Common command examples

In agent workflows, use the --tab-id variants. Unscoped commands are for manual/local debugging only. Prefer --expression-file or --expression-stdin over inline --expression for non-trivial JavaScript.

node scripts/read-active-tab.js --host "127.0.0.1" --port "18793" --pretty false
node scripts/read-active-tab.js --host "127.0.0.1" --port "18793" --tab-id 123 --pretty false
node scripts/read-active-tab.js --host "127.0.0.1" --port "18793" --tab-id 123 --check --wait-for-attach --require-target-create --attach-timeout-ms 120000
node scripts/read-active-tab.js --host "127.0.0.1" --port "18793" --expression "document.documentElement.outerHTML"
node scripts/read-active-tab.js --host "127.0.0.1" --port "18793" --tab-id 123 --expression-file "./tmp/expression.js"
node scripts/read-active-tab.js --host "127.0.0.1" --port "18793" --tab-id 123 --expression-stdin < ./tmp/expression.js
node scripts/read-active-tab.js --host "127.0.0.1" --port "18793" --screenshot --screenshot-full-page --screenshot-path "./tmp/page.png"
node scripts/read-active-tab.js --host "127.0.0.1" --port "18793" --preset whatsapp-messages --max-messages 200 --selector "#main"
node scripts/read-active-tab.js --preset chat-audit --selector "body" --message-regex ".*"

All successful commands return a source object with relayHost, relayPort, relayStatusUrl, and relayWebSocketUrl.

Recommended flow with agents

Before fetching data in an automation flow, run a lightweight preflight once to ensure relay + attached tab state are ready.

For multiple agents on one relay:

  • Resolve tab ids from relay status (npm run relay:status -- --all --status-timeout-ms 3000).
  • Assign one tab id per agent.
  • Use --tab-id in every read-active-tab.js call for that agent.
  • Treat the extension instance as shared: leases prevent two controller sessions from driving the same attached tab, but they do not create separate Chrome profiles or separate extension processes.
  • If relay:doctor reports TAB_LEASED_BY_OTHER_SESSION, inspect attachedTabs, tabLeases, and blocker detail, then pick another attached tab or wait for the owning session to release it.

平台分布

Codex

35.41%
按下载量换算339

Claude

27.77%
按下载量换算265

Cursor

20.05%
按下载量换算192

Gemini CLI

9.81%
按下载量换算94

安全审计

Gen Agent Trust Hub

可疑

Socket

可疑

Snyk

可疑

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills