MCPcopy Index your code
hub / github.com/Mai-with-u/MaiBot

github.com/Mai-with-u/MaiBot @1.0.10 sqlite

repository ↗ · DeepWiki ↗ · release 1.0.10 ↗
12,992 symbols 51,151 edges 959 files 5,094 documented · 39%
README

双语 / Bilingual | 中文 | English

麦麦 MaiBot MaiSaka

An interactive agent based on large language models.

<img src="https://img.shields.io/badge/Python-3.10+-blue" alt="Python Version">
<img src="https://img.shields.io/github/license/Mai-with-u/MaiBot?label=License" alt="License">
<img src="https://img.shields.io/badge/Status-In%20Development-yellow" alt="Status">
<img src="https://img.shields.io/github/contributors/Mai-with-u/MaiBot.svg?style=flat&label=Contributors" alt="Contributors">
<img src="https://img.shields.io/github/forks/Mai-with-u/MaiBot.svg?style=flat&label=Forks" alt="Forks">
<img src="https://img.shields.io/github/stars/Mai-with-u/MaiBot?style=flat&label=Stars" alt="Stars">
<a href="https://trendshift.io/repositories/20445" target="_blank"><img src="https://trendshift.io/api/badge/repositories/20445" alt="Mai-with-u%2FMaiBot | Trendshift" width="250" height="55"></a>
<a href="https://deepwiki.com/DrSmoothl/MaiBot"><img src="https://deepwiki.com/badge.svg" alt="Ask DeepWiki"></a>

MaiBot Character

介绍

Introduction

麦麦 MaiSaka 是一个基于大语言模型的可交互智能体。
MaiSaka is an interactive agent based on large language models.

MaiSaka 不仅仅是一个机器人,不仅仅是一个可以帮你完成任务的“有帮助的助手”,她还是一个致力于了解你,并以真实人类的风格进行交互的数字生命。她不追求完美,不追求高效,但追求亲切和真实。
MaiSaka is more than just a bot, and more than a "helpful assistant" that completes tasks. She is a digital life form that tries to understand you and interact in a genuinely human style. She does not pursue perfection or efficiency above all else. She pursues warmth and authenticity.

  • 💭 没有人喜欢 GPT 的语言风格:麦麦使用了更加自然、贴合人类对话习惯的交互方式,不是长篇大论或者 markdown 格式的分点,而是或长或短的闲谈。
    No one likes GPT-sounding dialogue: MaiSaka uses a more natural conversational style. Instead of long-winded markdown-heavy replies, she chats in a way that feels casual, varied, and human.
  • 🎭 不再是傻乎乎的一问一答:懂得在合适的时间说话,把握聊天中的气氛,在合适的时候开口,在合适的时候闭嘴。
    No longer stuck in rigid Q&A: She knows when to speak, how to read the room, when to join a conversation, and when to stay quiet.
  • 🧠 麦麦·成为人类:在多人对话中,麦麦会模仿其他人的说话风格,还会自主理解新词或者小圈子里的黑话,不断进化。
    MaiSaka becoming human: In group conversations, MaiSaka imitates how people around her speak, learns new slang and in-group language, and keeps evolving.
  • ❤️ 永远都在更加了解你:基于心理学中人格理论,麦麦会不断积累对于你的了解,不论是你的信息、喜恶或是行为风格,她都记在心里。
    Always learning more about you: Inspired by personality theory in psychology, MaiSaka gradually builds an understanding of your preferences, traits, habits, and behavior style.
  • 🔌 插件系统:提供强大的 API 和事件系统,拥有无限扩展可能。
    Plugin system: Provides powerful APIs and an event system with virtually unlimited room for extension.

快速导航

Quick Navigation

🌟 演示视频 Demo Video  |  📦 快速入门 Quick Start  |  📃 核心文档 Core Documentation  |  💬 加入社区 Join Community

  <img src="https://github.com/Mai-with-u/MaiBot/raw/1.0.10/depends-data/video.png" width="60%" alt="麦麦演示视频" style="border-radius: 10px; box-shadow: 0 4px 8px rgba(0,0,0,0.1);">






<small>前往观看麦麦演示视频 / Watch the MaiSaka demo video</small>


🔥 更新和安装

Updates and Installation

最新版本: v1.0.10 (📄 更新日志)
Latest Version: v1.0.10 (📄 Changelog)

  • 下载:前往 Release 页面下载最新版本。
    Download: Visit the Release page to get the latest version.

  • 方便使用的 Windows 一键包 下载Maibot-OK
    Launcher: Maibot OneKey

分支 / Branch 说明 / Description
main 稳定发布版本(推荐)

Stable release (recommended) | | dev | 🚧 开发测试版本,包含新功能,可能不稳定

Development testing branch with new features, may be unstable |

📚 部署教程

Deployment Guide

👉 🚀 最新版本部署教程
Latest Deployment Guide


💬 讨论与社区

Discussion and Community

我们欢迎所有对 MaiBot 感兴趣的朋友加入!
We welcome everyone interested in MaiBot to join us.

类别 / Category 群组 / Group 说明 / Description
技术交流

Technical | 麦麦脑电图:571780722

MaiBrain EEG | 技术交流 / 答疑

Technical discussion / Q&A | | 技术交流

Technical | 麦麦大脑磁共振:766798517

MaiBrain MRI | 技术交流 / 答疑

Technical discussion / Q&A | | 技术交流

Technical | 麦麦要当 VTB

Mai Wants to Be a VTuber | 技术交流 / 答疑

Technical discussion / Q&A | | 闲聊吹水

Casual Chat | 麦麦之闲聊群

Mai Casual Chat Group | 仅限闲聊,不答疑

Casual chat only, no support | | 插件开发

Plugin Development | 插件开发群:1036092828

Plugin Dev Group | 进阶开发与测试

Advanced development and testing |


📚 文档

Documentation

[!NOTE] 部分内容可能更新不够及时,请注意版本对应。
Some content may not be updated promptly, so please pay attention to version compatibility.

🧩 衍生项目

Related Projects

  • Amaidesu:让麦麦在 B 站开播。
    Let MaiSaka stream on Bilibili.
  • MoFox_Bot:基于 MaiCore 0.10.0 的增强型 Fork,更稳定更有趣。
    An enhanced fork based on MaiCore 0.10.0, with improved stability and more fun features.
  • MaiCraft:让麦麦陪你玩 Minecraft(暂时停止维护中)。
    Let MaiSaka accompany you in Minecraft (currently paused).

💡 设计理念

Design Philosophy

千石可乐说:
SengokuCola says: - 这个项目最初只是为了给牛牛 bot 添加一点额外的功能,但是功能越写越多,最后决定重写。其目的是为了创造一个活跃在 QQ 群聊的“生命体”。目的并不是为了写一个功能齐全的机器人,而是一个尽可能让人感知到真实的类人存在。
This project originally started as a few extra features for the NiuNiu bot, but it kept growing until a full rewrite became inevitable. The goal was to create a "life form" active in QQ group chats, not a feature-complete bot, but something as human-like and real-feeling as possible. - 程序的功能设计理念基于一个核心的原则:“最像而不是好”。
The core design principle is: "more lifelike, not merely better." - 如果人类真的需要一个 AI 来陪伴自己,并不是所有人都需要一个完美的,能解决所有问题的“helpful assistant”,而是一个会犯错的,拥有自己感知和想法的“生命形式”。
If people truly want AI companionship, not everyone needs a perfect "helpful assistant" that solves every problem. Some people may want a life form that can make mistakes and has its own perceptions and thoughts.

xxxxx 说:
xxxxx says:
Code is open, but the soul is yours.


🙋 贡献和致谢

Contributing and Acknowledgments

欢迎参与贡献!请先阅读 贡献指南Contributions are welcome. Please read the Contribution Guide first.

🌟 贡献者

Contributors

contributors

🤝 开源项目友链

Open Source Friends

  • AstrBot: 优秀的LLM Agent项目

❤️ 特别致谢

Special Thanks

  • 萨卡班甲鱼:千石可乐很喜欢的生物。
    Sacabambaspis: SengokuCola's favorite creature.
  • 略nd:为麦麦绘制早期的精美人设。
    Drew MaiSaka's beautiful early character design.
  • NapCat:现代化的基于 NTQQ 的 Bot 协议实现。
    A modern NTQQ-based bot protocol implementation.

📊 仓库状态

Repository Status

Alt

Star 趋势

Star History

Star 趋势


📌 注意事项 & License

Notice & License

[!IMPORTANT] 使用前请阅读 用户协议 (EULA)隐私协议。AI 生成内容请仔细甄别。
Please read the End User License Agreement (EULA) and Privacy Policy before use. Please evaluate AI-generated content carefully.

License: GPL-3.0

Extension points exported contracts — how you extend this code

VectorRebuildOperation (Interface)
向量重建待定操作的载荷:dry-run 预览已暂存,confirm 时执行真重建(无额外参数)
dashboard/src/routes/resource/knowledge-base/hooks/useMemoryRuntimeConfig.ts
BackendConnection (Interface)
(no doc)
dashboard/electron/main/store.ts
ExpressionFilters (Interface)
useDataList 的筛选袋:浏览维度 + 旧格式开关 + 审核筛选
dashboard/src/routes/resource/expression/index.tsx
AppSettings (Interface)
(no doc)
dashboard/electron/main/store.ts
PackEnvelope (Interface)
* Pack 服务的业务包络:失败时以 error 字段(而非 message)给出原因, * 因此不使用 requireSuccess,逐函数手动校验。
dashboard/src/lib/pack-api.ts
LocalModelConfig (Interface)
/api/webui/config/model 返回的本地模型配置(仅声明本文件用到的字段)
dashboard/src/lib/pack-api.ts
ModelConfigResponse (Interface)
模型配置接口响应体:{ success, config } 包络
dashboard/src/lib/pack-api.ts

Core symbols most depended-on inside this repo

get
called by 6043
dashboard/src/lib/http/client.ts
append
called by 2028
src/A_memorix/core/runtime/sdk_memory_kernel.py
Field
called by 1168
dashboard/src/routes/resource/behavior/index.tsx
execute
called by 525
src/A_memorix/core/utils/aggregate_query_service.py
add
called by 486
src/A_memorix/core/storage/vector_store.py
cn
called by 451
dashboard/src/lib/utils.ts
toast
called by 402
dashboard/src/hooks/use-toast.ts
has_column
called by 318
src/common/database/migrations/models.py

Shape

Function 5,987
Method 4,738
Class 1,219
Interface 684
Route 364

Languages

Python78%
TypeScript22%

Modules by API surface

src/webui/routers/memory.py512 symbols
src/A_memorix/core/runtime/sdk_memory_kernel.py358 symbols
src/A_memorix/core/storage/metadata_store.py251 symbols
dashboard/src/lib/memory-api.ts183 symbols
src/A_memorix/core/utils/web_import_manager.py174 symbols
src/webui/routers/expression.py136 symbols
src/webui/routers/config.py123 symbols
src/maisaka/runtime.py122 symbols
src/webui/routers/system.py113 symbols
dashboard/src/routes/config/bot/hooks/complexFieldHooks.tsx112 symbols
src/webui/routers/reasoning_process.py109 symbols
src/common/database/migrations/builtin.py99 symbols

Dependencies from manifests, versioned

@codemirror/lang-css6.3.1 · 1×
@codemirror/lang-javascript6.2.4 · 1×
@codemirror/lang-json6.0.2 · 1×
@codemirror/lang-python6.2.1 · 1×
@codemirror/legacy-modes6.5.2 · 1×
@codemirror/lint6.9.2 · 1×
@codemirror/theme-one-dark6.1.3 · 1×
@dnd-kit/core6.3.1 · 1×
@dnd-kit/sortable10.0.0 · 1×
@dnd-kit/utilities3.2.2 · 1×
@eslint/js9.39.1 · 1×
@iconify-json/streamline-block1.2.0 · 1×

For agents

$ claude mcp add MaiBot \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact