前 60 秒
按顺序运行这个梯子:openclaw status显示已配置的通道,没有认证错误。openclaw status --all生成完整、可共享的报告。openclaw gateway probe显示Reachable: yes。Capability: ...是探测证明的认证级别;Read probe: limited - missing scope:operator.read表示诊断能力受限,不是连接失败。openclaw gateway status显示Runtime: running、Connectivity probe: ok,以及合理的Capability: ...。添加--require-rpc还会要求读权限 RPC 证明。openclaw doctor报告没有阻塞性的配置/服务错误。openclaw channels status --probe在网关可达时返回按账户划分的实时传输状态(works/audit ok);在不可达时回退为仅配置摘要。openclaw logs --follow显示稳定活动,没有重复出现的致命错误。
Assistant 感觉受限或缺少工具
检查有效的工具配置:tools.profile: "minimal"allows onlysession_status.tools.profile: "messaging"is narrow, for chat-only agents.tools.profile: "coding"is the default for new local configs (repo, file, shell, and runtime work).tools.profile: "full"removes profile restrictions; limit to trusted operator-controlled agents.- Per-agent
agents.entries.*.toolsoverrides narrow or expand the root profile for one agent.
openclaw status --all 重新检查。完整的配置文件/分组表:工具配置文件。
Anthropic 长上下文 429
HTTP 429: rate_limit_error: Extra usage is required for long context requests
→ Anthropic 429 需要额外使用量以支持长上下文。
本地 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 提示会让后端崩溃:这 是上游模型/服务器限制,不是 OpenClaw 的 bug。继续阅读 本地 OpenAI 兼容后端通过直接探测但 agent 运行失败。
插件安装失败,缺少 openclaw 扩展
package.json missing openclaw.extensions 表示插件包使用了
OpenClaw 不再接受的结构。
在插件包中修复:
- 将
openclaw.extensions添加到package.json,指向已构建的运行时 文件(通常是./dist/index.js)。 - 重新发布,然后再次运行
openclaw plugins install <package>。
安装策略阻止插件安装或更新
更新完成了,但插件已过时、被禁用,或者显示blocked by install policy、install policy failed closed,或 Disabled "<plugin>" after plugin update failure:检查 security.installPolicy。
安装策略会在插件安装和更新时运行。@openclaw/* 插件版本通常会随着 OpenClaw 发布而变化,因此 OpenClaw 更新后,在更新同步期间可能需要匹配的插件更新。
除非你也维护相应的升级规则,否则避免使用以下策略形状:
- 将 OpenClaw 自有插件冻结到某一个精确的旧版本(例如,仅
@openclaw/*@2026.5.3)。 - 仅按来源类型进行阻止(每个 npm、network,或
request.mode: "update"请求)。 - 将策略命令视为可选:当启用
security.installPolicy时,缺失、缓慢、不可读或被权限阻止的策略可执行文件会以失败关闭的方式处理。 - 在未检查请求的
openclawVersion与插件候选元数据的情况下批准版本。
@openclaw/* 更新、且与当前宿主兼容的规则,而不是永久锁定到某个发布版本。如果你默认阻止 npm,请为你使用的插件 id 添加一个窄范围例外,并将同样的信任规则同时应用于 request.mode: "update" 和安装。
恢复:
openclaw plugins update --all,然后再恢复更严格的规则。如果更新失败导致某个插件被禁用,请在重新启用前先检查:
插件存在但被可疑所有权阻止
openclaw doctor、setup 或启动警告显示:
node(uid 1000)运行。修复宿主机绑定挂载:
决策树
没有回复
没有回复
Runtime: runningConnectivity probe: okCapability: read-only、write-capable或admin-capable- 通道显示传输已连接,并且在支持的情况下,在
channels status --probe中显示works或audit ok - 发送者已获批准(或 DM 策略为开放/白名单)
drop guild message (mention required→ Discord 提及门控阻止了消息。pairing request→ 发送者未获批准,正在等待 DM 配对审批。blocked/allowlistin channel logs → 发送者、房间或群组被过滤。
Dashboard 或 Control UI 无法连接
Dashboard 或 Control UI 无法连接
Dashboard: http://...显示在openclaw gateway status中Connectivity probe: okCapability: read-only、write-capable或admin-capable- 日志中没有认证循环
device identity required→ HTTP/非安全上下文无法完成设备认证。origin not allowed→ 浏览器Origin不被允许用于 Control UI 网关目标。AUTH_TOKEN_MISMATCHwithcanRetryWithDeviceToken=true→ 可能会自动进行一次受信任的设备令牌重试,重试时复用已配对令牌的缓存作用域。- 之后重复出现
unauthorized→ 令牌/密码错误、认证模式不匹配,或已过期的已配对设备令牌。 too many failed authentication attempts (retry later)→ 来自该浏览器Origin的重复失败会被临时锁定;其他 localhost origins 使用独立桶。关于 Tailscale Serve 并发重试的细节,请参见 Dashboard/Control UI connectivity。gateway connect failed:→ UI 目标指向了错误的 URL/端口,或网关不可达。
网关无法启动,或服务已安装但未运行
网关无法启动,或服务已安装但未运行
Service: ... (loaded)Runtime: runningConnectivity probe: okCapability: read-only、write-capable或admin-capable
Gateway start blocked: set gateway.mode=localorexisting config is missing gateway.mode→ 网关模式是 remote,或配置缺少 local-mode 标记,需要修复。refusing to bind gateway ... without auth→ 在没有有效认证路径(令牌/密码,或已配置的 trusted-proxy)的情况下进行非回环绑定。another gateway instance is already listeningorEADDRINUSE→ 端口已被占用。
通道已连接但消息不流动
通道已连接但消息不流动
- 通道传输已连接。
- 配对/白名单检查通过。
- 在需要时已检测到提及。
mention required→ 群组提及门控阻止了处理。pairing/pending→ DM 发送者尚未获批准。not_in_channel、missing_scope、Forbidden、401/403→ 通道权限令牌问题。
Cron 或心跳没有触发或没有送达
Cron 或心跳没有触发或没有送达
cron status显示调度器已启用,并有下一次唤醒。cron runs显示最近的ok条目。- Heartbeat 已启用且处于活动时段内。
cron: scheduler disabled; jobs will not run automatically→ cron is disabled.heartbeat skippedreasonquiet-hours→ outside configured active hours.heartbeat skippedreasonempty-heartbeat-file→ heartbeat monitor scratch contains only blank, comment, header, fence, or empty-checklist scaffolding.heartbeat skippedreasonalerts-disabled→showOk,showAlerts, anduseIndicatorare all off.requests-in-flight→ main lane busy; heartbeat wake deferred.unknown accountId→ heartbeat delivery target account does not exist.
节点已配对,但工具在摄像头画布屏幕执行时失败
节点已配对,但工具在摄像头画布屏幕执行时失败
- 节点列为已连接,并已按
node角色配对。 - 你正在调用的命令具备相应能力。
- 该工具的权限状态已授予。
NODE_BACKGROUND_UNAVAILABLE→ 将节点应用切换到前台。*_PERMISSION_REQUIRED→ 操作系统权限被拒绝/缺失。SYSTEM_RUN_DENIED: approval required→ exec 审批正在等待中。SYSTEM_RUN_DENIED: allowlist miss→ 命令不在 exec 白名单中。
Exec 突然要求审批
Exec 突然要求审批
- 未设置的
tools.exec.host默认为auto;当沙箱运行时环境处于激活状态时,它会解析为sandbox,否则为gateway。 host=auto只负责路由;无提示行为来自gateway/node上的security=full加ask=off。- 未设置的
tools.exec.security在gateway/node上默认为full。 - 未设置的
tools.exec.ask默认为off。 - 如果你现在看到审批,说明某个宿主机本地或按会话的策略把 exec 收紧到了这些默认值之外。
- 仅设置
tools.exec.host=gateway,以获得稳定的宿主路由。 - 使用
security=allowlist并配合ask=on-miss,在白名单未命中时对宿主 exec 进行审查。 - 启用沙箱模式,使
host=auto重新解析回sandbox。
Approval required.→ 命令正在等待/approve ...。SYSTEM_RUN_DENIED: approval required→ 节点主机 exec 审批正在等待中。exec host=sandbox requires a sandbox runtime for this session→ 隐式/显式选择了沙箱,但沙箱模式已关闭。
浏览器工具失败
浏览器工具失败
- Browser status 显示
running: true以及已选定的浏览器/配置文件。 openclaw配置文件启动成功,或user配置文件能看到本地 Chrome 标签页。
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 attach 配置文件没有打开的本地 Chrome 标签页。Remote CDP for profile "<name>" is not reachable→ 从此主机无法访问配置的远程 CDP 端点。Browser attachOnly is enabled ... not reachable→ attach-only 配置文件没有可用的 live CDP 目标。- attach-only 或远程 CDP 配置文件上遗留的视口/深色模式/语言环境/离线覆盖 → 运行
openclaw browser stop --browser-profile <name>以关闭控制会话,并在不重启网关的情况下释放模拟状态。
相关
- FAQ — 常见问题
- Gateway Troubleshooting — 网关特定问题
- Doctor — 自动化健康检查和修复
- Channel Troubleshooting — 通道连接问题
- Scheduled tasks: Troubleshooting — cron 和 heartbeat 问题