时间:2026-01-29 11:47
人气:
作者:admin
本文将手把手教你如何通过参与活动领取腾讯云免费服务器,并一步步搭建属于自己的 AI 智能体——Moltbot(即之前的 Clawdbot)。教程包含了服务器领取、系统重装、初始化配置以及常见报错的完美解决方案,小白也能轻松上手(clawdbot搭建,open'claw费轻量云服务器搭建一个 clawdbot (Moltbot) 服务
本文将手把手教你如何通过参与活动领取腾讯云免费服务器,并一步步搭建属于自己的 AI 智能体——Moltbot(即之前的 Clawdbot)。教程包含了服务器领取、系统重装、初始化配置以及常见报错的完美解决方案,小白也能轻松上手(clawdbot搭建,openclaw搭建,moltbot搭建)!
首先,我们需要准备一台服务器。目前 Codebuddy 正在举办活动,完成简单任务即可白嫖一个月的腾讯云轻量应用服务器。
下载并安装 Codebuddy:
访问链接下载:Codebuddy 活动页
完成活动任务:
安装完成后,根据活动提示完成任务。


领取成功后,我们需要将服务器系统切换为 Moltbot 专用镜像,这样可以省去繁琐的环境安装步骤。



等待重装完成,你就拥有一台预装好 Moltbot 环境的服务器了!
现在我们需要登录服务器进行简单的初始化设置。
登录服务器:
推荐使用腾讯云自带的 OrcaTerm 登录工具。在服务器详情页点击“登录”,选择“免密连接”即可。

启动配置向导:
Moltbot 提供了非常人性化的配置命令。在终端输入以下命令并回车:
clawdbot onboard
操作提示:使用键盘的【方向键】移动选项,【回车键】确认选择。
跟随向导操作:



等待进度条跑完,基础安装就完成了!
在安装完成后,你可能会遇到这一步报错:Health check failed: gateway closed。这是因为环境变量的问题导致 Gateway 服务没有正常启动。
报错现象:
运行 clawdbot doctor 检查时,显示:
◇ Gateway ──────────────╮
│ │
│ Gateway not running. │
│ │
├────────────────────────╯
│
◇ Gateway connection ─────────────────────────────╮
│ │
│ Gateway target: ws://127.0.0.1:18789 │
│ Source: local loopback │
│ Config: /home/clawdbot/.clawdbot/clawdbot.json │
│ Bind: loopback │
│ │
├──────────────────────────────────────────────────╯
│
◇ Gateway ────────────────────────────────────────────────────────────────────────────────╮
│ │
│ systemd user services are unavailable; install/enable systemd or run the gateway under │
│ your supervisor. │
│ If you're in a container, run the gateway in the foreground instead of `clawdbot │
│ gateway`. │
│ │
├──────────────────────────────────────────────────────────────────────────────────────────╯
解决方案:
别慌,只需要依次执行以下 4 条命令即可完美解决:
loginctl enable-linger $(whoami) && export XDG_RUNTIME_DIR=/run/user/$(id -u)
clawdbot daemon install
clawdbot daemon start
clawdbot daemon status
当看到绿色的 active (running) 状态时(如下图),恭喜你!你的 Moltbot 服务已经彻底搭建完成了!

Enjoy your AI Agent! 快去探索你的云端智能助手吧。