# AI Court

> 以明朝内阁制为蓝本的多 Agent 协作系统 - 一键部署你的 AI 朝廷

- Skill: `wanikua/ai-court-2` (Agent Skill, multi-file: 17 files)
- Install (CLI): `npx skillmds@latest add wanikua/ai-court-2`
- Raw SKILL.md: https://api.skillmd.com/api/skills/wanikua/ai-court-2/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- Author: wanikua (https://skillmd.com/u/wanikua)
- Updated: 2026-09-22
- Page: https://skillmd.com/skills/wanikua/ai-court-2

---


# AI Court | 当皇上

一行命令起王朝，三省六部皆 AI。

## 安装

```bash
clawdhub install ai-court
```

## 使用

### 1. 选择制度

```bash
# 明朝内阁制（推荐）
cd ~/.openclaw && cp -r clawd/skills/ai-court/configs/ming-neige/* .

# 或唐朝三省制
cd ~/.openclaw && cp -r clawd/skills/ai-court/configs/tang-sansheng/* .

# 或现代企业制
cd ~/.openclaw && cp -r clawd/skills/ai-court/configs/modern-ceo/* .
```

### 2. 配置 API Key

编辑 `~/.openclaw/openclaw.json`：

```json
{
  "models": {
    "providers": {
      "dashscope": {
        "apiKey": "sk-your-api-key"
      }
    }
  }
}
```

**获取 API Key**:
- 阿里 DashScope: https://dashscope.console.aliyun.com/apiKey
- DeepSeek: https://platform.deepseek.com/api_keys

### 3. 配置 Discord（可选）

编辑 `~/.openclaw/openclaw.json` 中的 `discord.accounts`：

```json
{
  "discord": {
    "accounts": {
      "silijian": {
        "token": "YOUR_BOT_TOKEN"
      }
    }
  }
}
```

**详细教程**: `references/discord-setup.md`

### 4. 验证安装

```bash
bash clawd/skills/ai-court/scripts/doctor.sh
```

### 5. 启动

```bash
openclaw start
```

## 文档

- `references/tutorial-basics.md` - 基础教程
- `references/discord-setup.md` - Discord 配置
- `references/config-guide.md` - 配置指南
- `references/troubleshooting.md` - 故障排除

## Docker 部署

**镜像**: `boluobobo/ai-court:latest`

**默认模式**:
```bash
docker run -d --name ai-court \
  -p 127.0.0.1:18789:18789 \
  -p 127.0.0.1:18795:18795 \
  boluobobo/ai-court:latest
```

**连接外部 OpenClaw**:
```bash
docker run -d --name ai-court-external \
  -p 127.0.0.1:18796:18795 \
  -e ENABLE_EXTERNAL_CLAW=true \
  -e OPENCLAW_HOST=host.docker.internal \
  -e OPENCLAW_PORT=18789 \
  boluobobo/ai-court:latest
```

详见：`references/docker-config.md`

## 链接

- GitHub (Skill): https://github.com/wanikua/ai-court-skill
- GitHub (Docker): https://github.com/wanikua/danghuangshang

