如果你只有 2 分钟,就把这个页面当作分诊入口。Documentation Index
Fetch the complete documentation index at: https://openclaw.zhcndoc.com/llms.txt
Use this file to discover all available pages before exploring further.
前 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: ...。如果你还需要读权限范围的 RPC 证明,请使用--require-rpc。openclaw doctor→ 没有阻塞性的配置/服务错误。openclaw channels status --probe→ 可达的网关会返回每个账户的实时传输状态,以及诸如works或audit ok之类的探测/审计结果;如果网关不可达,该命令会回退为仅配置摘要。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
插件安装失败,缺少 openclaw 扩展
如果安装失败并提示package.json missing openclaw.extensions,说明该插件包
使用的是 OpenClaw 不再接受的旧结构。
在插件包中修复:
- 将
openclaw.extensions添加到package.json。 - 将条目指向已构建的运行时文件(通常是
./dist/index.js)。 - 重新发布插件,然后再次运行
openclaw plugins install <package>。
决策树
没有回复
没有回复
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/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 网关目标允许。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/端口,或网关不可达。
网关无法启动,或服务已安装但未运行
网关无法启动,或服务已安装但未运行
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→ 网关模式是远程,或者配置文件缺少本地模式标记并且应当被修复。refusing to bind gateway ... without auth→ 非回环绑定缺少有效的网关认证路径(令牌/密码,或已配置的可信代理)。another gateway instance is already listening或EADDRINUSE→ 端口已被占用。
通道已连接但消息不流动
通道已连接但消息不流动
- 通道传输已连接。
- 配对/允许名单检查通过。
- 在需要时可以检测到提及。
mention required→ 群组提及门控阻止了处理。pairing/pending→ DM 发送者尚未获批准。not_in_channel、missing_scope、Forbidden、401/403→ 通道权限令牌问题。
Cron 或心跳没有触发或没有送达
Cron 或心跳没有触发或没有送达
cron.status显示已启用,并且有下一次唤醒时间。cron runs显示最近的ok条目。- 心跳已启用,并且不在活跃时段之外。
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→ 所有心跳可见性都被禁用(showOk、showAlerts和useIndicator都关闭)。requests-in-flight→ 主通道繁忙;心跳唤醒被延后。unknown accountId→ 心跳投递目标账户不存在。
节点已配对,但工具在摄像头画布屏幕执行时失败
节点已配对,但工具在摄像头画布屏幕执行时失败
Exec 突然要求审批
Exec 突然要求审批
- 如果
tools.exec.host未设置,默认值是auto。 host=auto在沙箱运行时处于活动状态时会解析为sandbox,否则解析为gateway。host=auto只负责路由;无提示的 “YOLO” 行为来自security=full加上 gateway/node 上的ask=off。- 在
gateway和node上,未设置的tools.exec.security默认值为full。 - 未设置的
tools.exec.ask默认值为off。 - 结果:如果你看到审批提示,说明某些主机本地或按会话的策略已经把 exec 收紧到了当前默认值之外。
- 如果你只想要稳定的主机路由,只设置
tools.exec.host=gateway。 - 如果你希望使用主机 exec,但仍想在允许名单缺失时进行审查,请使用
security=allowlist并配合ask=on-miss。 - 如果你希望
host=auto重新解析为sandbox,请启用沙箱模式。
Approval required.→ 命令正在等待/approve ...。SYSTEM_RUN_DENIED: approval required→ 节点主机 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>,在不重启网关的情况下关闭当前控制会话并释放仿真状态。