bash
启动:openclaw gateway
命令行: openclaw tui
初始化配置:openclaw onboard --install-daemon
版本号:openclaw --version
升级:npm update -g openclaw
卸载:npm uninstall -g openclaw
安装: npm install -g openclaw@latest
初始化配置时就选择Anthropic 并输入正确的apikey(在我的网站获取apikey),
然后修改openclaw.json 添加models值即可,其他都不用动,即可成功聊天
javascript
"models": {
"mode": "merge",
"providers": {
"anthropic": {
"baseUrl": "https://chat.xutongbao.top/api/light/chat/openClaw",
"apiKey": "sk-xxxx",
"api": "anthropic-messages",
"models": [
{
"id": "claude-sonnet-4-6",
"name": "Claude Sonnet 4.6",
"reasoning": true,
"input": [
"text",
"image"
],
"contextWindow": 200000,
"maxTokens": 8192
}
]
}
}
},