npm install -g openclaw,然后等待安装结束(时间有点长,需要等待一下)。openclaw onboard,开始配置Openclaw。openclaw gateway,刚才的网站就能正常进去了。C:\Users\自己的账号\.openclaw "models": {
"mode": "merge",
"providers": {
"new-xfxai-top": {
"baseUrl": "https://new.xfxai.top/v1",
"api": "openai-completions",
"apiKey": "你的令牌",
"models": [
{
"id": "claude-opus-4-6",
"name": "claude-opus-4-6 (Custom Provider)",
"contextWindow": 1000000,
"maxTokens": 65000,
"input": [
"text",
"image"
],
"cost": {
"input": 0,
"output": 0,
"cacheRead": 0,
"cacheWrite": 0
},
"reasoning": false
},
{
"id": "[按量]claude-sennot-4-6",
"name": "[按量]claude-sennot-4-6 (Custom Provider)",
"contextWindow": 1000000,
"maxTokens": 65000,
"input": [
"text",
"image"
],
"cost": {
"input": 0,
"output": 0,
"cacheRead": 0,
"cacheWrite": 0
},
"reasoning": false
},
{
"id": "[ant]gemini-3.1-pro-high",
"name": "[ant]gemini-3.1-pro-high (Custom Provider)",
"contextWindow": 1048576,
"maxTokens": 65536,
"input": [
"text",
"image"
],
"cost": {
"input": 0,
"output": 0,
"cacheRead": 0,
"cacheWrite": 0
},
"reasoning": false
}
]
}
}
},openclaw gateway restart重启网关,然后再运行openclaw gateway,启动任务。npm uninstall -g openclaw就能一键卸载所有东西