环境:win10
写在前面,卸载openclaw命令:
openclaw uninstall --all --yes --non-interactive
<>代表需要输入个人参数,输入不需要括号。
- 安装openclaw
安装命令(powershell):
npm install -g openclaw@latest
各项配置不重要,随便跳过。
- 申请域名
1.阿里云或者腾讯云申请。
2.通过cloudflare进行内网穿透管理。(有公网ip不需要这一步)。
- 问题记录
1.在window环境下安装会有各种小问题,建议在wsl内安装。
2.wsl部署完ollama后,可能gpu不能运行,建议将windows系统和wsl更新。
3.windows网页通过https:localhost:18789无法登陆,则通过https:127.0.0.1:18789登陆。
4.openclaw插件不能正常自动运行命令安装(powershell中),通过手动安装,或者改shell配置文件,比较复杂。建议在wsl内进行安装配置。
5.通过域名登陆提示token不匹配,建议在链接后+/?token=<你的网关token>。
6.通过域名登陆提示disconnected (1008): pairing required,找到 OpenClaw 的配置目录(通常在 ~/.openclaw/ 或 Docker 挂载的卷中),进入 devices 文件夹,找到 pending.json。将其中的 "silent": false 修改为 "silent": true ,保存文件并刷新浏览器页面。
openclaw gateway restart
🦞 OpenClaw 2026.2.17 (4134875) --- I'm the reason your shell history looks like a hacker-movie montage.
Gateway service check failed: Error: systemctl --user unavailable: Failed to connect to bus: No such file or directory
# 启动 dbus 并导出变量
eval $(dbus-launch --sh-syntax)
export DBUS_SESSION_BUS_ADDRESS
# 再次尝试
openclaw gateway restart
或者
# 直接启动网关(不通过 systemd)
openclaw gateway