闲社服务运行正常AI智能体自动化平台
c

验证码中继

技能标识:captcha-relay

Human-in-the-loop CAPTCHA solving with two modes: screenshot (default, zero infrastructure) and token relay (requires network access). Screenshot mode captures the page with a grid overlay, sends it to the human, and injects clicks based on their reply. Token relay mode detects CAPTCHA type + sitekey, serves the real widget on a relay page for native solving, and injects the token via CDP.

作者:admin | 来源记录:ClawHub
登记来源
ClawHub
版本
V 2.1.0
检测标记
后台标记通过
免费
免费获取
0
收藏
来源与检测标记为平台登记信息,并不代表已展示可复核的检测报告。使用前请核对版本、依赖和所需权限,建议先在隔离环境中运行。
概述
安装方式
版本历史

验证码中继

CAPTCHA Relay v2

通过将验证码转发给人类来破解验证码。提供两种模式。

模式

截图模式(默认)——无需基础设施

网格覆盖截图 → 通过Telegram将图片发送给人类 → 人类回复单元格编号 → 注入点击操作。

  • - 零配置,仅需技能本身。无需Tailscale、无需隧道、无需中继服务器。
  • 适用于任何验证码类型(reCAPTCHA、hCaptcha、滑块、文本等)
  • 使用sharp进行图像处理 + CDP进行截图和点击注入。

bash
node index.js # 截图模式(默认)
node index.js --mode screenshot # 显式指定
node index.js --screenshot # 旧版别名

js
const { solveCaptchaScreenshot } = require(./index);
const capture = await solveCaptchaScreenshot({ cdpPort: 18800 });
// capture.imagePath — 发送给人类的带注释截图
// capture.prompt — 给人类的文本提示

令牌中继模式——需要网络访问

检测验证码类型 + sitekey → 在中继页面上提供真实控件 → 人类原生破解 → 通过CDP注入令牌。

  • - 需要Tailscale或隧道(localtunnel/cloudflared),以便人类的设备能够访问中继服务器。
  • 生成正确的验证码令牌——对于reCAPTCHA v2、hCaptcha、Turnstile更可靠。
  • 如果已配置Tailscale,效果最佳。

bash
node index.js --mode relay # 使用localtunnel
node index.js --mode relay --no-tunnel # 使用Tailscale/LAN

js
const { solveCaptcha } = require(./index);
const result = await solveCaptcha({ cdpPort: 18800, useTunnel: false });
// result.relayUrl — 发送给人类的URL
// result.token — 已破解的验证码令牌

何时使用哪种模式

场景模式
快速简便,无需配置screenshot
任何验证码类型(滑块、文本等)
screenshot | | 已知sitekey的验证码(reCAPTCHA、hCaptcha、Turnstile) | relay | | 已配置Tailscale | relay | | 无法访问主机网络 | screenshot |

CLI参数

参数默认值描述
--mode screenshot\relayscreenshot选择破解模式
--screenshot
— | --mode screenshot的别名 | | --no-inject | inject | 返回令牌,不注入浏览器 | | --no-tunnel | tunnel | 跳过隧道,使用本地/Tailscale IP(中继模式) | | --timeout N | 120 | 超时时间(秒) | | --cdp-port N | 18800 | Chrome DevTools协议端口 |

代理工作流程

截图模式(最简单)

  1. 1. 调用 solveCaptchaScreenshot({ cdpPort })
  2. 通过 message 工具将 capture.imagePath 和 capture.prompt 发送给人类
  3. 人类回复单元格编号(例如 1,3,5,7)
  4. 调用 injectGridClicks(cdpPort, capture, selectedCells) 点击这些单元格

中继模式

  1. 1. 调用 solveCaptcha({ useTunnel: false })(Tailscale)或 solveCaptcha()(隧道)
  2. 通过 message 工具将 result.relayUrl 发送给人类
  3. 等待——人类完成验证码后解析
  4. 令牌自动注入;继续自动化操作

要求

  • - 使用 --remote-debugging-port=18800 启动的 Chrome/Chromium
  • Node.js 18+ 并执行 npm install(依赖:ws, sharp)
  • 仅中继模式: Tailscale 或互联网用于隧道

标签

skill ai

通过对话安装

以下为平台配置的接入选项,并非逐项实测通过。能否安装取决于客户端支持、技能来源和运行环境:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 captcha-relay-1776419963 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 captcha-relay-1776419963 技能

通过命令行安装

skillhub install captcha-relay-1776419963

下载

⬇ 下载 captcha-relay v2.1.0(免费)

文件大小: 30.88 KB | 发布时间: 2026-4-17 20:15

v2.1.0 最新 2026-4-17 20:15
Initial publish — human-in-the-loop CAPTCHA solving via screenshot or token relay
返回顶部