`openclaw update`

安全更新 OpenClaw 并在 stable/beta/dev 渠道之间切换。 如果你通过 npm/pnpm 安装(全局安装,无 git 元数据),更新通过 更新 中的包管理器流程进行。 用法 openclaw update openclaw update status openclaw update wizard openclaw update --channel beta openclaw update --channel dev openclaw update --tag beta openclaw update --no-restart openclaw update --json openclaw --update 选项 --no-restart:成功更新后跳过重启 Gateway 网关服务。 --channel <stable|beta|dev>:设置更新渠道(git + npm;持久化到配置中)。 --tag <dist-tag|version>:仅为本次更新覆盖 npm dist-tag 或版本。 --json:打印机器可读的 UpdateRunResult JSON。 --timeout <seconds>:每步超时时间(默认 1200 秒)。 注意:降级需要确认,因为旧版本可能会破坏配置。 update status 显示当前更新渠道 + git 标签/分支/SHA(对于源码检出),以及更新可用性。 openclaw update status openclaw update status --json openclaw update status --timeout 10 选项: ...

`openclaw uninstall`

卸载 Gateway 网关服务 + 本地数据(CLI 保留)。 openclaw uninstall openclaw uninstall --all --yes openclaw uninstall --dry-run

`openclaw tui`

打开连接到 Gateway 网关的终端 UI。 相关: TUI 指南:TUI 示例 openclaw tui openclaw tui --url ws://127.0.0.1:18789 --token <token> openclaw tui --session main --deliver

`openclaw system`

Gateway 网关的系统级辅助工具:入队系统事件、控制心跳和查看在线状态。 常用命令 openclaw system event --text "Check for urgent follow-ups" --mode now openclaw system heartbeat enable openclaw system heartbeat last openclaw system presence system event 在主会话上入队系统事件。下一次心跳会将其作为 System: 行注入到提示中。使用 --mode now 立即触发心跳;next-heartbeat 等待下一个计划的心跳时刻。 标志: --text <text>:必填的系统事件文本。 --mode <mode>:now 或 next-heartbeat(默认)。 --json:机器可读输出。 system heartbeat last|enable|disable 心跳控制: last:显示最后一次心跳事件。 enable:重新开启心跳(如果之前被禁用,使用此命令)。 disable:暂停心跳。 标志: --json:机器可读输出。 system presence 列出 Gateway 网关已知的当前系统在线状态条目(节点、实例和类似状态行)。 标志: --json:机器可读输出。 注意 需要一个运行中的 Gateway 网关,可通过你当前的配置访问(本地或远程)。 系统事件是临时的,不会在重启后持久化。

`openclaw status`

渠道 + 会话的诊断。 openclaw status openclaw status --all openclaw status --deep openclaw status --usage 注意事项: --deep 运行实时探测(WhatsApp Web + Telegram + Discord + Google Chat + Slack + Signal)。 当配置了多个智能体时,输出包含每个智能体的会话存储。 概览包含 Gateway 网关 + 节点主机服务安装/运行时状态(如果可用)。 概览包含更新渠道 + git SHA(用于源代码检出)。 更新信息显示在概览中;如果有可用更新,status 会打印提示运行 openclaw update(参见更新)。

`openclaw skills`

检查 Skills(内置 + 工作区 + 托管覆盖)并查看哪些符合条件,哪些缺少要求。 相关内容: Skills 系统:Skills Skills 配置:Skills 配置 ClawHub 安装:ClawHub 命令 openclaw skills list openclaw skills list --eligible openclaw skills info <name> openclaw skills check

`openclaw setup`

初始化 ~/.openclaw/openclaw.json 和智能体工作区。 相关内容: 快速开始:快速开始 向导:新手引导 示例 openclaw setup openclaw setup --workspace ~/.openclaw/workspace 通过 setup 运行向导: openclaw setup --wizard

`openclaw sessions`

列出已存储的对话会话。 openclaw sessions openclaw sessions --active 120 openclaw sessions --json

`openclaw security`

安全工具(审计 + 可选修复)。 相关: 安全指南:安全 审计 openclaw security audit openclaw security audit --deep openclaw security audit --fix 当多个私信发送者共享主会话时,审计会发出警告,并建议对共享收件箱使用 session.dmScope="per-channel-peer"(或多账户渠道使用 per-account-channel-peer)。 当使用小模型(<=300B)且未启用沙箱隔离但启用了 web/browser 工具时,它也会发出警告。

`openclaw reset`

重置本地配置/状态(保留 CLI 安装)。 openclaw reset openclaw reset --dry-run openclaw reset --scope config+creds+sessions --yes --non-interactive