Skip to content

🌸 YuanBot不是工具,是陪伴

有记忆、有情感、会主动想起你的开源 AI 虚拟伴侣

🚀 快速安装

源码安装

bash
git clone https://github.com/Grabrun/YuanBot.git
cd YuanBot
python3 -m venv .venv
source .venv/bin/activate
pip install -e "."
pip install -e ".[cli,openai]"  # 可选扩展
yuanbot start
powershell
git clone https://github.com/Grabrun/YuanBot.git
cd YuanBot
python -m venv .venv
.venv\Scripts\activate
pip install -e "."
pip install -e ".[cli,openai]"  # 可选扩展
yuanbot start

Docker 安装

bash
git clone https://github.com/Grabrun/YuanBot.git
cd YuanBot
cp .env.example .env
# 编辑 .env,填入你的 API Key
docker-compose up -d

首次启动后访问 http://localhost:8000 进入 WebUI,或运行 yuanbot tui 进入终端界面。


📊 项目数据

  • 10 大核心系统 — 覆盖记忆、情感、通信、AI、TUI、WebUI 等全链路
  • 100+ 个源代码文件 — 高内聚、低耦合的模块化架构
  • 1453 个测试全部通过 — 99% 设计文档符合度
  • 10 种消息通道 — 涵盖主流 IM 平台,频道适配器 API 文档开源参考
  • CI/CD 自动化 — GitHub Actions 持续集成与部署

🏗️ 技术栈

领域技术
后端Python 3.12+ · FastAPI + WebSocket · structlog · Prometheus
前端Vue 3 + Naive UI · Textual (TUI)
数据SQLite + MySQL · Milvus Lite 向量数据库 · Kuzu 图数据库 · Redis 缓存
基础设施WASM / Docker / gRPC 三沙盒 · GitHub Actions CI/CD

🧠 存储架构

引擎用途
SQLite + FTS5结构化数据 + 全文检索
MySQL生产级关系型存储
Milvus Lite向量数据库,语义检索
Kuzu图数据库,关系推理

© 2026 YuanBot · Made with 🌸 by Grabrun

Made with 🌸 by Grabrun