OpenClaw 命令速查
# OpenClaw 操作手册
# 启动 / 停止
| 操作 | 命令 |
|---|---|
| 启动 Gateway | openclaw gateway start |
| 停止 Gateway | openclaw gateway stop |
| 重启 Gateway | openclaw gateway restart |
| 查看状态 | openclaw status |
| 查看 Gateway 日志 | openclaw gateway log |
# 连接微信
# 安装微信插件(仅首次)
npx -y @tencent-weixin/openclaw-weixin-cli install
1
# 扫码登录
openclaw channels login --channel openclaw-weixin
1
终端会显示二维码,用手机微信扫码确认。
# 登录多个微信账号
重复执行 openclaw channels login --channel openclaw-weixin 即可。
# 授权用户(配对)
当有人通过微信给你发消息时,需要先授权才能和我对话。
# 查看待授权的用户
openclaw pairing list openclaw-weixin
1
# 授权用户
openclaw pairing approve openclaw-weixin <CODE>
1
<CODE>替换为实际显示的授权码。
# 插件管理
| 操作 | 命令 |
|---|---|
| 查看已安装插件 | openclaw plugins list |
| 安装插件 | openclaw plugins install <包名> |
| 启用插件 | openclaw config set plugins.entries.<插件ID>.enabled true |
| 禁用插件 | openclaw config set plugins.entries.<插件ID>.enabled false |
| 查看通道状态 | openclaw channels status --probe |
# 其他常用
| 操作 | 命令 |
|---|---|
| 查看版本 | openclaw --version |
| 扫码登录日志 | 查看终端输出的二维码和提示 |
| 插件目录 | ~/.openclaw/npm/node_modules/ |
| 工作区目录 | ~/.openclaw/workspace/ |
# 常见问题
Q: 扫码后没反应? 重新跑一次登录命令。
Q: 插件装了但没启用?
openclaw config set plugins.entries.openclaw-weixin.enabled true
openclaw gateway restart
1
2
2
Q: Gateway 反复重启? 更新插件和 OpenClaw:
openclaw plugins install "@tencent-weixin/openclaw-weixin" --force
openclaw gateway restart
1
2
2
最后更新:2026-05-29
编辑 (opens new window)