ClawdBot

7 阅读1分钟


https://github.com/moltbot/moltbot

前期准备

申请API key。

dashscope.aliyun.com/ → 模型服务 → API-KEY → 创建 (新用户有免费额度,够个人玩很久;后面按量付费,很便宜,qwen-max或qwen-plus都行)

选择安全的安装环境

因为ClawdBot的权限太大,以防大模型幻觉误删总要文件,或者泄露机密信息,不建议在公司电脑安装,建议在www.compshare.cn/image-commu…申请一个机器,一个小时1.7左右,还可以。

安装

安装目录:/Users/wangyp/Code/AI/clawdbot

curl -fsSL clawd.bot/install.sh | bash


npm install -g moltbot@latest

or: pnpm add -g moltbot@latest

moltbot onboard --install-daemon

根据向导填写必要的信息,我这里选择的链接手机的App是whatsapp,具体操作方式下:

  1. Discord Developer Portal → Applications → New Application                            │

│  2) Bot → Add Bot → Reset Token → copy token                                            │

│  3) OAuth2 → URL Generator → scope 'bot' → invite to your server                        │

│  Tip: enable Message Content Intent if you need message text. (Bot → Privileged Gateway  │

│  Intents → Message Content Intent)                                                      │

│  Docs: discord 

安装完成之后的目录在这里。

原理

WhatsApp / Telegram / Slack / Discord / Google Chat / Signal / iMessage / BlueBubbles / Microsoft Teams / Matrix / Zalo / Zalo Personal / WebChat

              │

              ▼

┌───────────────────────────────┐

│            Gateway            │

│      (control plane)        │

│    ws://127.0.0.1:18789      │

└──────────────┬────────────────┘

              │

              ├─ Pi agent (RPC)

              ├─ CLI (moltbot …)

              ├─ WebChat UI

              ├─ macOS app

              └─ iOS / Android nodes

一些命令

npx moltbot gateway restart

npx moltbot configure