YouTube搭建OpenClaw记录
终端-重启:openclaw gateway --verbose
codespaces搭建openclaw后报错:断开连接 (1008): 未授权: 网关令牌缺失(打开令牌化的仪表板 URL 或将令牌粘贴到 Control UI 设置中)
新建终端:openclaw config get --json
打开openclaw.json,手动复制token数据给 Gateway Token
对于报错:disconnected (1008): pairing required
方法一:
根据方法一中,新开终端,使用命令【openclaw devices list 】查看pending的数据;
然后运行【openclaw devices approve <device ID> 】
这个方法我这边尝试后,在web段连接依然报错,欢迎尝试并解惑!!!
方法二:
检查文件是否存在:
ls -la ~/.openclaw/devices/
编辑文件(使用nano编辑器):
nano ~/.openclaw/devices/pending.json
如果文件已经存在,直接修改sed值:
sed -i 's/"silent": false/"silent": true/g' ~/.openclaw/devices/pending.json
此方法验证成功,但是web运行有点不太稳定,经常需要刷新当前页面。
注意事项:
GitHub上面使用Codespaces搭建的项目,对于个人用户,每天免费4小时,每个月不超过120小时免费时长,详情见官方文档:https://docs.github.com/en/billing/concepts/product-billing/github-codespaces#codespaces-pricing
GitHub搭建的Open Claw当没有流量时,会自动休眠,下次使用在终端使用重启命令;