Skip to content

Preparation

Before starting with onebots, make sure you have the following prerequisites ready.

System Requirements

  • Node.js: >= 22.0.0
  • Package Manager: pnpm (recommended), npm, or yarn
  • Operating System: Windows, macOS, or Linux

Installation

Install Node.js

Download and install Node.js from nodejs.org.

Verify installation:

bash
node --version  # Should be >= 22.0.0
npm --version
bash
npm install -g pnpm

Or using other methods:

bash
# Using Homebrew (macOS)
brew install pnpm

# Using curl
curl -fsSL https://get.pnpm.io/install.sh | sh -

Platform Account Preparation

Before using onebots, you need to prepare accounts for the platforms you want to use:

WeChat Official Account

QQ Official Bot

  • Register at QQ Bot Platform
  • Get AppID and AppSecret
  • Configure WebSocket or Webhook

Other Platforms

Next Steps