云服务器

AI工具 clawdbot 配置

云机开机之后远程登录云服务

1、配置接入的AI (以接入GLM-4.7为例)

进入配置导航(配置接入AI,并跳过关联社交APP)

  1. clawdbot onboard

以下导航选择

  1. I understand this is powerful and inherently risky. Continue?
  2. Yes
  3. Onboarding mode
  4. QuickStart
  5. Config handling
  6. Use existing values
  7. Model/auth provider
  8. Z.AI (GLM 4.7)
  9. Z.AI (GLM 4.7) auth method
  10. Z.AI (GLM 4.7) API key
  11. Enter Z.AI API key
  12. (输入Z.AI API key)
  13. Model configured
  14. Default model set to zai/glm-4.7
  15. Default model
  16. Keep current (zai/glm-4.7)
  17. Select channel (QuickStart)
  18. Skip for now
  19. Configure skills now? (recommended)
  20. Yes
  21. Show Homebrew install command?
  22. Yes
  23. Preferred node manager for skill installs
  24. npm
  25. Install missing skill dependencies
  26. Skip for now
  27. Set GOOGLE_PLACES_API_KEY for goplaces?
  28. No
  29. Set GOOGLE_PLACES_API_KEY for local-places?
  30. No
  31. Set GEMINI_API_KEY for nano-banana-pro?
  32. No
  33. Set OPENAI_API_KEY for openai-image-gen?
  34. No
  35. Set OPENAI_API_KEY for openai-whisper-api?
  36. No
  37. Set ELEVENLABS_API_KEY for sag?
  38. No
  39. Enable hooks?
  40. Skip for now
  41. How do you want to hatch your bot?
  42. Open the Web UI

等待配置载入完成

2、修改配置开放公网访问(将bind改成custom)
  1. vi .clawdbot/clawdbot.json
  2. "gateway": {
  3. "port": 18789,
  4. "mode": "local",
  5. "bind": "custom",
  6. "controlUi": {
  7. "allowInsecureAuth": true
  8. },
  9. clawdbot gateway restart
3、在web UI 添加token实现web 与网关链接

查看token
在云服务操作

  1. cat .clawdbot/clawdbot.json |grep token

浏览器打开ip:18789

在左侧overview
在gateway Token 输入查看到的token
然后点击connect
显示connected web UI就和网关连接成功
页面右上角显示 health OK
然后回到页面左侧chat就可以跟接入的AI对话

4、配置添加社交APP (QQ为例)

登录服务器操作命令

  1. clawdbot channels add

导航选择

  1. Configure chat channels now?
  2. Yes
  3. Select a channel
  4. QQ Bot (支持 QQ 群聊和私聊)
  5. 请输入 QQ Bot AppID
  6. 输入AppID


重启服务

  1. clawdbot gateway restart