安装
Windows子系统WSL2下安装
参考 Linux - Ubuntu(WSL)的常用命令汇总 在Windows上安装子系统Ubuntu-24.04:
wsl --install -d Ubuntu-22.04
# 更新软件
sudo apt-get update
sudo apt-get upgrade
然后安装:
curl -fsSL https://openclaw.ai/install.sh | bash
安装时会有一个向导步骤,可以参考这篇文章选择:【最新教程】OpenClaw(原Clawdbot/Moltbot)本地部署快速指南_openclaw本地部署,相对来说比较简单,如果无法配置或者不知道怎么选择的可以先跳过。
纯Windows
参考 Windows安装OpenClaw(Clawdbot)教程_openclawd ,暂时没试过。
使用
如果在安装过程中有配置好大模型的apikey,安装成功后就可以直接访问了,否则可以参考大模型配置一节配置好apikey后方能正常使用。
浏览器访问openclaw:http://localhost:18790?token=
常用命令
# 配置向导
openclaw onboard
# 查看模型状态
openclaw models status
# 查看token(就是浏览器访问需要的token参数)
cat ~/.openclaw/openclaw.json | grep -i token
# 设置配置合并模式(防止覆盖其他配置)
openclaw config set models.mode merge
# 设置默认模型
openclaw models set nvidia/z-ai/glm4.7
# 重启网关使配置生效
openclaw gateway restart
# 测试对话
openclaw agent --message "你好"
openclaw agent --message "你好" --agent main
# 卸载
openclaw uninstall
大模型选择
nvidia英伟达(免费推荐)
可以使用英伟达提供的免费大模型,https://build.nvidia.com/explore/discover, 点击右上角的 Generate API Key(或Manage API Keys),创建的时候过期时间可以选择永不过期(100年)。 创建成功后将apikey复制下来使用,替换到如下的命令行中执行,重启网关后生效。
openclaw config set 'models.providers.nvidia' --json '{
"baseUrl": "https://integrate.api.nvidia.com/v1",
"apiKey": "nvapi-your-api-key",
"api": "openai-completions",
"models": [
{ "id": "z-ai/glm4.7", "name": "GLM-4.7" },
{ "id": "minimaxai/minimax-m2.1", "name": "MiniMax M2.1" },
{ "id": "moonshotai/kimi-k2-thinking", "name": "Kimi K2" }
]
}'
openclaw config set models.mode merge
openclaw models set nvidia/z-ai/glm4.7
openclaw gateway restart
Google谷歌gemini-1.5-flash(免费需梯子)
访问:https://aistudio.google.com/api-keys, 然后点击右上角的「获取 API 密钥」,因为需要梯子,这个没测试通,有空了再试。
国内其他免费大模型
- 阿里云百炼的通义千问Plus,据说有100万tokens免费额度,没有实际用过。
- 火山方舟的GLM-4-7,据说有50万tokens免费额度,实际跑通了,但是只用了几轮会话就消耗光了。 ```bash openclaw config set ‘models.providers.volcano’ –json ‘{ “baseUrl”: “https://ark.cn-beijing.volces.com/api/v3”, “apiKey”: “…”, “api”: “openai-completions”, “models”: [ {“id”: “glm-4-7-251222”, “name”: “GLM-4.7”} ] }’
openclaw config set models.mode merge openclaw models set volcano/ark-code-latest openclaw gateway restart ```
channel
OpenClaw 将多个即时通讯平台连接到 AI 编程代理(如 Pi),让你通过熟悉的聊天工具直接控制你的电脑。
微信
飞书
skills
使用场景
- 自然语言沟通整理杂乱的桌面;
参考
- OpenClaw 文档
- openclaw/openclaw: Your own personal AI assistant. Any OS. Any Platform. The lobster way. 🦞
- openclaw官网:OpenClaw — Personal AI Assistant
- OpenClaw(原ClawdBot/MoltBot)接入国内模型Minimax保姆级安装部署配置教程_linux安装openclaw
- Windows安装OpenClaw(Clawdbot)教程_openclawd
- Windows 也能跑 OpenClaw!最完整安装教程 + 飞书接入,全程避坑_openclaw windwos
文档信息
- 本文作者:zhupite
- 本文链接:https://zhupite.com/soft/openclaw.html
- 版权声明:自由转载-非商用-非衍生-保持署名(创意共享3.0许可证)