基于 Rust 的自托管多租户 AI Agent 平台,采用 trait-driven 模块化架构,支持 15 种 LLM Provider、9 种通信渠道、MCP 协议扩展,可从 Raspberry Pi 到云服务器全环境部署,适用于越南市场及需要数据本地化的企业场景。
核心能力#
LLM Providers(15 个)#
OpenAI、Anthropic、Gemini、DeepSeek、Groq、OpenRouter、Together、MiniMax、xAI (Grok)、Mistral、Ollama、llama.cpp、Brain Engine(本地推理)、CLIProxy、vLLM + 自定义 endpoint
通信渠道(9 种)#
CLI、Telegram、Discord、Email (IMAP/SMTP)、Webhook、WhatsApp、Zalo(个人 + Official Account)
内置工具(13 个 + MCP 无限扩展)#
- 文件操作:Shell、File、Edit File、Glob、Grep
- 网络请求:Web Search、HTTP Request
- 代码执行:Execute Code(9 种语言)
- 管理工具:Config Manager、Plan Mode、Group Summarizer、Calendar
- 知识工具:Document Reader、Memory Search、Session Context
- MCP Bridge:支持连接任意 MCP Server(如 GitHub、Postgres、Brave Search)
平台特性#
| 特性 | 说明 |
|---|---|
| Multi-Tenant | Admin Dashboard、JWT Auth、Tenant Manager、Pairing Codes、Audit Log、Per-tenant SQLite DB |
| Web Dashboard | 12 页 UI,双语(越南语/英语),WebSocket 实时通信 |
| Agent Gallery | 51 个业务 Agent 模板,覆盖 13 个业务类别 |
| Group Chat | 多 Agent 协作,单一问题触发多专业 Agent 并行响应 |
| 3-Tier Memory | Brain workspace (SOUL.md/MEMORY.md)、Daily auto-compaction、FTS5 搜索 |
| Knowledge RAG | 文档上传 → 向量搜索 → 相关性评分 |
| Scheduler | 定时任务,Agent 后台自动执行 |
| Brain Engine | GGUF 推理:mmap、quantization、Flash Attention、SIMD (ARM NEON, x86 SSE2/AVX2) |
| Security | Command allowlist、AES-256、HMAC-SHA256、JWT + bcrypt、CORS、rate limiting |
架构设计#
Crate 结构(14 个)#
- bizclaw-core:Traits、types、config、errors
- bizclaw-brain:GGUF 推理 + SIMD (ARM NEON, x86 AVX2)
- bizclaw-providers:15 LLM providers(OpenAI-compatible 统一接口)
- bizclaw-channels:9 channel types
- bizclaw-memory:SQLite + FTS5、Brain workspace、daily auto-compaction
- bizclaw-tools:13 native tools + MCP bridge
- bizclaw-mcp:MCP client (JSON-RPC 2.0 via stdio)
- bizclaw-security:AES-256、Command allowlist、Sandbox
- bizclaw-agent:Agent loop、tool calling (max 3 rounds)、context management
- bizclaw-gateway:Axum HTTP + WS + Dashboard(12 pages, i18n VI/EN)
- bizclaw-knowledge:Knowledge RAG with FTS5、document chunking
- bizclaw-scheduler:Scheduled tasks、agent integration、notifications
- bizclaw-runtime:Process adapters
- bizclaw-platform:Multi-tenant admin platform、JWT、audit log
技术栈#
- Runtime: Tokio (async)
- HTTP/WebSocket: Axum
- Database: SQLite + FTS5
- Inference: GGUF + SIMD (Flash Attention, FP16 KV Cache)
- Security: JWT + bcrypt、AES-256、HMAC-SHA256
- Containerization: Docker + docker-compose
部署方式#
一键安装(VPS/Pi)#
curl -sSL https://bizclaw.vn/install.sh | sudo bash
Docker#
git clone https://github.com/nguyenduchoai/bizclaw
cd bizclaw && docker-compose up -d
从源码构建#
git clone https://github.com/nguyenduchoai/bizclaw.git
cd bizclaw && cargo build --release
./target/release/bizclaw-platform --port 3001
部署模式#
| 模式 | Binary | 用途 |
|---|---|---|
| Standalone | bizclaw only | 单 bot、个人、测试 |
| Platform | bizclaw + bizclaw-platform | 多 bots、agency、生产环境 |
平台要求#
- 最低:Raspberry Pi 512MB RAM
- 支持:Linux、macOS、Windows
- Binary 大小:bizclaw ~12MB,platform ~7.7MB
- 版本:v0.2.0
业务场景#
企业业务覆盖(13 个类别)#
- HR:招聘、入职、薪酬福利、KPI、规章
- Sales:CRM、报价、销售、电话销售、合作伙伴
- Finance:会计、税务、现金流、发票、内控
- Operations:仓库、采购、物流、QC、维护
- Legal:合同、合规、知识产权、争议
- Customer Service:客户支持、工单、CSAT & 反馈
- Marketing:内容、SEO、广告、社媒、品牌
- IT:Helpdesk、网络安全、基础设施
Token 节省优势#
每个 Agent 可独立选择 Provider,相比统一使用高价 Provider 节省 60-80% API 成本