ClawSwarm
创建于 2026年3月25日
更新于 2026年3月25日
OpenClaw 的轻量级多代理替代方案,原生多代理,编译为 Rust,支持 Telegram/Discord/WhatsApp,<10MB。
Rust 轻量级多代理系统 - <10MB 的蜂群智能
ClawSwarm 是 OpenClaw 的轻量级多代理替代方案,用 Rust 编译为单一二进制文件(<10MB),原生支持多代理,集成 Telegram、Discord、WhatsApp,采用 gRPC 通信和 Swarms 框架。 GitHub: https://github.com/The-Swarm-Corporation/ClawSwarm 开发者: The-Swarm-Corporation 许可证: MIT 核心创新:ClawSwarm 将多代理系统的资源消耗降到最低,同时保持完整的功能。
核心理念:"蜂群智能,轻量高效"
为什么选择 ClawSwarm?
Rust 高性能:编译为原生机器码,性能卓越。
<10MB:极小的二进制文件,易于分发。
原生多代理:从设计之初就支持多代理。
多平台:Telegram、Discord、WhatsApp 全支持。
核心功能
1. Rust 实现
- LLVM 编译
- 原生机器码
- 内存安全
- 零成本抽象
2. 轻量级
- <10MB 二进制
- 低内存占用
- 小磁盘占用
- 节能
3. 原生多代理
- 多代理架构
- 代理间通信
- 任务协调
- 结果聚合
4. 多平台集成
- Telegram Bot
- Discord Bot
- 统一接口
5. gRPC 通信
- 高效 RPC
- 双向流
- 低延迟
- 类型安全
6. Swarms 框架
- 蜂群智能
- 去中心化
- 自组织
- 容错
7. 快速启动
- 秒级启动
- 即时响应
- 快速处理
- 低延迟
8. 多通道处理
- 并发消息处理
- 通道隔离
- 负载均衡
- 优先级队列
安装方式
方式一:下载二进制
# Linux
wget https://github.com/The-Swarm-Corporation/ClawSwarm/releases/latest/download/clawswarm-linux-x64
chmod +x clawswarm-linux-x64
./clawswarm-linux-x64
# macOS
wget https://github.com/The-Swarm-Corporation/ClawSwarm/releases/latest/download/clawswarm-macos-universal
chmod +x clawswarm-macos-universal
./clawswarm-macos-universal
# Windows
# 下载 clawswarm-windows-x64.exe 双击运行方式二:Cargo 安装
cargo install clawswarm
clawswarm方式三:源码编译
git clone https://github.com/The-Swarm-Corporation/ClawSwarm.git
cd ClawSwarm
cargo build --release
./target/release/clawswarm配置
基本配置 (config.toml)
[server]
port = 8080
host = "0.0.0.0"
[agents]
max_agents = 10
concurrent = 4
[telegram]
enabled = true
bot_token = "YOUR_TOKEN"
[discord]
enabled = true
bot_token = "YOUR_TOKEN"
[ai]
provider = "openai"
api_key = "sk-xxx"
model = "gpt-4"使用示例
启动服务
./clawswarm --config config.toml多代理处理
用户发送消息到 Telegram
多个代理并发处理
汇总结果后回复通道切换
用户在 Telegram 提问
代理可以在 Discord 继续对话定价
免费:ClawSwarm 完全免费开源(MIT 许可证)。成本仅服务器和 AI API 费用。
系统要求
| 组件 | 最低要求 | 推荐配置 |
|---|---|---|
| 操作系统 | Linux/macOS/Windows | Linux |
| 内存 | 128MB RAM | 256MB+ RAM |
| 存储 | 50MB | 200MB |
| CPU | 单核 | 多核 |
| 网络 | 稳定互联网 | 稳定互联网 |
使用场景
轻量级多代理系统
资源受限环境的多代理部署。
多通道消息处理
同时处理多个平台的消息。
移动设备部署
在手机上运行多代理系统。
边缘计算
边缘设备上的 AI 处理。
资源受限环境
低配服务器、IoT 设备。
快速原型
快速搭建多代理原型。
社区与支持
- GitHub: https://github.com/The-Swarm-Corporation/ClawSwarm
- 文档: https://github.com/The-Swarm-Corporation/ClawSwarm#readme
- Issues: 在 GitHub 提交问题
许可证
MIT License - 免费用于个人和商业用途。
标签
multi-agent, rust, lightweight, telegram, swarm, grpc, low-resource