AI创想

标题: OpenClaw安装指南(Windows) [打印本页]

作者: 米落枫    时间: 6 天前
标题: OpenClaw安装指南(Windows)
作者:CSDN博客
官方文档:https://docs.openclaw.ai/zh-CN
常用指令
  1. openclaw gateway restart #重启网关
  2. openclaw dashboard #打开浏览器
  3. openclaw config #重新配置
  4. openclaw plugins list #查看插件状态
  5. openclaw onboard #启动界面(使用默认配置)
  6. openclaw doctor --fix #自行诊断修复
复制代码
1、安装OpenClaw

windows(PowerShell):【只能在PowerShell中使用iwr,CMD中不可以】
方式1:
  1. iwr -useb https://openclaw.ai/install.ps1 | iex
  2. openclaw onboard --install-daemon
复制代码
方式2:已有Node(Node版本需要>=22)
  1. npminstall -g openclaw@latest
  2. openclaw onboard --install-daemon
复制代码
本地默认地址:http://127.0.0.1:18789/
2、安装插件-消息渠道

2.1 飞书

2.1.1 安装
  1. openclaw plugins install @openclaw/feishu
复制代码
2.1.1.1 遇到的问题:(Failed to start CLI: Error: spawn EINVAL)
  1. [openclaw] Failed to start CLI: Error: spawn EINVAL
  2.     at ChildProcess.spawn (node:internal/child_process:421:11)
  3.     at spawn (node:child_process:796:9)
  4.     at runCommandWithTimeout (file:///D:/App/env_tool/nvm/v24.9.0/node_modules/openclaw/dist/exec-B8JKbXKW.js:201:16)
  5.     at installPluginFromNpmSpec (file:///D:/App/env_tool/nvm/v24.9.0/node_modules/openclaw/dist/installs-DNzuaAfs.js:339:20)
  6.     at async Command.<anonymous>(file:///D:/App/env_tool/nvm/v24.9.0/node_modules/openclaw/dist/plugins-cli-BrVGHY4M.js:337:18)
  7.     at async Command.parseAsync (D:\App\env_tool\nvm\v24.9.0\node_modules\openclaw\node_modules\commander\lib\command.js:1122:5)
  8.     at async runCli (file:///D:/App/env_tool/nvm/v24.9.0/node_modules/openclaw/dist/run-main-CXp6H6-6.js:162:2)
复制代码
2.1.1.2 解决办法

  1. openclaw plugins install ./openclaw-feishu-0.1.10.tgz
  2. npminstall -g zod@latest
  3. npminstall @larksuiteoapi/node-sdk
  4. openclaw plugins enable feishu
  5. openclaw gateway restart
  6. openclaw plugins list #查看插件安装状态,如果飞书显示loaded,即成功
复制代码
2.1.2 使用

openclaw官方文档:https://docs.openclaw.ai/zh-CN/channels/feishu,关于飞书接入写的很详细,可以直接看。
  1. openclaw channels add
复制代码
3 安装插件-模型

3.1 千问

3.1.1 使用
  1. openclaw plugins enable qwen-portal-auth
  2. openclaw models auth login --provider qwen-portal --set-default
复制代码
3.2 其他

剩下的模型我都是使用网页中的Chat聊天框对话,让openclaw自行配置,给它需要的API Key即可,非常方便。

(, 下载次数: 0)


如果出问题就关闭命令窗口,执行以下两个命令。
  1. openclaw onboard #启动界面(使用默认配置)
  2. openclaw doctor --fix #自行诊断修复
复制代码
原文地址:https://blog.csdn.net/weixin_44695491/article/details/158006726




欢迎光临 AI创想 (http://www.llms-ai.com/) Powered by Discuz! X3.4