Skip to content

Installation Detailed

Complete installation guide for ChatAI Plugin.

Prerequisites

DependencyVersionCheck Command
Node.js≥ 18.0node -v
pnpm≥ 8.0pnpm -v
Yunzai-BotV3-
Build ToolsLatestSee below

Step 1: Clone Repository

bash
cd Yunzai-Bot
git clone https://github.com/XxxXTeam/chatai-plugin.git ./plugins/chatai-plugin
bash
cd Yunzai-Bot
git clone git@github.com:XxxXTeam/chatai-plugin.git ./plugins/chatai-plugin

Step 2: Install Dependencies

bash
pnpm install

Step 3: Build Native Module

bash
pnpm rebuild better-sqlite3

Build Tools Required

Install build tools if rebuild fails:

bash
npm install -g windows-build-tools
bash
sudo apt install build-essential python3
bash
xcode-select --install

Step 4: Start

bash
pnpm start

Verify Installation

Send to bot:

txt
#ai状态

Success

If you see plugin version and status info, installation is complete!

Directory Structure

plugins/chatai-plugin/
├── apps/           # Yunzai plugin modules
├── config/         # Configuration
├── data/           # Runtime data
├── src/            # Source code
│   ├── core/       # Core layer
│   ├── mcp/        # MCP system
│   └── services/   # Service layer
├── frontend/       # Web panel source
└── resources/      # Static resources

Next Steps

Released under the MIT License