Skip to content

常用命令

服务管理

命令说明
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关闭当前弹窗

基于 OpenClaw 官方文档整理,仅供学习研究