ClawdBot 安装:完整指南
本 ClawdBot 安装指南提供设置个人 AI 助手的分步说明。无论您是 ClawdBot 安装新手还是需要复习,本指南涵盖了成功 ClawdBot 安装所需的一切。
ClawdBot 安装先决条件
开始 ClawdBot 安装前,确保您具备:
ClawdBot 安装系统要求
| 组件 | 最低配置 | 推荐配置 |
|---|---|---|
| 内存 | 4GB | 8GB+ |
| 存储 | 500MB | 2GB |
| Node.js | v20+ | v22+ |
| 网络 | 必需 | 稳定连接 |
ClawdBot 安装所需账户
-
AI 提供商账户(用于 ClawdBot 安装)
- Anthropic(Claude)
- OpenAI
- 或使用本地模型
-
消息平台(用于 ClawdBot 安装)
- Telegram Bot Token
- Discord Bot Token
- WhatsApp Business API
ClawdBot 安装方法
方法 1:快速 ClawdBot 安装
最快的 ClawdBot 安装方法:
macOS/Linux ClawdBot 安装:
curl -fsSL https://molt.bot/install.sh | bashWindows ClawdBot 安装:
irm https://molt.bot/install.ps1 | iex方法 2:NPM ClawdBot 安装
可控的 ClawdBot 安装:
# 步骤 1:安装 Node.js(ClawdBot 安装所需)
# 从 nodejs.org 下载
# 步骤 2:通过 NPM 进行 ClawdBot 安装
npm install -g clawdbot
# 步骤 3:完成 ClawdBot 安装设置
clawdbot onboard方法 3:开发者 ClawdBot 安装
可定制的 ClawdBot 安装:
# 克隆用于 ClawdBot 安装
git clone https://github.com/moltbot/moltbot.git
cd moltbot
# 安装 ClawdBot 安装依赖
pnpm install
# 构建用于 ClawdBot 安装
pnpm run build
# 完成 ClawdBot 安装
pnpm run clawdbot onboardClawdBot 安装配置
ClawdBot 安装后,配置您的实例:
AI 提供商配置
# 为 ClawdBot 安装配置 AI
clawdbot config set llm.provider anthropic
clawdbot config set llm.apiKey YOUR_API_KEY
clawdbot config set llm.model claude-sonnet-4-20250514渠道配置
# ClawdBot 安装的 Telegram 设置
clawdbot config set channels.telegram.enabled true
clawdbot config set channels.telegram.botToken YOUR_BOT_TOKEN
# ClawdBot 安装的 Discord 设置
clawdbot config set channels.discord.enabled true
clawdbot config set channels.discord.botToken YOUR_BOT_TOKEN记忆配置
# ClawdBot 安装的记忆设置
clawdbot config set memory.enabled true
clawdbot config set memory.path ~/.clawdbot/memory安装后启动 ClawdBot
手动启动
# ClawdBot 安装后启动
clawdbot gateway --port 18789守护进程安装
# ClawdBot 安装后安装守护进程
clawdbot onboard --install-daemon
# ClawdBot 安装后检查状态
clawdbot status服务安装(Linux)
# ClawdBot 安装后的 Systemd 服务
sudo clawdbot service install
sudo systemctl enable clawdbot
sudo systemctl start clawdbot验证 ClawdBot 安装
ClawdBot 安装后,验证一切正常:
# 检查 ClawdBot 安装状态
clawdbot status
# 测试 ClawdBot 安装
clawdbot test
# 查看 ClawdBot 安装日志
clawdbot logs --tail 50ClawdBot 安装故障排除
常见 ClawdBot 安装问题
ClawdBot 安装后找不到 Node.js:
# ClawdBot 安装后重新加载 shell
exec bash
# 或
source ~/.bashrcClawdBot 安装期间权限错误:
# 修复 ClawdBot 安装的 npm 权限
mkdir ~/.npm-global
npm config set prefix '~/.npm-global'
echo 'export PATH=~/.npm-global/bin:$PATH' >> ~/.bashrc
source ~/.bashrcClawdBot 安装后端口已被使用:
# 为 ClawdBot 安装使用不同端口
clawdbot gateway --port 18790ClawdBot 安装更新
保持 ClawdBot 安装最新:
# 更新 ClawdBot 安装
npm update -g clawdbot
# 或对于 git ClawdBot 安装
cd moltbot
git pull
pnpm install
pnpm run build常见问题
ClawdBot 安装需要多长时间?
ClawdBot 安装通常需要 5-15 分钟,具体取决于您的网速和选择的方法。
我可以有多个 ClawdBot 安装吗?
是的,您可以在不同端口或服务器上运行多个 ClawdBot 安装。
ClawdBot 安装可以撤销吗?
是的,使用以下命令卸载:npm uninstall -g clawdbot
准备好开始 ClawdBot 安装了吗?立即开始

