如果你只有 2 分鐘,請把本頁當作分流入口。Documentation Index
Fetch the complete documentation index at: https://docs.openclaw.ai/llms.txt
Use this file to discover all available pages before exploring further.
前 60 秒
依序執行這個精確階梯:openclaw status→ 顯示已設定的頻道,且沒有明顯的驗證錯誤。openclaw status --all→ 完整報告存在且可分享。openclaw gateway probe→ 預期的 gateway 目標可連線(Reachable: yes)。Capability: ...會告訴你探測可證明的驗證層級,而Read probe: limited - missing scope: operator.read是降級診斷,不是連線失敗。openclaw gateway status→Runtime: running、Connectivity probe: ok,以及合理的Capability: ...行。如果你也需要讀取範圍的 RPC 證明,請使用--require-rpc。openclaw doctor→ 沒有阻塞性的設定或服務錯誤。openclaw channels status --probe→ 可連線的 Gateway 會回傳即時的逐帳號傳輸狀態,以及像works或audit ok這類探測/稽核結果;如果 Gateway 無法連線,此命令會退回僅含設定的摘要。openclaw logs --follow→ 活動穩定,沒有重複的嚴重錯誤。
Anthropic 長上下文 429
如果你看到:HTTP 429: rate_limit_error: Extra usage is required for long context requests,
請前往 /gateway/troubleshooting#anthropic-429-extra-usage-required-for-long-context。
本機 OpenAI 相容後端可直接運作,但在 OpenClaw 中失敗
如果你的本機或自託管/v1 後端能回應小型直接
/v1/chat/completions 探測,但在 openclaw infer model run 或一般
agent 回合中失敗:
- 如果錯誤提到
messages[].content預期為字串,請設定models.providers.<provider>.models[].compat.requiresStringContent: true。 - 如果後端仍然只在 OpenClaw agent 回合中失敗,請設定
models.providers.<provider>.models[].compat.supportsTools: false後重試。 - 如果極小的直接呼叫仍可運作,但較大的 OpenClaw 提示會讓後端當機,請將剩餘問題視為上游模型/伺服器限制,並繼續閱讀深入執行手冊: /gateway/troubleshooting#local-openai-compatible-backend-passes-direct-probes-but-agent-runs-fail
Plugin 安裝因缺少 openclaw extensions 而失敗
如果安裝失敗並顯示package.json missing openclaw.extensions,表示該 plugin 套件使用的是 OpenClaw 不再接受的舊格式。
在 plugin 套件中修正:
- 將
openclaw.extensions加入package.json。 - 將項目指向已建置的執行階段檔案(通常是
./dist/index.js)。 - 重新發布 plugin,並再次執行
openclaw plugins install <package>。
決策樹
沒有回覆
沒有回覆
Runtime: runningConnectivity probe: okCapability: read-only、write-capable或admin-capable- 你的頻道顯示傳輸已連線,且在支援時,
channels status --probe中會出現works或audit ok - 傳送者顯示為已核准(或私訊政策為開放/允許清單)
drop guild message (mention required→ Discord 中提及門檻封鎖了訊息。pairing request→ 傳送者尚未核准,正在等待私訊配對核准。- 頻道日誌中的
blocked/allowlist→ 傳送者、聊天室或群組已被篩選。
Dashboard 或 Control UI 無法連線
Dashboard 或 Control UI 無法連線
openclaw gateway status中顯示Dashboard: http://...Connectivity probe: okCapability: read-only、write-capable或admin-capable- 日誌中沒有驗證迴圈
device identity required→ HTTP/非安全環境無法完成裝置驗證。origin not allowed→ 瀏覽器Origin不被 Control UI Gateway 目標允許。AUTH_TOKEN_MISMATCH並帶有重試提示(canRetryWithDeviceToken=true)→ 可能會自動發生一次受信任裝置權杖重試。- 該快取權杖重試會重用與已配對裝置權杖一起儲存的快取範圍集合。明確的
deviceToken/ 明確的scopes呼叫者會保留其要求的範圍集合。 - 在非同步 Tailscale Serve Control UI 路徑上,同一個
{scope, ip}的失敗嘗試會在限制器記錄失敗前被序列化,因此第二個並行的錯誤重試可能已經顯示retry later。 - localhost 瀏覽器來源出現
too many failed authentication attempts (retry later)→ 來自相同Origin的重複失敗會暫時被鎖定;另一個 localhost 來源使用不同的儲存桶。 - 該重試後重複出現
unauthorized→ 權杖/密碼錯誤、驗證模式不相符,或已配對裝置權杖過期。 gateway connect failed:→ UI 指向錯誤的 URL/連接埠,或 Gateway 無法連線。
Gateway 無法啟動,或服務已安裝但未執行
Gateway 無法啟動,或服務已安裝但未執行
Service: ... (loaded)Runtime: runningConnectivity probe: okCapability: read-only、write-capable或admin-capable
Gateway start blocked: set gateway.mode=local或existing config is missing gateway.mode→ gateway 模式為遠端,或設定檔缺少本機模式標記,應修復。refusing to bind gateway ... without auth→ 在沒有有效 Gateway 驗證路徑(權杖/密碼,或已設定的 trusted-proxy)的情況下綁定非 loopback 位址。another gateway instance is already listening或EADDRINUSE→ 連接埠已被使用。
頻道已連線但訊息未流動
頻道已連線但訊息未流動
- 頻道傳輸已連線。
- 配對/允許清單檢查通過。
- 在需要時偵測到提及。
mention required→ 群組提及門檻封鎖了處理。pairing/pending→ 私訊傳送者尚未核准。not_in_channel、missing_scope、Forbidden、401/403→ 頻道權限權杖問題。
Cron 或 Heartbeat 未觸發或未送達
Cron 或 Heartbeat 未觸發或未送達
cron.status顯示已啟用並有下一次喚醒。cron runs顯示近期的ok項目。- Heartbeat 已啟用,且未超出活動時段。
cron: scheduler disabled; jobs will not run automatically→ cron 已停用。heartbeat skipped並帶有reason=quiet-hours→ 超出已設定的活動時段。heartbeat skipped並帶有reason=empty-heartbeat-file→HEARTBEAT.md存在,但只包含空白/僅標題的鷹架內容。heartbeat skipped並帶有reason=no-tasks-due→HEARTBEAT.md任務模式已啟用,但尚未到達任何任務間隔。heartbeat skipped並帶有reason=alerts-disabled→ 所有 heartbeat 可見性皆已停用(showOk、showAlerts和useIndicator全部關閉)。requests-in-flight→ 主要通道忙碌;heartbeat 喚醒已延後。unknown accountId→ heartbeat 傳遞目標帳號不存在。
Node 已配對,但工具在 camera canvas screen exec 上失敗
Node 已配對,但工具在 camera canvas screen exec 上失敗
- Node 以
node角色列為已連線且已配對。 - 你正在呼叫的命令具備 Capability。
- 該工具的權限狀態為已授予。
NODE_BACKGROUND_UNAVAILABLE→ 將 node 應用程式帶到前景。*_PERMISSION_REQUIRED→ 作業系統權限被拒絕/缺失。SYSTEM_RUN_DENIED: approval required→ exec 核准待處理。SYSTEM_RUN_DENIED: allowlist miss→ 命令不在 exec 允許清單中。
Exec 突然要求核准
Exec 突然要求核准
- 如果未設定
tools.exec.host,預設值為auto。 - 當沙箱執行階段處於作用中時,
host=auto會解析為sandbox,否則解析為gateway。 host=auto只負責路由;無提示的「YOLO」行為來自 Gateway/Node 上的security=full加上ask=off。- 在
gateway和node上,未設定的tools.exec.security預設為full。 - 未設定的
tools.exec.ask預設為off。 - 結果:如果你看到核准提示,表示某些主機本機或每次工作階段政策將 exec 收緊到不同於目前預設值的狀態。
- 如果只想要穩定的主機路由,只設定
tools.exec.host=gateway。 - 如果你想使用主機 exec,但仍想在 allowlist 未命中時進行審查,請使用
security=allowlist搭配ask=on-miss。 - 如果你想讓
host=auto解析回sandbox,請啟用沙箱模式。
Approval required.→ 命令正在等待/approve ...。SYSTEM_RUN_DENIED: approval required→ node-host exec 核准擱置中。exec host=sandbox requires a sandbox runtime for this session→ 隱含/明確選擇了沙箱,但沙箱模式已關閉。
瀏覽器工具失敗
瀏覽器工具失敗
- 瀏覽器狀態顯示
running: true以及選定的瀏覽器/設定檔。 openclaw啟動,或user可以看到本機 Chrome 分頁。
unknown command "browser"或unknown command 'browser'→ 已設定plugins.allow,但未包含browser。Failed to start Chrome CDP on port→ 本機瀏覽器啟動失敗。browser.executablePath not found→ 設定的二進位檔路徑錯誤。browser.cdpUrl must be http(s) or ws(s)→ 設定的 CDP URL 使用了不支援的配置。browser.cdpUrl has invalid port→ 設定的 CDP URL 有錯誤或超出範圍的連接埠。No Chrome tabs found for profile="user"→ Chrome MCP 附加設定檔沒有開啟中的本機 Chrome 分頁。Remote CDP for profile "<name>" is not reachable→ 此主機無法連線到設定的遠端 CDP 端點。Browser attachOnly is enabled ... not reachable或Browser attachOnly is enabled and CDP websocket ... is not reachable→ 僅附加設定檔沒有即時 CDP 目標。- 僅附加或遠端 CDP 設定檔上的過時檢視區/深色模式/語言環境/離線覆寫 → 執行
openclaw browser stop --browser-profile <name>以關閉作用中的控制工作階段並釋放模擬狀態,而不重新啟動 Gateway。
相關
- FAQ — 常見問題
- Gateway 疑難排解 — Gateway 專屬問題
- Doctor — 自動化健康檢查與修復
- 頻道疑難排解 — 頻道連線問題
- 自動化疑難排解 — Cron 和 Heartbeat 問題