Top AI Repos — open-source AI, indexed and scored
Top AI Repos tracks AI repositories on GitHub and answers two different questions about each one: is it moving right now, and would you bet a product on it.
Top AI Repos tracks AI repositories on GitHub and answers two different questions about each one: is it moving right now, and would you bet a product on it.
AI 朝廷搭建完整教程 - 从零基础到进阶
| Date | Stars |
|---|---|
| 2026-07-24 | 2699 |
| 2026-07-25 | 2699 |
| 2026-07-28 | 2699 |
| 2026-07-30 | 2698 |
| 2026-08-06 | 2698 |
Today
— stars today
This week
— stars this week
This month
— stars this month
Momentum
0.0
growth rate 0.00%/day
[](https://mseep.ai/app/wanikua-danghuangshang)
[English Version](./README_EN.md) | [日本語版](./README_JA.md) | [🏢 企业版 Become CEO (English)](https://github.com/wanikua/become-ceo) | [🔧 天工开物 TianGong (Terminal版)](https://github.com/wanikua/tiangong) | [🌐 官网](https://danghuangshang.com) | [📚 完整文档](./docs/README.md)
> **⚠️ 维权声明 / Originality Notice**
>
> 本项目是「三省六部 × OpenClaw」架构的 **首发作品**,架构设计、角色功能映射、目录结构均为本项目原创。时间线:
> - **2025-02-20**:小红书首发教程
> - **2025-02-22**:GitHub 完整教程发布
>
> **📋 已知侵权**:[Edict](https://github.com/cft0808/edict) 项目结构与本项目高度相似,未注明引用任何出处。经多次沟通,作者拒绝标注原创出处。
>
> 🔗 [原创证据链 & 维权文章](./docs/originality.md)
>
> **🤝 欢迎共创**:本项目是MIT License,欢迎 PR 贡献、Fork 二次开发。但请**注明出处**并保留License。
> 这是开源社区的基本礼仪,也是对每一位贡献者的尊重。
<!-- SEO 关键词 / Keywords:三省六部、明朝、六部制、司礼监、内阁、都察院、翰林院、兵部、户部、礼部、工部、刑部、吏部、AI朝廷、AI Agent、多Agent协作、人工智能管理、古代治国、现代管理、组织架构、OpenClaw、multi-agent、ancient-china -->
<p align="center">
<img src="./images/boluobobo-mascot.png" alt="菠萝菠菠 mascot" width="120" />
</p>
# 🏛️ 当皇上 ✖️ OpenClaw
### 一行命令起王朝,三省六部皆AI。千里之外调百官,万事不劳御驾亲。
> **以明朝内阁制为蓝本,用 [OpenClaw](https://github.com/openclaw/openclaw) 框架构建的多 Agent 协作系统。**
> 一台服务器 + OpenClaw = 一支 7×24 在线的 AI 朝廷。
<p align="center">
<img src="https://img.shields.io/badge/架构-明朝内阁制-gold?style=for-the-badge" />
<img src="https://img.shields.io/badge/框架-OpenClaw-blue?style=for-the-badge" />
<img src="https://img.shields.io/badge/Agent-18+-green?style=for-the-badge" />
<img src="https://img.shields.io/badge/Skill-60+-orange?style=for-the-badge" />
<img src="https://img.shields.io/badge/部署-5分钟-red?style=for-the-badge" />
</p>
<div align="center">
### 👑 一键登基
**方式一:本地安装(推荐)**
```bash
git clone https://github.com/wanikua/danghuangshang.git
cd danghuangshang
bash scripts/full-install.sh
```
**方式二:远程一键安装**
```bash
bash <(curl -fsSL https://raw.githubusercontent.com/wanikua/danghuangshang/main/scripts/full-install.sh)
```
**一行命令,5 分钟,你就是皇上。** [→ 快速开始](#快速开始)
> 🔒 **安全更新(2026-03-22)**:新增 Webhook 签名验证,防止伪造请求。[查看配置指南](./docs/webhook-security.md)
</div>
> ### ⚠️ **Discord 多 Bot 安全配置**(必读)
>
> **默认配置已安全**:新版安装脚本已设置 `"allowBots": "mentions"`,Bot 只在被 @ 时响应其他 Bot,避免消息循环。
>
> **如果你使用旧版配置**:请确保 Discord 配置中有:
> ```json
> "discord": {
> "allowBots": "mentions" // ✅ 只响应被 @ 的 Bot
> }
> ```
>
> **⚠️ 禁止使用 `"allowBots": true`** — 会导致 Bot 互相触发,引发消息风暴!
>
> 📖 详细说明:[Discord 安全配置指南](./docs/discord-safety.md) | 相关 Issue:[#107](https://github.com/wanikua/danghuangshang/issues/107)
<p align="center">
<img src="./images/flow-architecture.png" alt="系统架构流程图" width="80%" />
</p>
<p align="center">
<img src="./images/discord-architecture.png" alt="Discord 朝廷架构图" width="80%" />
</p>
---
**AI 朝廷**是一个开箱即用的多 Agent 协作系统。你是皇帝,AI 是你的大臣。在 Discord 或飞书 @某个 Agent,大臣们就会立刻执行。司礼监接旨、内阁优化 Prompt、六部各司其职、都察院自动审查代码。**管理 AI 团队的高效模版。**
## 目录
- 🚀 [**快速开始**](#快速开始) — 3 步安装
- 🏛️ [朝廷架构](#朝廷架构) — 明朝内阁制:皇帝→司礼监→内阁→六部→都察院
- 🎬 [效果展示](#效果展示) — Discord / 飞书 对话示例
- 📝 [翰林院](#翰林院) — 5 Agent 协作写小说(可选)
- ⚙️ [核心能力](#核心能力) — 协作、记忆、60+ Skill、Cron、沙箱
- 🆚 [为什么选这套方案?](#为什么选这套方案) — 与 ChatGPT / AutoGPT / CrewAI 对比
- 📦 [更多](#更多) — GUI · 飞书 · Notion · 诊断 · FAQ · 企业版 · 菠萝王朝
---
<a id="快速开始"></a>
## 🚀 快速开始
> 🔴 **新手请用云服务器**,不要在个人电脑上安装。[→ 领一台免费服务器](./docs/server-setup.md)
### 1️⃣ 选择制度
安装时可选择三种制度:
| 制度 | 特点 | 适用场景 | Agent |
|------|------|---------|-------|
| **明朝内阁制** | 司礼监 + 内阁 + 六部,快速迭代 | 个人项目 | 18 个 |
| **唐朝三省制** | 中书→门下→尚书,制衡审核 | 偏好严谨流程的项目 | 14 个 |
| **现代企业制** | CEO/CTO/CFO,国际化 | 创业团队 | 14 个 |
### 2️⃣ 一键安装
#### 方式一:本地安装(推荐)
```bash
git clone https://github.com/wanikua/danghuangshang.git
cd danghuangshang
bash scripts/full-install.sh
```
**优点**:可离线使用,可修改安装脚本,可查看所有文件,**包含完整人设注入**。
> ⚠️ **安装遇到问题?** → [查看故障排除指南](docs/install-troubleshooting.md)
#### 方式二:远程一键安装
**Linux / macOS**:
```bash
bash <(curl -fsSL https://raw.githubusercontent.com/wanikua/danghuangshang/main/scripts/full-install.sh)
```
**Windows (PowerShell)**:
```powershell
powershell -ExecExcerpt of 17,914 characters
Read on GitHub370
10
MseeP.ai · SkyDeck AI Inc. · United States
1
陆尘 · Huawei Technologies · China
1
KevinShiCN · Tencent · China
1
1
Ikko Eltociear Ashimine · Japan
1
1
Claude · @anthropics
1
Would you bet a product on this? Bounded 0–100 and slow moving.
matched fp:2174e2dbdf659cb4, topic:ai-agents, topic:autonomous-agents, topic:multi-agent