知识库 · AI 智能体
Sim:moltbot超详细保姆级教程(原clawdbot)--discord版本
本教程详细讲解如何在腾讯云服务器上部署moltbot(原clawdbot),通过3步快速实现Discord上24小时在线的本地AI Agent,支持读取和操作本地文件。包含服务器开通、clawdbot onboard配置、Discord Bot创建与授权全流程,适合不想把主力机交给AI的用户尝鲜。
Sim:moltbot超详细保姆级教程(原clawdbot)--discord版本
3月3日修改
刚把skills测完,就看到大家在刷屏🦞clawdbot(现在叫moltbot)
各种moltbot是你的第一个AI员工、数字分身...
甚至于大家为了运行moltbot会特意去买个macmini
以至于macmini直接缺货
而且在github上已经有了9.3万的star,因为太火了,也被Anthropic告了,改名叫:moltbot
原因嘛,就是原来的clawdbot太让人误会是Claude Code的其他产品
1.「先说背景」什么是moltbot
github官方地址:https://github.com/moltbot/moltbot
官方是这样说的:moltbot是一款在自己设备上运行的个人AI助手
我觉得它是可以在各类聊天软件上将它唤醒,而且权限极高的本地Agent。
权限极高意味着它可以轻易读取你本地电脑上的文件,甚至修改它
这就是为什么大家都去买macmini了,还是不放心把主力机交给AI
但是对于我们要尝鲜,总不能去买个mini吧,万一觉得玩玩兴奋劲就过了,3-4千买来吃灰还是不太划算。
所以我们改道去用云服务器,20-30多块钱一个月,还可以24小时开着,电费也一点不心疼。
目前腾讯云、阿里云都支持了
教程会使用 腾讯云 来做示范,有一键部署,不用折腾环境。
2.「怎么安装moltbot」
2.1开通云服务器
找到轻量应用服务器,配置至少选2核2G打底,地区建议新加坡/香港,别买大陆服务器,有网络问题,开一台购买,如果没有实名制认证大家去认证一下。
记得选择moltbot的镜像
然后去网页右上角找到控制台进入,找到轻量应用服务器
登陆云服务器
扫码登录
2.2配置moltbot
输入命令:clawdbot onboard,回车
运行 clawdbot onboard 后,需要通过键盘来完成后续配置动作,关键操作:方向键控制选项,回车表示选择并确认。
这是是官方的一个免责声明意思是:我明白很强大和很强的风险
这就是为什么我建议这玩意,不要装在自己的主力机上面,隔离开了环境
选择Yes就行。
选择第一个:QuickStart (快速启动),进行一些配置
这里我选择Z.AI(智谱)之前skills分享了glm4.7这里正好,继续使用
填入智谱的API key
会让你再选择一次模型,选择第一个keep current(zai/glm-4.7)保持所选就行,如果想换其他模型按键盘切换就行
模型配置完了,现在需要让你关联聊天软件,如果选择discord这个地方就选择discord
2.3配置discord与moltbot
现在我们要去discord去获取令牌和机器人创建。
进入discord开发者后台:https://discord.com/developers/applications
点击Applications,在右上角创建一个新的Applications
找到bot机器人,翻到最下面
点击reset token 重置令牌,然后把这个令牌复制下来
回到腾讯云,将discord的token粘贴上去
然后回到discord开发平台
找到Message Content Intent 信息内容意图,打开这个选项
记得最下面有一个保存
然后找到OAuth2
将Scopes中的bot、bot premissins机器人权限中的manage messages和read messages history打开
然后在最下面复制这个地址,这个是邀请机器人的链接
登陆discord
点击左侧+号,创建一个服务器
然后在浏览器粘贴并访问你从discord复制的邀请机器人链接,将机器人添加到刚才创建的服务器上面去
回到腾讯云我们继续配置moltbot
配置discord频道选择yes
discord频道权限选择第二个,第一个如果配置不好群聊容易被限制
现在它缺少skills(技能),这个地方让它安装就可以了,选择yes
需要显示homebrew安装命令,选择yes
skills就用npm进行安装
现在让你安装缺少的skills,大家如果觉得麻烦可以选择第一个Skip for now(暂时跳过),后面也可以安装
如直接按回车它会让你按空格进行选择/取消,回车是下一步
我全部列出来了这些skills的作用,有需要的也可以选择安装
代码块
🔐 1password (Set up and use 1Password CLI (op). Use when installing the CLI, enabling desktop app inte…)
📝 apple-notes (Manage Apple Notes via the memo CLI on macOS (create, view, edit, delete, search, move,…)
◻ ⏰ apple-reminders (Manage Apple Reminders via the remindctl CLI on macOS (list, add, edit, complete, delet…)
🐻 bear-notes (Create, search, and manage Bear notes via grizzly CLI. — Install grizzly (go))
🐦 bird (X/Twitter CLI for reading, searching, posting, and engagement via cookies. — Install @ste…)
📰 blogwatcher (Monitor blogs and RSS/Atom feeds for updates using the blogwatcher CLI. — Install blogwat…)
🫐 blucli (BluOS CLI (blu) for discovery, playback, grouping, and volume. — Install blucli (go))
📸 camsnap (Capture frames or clips from RTSP/ONVIF cameras. — Install camsnap (brew))
🧩 clawdhub (Use the ClawdHub CLI to search, install, update, and publish agent skills from clawdhub.c…)
🎛️ eightctl (Control Eight Sleep pods (status, temperature, alarms, schedules). — Install eightctl (go))
♊️ gemini (Gemini CLI for one-shot Q&A, summaries, and generation. — Install Gemini CLI (brew))
🧲 gifgrep (Search GIF providers with CLI/TUI, download results, and extract stills/sheets. — Install…)
🎮 gog (Google Workspace CLI for Gmail, Calendar, Drive, Contacts, Sheets, and Docs. — Install go…)
📍 goplaces (Query Google Places API (New) via the goplaces CLI for text search, place details, resolv…)
📧 himalaya (CLI to manage emails via IMAP/SMTP. Use himalaya to list, read, write, reply, forward, …)
📨 imsg (iMessage/SMS CLI for listing chats, history, watch, and sending. — Install imsg (brew))
📦 mcporter (Use the mcporter CLI to list, configure, auth, and call MCP servers/tools directly (HTTP …)
📊 model-usage (Use CodexBar CLI local cost usage to summarize per-model usage for Codex or Claude, inclu…)
🍌 nano-banana-pro (Generate or edit images via Gemini 3 Pro Image (Nano Banana Pro). — Install uv (brew))
📄 nano-pdf (Edit PDFs with natural-language instructions using the nano-pdf CLI. — Install nano-pdf (…)
💎 obsidian (Work with Obsidian vaults (plain Markdown notes) and automate via obsidian-cli. — Install…)
🎙️ openai-whisper (Local speech-to-text with the Whisper CLI (no API key). — Install OpenAI Whisper (brew))
💡 openhue (Control Philips Hue lights/scenes via the OpenHue CLI. — Install OpenHue CLI (brew))
🧿 oracle (Best practices for using the oracle CLI (prompt + file bundling, engines, sessions, and f…)
🛵 ordercli (Foodora-only CLI for checking past orders and active order status (Deliveroo WIP). — Inst…)
👀 peekaboo (Capture and automate macOS UI with the Peekaboo CLI. — Install Peekaboo (brew))
🗣️ sag (ElevenLabs text-to-speech with mac-style say UX. — Install sag (brew))
🌊 songsee (Generate spectrograms and feature-panel visualizations from audio with the songsee CLI. —…)
🔊 sonoscli (Control Sonos speakers (discover/status/play/volume/group). — Install sonoscli (go))
🧾 summarize (Summarize or extract text/transcripts from URLs, podcasts, and local files (great fallbac…)
✅ things-mac (Manage Things 3 via the things CLI on macOS (add/update projects+todos via URL scheme; …)
🎞️ video-frames (Extract frames or short clips from videos using ffmpeg. — Install ffmpeg (brew))
📱 wacli (Send WhatsApp messages to other people or search/sync WhatsApp history via the wacli CLI …)跳出来这几个,有API的可以填,如果没有都选No吧
这时候会问你是否安装hooks
一共有三个插件:
🚀 boot-md (把你的常用偏好、基础信息都给AI)
📝 command-logger (moltbot的操作都留下记录)
💾 session-memory (保存你们之间的对话记忆)
都建议装
然后等一会你就能看它变成了root@VM-0-XX-ubuntu:~#
2.4启动moltbot
输入命令:clawdbot gateway --port 18789 --verbose
这就算它启动了,但是你不能关闭窗口或者浏览器页面,不然它会自动退出,因为这是临时启动的
如果要长期启动,大家可以用这个命令(关机需要重新启动):nohup clawdbot gateway --port 18789 --verbose > /tmp/clawdbot-gateway.out 2>&1 & disown
如果遇到问题可以给AI说:我现在再安装moltbot,用的clawdbot gateway --port 18789 --verbose命令启动,现在我需要让它长期能够使用,请教我
2.5最后的配置让discord彻底互通
进入discord左侧找到之前创建的服务器,在对话框@创建的机器人,发送消息,然后点击机器人名称,私聊他
然后在私信窗口,随意给他说句话,他会返回一个消息
返回服务器,使用 Ctrl+C 终止 Gateway,执行以下命令进行配对。其中,<code>为您的配对码。命令:clawdbot pairing approve discord <code>
配对完成后执行以下命令运行,返回 Discord 与 服务器创建的bot 对话,如果正常回复则说明部署成功。命令:clawdbot gateway --port 18789 --verbose
🎉恭喜你完成了moltbot和discord互联,真棒👍