DuDuClaw

Open-source AI Agent platform — 80+ MCP tools, 7 channels (Slack/Discord/LINE/Telegram), Rust + Python. Self-hostable Claude/GPT alternative for production mult…

LLM Mart 0 views 3 listing impressions
Transport
Not stated
Package
—
Registry id
—

No install snippet on purpose. A working MCP config is a command, its arguments and an environment block — the last two are where API keys live, so this catalogue never stores them and cannot publish them. Follow the link above for the authors' own instructions.

mcp

繁體中文 · English · 日本語

DuDuClaw 把 Claude Code、Codex、Gemini 這類 AI 指令列工具,變成公司裡交得出東西的 AI 員工:常駐 Telegram、LINE、Discord 等 11 個通訊軟體,交件前有獨立判官驗收,花掉的每一塊錢都記在帳上。

你只需要一個 Rust binary。通道路由、對話記憶、多帳號輪替、行為安全邊界、本地推論、Web 管理後台全部內建;AI 大腦要用 Claude、Codex、Gemini、Antigravity 還是任何 OpenAI 相容 API 隨你換,設定和記憶都留在你自己的機器上。核心採 Apache 2.0 授權。

CI Version npm PyPI License: Apache-2.0

https://github.com/user-attachments/assets/9f18408a-cf46-4db2-9ab0-dcc8db2486fc

目錄

為什麼需要 DuDuClaw?

偶爾在終端機裡跑 claude 或 gemini,原生 CLI 就夠了。想讓 AI 進駐你的 LINE 官方帳號、幫團隊在 Discord 值班、或是同時管理多個各有分工的 agent,你就得自己蓋一整層基礎設施。DuDuClaw 把這層蓋好了:

需求 原生 CLI DuDuClaw
接上 Telegram / LINE / Discord 只能在終端機用 11 個通道,per-agent bot token
多 LLM 容錯切換 手動重啟 4 種輪替策略 + 跨供應商 failover
換 LLM 時保留上下文 遺失 完整保留
對話記憶與知識庫 單次 session SQLite 時態記憶 + 分層 wiki + 自動注入
工具跨 LLM 共用 每家重寫 200+ MCP 工具寫一次,五種後端共用
安全邊界 / 稽核 / 密鑰管理 自己造 政策核心 + OS 沙箱 + AES-256-GCM 內建
交給客戶的整台值班機 自己裝 Linux,更新與防竄改自己管 DuDuClaw OS 映像:A/B 更新回滾 + 唯讀 root,插電即用;人機共用桌面,不影響日常使用

架構一覽

AI 運行時是大腦,DuDuClaw 是水電管線,中間用 MCP(JSON-RPC 2.0)橋接。大腦可換,管線不動:

AI Runtime (brain) — Claude Code / Codex / Gemini / Antigravity / OpenAI-compat
  ↕ MCP Protocol (JSON-RPC 2.0, stdin/stdout)
DuDuClaw (plumbing)
  ├─ Channel Router — Telegram / LINE / Discord / Slack / WhatsApp / Feishu
  │                    / Google Chat / Microsoft Teams / WeCom / DingTalk / WebChat
  ├─ Multi-Runtime — 5 種後端自動偵測,per-agent 設定
  ├─ Session Memory — 原生 --resume + 時態記憶 + key-fact 累積 + 分層 wiki
  ├─ MCP Server — 200+ 工具(通訊、記憶、Agent、Skill、任務、知識庫、ERP)
  ├─ Evolution Engine — 預測驅動 + AEE playbook 進化(v3 預設) + MistakeNotebook
  ├─ Security — PolicyKernel reference monitor + OS 沙箱 + redaction vault
  ├─ Inference Engine — llama.cpp / mistral.rs / Exo P2P / llamafile / MLX
  ├─ Account Rotator — 多 OAuth + API Key 輪替、預算追蹤、健康檢查
  └─ Web Dashboard — React 19 SPA(32 頁),rust-embed 嵌入 binary

Rust workspace 由 20 個 crate 組成:核心地基 duduclaw-core、服務層 duduclaw-gateway、統一 API 層 duduclaw-llm、本地推論 duduclaw-inference、認知記憶 duduclaw-memory、安全層 duduclaw-security 等。完整設計見 ARCHITECTURE.md。

同一套 gateway + dashboard 還有一種出貨形態:整台機器。DuDuClaw OS 是以 Yocto 建出的值班機映像,Yocto 層與映像產線放在獨立 repo,把本 repo 的 Rust workspace 以剪枝快照 vendor 進去;見下方安裝一節。

環境準備

DuDuClaw 本身不含 LLM,需要一個 AI 大腦。五選一(之後也能在瀏覽器引導中設定):

  • 裝好 Claude Code、Codex、Gemini CLI 或 Antigravity 其中之一並登入
  • 準備一把 API key,走任何 OpenAI 相容供應商
  • 或用本地 GGUF 模型,不需要任何雲端帳號

安裝

桌面應用程式(個人使用推薦)

Tauri 原生桌面版,啟動應用程式時會自動拉起本機 Gateway,全程免碰終端機,與 CLI 共用 ~/.duduclaw。到 Releases 下載:

平台 檔案 備註
macOS(Apple Silicon / Intel) DuDuClaw_*.dmg 已簽章 + Apple 公證,直接開
Windows x64 DuDuClaw_*_x64_en-US.msi 未購買 Authenticode 憑證,SmartScreen 會示警;點「更多資訊」→「仍要執行」即可安裝,解鎖細節見 docs/guides/desktop-unblock.md
Linux *_amd64.AppImage / .deb 免簽

From the project's README.

Related servers

MCP server for Geargrafx PC Engine / TurboGrafx-16 emulator

14 views

Read-only discovery for NeuralNg Angular components, APIs, packages, icons and theme recipes.

14 views

Plant phenotyping via PlantCV — returns traits plus the segmentation overlay they came from

12 views

Umami v3 MCP for Cloud or self-hosted analytics, with read-only, privacy-conscious defaults.

12 views