常用命令
服务管理
| 命令 | 说明 |
|---|---|
openclaw start | 启动网关服务 |
openclaw start --daemon | 后台守护进程模式启动 |
openclaw stop | 停止服务 |
openclaw restart | 重启服务 |
openclaw status | 查看运行状态 |
openclaw logs | 查看实时日志 |
配置管理
bash
# 重新运行配置向导
openclaw wizard
# 查看当前配置
openclaw config show
# 修改单项配置
openclaw config set ai.model claude-sonnet-4-6
# 验证配置有效性
openclaw config validate频道管理
bash
# 列出所有频道状态
openclaw channels list
# 启用/禁用指定频道
openclaw channels enable telegram
openclaw channels disable whatsapp
# 重新连接某个频道
openclaw channels reconnect telegram会话管理
bash
# 列出活跃会话
openclaw sessions list
# 查看某个会话详情
openclaw sessions show <session-id>
# 终止某个会话
openclaw sessions kill <session-id>
# 清除所有历史会话
openclaw sessions clear工具与插件
bash
# 列出已安装工具
openclaw tools list
# 安装社区工具
openclaw tools install <tool-name>
# 查看工具详情
openclaw tools info <tool-name>调试与诊断
bash
# 检查系统环境
openclaw doctor
# 导出诊断信息(提交 issue 时使用)
openclaw debug export
# 测试 AI 连接
openclaw ping快捷键(Web 控制台)
| 快捷键 | 功能 |
|---|---|
Ctrl/Cmd + K | 全局搜索 |
Ctrl/Cmd + / | 打开命令面板 |
G + H | 回到首页 |
G + S | 进入会话列表 |
Esc | 关闭当前弹窗 |