LuomiNest 是一个开源的分布式多用户关系型 AI 智能体平台,以"关系驱动"为核心设计理念。它通过主/从双层记忆架构,在群聊中自动提取每位用户的独立画像(从记忆),私聊时自动加载该用户的记忆(主记忆联动),实现真正个性化的多用户对话;同时支持人、AI、AI 与 AI 跨平台群聊协作。它可运行于桌面电脑、嵌入式终端(ESP32)、智能家居设备之上,覆盖自然语言对话、语音交互、Live2D 虚拟形象、工作流自动化与浏览器操作等能力,提供懂每一个人的长期智能体服务。
核心设计理念:一台普通电脑即可运行,数据 100% 本地闭环。
产品主打三件事:记得住你(记忆性)、像一个生命(陪伴性)、装得上任何能力(扩展性)。工具与 MCP 是基石级基础设施,不是卖点本身。
- 双轨记忆系统 — 主人记忆 / 平台用户记忆行级隔离,自动事实抽取、蒸馏沉淀、画像与知识库,向量检索全量落 SQLite
- Live2D 虚拟形象 — Cubism 5 引擎驱动,口型同步、表情驱动、情感映射,支持 PngTuber 像素化头像与桌面宠物(VRM 规划中)
- 插件与技能系统 — CxPlugin 插件热加载 + CxSkill 轻技能双轨扩展,内置扩展市场与多 CDN 发布源
- 沉浸式对话 — 多轮自然语言对话,支持多 LLM Provider(OpenAI 兼容 32 模板 / Anthropic 原生 / DeepSeek / Ollama 等),SSE 流式响应
- 多平台接入 — QQ(OneBot / 官方)、微信(公众号 / 企业微信)、Telegram、Discord、Minecraft、米家、Home Assistant 等 13 种适配器
- 语音交互 — SherpaOnnx / FunASR / Faster-Whisper 语音识别(ASR)+ Edge TTS / SherpaOnnx / 本地 TTS 等 7 引擎合成,能力声明与语言感知回退
- MCP 工具协议 — 标准 MCP 协议支持,工具注册与调用,内置 CLI、文件操作、子 Agent 委派等 20+ 工具
- 多 Agent 协作 — 任务分析 → 子任务调度 → 并行执行 → 结果综合,支持 A2A 协议 AI-AI 自主对话
- 工作流引擎 — 可视化节点编排、模板库、定时任务调度(APScheduler)、工具调用记录与持久化
- 内嵌浏览器 — 内置浏览器与开发者面板(脚本 / DOM / 源码 / 截图),Agent 可读取当前页 HTML 与页面截图
- 主题系统 — 预设主题与外观设置,注册表源管理与扩展市场(插件 / 技能安装)
- IoT 智能控制 — MQTT 设备通信,ESP32-P4 硬件终端,设备 / 场景 / 房间 / 自动化统一视图
- 桌面客户端 — Electron 桌面应用,内置浏览器、桌面宠物、Live2D 皮套工坊、控制台终端
- 安全体系 — JWT / Token 双模式认证、RBAC(定义中)、本地沙箱、命令守卫、速率限制、安全审计日志、24h 自动备份
- 隐私优先 — 对话与记忆数据全部本地存储(单 SQLite 库),敏感配置 AES 加密
| 层级 | 技术选型 |
|---|---|
| 前端 | Electron 44 + Vue 3 + TypeScript + Pinia + PixiJS (Live2D) |
| 后端 | Python 3.12+ + FastAPI + Uvicorn + SQLAlchemy 2 (async) + APScheduler |
| 存储 | SQLite (SQLAlchemy ORM, WAL 单库) + JSON 缓存;PostgreSQL / Redis 为云端化预留 |
| 通信 | WebSocket + MQTT + HTTP/REST + SSE 流式响应 |
| AI/LLM | OpenAI / Anthropic / DeepSeek / Ollama,多厂商适配器 + 中间件管道 |
| 语音 | SherpaOnnx / FunASR / Faster-Whisper (ASR) + Edge TTS / SherpaOnnx / 本地 TTS / Gemini / MiniMax / SiliconFlow / Fish Audio |
| 硬件 | ESP-IDF (ESP32-P4) |
| 部署 | Docker Compose + PyInstaller + Electron Builder + Inno Setup |
- Python 3.12+
- Node.js 22+
- pnpm
# 克隆仓库
git clone https://github.com/LuminousCX/LuomiNest.git
cd LuomiNest
# 安装全部依赖(前端 + 后端)
make install
# 配置环境变量
make config
# 启动后端
make dev-backend
# 新终端,启动前端
make dev-frontend后端
cd backend
# 创建虚拟环境
python -m venv .venv
.venv\Scripts\activate # Windows
# source .venv/bin/activate # Linux/macOS
# 安装依赖
pip install -e ".[dev]"
# 配置环境变量
cp config/.env.example config/.env
# 编辑 config/.env,填入 API Key
# 启动
python main.py后端默认运行在 http://127.0.0.1:18000,API 文档访问 http://127.0.0.1:18000/docs。
前端
cd frontend
# 安装依赖
pnpm install
# 开发模式
pnpm dev
# 构建生产版本
pnpm buildDocker 部署
cd docker
# 开发环境(backend + PostgreSQL + Redis + MQTT;后端当前使用 SQLite,pg/redis 为预留)
docker compose -f docker-compose.yml -f docker-compose.dev.yml up -d
# 生产环境
docker compose -f docker-compose.yml -f docker-compose.prod.yml up -dLuomiNest/
├── backend/ # Python 后端服务
│ ├── app/
│ │ ├── api/v1/endpoints/ # REST API 端点(24 个模块)
│ │ ├── api/ws/ # WebSocket(浏览器自动化、Avatar 驱动)
│ │ ├── core/ # 配置、容器、端口、工具、工作流引擎、Agent 编排、调度器
│ │ ├── domains/ # 领域逻辑(社交、群聊、AI-AI 对话)
│ │ ├── engines/ # 引擎(记忆)
│ │ ├── infrastructure/ # 基础设施(数据库 28 表、备份、MQTT、同步、适配器)
│ │ ├── runtime/ # 运行时(平台适配器 ×13、插件、技能、Provider)
│ │ ├── security/ # 安全(JWT、内部鉴权、RBAC、沙箱、审计、速率限制)
│ │ └── services/ # 业务服务
│ ├── config/ # 环境配置
│ ├── plugins/ # 内置插件(4 个)
│ ├── skills/ # 内置技能(21 个)
│ └── tests/ # 测试
│
├── frontend/ # Electron + Vue 3 桌面客户端
│ ├── src/
│ │ ├── main/ # Electron 主进程(IPC、浏览器自动化、后端托管)
│ │ ├── preload/ # 预加载脚本
│ │ └── renderer/ # Vue 渲染进程(24 个页面)
│ └── resources/ # 静态资源(图标、Live2D 模型)
│
├── firmware/ # ESP32 嵌入式固件
│ └── embedded/esp32-p4/ # ESP32-P4 主控(组件化:app / bsp / drivers)
│
├── templates/ # 插件开发模板
└── docker/ # Docker 部署配置
项目维护着一套完整的中文文档体系(概览 / 架构 / 接口 / 数据模型 / 功能实现 / 部署 / 开发指南 / 路线图),仅随本地工作区提供,不随本仓库分发。
我们欢迎社区贡献!请先阅读 贡献指南。
- Fork 本仓库
- 创建特性分支:
git checkout -b feature/amazing-feature - 提交更改:
git commit -m "feat(scope): add amazing feature" - 推送分支:
git push origin feature/amazing-feature - 提交 Pull Request
如发现安全漏洞,请不要在公开 Issue 中提交。请通过邮件私下报告:
- 邮箱:
luminouschenxi@outlook.com - 主题:
LuomiNest Security Report
详见 安全策略。
本项目基于 GNU Affero General Public License v3.0 开源。
LuomiNest is an open-source distributed multi-user relational AI agent platform built on a relationship-driven design. Its dual-layer memory architecture (primary memory pool + per-user persona memory) automatically extracts each user's profile during group chats and loads it back in private conversations, enabling truly personalized multi-user dialogue. It supports human, AI, and AI-to-AI collaboration across platforms (QQ / WeChat / Telegram / Discord, etc.). It runs on desktop computers, embedded terminals (ESP32), and smart home devices, delivering natural language dialogue, voice interaction, Live2D virtual avatars, workflow automation, and browser operations for a long-term agent experience that knows every single user.
Core design principle: Runs on a single ordinary computer with 100% local data retention.
The product bets on three things: memory (it remembers you), companionship (it feels alive), and extensibility (it accepts any capability). Tools and MCP are cornerstone infrastructure, not the selling point.
- Dual-Track Memory — Owner memory / platform-user memory with row-level isolation; automatic fact extraction, distillation, profiling and knowledge base; vector search fully on SQLite
- Live2D Avatar — Cubism 5 engine with lip sync, expression drive, emotion mapping; PngTuber pixel avatar and desktop pet support (VRM planned)
- Plugin & Skill System — CxPlugin hot-reload + CxSkill lightweight extension dual-track architecture, built-in marketplace with multi-CDN registries
- Immersive Dialogue — Multi-turn natural language conversations with multiple LLM providers (OpenAI-compatible ×32 templates / Anthropic native / DeepSeek / Ollama), SSE streaming
- Multi-Platform Access — 13 adapter types: QQ (OneBot / Official), WeChat (MP / Work), Telegram, Discord, Minecraft, Xiaomi IoT, Home Assistant, and more
- Voice Interaction — SherpaOnnx / FunASR / Faster-Whisper ASR + 7 TTS engines (Edge TTS / SherpaOnnx / local / Gemini / MiniMax / SiliconFlow / Fish Audio) with capability declarations and language-aware fallback
- MCP Tool Protocol — Standard MCP protocol support with tool registration and invocation; 20+ built-in tools (CLI, file ops, sub-agent delegation, …)
- Multi-Agent Collaboration — Task analysis → sub-task scheduling → parallel execution → result synthesis; A2A AI-to-AI autonomous dialogue
- Workflow Engine — Visual node orchestration, template library, scheduled tasks (APScheduler), tool-call recording and persistence
- Embedded Browser — Built-in browser with developer panel (script / DOM / page source / screenshot); the agent can read the current page's HTML and take screenshots
- Theme System — Preset themes and appearance settings, registry source management and extension marketplace
- IoT Smart Control — MQTT device communication, ESP32-P4 hardware terminals, unified devices / scenes / rooms / automations view
- Desktop Client — Electron app with built-in browser, desktop pet, Live2D avatar workshop, and console terminal
- Security — JWT / token dual-mode authentication, RBAC (planned), local sandbox, command guard, rate limiting, audit logs, 24h scheduled backup
- Privacy First — All dialogue and memory data stored locally in a single SQLite database; sensitive config AES-encrypted
git clone https://github.com/LuminousCX/LuomiNest.git
cd LuomiNest
make install # Install all dependencies
make config # Setup environment variables
make dev-backend # Start backend (port 18000)
make dev-frontend # Start frontend (new terminal)See CONTRIBUTING.md for guidelines.
This project is licensed under the GNU Affero General Public License v3.0.
LuomiNest by LuminousCX R&D Team