openclaw常用命令

  •  node v24.13.0 及以上、npm 10.x.x 即符合要求;

  • 修改openclaw.json后,重启

    openclaw gateway restart

  • 查看npm包安装的路径 npm config get prefix
  • 生成网关 token  

    openssl rand -hex 32

  • 安装网关 openclaw gateway install
  • 启动网关 openclaw gateway start
  • 检查openclaw.json配置是否成功

    node -e "JSON.parse(require('fs').readFileSync('/Users/$(whoami)/.openclaw/openclaw.json', 'utf8'))"

posted @ 2026-03-07 10:34  my日常work  阅读(11)  评论(0)    收藏  举报