#youtube视频
https://youtu.be/ACPugeiVchU
#项目网页
https://openclaw.ai/
#必要组件
apt install -y curl npm
#配置 Gemini,获取project ID(也可参考https://www.nodeseek.com/post-464542-1,非广告,非本人帖子)
请用你的 Google 账号登录 https://console.cloud.google.com/
点击最上面的Google Cloud右边的方框
新建项目
项目名称自己选,点击新建
点击刚创建的项目
然后会出来项目ID(project ID),复制下来,点击左上角的三横
API和服务,以启用的API和服务
点击上面中间的,启用API和服务
在搜索框键入:cloudaicompanion.googleapis.com,点击搜索结果Gemini Goggle Cloud
点击启用
#安装gemini cli
npm install -g @google/gemini-cli
#project ID
cat << EOF >> /root/.bashrc
#Gemini & Google Cloud Project Config
export GOOGLE_CLOUD_PROJECT=”openclaw-new-490212″
EOF
#更新源
source /root/.bashrc
#验证
echo $GOOGLE_CLOUD_PROJECT
#安装
curl -fsSL https://openclaw.ai/install.sh | bash
#Google API
https://console.cloud.google.com/apis/credentials
#加入tg号码
“streaming”: “partial”,
“allowFrom”: [xxxx]
#查看电报号码
@userinfobot
#重启网关
openclaw gateway restart
#如何迁移
打包目录:
tar -czvf openclaw_backup.tar.gz ~/.openclaw
用脚本安装好openclaw
上传到新的vps,并且解压缩
tar -xzvf openclaw_backup.tar.gz -C /
