由于近期龙虾AI非常的活,我也想动手试试看。

OpenClaw官网:OpenClaw — Personal AI Assistant

使用的是windows系统安装,官网提供了两个安装命令,

一个是使用powershell命令安装:iwr -useb https://openclaw.ai/install.ps1 | iex

一个是使用cmd命令安装:curl -fsSL https://openclaw.ai/install.cmd -o install.cmd && install.cmd && del install.cmd

我这里就使用powershell安装它。

但是等待一会出现了一堆错:

改使用npm安装openclaw,命令:

# Install OpenClaw   安装命令
npm i -g openclaw
# Meet your lobster  启动命令
openclaw onboard

第一种报错:

PS C:\openclaw> npm i -g openclaw
npm error code 128
npm error An unknown git error occurred
npm error command git –no-replace-objects ls-remote ssh://git@github.com/whiskeysockets/libsignal-node.git
npm error git@github.com: Permission denied (publickey).
npm error fatal: Could not read from remote repository.
npm error
npm error Please make sure you have the correct access rights
npm error and the repository exists.

原因:通过 Git 直接从 GitHub 拉取源码编译,而你的电脑目前没有配置 SSH Key,导致 GitHub 拒绝了你的连接

这种报错的解决方案:

1.先输入:git -v  查看git的版本,如果没有git,那么就需要安装git

2.输入:ssh-keygen -t ed25519 -C “123456@qq.com”   注意:123456@qq.com  这里填写你的github邮箱

3.一直按回车,复制:Your public key has been saved in C:\Users\xxx/.ssh/id_ed25519.pub   用记事本打开这个文件,然后复制里面的内容到SSH and GPG keys 新增SSH Key

解决这个报错就是本地生成一个SSH Key,然后在github账号中填写本地生成的SSH Key就可以了。

 

第二种报错:

PS C:\openclaw> npm i -g openclaw
npm error code 128
npm error An unknown git error occurred
npm error command git –no-replace-objects ls-remote ssh://git@github.com/whiskeysockets/libsignal-node.git
npm error fatal: unable to access ‘https://github.com/whiskeysockets/libsignal-node.git/’: schannel: SEC_E_UNTRUSTED_ROOT (0x80090325)

原因:SEC_E_UNTRUSTED_ROOT 证书信任的问题。

这种报错的解决方案:

禁用SSL证书验证,在powershell命令行中输入:git config –global http.sslVerify false    注意:如果安装完了以后,记得再执行:git config –global http.sslVerify true 改回来

 

再次执行:npm i -g openclaw命令的时候,没报错了

如果安装完了一定要新开一个powershell窗口,否则执行:openclaw -v 会失败的。

验证openclaw是否安装成功,在新开的窗口中,执行:openclaw -v   我这里显示的是:2026.3.2

然后再执行:openclaw onboard  启动龙虾

我使用kimi大模型和飞书的大概步骤,我就不翻译了:

1. I understand this is personal-by-default and shared/multi-user use requires lock-down. Continue?

选择:yes

2.Onboarding mode

选择:QuickStart

3.Config handling

选择:Use existing values

4.Model/auth provider

选择:Moonshot AI (Kimi K2.5)

5.Moonshot AI (Kimi K2.5) auth method

选择:Kimi API key (.cn)

6.How do you want to provide this API key?

选择:Paste API key now

7.Enter Moonshot API key (.cn)

sk-xxxxxxxxxxxx   注意,这里就是你在kimi申请的API Key,记得 一定要充值,不充值到时候对话不会回复你消息的。

8.Model configured

Default model set to moonshot/kimi-k2.5

9.Default model

Keep current (moonshot/kimi-k2.5)

10.Channel status

Feishu/Lark (飞书)

11.Install Feishu plugin?

这里会自动下载飞书,这时要先去飞书官网注册账号

1.在飞书后台创建应用(拿到应用的App ID和App Secret)

2.飞书应用的权限要开这三个:

  1. 获取用户基本信息 contact:user.base:readonly
  2. 获取与更新群组信息 im:chat
  3. 获取与发送单聊、群组消息 im:message
3.在添加应用能力页面,添加机器人
4.发布应用
最后的状态应该是这样
12.How do you want to provide this App Secret?
选择:App Secret
13.Enter Feishu App Secret
复制飞书的App Secret  粘贴到这里
14.Enter Feishu App ID
复制飞书的App ID粘贴到这里
注意:如果没有添加机器人,这里会显示:Connection failed: API error: app do not have bot   如果有机器人,会返回一段:Connected as ou_xxxx
15. Feishu connection mode
选择:WebSocket (default)
16.Which Feishu domain?
选择:Feishu (feishu.cn) – China
17.Group chat policy
Allowlist – only respond in specific groups
18.Group chat allowlist (chat_ids)
如果没有在飞书上创建群,这里可以直接回车。如果有创建群,点击群标题,拉到最下面,有一个会话ID:oc_xxxxx
19.Configure skills now? (recommended)
选择:yes
20.Install missing skill dependencies
选择:Skip for now
这里就是选择技能,这里我选择跳过,后续可以配置的。
21.Set GOOGLE_PLACES_API_KEY for goplaces?
选择:No
22.Set GEMINI_API_KEY for nano-banana-pro?
选择:No
23.Set NOTION_API_KEY for notion?
选择:No
24.Set OPENAI_API_KEY for openai-image-gen?
选择:No
25.Set OPENAI_API_KEY for openai-whisper-api?
选择:No
26.Set ELEVENLABS_API_KEY for sag?
选择:No
27.Enable hooks?
选择:Skip for now
28.How do you want to hatch your bot?
选择:Open the Web UI
我安装的一共大概28个配置,最后一个步骤选择完就会打开网页:http://127.0.0.1:18789/
好了,至此龙虾已经安装完成了
总结:
经过测试,发现windows下的龙虾功能并没有很强,最佳适配的系统是MacOS,只有在MacOS系统上才能发挥出龙虾真正的实力。
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。