Community程式設計與開發github.com

Node Connect

診斷 OpenClaw Control UI 瀏覽器以及原生 Android、iOS 或 macOS 節點連接失敗,涵蓋路由、驗證、配對、QR/設定碼與重新連線等狀態。

Node Connect 是什麼?

Node Connect 是一項專門用於對單一 OpenClaw Gateway 與單一用戶端進行故障排除的技術技能。它能逐步引導開發者鎖定目標 Gateway 環境,分類用戶端類型(瀏覽器或原生 App),並觀察連線失敗的關鍵狀態轉換。此技能支援多種平台,包括瀏覽器(Control UI)和原生行動裝置(透過 QR 碼或設定碼),並涵蓋路由驗證、驗證機制(密碼、Token、Tailscale 身分)、配對流程以及重新連線問題。透過鎖定單一目標、執行特定診斷指令、比對日誌與即時狀態,Node Connect 能精準找出失敗的根本原因,並確保修復後能建立通過所有驗證步驟的全新連線。

相容平台~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 的新對話。

說明文件

Node Connect 是做什麼的?

目標:針對一個確切的用戶端與一個確切的 Gateway 進行修正,然後證明該用戶端能建立全新的連線。

1. 鎖定目標

在變更任何項目之前,記錄目標環境/設定檔、OpenClaw 二進位檔、設定/狀態根目錄、Gateway URL/連接埠以及服務。

  • 對每個設定檔、紀錄、服務、裝置和節點指令,都使用指定的部署包裝/設定檔。
  • 絕不漂移到裸的 openclaw、測試環境或名稱相似的部署。
  • 如果全域可執行檔已過時,請透過其擁有者呼叫目標。
  • 驗證狀態、設定、紀錄和處理程序識別碼都描述同一個 Gateway。

在變更配對或驗證之前,先識別出目標 Gateway。

2. 分類用戶端

在選擇指令之前,先根據請求與 Gateway 紀錄進行分類:

  • Control UI 瀏覽器: 使用者提到瀏覽器、儀表板、Control UI 或 webchat;紀錄顯示 client=openclaw-control-ui 或 mode=webchat。
  • 原生行動裝置/節點: 官方應用程式顯示「連線」、「掃描 QR 碼」或「設定碼」;紀錄/請求中繼資料顯示原生用戶端或 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、使用者與關閉代碼關聯起來。忽略其他已配對的裝置。

解讀第一個失敗的狀態轉換:

  • 沒有匹配的 Gateway 嘗試:路由、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 或公有反向代理。請勿混用。

  • 瀏覽器 Control UI 需要使用 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 與到達鎖定 Gateway 的監聽器/代理路由進行比對。

5A. Control UI 瀏覽器路線

在尋找配對請求之前,先還原瀏覽器驗證:

  • 對於 Token/密碼驗證,在 Control UI 設定中輸入憑證。切勿將永久機密放入聊天、紀錄或 URL 中。
  • 偏好使用 Gateway 主機上的 openclaw dashboard 進行一次性簽署交接。僅當操作者可以擷取該主機的剪貼簿時才使用 --no-open,並將主機瀏覽器/剪貼簿保留在代理工具之外。切勿擷取 dashboard --json:它可能會暴露交接資訊和共享憑證。切勿轉發、重寫或將迴路交接 URL 傳送給遠端手機。
  • 對於 Tailscale Serve,請驗證即時路由和轉發的身分。僅為預期的信任邊界啟用 gateway.auth.allowTailscale。經過驗證的、帶有瀏覽器裝置身分的 Tailscale Control UI 驗證可以跳過配對。

驗證成功後:

  • 重試;切勿從驗證前的嘗試推斷配對。Token/密碼驗證可以顯示 pairing required;經過驗證的 Tailscale 身分可以跳過它。
  • 如果紀錄顯示 pairing required,請重新列出裝置並批准確切的請求 ID。
  • 成功的已驗證 Tailscale 連線可能會正確地不產生待處理或已配對裝置的行。
  • 在重複出現 1006 之後,請保留驗證/配對並檢查重新連線的證據。

5B. 原生行動裝置/節點路線

在不暴露設定憑證的情況下,透過鎖定的目標檢查原生路由:

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

對於控制遠端 Gateway 的 CLI,在 --json 之前加上 --remote;它會選取 gateway.remote.url 和遠端憑證。如果編輯過濾器不可用,請勿在代理可見的輸出中執行原始 QR JSON。

驗證 gatewayUrl 和 urlSource。設定碼等同於密碼:讓操作者從 Control UI → 裝置 → 配對裝置 複製它,或是在代理工具之外的終端機中執行 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. 關聯並完成

在批准之前,比對可用的請求、裝置/公鑰、用戶端、模式/角色、平台、位址、使用者和重試時間的事實。

只有在最終變更後進行的新嘗試證明所有適用的檢查都通過時,才能宣告成功:

  • 確切的用戶端到達鎖定的 Gateway;
  • 預期的驗證成功;
  • 瀏覽器完成初始請求,或原生節點出現在 openclaw nodes status 中;
  • 批准使用了確切的請求 ID;以及
  • 隨後沒有立即出現驗證、配對或重新連線失敗。

一個 QR 碼/設定碼、啟動的瀏覽器、空的待處理清單、批准、已配對裝置計數或 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.

相關技能