## 1. Project Overview & Quickstart (Mai-with-u/MaiBot)

<a id="-双语--bilingual"></a>








<a id="english"></a>

## INTRO

麦麦 MaiSaka 是一个基于大语言模型的可交互智能体。  

MaiSaka 不仅仅是一个机器人，不仅仅是一个可以帮你完成任务的“有帮助的助手”，她还是一个致力于了解你，并以真实人类的风格进行交互的数字生命。她不追求完美，不追求高效，但追求亲切和真实。  
<sub><sup>MaiSaka is an interactive agent based on large language models. 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.</sup></sub>

- 💭 **没有人喜欢 GPT 的语言风格**：麦麦使用了更加自然、贴合人类对话习惯的交互方式，不是长篇大论或者 markdown 格式的分点，而是或长或短的闲谈。  
  <sub><sup>**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.</sup></sub>
- 🎭 **不再是傻乎乎的一问一答**：懂得在合适的时间说话，把握聊天中的气氛，在合适的时候开口，在合适的时候闭嘴。  
  <sub><sup>**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.</sup></sub>
- 🧠 **麦麦·成为人类**：在多人对话中，麦麦会模仿其他人的说话风格，还会自主理解新词或者小圈子里的黑话，不断进化。  
  <sub><sup>**MaiSaka becoming human**: In group conversations, MaiSaka imitates how people around her speak, learns new slang and in-group language, and keeps evolving.</sup></sub>
- ❤️ **永远都在更加了解你**：基于心理学中人格理论，麦麦会不断积累对于你的了解，不论是你的信息、喜恶或是行为风格，她都记在心里。  
  <sub><sup>**Always learning more about you**: Inspired by personality theory in psychology, MaiSaka gradually builds an understanding of your preferences, traits, habits, and behavior style.</sup></sub>
- 🔌 **插件系统**：提供强大的 API 和事件系统，拥有无限扩展可能。  
  <sub><sup>**Plugin system**: Provides powerful APIs and an event system with virtually unlimited room for extension.</sup></sub>



---

<a id="-更新和安装--updates-and-installation"></a>

## 安装 · INSTALL

**最新版本: v1.2.1**

<sub><sup>**Latest Version: v1.2.1**</sup></sub>

- **发布**：[Release](https://github.com/Mai-with-u/MaiBot/releases/) 页面展示了最新发布的正式版。
  <sub><sup>**Download**: Visit the [Release](https://github.com/Mai-with-u/MaiBot/releases/) page to get the latest version.</sup></sub>

- **[部署教程](https://docs.mai-mai.org/manual/deployment/)**  
<sub><sup>Deployment Guide</sup></sub>

- **方便使用的麦麦启动器下载 (Windows/MAC)**：[Maibot-OK](https://github.com/Mai-with-u/MaiBotOneKey/releases/)  
  <sub><sup>**Launcher**: [Maibot OneKey](https://github.com/Mai-with-u/MaiBotOneKey/releases/)</sup></sub>


| 分支 / Branch ||
| :--- | :--- |
| `main` | **稳定版 · STABLE** |
| `dev` | 开发版，包含开发中的新功能 · DEV|

---

## 📚 文档 · DOC

- **[📚 麦麦文档](https://docs.mai-mai.org)**：最全面的文档中心，了解麦麦的一切。  
  <sub><sup>**[📚 Documentation](https://docs.mai-mai.org)**: The most comprehensive documentation hub for everything about MaiSaka.</sup></sub>


- **[演示视频]**

  <a href="https://www.bilibili.com/video/BV1amAneGE3P" target="_blank">
    
      
      
    
    
    <small>前往麦麦演示视频 / Watch the MaiSaka video</small>
  </a>


---

## 💬 讨论与社区 · Discussion/Community

| 群组 / Group | 说明 / Description |
| :--- | :--- |
| 麦麦脑电图:571780722<sub><sup>MaiBrain EEG</sup></sub> | 技术交流 / 答疑<sub><sup>Technical discussion / Q&A</sup></sub> |
| 麦麦大脑磁共振:766798517<sub><sup>MaiBrain MRI</sup></sub> | 技术交流 / 答疑<sub><sup>Technical discussion / Q&A</sup></sub> |
| [麦麦要当 VTB](https://qm.qq.com/q/wGePTl1UyY)<sub><sup>Mai Wants to Be a VTuber</sup></sub> | 技术交流 / 答疑<sub><sup>Technical discussion / Q&A</sup></sub> |
 | [麦麦闲聊群](https://qm.qq.com/q/JxvHZnxyec)<sub><sup>Mai Casual Chat Group</sup></sub> | 以闲聊为主<sub><sup>Casual chat only, no support</sup></sub> |
| 插件开发群:1036092828<sub><sup>Plugin Dev Group</sup></sub> | 插件、进阶开发与测试<sub><sup>Advanced development and testing</sup></sub> |

---


## 🧩 衍生项目 · Related Projects
<sub><sup></sup></sub>

- **[Amaidesu](https://github.com/MaiM-with-u/Amaidesu)**：让麦麦在 B 站开播。  
  <sub><sup>Let MaiSaka stream on Bilibili.</sup></sub>
- **[MoFox_Bot](https://github.com/MoFox-Studio/MoFox-Core)**：基于 MaiCore 0.10.0 的 Fork。  
  <sub><sup>An enhanced fork based on MaiCore 0.10.0.</sup></sub>
- **[MaiCraft](https://github.com/MaiM-with-u/Maicraft)**：让麦麦陪你玩 Minecraft（暂时停止维护中）。  
  <sub><sup>Let MaiSaka accompany you in Minecraft (currently paused).</sup></sub>

---

## 💡 设计理念 · IDEA

> **千石可乐说：**  
> <sub><sup>**SengokuCola:**</sup></sub>
> - 这个项目最初只是为了给牛牛 bot 添加一点额外的功能，但是功能越写越多，最后决定重写。其目的是为了创造一个活跃在 QQ 群聊的“生命体”。目的并不是为了写一个功能齐全的机器人，而是一个尽可能让人感知到真实的类人存在。  
>   <sub><sup>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.</sup></sub>
> - 程序的功能设计理念基于一个核心的原则：“最像而不是好”。  
>   <sub><sup>The core design principle is: "more lifelike, not merely better."</sup></sub>
> - 如果人类真的需要一个 AI 来陪伴自己，并不是所有人都需要一个完美的，能解决所有问题的“helpful assistant”，而是一个会犯错的，拥有自己感知和想法的“生命形式”。  
>   <sub><sup>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.</sup></sub>

---

## 🌟 贡献和致谢 · Contributors

欢迎参与贡献！请先阅读 [贡献指南](docs/CONTRIBUTE.md)。
<sub><sup>Contributions are welcome. Please read the [Contribution Guide](docs/CONTRIBUTE.md) first.</sup></sub>

### 🌟 贡献者
<sub><sup>Contributors</sup></sub>

<a href="https://github.com/MaiM-with-u/MaiBot/graphs/contributors">
  
</a>

### 🤝 开源项目友链
<sub><sup>Open Source Friends</sup></sub>

- **[AstrBot](https://github.com/AstrBotDevs/AstrBot)**: 优秀的LLM Agent项目  
  <sub><sup>An excellent LLM Agent project.</sup></sub>

### ❤️ 特别致谢
<sub><sup>Special Thanks</sup></sub>

- **[萨卡班甲鱼](https://en.wikipedia.org/wiki/Sacabambaspis)**：千石可乐很喜欢的生物。  
  <sub><sup>**[Sacabambaspis](https://en.wikipedia.org/wiki/Sacabambaspis)**: SengokuCola's favorite creature.</sup></sub>
- **[略nd](https://space.bilibili.com/1344099355)**：为麦麦绘制早期的精美人设。  
  <sub><sup>Drew MaiSaka's beautiful early character design.</sup></sub>
- **[NapCat](https://github.com/NapNeko/NapCatQQ)**：现代化的基于 NTQQ 的 Bot 协议实现。  
  <sub><sup>A modern NTQQ-based bot protocol implementation.</sup></sub>

---

## 📊 仓库状态
<sub><sup>Repository Status</sup></sub>



### Star History



---

## 📌 注意事项 & License
<sub><sup>Notice & License</sup></sub>

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

**License**: GPL-3.0

## 2. Official Technical Reference & Guides (Mai-with-u/docs)

# MaiBot 文档

本仓库为 MaiBot 的官方文档。MaiBot 是一个智能聊天机器人，专为 QQ 群设计，具有基于 LLM 的对话能力、记忆系统和情感表达功能。

## 关于文档

此文档站点使用 [VitePress](https://vitepress.dev/) 构建，涵盖了安装、部署、配置以及开发（未完成） MaiBot 所需的所有内容。

## 文档部分

### 文档目录

- **安装指南**
    提供标准版和新手友好版的安装步骤，帮助用户快速上手。

- **API 参考（未完成）**
    详细介绍 MaiBot 提供的 API 接口及其使用方法。

- **部署方法**
    涵盖多种部署方式，包括 Docker、Linux、Windows 和群晖 NAS。

- **常见问题解答和故障排除**
    收录常见问题及其解决方案，帮助用户排查和解决问题。

- **文件结构和配置**
    说明项目的文件结构及配置方法，便于用户自定义和扩展。

## 本地开发

### 本地部署要求
使用Nodejs安装对应依赖

```bash
# 安装依赖
pnpm install

# 启动开发服务器
pnpm docs:dev

# 构建生产版本
pnpm docs:build

# 预览生产版本
pnpm docs:preview
```

## 贡献

### 完整方式
如果你想要修改文档，首先fork在修改后提出PR即可。

如果你想要添加文件，在fork后添加你写的文档并放入对应目录（或者新建目录），修改各级的index.md使其包含您的文档。

然后找到`.vitepress`下的`config.mts`文件，修改其中的导航使其能正确导航到你的文件。

随后发起PR即可

### 懒人方式
如果你想要修改文档，首先fork在修改后提出PR即可。

如果你想要添加文件，在fork后添加你写的文档并放入根目录，随后发起PR，说明你想放置的目录位置。

若PR通过，我们会手动帮你配置各类目录