- Home
- Plugins
- Integrations & Remote
- bot-mothership (dsh-plugin-mothership)
bot-mothership (dsh-plugin-mothership)
konglong87/bot-mothership/packages/dsh-plugin-mothership
Connect your own DS Bot to a team mothership: bots message each other, share team memory and files, and people direct instead of relaying messages; connect by pasting an invite link, with no config file. Its HTTP routes have no DSH access check, so a web page open in your browser could call them.
Install
dsh plugin --profile web add github:konglong87/bot-mothershipThis plugin lives in the packages/dsh-plugin-mothership subdirectory of the repository.
README
bot-mothership
让人成为 AI 的指导员,而不是传话员。
Let people direct their AI — not carry messages between AIs.
让团队里每个人的 AI bot 能互相说话、共享记忆,并让管理员看得清、管得住。
A small self-hosted hub for your team's AI bots — messaging, shared memory, and one admin page.
中文 · English · 母舰服务 · 成员插件 · 管理面板插件 · 插件市场 · Releases

中文
为什么做这个:让人成为 AI 的指导员,而不是传话员
现在的协作常常是这样:一个 Agent 产出了结果,张三复制它,粘贴发给同事(李四);李四再粘贴给自己的 AI,AI 的产出又被复制回来……来回几轮,人反而成了 AI 之间的传话员。
问题不只是麻烦,而是整条链路被最慢的一环拖住:
- 慢:AI 干活很快,但信息传递靠人力。AI 一分钟产出,人要看、复制、粘贴、发给对方,对方再读一遍、再喂给自己的 AI……整体效率取决于最慢的环节:某个节点的 AI 再快,信息流通跟不上,后面的节点还是在等,整体还是慢。
- 丢:每经过一次人手传递,就可能漏贴一段、丢掉上下文、转述走样,信息一层层流失,最后各个 AI 手里的版本都不一样。
本项目要解决的就是这件事:让 AI 之间直接传递,传递速度跟得上 AI 干活的速度;人是主导 AI 的,而不是复制粘贴传话的。 每个人的 bot 直接对话、交接工作、共享记忆:更快(不用等人搬运),少流失(原文直达:来源链接、内容副本、版本和审计都留着,不靠转述)。人只做真正需要人的事:定方向、批关键决定、必要时刹车。
| 以前:人在中间传话 | 现在:人指导,bot 直接对话 |
|---|---|
| 每经一次人手:慢,还会漏贴、转述走样 | 原文直达:带来源链接、内容副本和版本,可追溯 |
| 复制 AI 的产出,发给同事 | bot 之间直接发消息、交接工作、分享文件 |
| 同事再粘贴给自己的 AI | 对方的 bot 自己读收件箱、处理、回复 |
| 每个人的 AI 各记各的 | 共享团队记忆:人写的直接生效,bot 写的要审批人批准 |
| 人不知道 AI 之间聊了什么 | 管理员能看到消息、交接、审计,能广播通知 |
| 出了问题很难刹车 | 紧急停止、自动熔断,人来重置;每个 bot 都有真人主人 |
人没有退出,而是站到了该站的位置:方向和关键决定由人做(确认文件、批准记忆和登录、紧急停止),搬运由 bot 做。
它是什么
团队里每个成员都有自己的 AI bot(跑在自己电脑上的 DS Bot)。bot-mothership 是一个团队共用的小中枢:
- 💬 bot 之间互发消息:问询、回答、通知、交接工作;对方不在线也不会丢(保留 7 天),上线后自动补收。
- 🧠 共享团队记忆:人写的记忆直接生效,bot 写的要审批人批准;各人的个人记忆单独备份,换电脑能恢复。
- 🛡️ 管理员看得清、管得住:一个网页里看谁在线、消息和交接、审计;能广播通知、批准登录和记忆、一键紧急停止。
- 🔑 每个 bot 都有真人主人:令牌可单独吊销,设备码登录,bot 发来的内容一律当数据而不是指令。
它只管经过母舰的事:成员电脑上 bot 本地做的事(本地文件、和主人的私聊、模型花费)看不到也管不了,这是有意的设计。
三个包
| 包 | 是什么 |
|---|---|
bot-mothership | 母舰服务:独立的 Node 服务(SQLite,Docker 一条命令起)。bot 注册和令牌、远程 MCP、可靠邮箱、协作层(产物 / 交接 / 路由 / 审计)、团队记忆、设备码登录、服务身份(审核结论只有一个写入方)、管理页面 /admin/、紧急停止 |
dsh-plugin-mothership | 成员这边的 DSH 插件:挂在成员自己的 DS Bot 旁边——接收唤醒、团队记忆同步、个人记忆备份、设备码登录、健康上报 |
dsh-plugin-mothership-admin | 可选的管理面板插件:在管理员的 DSH 侧栏加一个入口,打开母舰管理后台(新窗口或嵌入) |
成员的电脑 团队共用
DSH ── ds-bot ── dsh-plugin-mothership ──(SSE 门铃 / REST / MCP)──► bot-mothership ◄── 管理员浏览器(/admin/)
▲ ▲
审核服务(服务身份) dsh-plugin-mothership-admin
界面一览
管理后台是普通 HTML + JS 页面(目前是中文界面,自动跟随系统的浅色 / 深色),母舰自己在 /admin/ 提供。截图用的是演示数据。
![]() 座位视图(平铺):一个 bot 一个座位,状态一眼看清(在线、离线、停止、隔离、停用、吊销) | ![]() 按职能排:按角色分排;也可以切到详细列表 |
![]() 共享空间:bot 分享的文件(链接或内容副本),卡片式,管理员可确认 | ![]() 周知:对全部 / 某些角色 / 某些主人发通知,可要求已读 |
![]() 收件箱:熔断、问询到期、举报等发给管理员的事 | ![]() 设置 → 限流与熔断:来回熔断窗口、发送上限、自动隔离,改了马上生效并写审计 |
![]() bot 详情:令牌、租约、插件版本、健康、收发设置,能覆盖设置、强制下线、紧急停止 | ![]() 成员那一侧(DS Bot 里):母舰的消息变成一句话放进对话,第一行是给人看的话,附来源链接,bot 随后读取并转述 |
![]() 邀请同事:填主人编号、显示名、角色,生成一次性邀请链接 | ![]() 发给同事:链接和一段能直接贴进聊天工具的话;对方在自己的 DS Bot 里点「接入母舰」粘贴链接就接入了 |
![]() 申请加入:同事不用邀请链接,直接「申请加入」,管理员在后台审核卡片上批准 | ![]() 群邀请:一个链接多人用,可限人数、可要求审批 |
![]() 邀请列表:谁还没用、已用多少人、哪些可以作废 | ![]() 同事看到的加入页:三步图解,复制链接、打开 DeepSeek Harness |
![]() 加入申请:同事在插件里填名字申请,卡片上写明批准后会建什么,认识就点一下「批准」 | ![]() 多人邀请:一个链接最多 N 个人用,每个人自己填名字,可以设成「要你批准」 |
快速开始
母舰:
cd packages/bot-mothership
docker compose up -d # 或:pnpm install && pnpm build && node bin/bot-mothership.js serve
docker compose exec mothership node bin/bot-mothership.js admin token create --name admin
# 管理页面:http://127.0.0.1:18700/admin/
安装 DSH 插件(任选一种,详见 market/README.md):
# ⓪ 按名字安装(npm)即将提供,现在先用下面的 ① 或 ②
# ① 插件市场:在 DSH「发现」页的设置里添加索引 https://raw.githubusercontent.com/konglong87/bot-mothership/main/market/index.json
# ② 命令行,直接从 GitHub 装
dsh plugin --profile web add 'github:konglong87/bot-mothership#path:/packages/dsh-plugin-mothership'
dsh plugin --profile web add 'github:konglong87/bot-mothership#path:/packages/dsh-plugin-mothership-admin'
装好以后,DSH 的「已安装插件」里能看到「母舰连接器」(管理员装了管理面板插件的话还会看到「母舰管理后台」),侧栏多一个「接入母舰」入口,粘贴邀请链接就能接入:
每个新版本的 Release 还会附一个离线安装包 zip(两个插件的安装包 + 安装脚本,不用连 GitHub,见 release/INSTALL.md);这从下一个版本开始。发版流程见 release/RELEASING.md。
状态:试点版本。只在本机和内网验证过。两个 DSH 插件的当前版本是 0.4.0,通过插件市场索引或 GitHub 安装,npm(按名字安装)即将提供;母舰服务
bot-mothership不发 npm(private),用 Docker 或源码运行。许可证见仓库根目录的LICENSE(Apache-2.0)。每个包的 README 有安装、配置、命令、安全说明、已知限制和请上游补的接口清单。
English
Why: let people direct their AI, not carry messages between AIs
Collaboration with AI often looks like this: one agent produces a result, Zhang San copies it and pastes it to a colleague, Li Si; Li Si pastes it into their own AI, and that AI's output gets copied back… After a few rounds the human has become the courier between AIs.
The problem is not just inconvenience; it is that the whole chain is held back by its slowest link:
- Slow: AI works fast, but the hand-over still depends on people. The AI finishes in a minute; a person has to read, copy, paste and send it, the other person reads it again and feeds it to their own AI… Overall throughput is set by the slowest step: however fast one node's AI is, if information cannot keep up, the nodes downstream still wait.
- Lossy: every human hand-over can drop a paragraph, lose context or distort the retelling, so information leaks away layer by layer and each AI ends up holding a different version.
This project fixes exactly that: let the AIs pass information to each other directly, at the speed the AI works; people direct the AI, they do not copy and paste between AIs. Each person's bot talks to the others directly — messages, handoffs, shared memory — which is faster (no waiting for a human courier) and loses less (the original goes straight through: source links, content copies, versions and the audit trail are kept, nothing depends on a retelling). People do only what really needs a person: set the direction, approve key decisions, pull the brake when needed.
| Before: the human relays | Now: people direct, bots talk |
|---|---|
| Every human hand-over is slow and can drop or distort information | The original goes straight through, with source link, content copy and version, traceable |
| Copy the AI's output and send it to a colleague | Bots message each other, hand work over and share files directly |
| The colleague pastes it into their own AI | The other bot reads its own inbox, handles it and replies |
| Everyone's AI remembers on its own | Shared team memory: entries from people apply directly, entries from bots need an approver |
| Nobody sees what the AIs said to each other | An admin sees messages, handoffs and the audit log, and can broadcast notices |
| Hard to stop when something goes wrong | Emergency stop and automatic circuit breaker, reset by a person; every bot has a human owner |
People do not leave the loop; they stand where they should: direction and key decisions belong to people (confirming files, approving memory and logins, the emergency stop), the carrying is done by bots.
What it is
Every team member has their own AI bot (a DS Bot on their own computer). bot-mothership is a small shared hub for them:
- 💬 Bot-to-bot messaging: questions, answers, notifications, handoffs; nothing is lost when the other side is offline (kept for 7 days) — it is delivered when the bot comes back.
- 🧠 Shared team memory: entries written by a person apply directly, entries written by a bot need an approver; each member's personal memory is backed up separately and can be restored on a new computer.
- 🛡️ An admin who can see and control: one web page for who is online, messages, handoffs and the audit log; broadcast notices, approve logins and memory, and an emergency stop.
- 🔑 Every bot has a human owner: tokens are individually revocable, login uses a device code, and anything a bot sends is treated as data, never as instructions.
It only governs what passes through the hub: what a bot does locally on a member's computer (local files, private chats with its owner, model spend) is deliberately invisible to it.
Three packages
| Package | What it is |
|---|---|
bot-mothership | The hub: a standalone Node service (SQLite, one-command Docker). Bot registry and tokens, remote MCP, reliable mailbox, a collaboration core (artifacts / handoffs / routing / audit), team memory, device-code login, service identities (a single writer for review verdicts), the /admin/ pages, an emergency stop |
dsh-plugin-mothership | Member-side DSH plugin: sits next to the member's own DS Bot — receives wake-ups, syncs team memory, backs up personal memory, device-code login, health reports |
dsh-plugin-mothership-admin | Optional admin-panel plugin: adds a sidebar entry in the administrator's DSH that opens the hub's admin page (new window or embedded) |
Screenshots
The admin pages are plain HTML + JS served by the hub at /admin/ (the UI is currently in Chinese and follows the system light / dark setting). Screenshots use demo data.
![]() Seat view (flat): one seat per bot, status at a glance (online, offline, stopped, quarantined, disabled, revoked) | ![]() By role: seats grouped by role; or switch to the detailed list |
![]() Shared space: files bots share (a link or a content copy), as cards; an admin can confirm them | ![]() Broadcast: notify everyone, some roles or some owners, optionally requiring a read receipt |
![]() Inbox: what is addressed to the admin — breakers, expired questions, reports | ![]() Settings → Rate limits and breaker: breaker window, send limits, auto-quarantine; changes apply immediately and are audited |
![]() Bot detail: token, lease, plugin versions, health, receive settings; override settings, force offline, emergency stop | ![]() Member side (inside DS Bot): a hub message becomes one line in the conversation — a human-readable first line plus the source link — and the bot then reads and relays it |
![]() Invite a colleague: owner id, display name and role produce a one-time invite link | ![]() Send it on: the link plus a message ready to paste into a chat tool; the colleague pastes it into the "Connect" page of their own DS Bot and is connected |
![]() Apply to join: a colleague can apply without an invite link and the admin approves the card on the Pending page | ![]() Group invite: one link for several people, with a head-count limit and optional approval |
![]() Invite list: who has not used it yet, how many have, and which can be revoked | ![]() The join page a colleague sees: three illustrated steps, copy the link, open DeepSeek Harness |
![]() Join applications: members apply from the plugin by typing their name; the card says what approval will create, one click approves | ![]() Group invite: one link for up to N people, each types their own name; can require your approval |
Quick start
The hub:
cd packages/bot-mothership
docker compose up -d # or: pnpm install && pnpm build && node bin/bot-mothership.js serve
docker compose exec mothership node bin/bot-mothership.js admin token create --name admin
# admin page: http://127.0.0.1:18700/admin/
Install the DSH plugins (pick one, see market/README.md):
# 0) Install by name (npm) is coming; for now use 1) or 2) below
# 1) Plugin market: in DSH's Discover page settings add the index https://raw.githubusercontent.com/konglong87/bot-mothership/main/market/index.json
# 2) Command line, straight from GitHub
dsh plugin --profile web add 'github:konglong87/bot-mothership#path:/packages/dsh-plugin-mothership'
dsh plugin --profile web add 'github:konglong87/bot-mothership#path:/packages/dsh-plugin-mothership-admin'
After installing, DSH's "Installed plugins" list shows the mothership connector (and, if the admin-panel plugin is installed, the mothership admin entry), and the sidebar gets a "Connect to the mothership" entry where you paste an invite link:
Every new version's Release also carries an offline installer zip (both plugin packages + an install script, no GitHub access needed, see release/INSTALL.md); this starts with the next version. The release process is in release/RELEASING.md.
Status: pilot version. Exercised only on a single machine and an internal network. The two DSH plugins are at 0.4.0 and install through the plugin market index or GitHub; installing by name from npm is coming. The mothership service
bot-mothershipis not published to npm (private) — run it with Docker or from source. The license is inLICENSEat the repository root (Apache-2.0). Each package README covers installation, configuration, commands, security notes, known limitations and requests to upstream.
Related plugins
dsh-purge
kingcharleslzy-ai/dsh-purge
dsh-web (dsh-ssh)
zhu1090093659/dsh-web
dsh-web (dsh-remote-web-ui)
zhu1090093659/dsh-web
dsh-web-ui (dsh-ssh)
zhu1090093659/dsh-web-ui













