OpenClaw 常用命令如下:
| 命令 | 作用 | 备注 / 参数 |
|---|---|---|
openclaw status | 查看 Gateway 当前运行状态 | 包含健康度与上下文信息 |
openclaw health | 健康检查 | 检测 core、依赖与运行环境 |
openclaw doctor | 综合诊断与修复建议 | 支持 --deep 深度检查 |
openclaw onboard | 交互式初始化向导 | 首次使用推荐 |
openclaw onboard --install-daemon | 安装系统守护进程 | 后台常驻运行 Gateway |
openclaw onboard --uninstall-daemon | 卸载守护进程 | 不删除数据 |
openclaw configure | 交互式配置向导 | 模型、通道、凭据等 |
openclaw config get <path> | 获取配置值 | JSON Path |
openclaw config set <path> <value> | 设置配置项 | 支持 JSON5 / raw 文本 |
openclaw config unset <path> | 清除配置项 | 移除单个键值 |
openclaw channels list | 列出已登录通道 | WhatsApp / Telegram / Discord 等 |
openclaw channels login | 登录新的通道账号 | 扫码或授权流程 |
openclaw channels add | 添加通道 | Telegram / Discord / Slack |
openclaw channels status --probe | 通道健康检查 | 检测连接可达性 |
openclaw skills list | 列出技能 | 已安装 / 可用技能 |
openclaw skills info <skill> | 技能详情 | 参数、版本信息 |
clawhub install <slug> | 从 ClawHub 安装技能 | 官方技能市场 |
openclaw hooks list | 列出 Hook 列表 | 事件钩子机制 |
openclaw plugins list | 列出插件 | 查看已安装插件 |
openclaw plugins install <id> | 安装插件 | 例如 @openclaw/voice-call |
openclaw plugins enable <id> | 启用插件 | 通常需要重启 Gateway |
openclaw models list | 列出可用模型 | 包含鉴权状态 |
openclaw models status | 模型状态 | 当前可用性 |
openclaw models auth setup-token | 模型鉴权配置 | Cheatsheet 推荐方式 |
openclaw memory search "X" | 搜索长期记忆 | 向量搜索 |
openclaw memory index | 重建记忆索引 | 修复 memory 异常 |
openclaw logs | 查看日志 | 默认聚合输出 |
openclaw logs --follow | 实时日志 | --json / --plain / --limit |
openclaw gateway install | 安装 Gateway 系统服务 | 注册为系统守护进程 |
openclaw gateway start | 启动 Gateway 服务 | system service 模式 |
openclaw gateway stop | 停止 Gateway 服务 | |
openclaw gateway restart | 重启 Gateway 服务 | 配置变更后使用 |
openclaw gateway status | Gateway 系统服务状态 | 不同于 openclaw status |
openclaw browser start | 启动浏览器代理 | Automation 能力 |
openclaw browser screenshot | 网页截图 | |
openclaw subagents list | 列出子代理 | |
openclaw cron list | 列出定时任务 | |
openclaw cron run <id> | 执行定时任务 | |
openclaw uninstall | 卸载 Gateway 服务及数据 | 官方推荐 |
openclaw uninstall --all --yes --non-interactive | 全自动卸载 | 状态 / workspace / 插件 |
openclaw uninstall --state | 删除状态文件 | 不删除 workspace |
openclaw uninstall --workspace | 删除工作区 | agent / workspace 数据 |
openclaw uninstall --service | 仅卸载系统服务 | 不删除数据 |
openclaw uninstall --dry-run | 模拟卸载 | 仅展示结果 |