打开官网
使用官网的安装方式安装:
注意:官网是ai结尾的
打开安装文档
https://docs.openclaw.ai/start/getting-started#macos%2Flinux
找到对应系统的安装命令,到终端执行
配置模型
安装时选择的内容
bash
◇ Where will the Gateway run?
│ Local (this machine) #(默认选择本地安装)
配置错了可以终端执行openclaw config重新配置
bash
openclaw config
bash
◆ Select sections to configure
│ ○ Workspace
│ ● Model (Pick provider + credentials) # 选择模型
│ ○ Web tools
│ ○ Gateway
│ ○ Daemon
│ ○ Channels
│ ○ Skills
│ ○ Health check
│ ○ Continue
└
配置完成后剩余选择跳过
配置主页的token
mac的openclaw的安装目录通常是 /Users/用户名/.openclaw 也可以用 $HOME/.openclaw代替
bash
# cd /Users/用户名/.openclaw
cd $HOME/.openclaw
cat openclaw.json | grep '"token":' | awk -F '"' '{print $4}'
# cat $HOME/.openclaw/openclaw.json | grep '"token":' | awk -F '"' '{print $4}'
关联飞书
略