中午没休息,折腾了一下,把我走的坑说下,我是用的公益站的newapi的,他的默认自动配置没有这个,所以配置AI模型集成好了好久。
-
这是集成tg的效果图:
-
控制win11的浏览器
403 错误(API 调用失败)
new-api 拦截了 Clawdbot 的默认 User-Agent,所以我们需要自定义个header。最后面有完整的配置
"authHeader": true,
"headers": {
"User-Agent": "curl/8.0"
}
内存不足问题
我是把 gateway部署到我的vps上的,如果你把gateway和node都部署到自己的电脑上,就没这个问题,但是你部署到自己的电脑上,就意味着你电脑不能关机了,官方推荐也是gateway部署到一个服务器上,这个根据自己的的vps进行配置
NODE_OPTIONS="--max-old-space-size=768" clawdbot onboard
配置https
非常建议把域名托管到 cloudfare上,他的源服务器证书,免费15年。比自签的安全多了,但是这个不是必选的
Control UI 报pairing required错误
重点配置allowInsecureAuth即可
{
"gateway": {
"mode": "local",
"controlUi": {
"enabled": true,
"allowInsecureAuth": true
},
"auth": {
"mode": "token",
"token": "your-token"
},
"port": 32189,
"bind": "0.0.0.0"
}
}
显示成功的截图:
控制浏览器
Clawdbot Browser Relay这个插件是官网的,你需要安装,而且用默认配置就行,这样你就可以通过tg命令 控制pc的浏览器(好像完全控制的话并不需要)
我只是在我的本地PC中的配置文件 C:\Users<user>.clawdbot\clawdbot.json 控制浏览器需要一点特殊配置, 好像就可以控制了。
"browser": {
"enabled": true,
"defaultProfile": "clawd"
},
我的服务端完整配置
模型是:claude-opus-4-5-20251101 如果你的不是,你需要改成你的,这个兼容newapi的,也就是L站的 公益站的模型
{
"messages": {
"ackReactionScope": "group-mentions"
},
"session": {
"scope": "per-sender",
"reset": {
"mode": "idle",
"idleMinutes": 60
},
"resetTriggers": ["/new", "/reset"]
},
"agents": {
"defaults": {
"maxConcurrent": 4,
"subagents": {
"maxConcurrent": 8
},
"compaction": {
"mode": "safeguard"
},
"workspace": "/root/clawd",
"model": {
"primary": "newapi/claude-opus-4-5-20251101"
},
"models": {
"newapi/claude-opus-4-5-20251101": {
"alias": "Claude Opus 4.5"
}
},
"thinkingDefault": "low",
"timeoutSeconds": 600
}
},
"models": {
"providers": {
"newapi": {
"baseUrl": "https://your-api.com/v1",
"apiKey": "your-api-key",
"api": "openai-completions",
"authHeader": true,
"headers": {
"User-Agent": "curl/8.0"
},
"models": [
{
"id": "claude-opus-4-5-20251101",
"name": "Claude Opus 4.5",
"reasoning": true,
"input": ["text"],
"cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 },
"contextWindow": 200000,
"maxTokens": 16000
}
]
}
}
},
"gateway": {
"mode": "local",
"controlUi": {
"enabled": true,
"allowInsecureAuth": true
},
"auth": {
"mode": "token",
"token": "your-gateway-token"
},
"port": 32189,
"bind": "0.0.0.0",
"tailscale": {
"mode": "off",
"resetOnExit": false
}
},
"plugins": {
"entries": {
"telegram": {
"enabled": true
}
}
},
"channels": {
"telegram": {
"enabled": true,
"botToken": "your-telegram-bot-token",
"dmPolicy": "pairing",
"allowFrom": ["your-telegram-user-id"],
"groups": {
"*": {
"requireMention": true
}
}
}
}
}
我的PC端完全配置
{
"meta": {
"lastTouchedVersion": "2026.1.24-3",
"lastTouchedAt": "2026-01-27T10:04:28.618Z"
},
"wizard": {
"lastRunAt": "2026-01-27T10:04:28.599Z",
"lastRunVersion": "2026.1.24-3",
"lastRunCommand": "doctor",
"lastRunMode": "remote"
},
"browser": {
"enabled": true,
"defaultProfile": "clawd"
},
"agents": {
"defaults": {
"compaction": {
"mode": "safeguard"
},
"maxConcurrent": 4,
"subagents": {
"maxConcurrent": 8
}
}
},
"messages": {
"ackReactionScope": "group-mentions"
},
"commands": {
"native": "auto",
"nativeSkills": "auto"
},
"gateway": {
"mode": "remote",
"remote": {
"url": "wss://你的远程域名",
"token": "你的token"
}
}
}



