建议要安装有nodejs必须是22以上的版本。 最好是有git。在实际安装之前可以先通读文章下面有一些踩坑和建议安装步骤1. 准备 PowerShell管理员按WinS搜索PowerShell右键 →以管理员身份运行。首次必做开启脚本执行权限powershellSet-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser提示时输入Y确认。2. 执行一键安装powershelliwr -useb https://openclaw.ai/install.ps1 | iex 该脚本会自己安装nodejs如果你竟安装好了会检查到已安装好的nodejs之所以要自己手动安装nodejs就是自己知道装在了那里方便自己管理建议使用nvm工具安装和管理nodejs自动下载、安装 Node.js、OpenClaw 及依赖全程约 3–5 分钟。出现OpenClaw installed successfully即完成。3. 验证安装powershellopenclaw --version遇到的问题问题一C:\Users\24197npm install -g openclawlatest npm error code 128 npm error An unknown git error occurred npm error command git --no-replace-objects ls-remote ssh://gitgithub.com/whiskeysockets/libsignal-node.git npm error gitgithub.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. npm error A complete log of this run can be found in: C:\Users\24197\AppData\Local\npm-cache\_logs\2026-03-04T06_20_40_323Z-debug-0.log你这个错误是npm 安装时试图用 Git SSH 拉取依赖但没有权限不是你操作错了是依赖源的问题。我给你一步到位的解决方法直接能装好。核心原因openclaw依赖的一个库libsignal-node用了Git SSH 地址而你的电脑没有配置 GitHub SSH 密钥所以拉取失败。最简单、100% 能解决的方案让 npm 强制用 HTTPS 而不是 SSH 拉取 Git 依赖在命令行里依次执行这 2 行git config --global url.https://github.com/.insteadOf ssh://gitgithub.com/ git config --global url.https://.insteadOf git://问题二C:\Users\24197npm install -g openclawlatest npm error code 128 npm error An unknown git error occurred npm error command git --no-replace-objects ls-remote ssh://gitgithub.com/whiskeysockets/libsignal-node.git npm error fatal: unable to access https://github.com/whiskeysockets/libsignal-node.git/: Failed to connect to github.com port 443 after 21116 ms: Couldnt connect to server npm error A complete log of this run can be found in: C:\Users\24197\AppData\Local\npm-cache\_logs\2026-03-04T06_23_03_328Z-debug-0.log这个问题是你连不上github安装建议安装openclaw之前使用nvm安装nodejs安装git准备并打开翻墙软件安装openclaw如果上面说的nodejs和git已经安装好了可以直接执行下面的命令npm install -g openclawlatest原因是安装脚本有时候找不到安装的nodejs脚本自己安装又会遇到问题例如闪退装不上可以提前避免。openclaw配置模型和apikey1. 参照步骤安装完之后检验安装是否成功执行命令 openclaw -v2. 进行配置初始化由于本人觉得在面板上得配置不太友好且不好配置所以先采用他的初始化配置提示进行配置第一步执行命令 openclaw onboard输入yes即可第二步默认第一个 回车即可第三步选择你的模型或者你自己有api接口就选择倒数第二个 我是有自己的api接口所以我选择的是倒数第二个自定义第四步填写api接口第五步填写apikey第六步选择适配器默认第一个即可第七步输入模型的id这里我用的是千问模型模型id是qwen-max第八步回车之后出现这个表示模型和apikey配置成功第九步后面的配置有跳过就选择跳过没有就选择默认就行有是否选择就选择否就行这时候已经安装成功如下还可能会打开另一个窗口第十步或者使用手动启动命令 openclaw gateway 然后访问http://127.0.0.1:18789/相关命令访问地址http://127.0.0.1:18789/启动命令 openclaw gateway重置设置 openclaw reset初始化设置; openclaw onboard