Community编程与开发github.com

节点连接

诊断 OpenClaw 控制界面的浏览器以及原生 Android、iOS 或 macOS 节点的连接失败问题,涵盖路由、认证、配对、二维码/设置码以及重新连接状态。

节点连接 是什么?

该技能专注于诊断和解决 OpenClaw 网络中单个客户端与特定网关之间的连接失败问题。它提供了一套结构化的工作流程,首先要求用户锁定目标环境(包括配置文件、二进制文件、网关 URL 等),然后根据客户端类型(浏览器控制界面或原生移动/节点)对失败请求进行分类。通过观察实时日志和网关配置,技能能够识别路由、认证、配对或重新连接等环节的具体故障点。针对不同类型的客户端,它提供了相应的修复步骤,例如为浏览器恢复认证、使用二维码或设置码为原生节点设置配对,以及通过精确的请求 ID 批准配对。该技能最终要求通过新的连接尝试来验证修复结果,确保客户端能够成功连接并通过所有相关检查,而不只是依赖单一的过渡状态。它支持在 Control UI 浏览器和原生 App(Android/iOS/macOS)等客户端上运行,并适用于同一机器、局域网、Tailscale 网络或公共反向代理等不同的网络拓扑。

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/clawdbot/clawdbot/tree/main/skills/node-connect

Installed? Explore more 编程与开发 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

节点连接 是做什么的?

目标:修复一个特定客户端与一个特定网关的连接问题,然后证明该客户端的全新连接是成功的。

1. 锁定目标

在更改任何内容之前,记录目标环境/配置文件、OpenClaw 二进制文件、配置/状态根目录、网关 URL/端口以及服务。

  • 对每个配置、日志、服务、设备及节点命令,都使用指定的部署包装/配置文件。
  • 切勿偏离至裸 openclaw、测试环境或名称相似的部署。
  • 如果全局可执行文件已过时,则通过其所有者调用目标。
  • 验证状态、配置、日志和进程标识描述的是同一个网关。

在更改配对或认证之前,先识别目标网关。

2. 对客户端分类

在选择命令之前,根据请求和网关日志对客户端进行分类:

  • 控制界面浏览器: 用户提到浏览器、仪表盘、控制界面或网页聊天;日志显示 client=openclaw-control-ui 或 mode=webchat。
  • 原生移动端/节点: 官方应用显示“连接”、“扫描二维码”或“设置码”;日志/请求元数据显示原生客户端或 role=node。

一部手机可以是以上任何一种客户端。对于手机浏览器,不要使用 openclaw qr 或 openclaw nodes status;这些命令属于原生移动端/节点的配对过程。

3. 观察失败的连接尝试

通过锁定的目标运行以下命令:

openclaw gateway status --deep
openclaw logs --follow --json
openclaw devices list
openclaw config get gateway.mode
openclaw config get gateway.bind
openclaw config get gateway.remote.url
openclaw config get gateway.auth.mode
openclaw config get gateway.auth.allowTailscale
openclaw config get gateway.tailscale.mode

在日志实时滚动时,让客户端重试一次。将它的客户端 ID、模式、平台、地址、认证结果、设备 ID、用户和关闭代码关联起来。忽略其他已配对的设备。

解释第一次失败的过渡:

  • 没有匹配的网关尝试:路由、DNS、TLS、来源或代理问题。
  • token_missing、password_missing、不匹配或 Tailscale 身份验证失败:认证在配对之前失败,因此等待列表为空是预期的。
  • pairing required:路由和认证成功;批准该确切的待处理请求。
  • client connected:将 conn、client、mode 和 role 与确切的客户端匹配。准入发生在 Hello 响应之前;如果随后出现 1006,则保留认证/配对并检查 Hello 交付、生命周期、传输、代理或重新连接。较旧的构建使用重叠的 authenticated user connected / webchat connected 记录,这些记录会省略临时客户端。
  • 没有匹配的应用层准入记录的 1006 不能证明认证/配对;检查更早的握手过渡。

4. 证明路由

选择一种拓扑:同一台机器、局域网、Tailnet 或公共反向代理。不要混合使用。

  • 浏览器控制界面需要 HTTPS 或 localhost 以实现浏览器设备身份。远程纯 HTTP 的 Tailnet/LAN URL 不是有效的替代方案。
  • gateway.tailscale.mode=off 意味着 OpenClaw 没有管理 Serve/Funnel。这并不能证明 Tailscale 或外部管理的 Serve 路由不存在。
  • 当涉及 Tailscale 时,检查实时状态,而不是从 OpenClaw 配置推断它:
tailscale status --json
tailscale serve status --json

将客户端的 URL 与到达锁定网关的监听器/代理路由匹配。

5A. 控制界面浏览器通道

在查找配对请求之前,先恢复浏览器认证:

  • 对于令牌/密码认证,在控制界面设置中输入凭证。切勿将永久机密放入聊天、日志或 URL 中。
  • 优先在网关主机上使用 openclaw dashboard 进行一次性签名交接。仅当操作员可以检索该主机的剪贴板时才使用 --no-open,并将主机浏览器/剪贴板保持在代理工具之外。切勿捕获 dashboard --json:它可能暴露交接令牌和共享凭证。切勿中继、重写或向远程手机发送环回交接 URL。
  • 对于 Tailscale Serve,验证实时路由和转发的身份。仅为预期的信任边界启用 gateway.auth.allowTailscale。经过验证的带有浏览器设备身份的 Tailscale 控制界面认证可以跳过配对。

认证成功后:

  • 重试;切勿从预认证的尝试中推断配对。令牌/密码认证可能显示 pairing required;经过验证的 Tailscale 身份可以跳过它。
  • 如果日志显示 pairing required,则重新列出设备并批准确切的请求 ID。
  • 成功的已验证 Tailscale 连接可能正确地不会创建任何待处理或已配对的设备行。
  • 在重复出现 1006 后,保留认证/配对并检查重新连接的证据。

5B. 原生移动端/节点通道

通过锁定的目标检查原生路由,而不要暴露设置凭证:

openclaw qr --json | jq '{gatewayUrl, gatewayUrls, auth, access, accessDowngraded, urlSource}'

对于控制远程网关的 CLI,在 --json 之前添加 --remote;它会选择 gateway.remote.url 和远程凭证。如果无法使用脱敏过滤器,则不要在代理可见的输出中运行原始的 QR JSON。

验证 gatewayUrl 和 urlSource。设置码等同于密码:让操作员从 控制界面 → 设备 → 配对设备 复制它,或者在代理工具之外的终端中运行 openclaw qr --setup-code-only,然后直接粘贴到官方应用程序中。切勿通过代理/聊天/工具输出中继它。在 URL/认证修复或过期后,生成新的代码。

如果应用报告 pairing required:

openclaw devices list
openclaw devices approve --latest   # 仅预览;不会批准
openclaw devices approve <requestId>
openclaw nodes status

--latest 仅预览当前请求;切勿将其视为批准。在精确 ID 命令之前立即重新列出,因为重试可能会替代之前的请求。切勿按位置、时间或相似性进行批准。

6. 关联并完成

在批准之前,匹配可用的请求、设备/公钥、客户端、模式/角色、平台、地址、用户和重试时间信息。

仅当在最终更改后发起的新尝试证明了所有适用的检查均通过时,才宣布成功:

  • 确切的客户端到达了锁定的网关;
  • 预期的认证成功;
  • 浏览器完成了初始请求,或者原生节点出现在 openclaw nodes status 中;
  • 批准使用了确切的请求 ID;并且
  • 没有立即出现认证、配对或重新连接失败。

单一的二维码/设置码、启动的浏览器、空的待处理列表、批准、已配对设备数量或 Tailscale ping 只能证明一次过渡。

报告诊断结果、选择的路由/认证通道、确切的客户端证据以及任何剩余的失败过渡。

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

1password

Set up and use 1Password CLI for sign-in, desktop integration, and reading or injecting secrets.

acp-router

Route plain-language requests for Claude Code, Cursor, Copilot, OpenClaw ACP, OpenCode, Gemini CLI, Grok Build, Qwen, Kiro, Kimi, iFlow, Factory Droid, Kilocode, or explicit ACP harness work into either OpenClaw ACP runtime sessions or direct acpx-driven sessions ("telephone game" flow). For coding-agent thread requests, read this skill first, then use only `sessions_spawn` for thread creation. Codex chat binding defaults to the native Codex app-server plugin unless ACP is explicit or background spawn needs ACP.

add-model-provider

Add and live-prove a model provider with non-interactive config one-liners, without exposing credentials.

agent-transcript

Requested GitHub PR/issue agent transcripts: redact, trim, preview, and insert safely.

apple-notes

Create, view, edit, delete, search, move, or export Apple Notes via the memo CLI on macOS.

apple-reminders

List, add, edit, complete, or delete Apple Reminders and reminder lists via remindctl.

auto-qa

Run OpenClaw-wide autonomous QA and live/stress campaigns across independent subsystem lanes, with verified fixes and a resumable evidence report.

autoreview

Structured code review through the shared OpenClaw agent-skills installation.

bear-notes

Create, search, and manage Bear notes via grizzly CLI.

blacksmith-testbox

Run Blacksmith Testbox for CI-parity checks, secrets, hosted services, migrations, or builds local cannot reproduce.

block-kit

Use proactively for structured or interactive Slack replies, and when asked to author or validate native Slack Block Kit JSON.

blogwatcher

Monitor blogs and RSS/Atom feeds for updates using the blogwatcher CLI.

blucli

BluOS CLI (blu) for discovery, playback, grouping, and volume.

bluebubbles

Send and manage iMessages via BlueBubbles, including attachments, tapbacks, edits, replies, and groups.

browser-automation

Use when controlling web pages with the OpenClaw browser tool, especially multi-step flows, login checks, tab management, or recovery from stale refs/timeouts.

camsnap

Capture frames or clips from RTSP/ONVIF cameras and local webcams, including USB pan/tilt/zoom control.

canvas

Present HTML on connected OpenClaw node canvases, navigate/eval/snapshot, and debug canvas host URLs.

channel-message-flows

Use when running QA Lab channel message flow evidence.

clawdtributor

Clawtributor PRs here, last week or another window: discover conversation refs, recheck GitHub, rank by impact.

clawhub

Search ClawHub for plugins by default, or skills and agent Templates when requested; add Templates; install, verify, update, uninstall, publish, or sync skills.

相关技能