openclaw 指令
npm 安装(推荐) [^1^]
bash
npm install -g openclaw@latest
# 或指定版本
npm install -g openclaw@2026.3.13
启动服务
openclaw gateway start
停止服务
openclaw gateway stop
重启服务
openclaw gateway restart
打开界面
openclaw dashboard
命令行对话
openclaw cli
查看状态
openclaw status
诊断修复
openclaw doctor
直接执行 openclaw gateway start 然后 openclaw dashboard 即可使用!
重新运行配置向导
openclaw onboard
# 查看当前模型配置
openclaw models list
# 方式一:直接启动(前台运行,适合调试)
openclaw gateway --port 18789
# 方式二:启动后台守护进程(推荐日常使用)
openclaw gateway start
# 方式三:使用 systemd 服务启动(如果已安装守护进程)
systemctl --user start openclaw-gateway.service
查看所有插件列表
bash
# 紧凑列表
openclaw plugins list
# 仅显示已加载的插件
openclaw plugins list --enabled
# 详细列表(包含版本、状态等信息)
openclaw plugins list --verbose
# JSON 格式输出(适合脚本处理)
openclaw plugins list --json
查看特定插件详情
bash
# 查看某个插件的详细信息
openclaw plugins info <插件ID>
# 例如查看安全插件
openclaw plugins info @alicloud/openclaw-security-assistant
# 深度检查插件
openclaw plugins inspect <插件ID>
插件诊断命令
bash
# 运行插件诊断,检查配置和依赖问题
openclaw plugins doctor
# 查看所有插件的全局表格
openclaw plugins inspect --all
常用检查流程
建议你按以下顺序检查:
bash
# 1. 检查 OpenClaw 整体健康状态
openclaw doctor
# 2. 查看 Gateway 运行状态
openclaw gateway status
# 3. 列出所有已安装的插件
openclaw plugins list --verbose
# 4. 检查特定插件是否已启用(以 web-search 为例)
openclaw plugins info openclaw-web-search
如果发现插件未安装或需要更新:
bash
# 安装插件
openclaw plugins install <插件包名>
# 启用插件
openclaw plugins enable <插件ID>
# 禁用插件
openclaw plugins disable <插件ID>
# 更新插件
openclaw plugins update <插件ID>
# 更新所有插件
openclaw plugins update --all
# 卸载插件
openclaw plugins uninstall <插件ID>
注意:安装或更新插件后,需要重启 Gateway 才能生效:
bash
openclaw gateway restart