Preparation
System requirements
- Node.js: >= 24
- pnpm: >= 10.34.5; the repository pins and recommends 10.34.5
- Operating system: Windows, macOS, or Linux
OneBots uses runtime features provided by Node.js 24. The CLI checks the version before loading plugins or platform SDKs. An older runtime exits with the required version instead of failing later with a low-level module error.
Install Node.js
Install Node.js 24 or newer from nodejs.org or through your version manager. The repository includes .node-version and .nvmrc; run fnm use or nvm use in a source checkout to select the recommended version.
Verify the installation:
node --version # Must be v24 or newer
npm --versionInstall pnpm
Use the version pinned by the repository for source development:
npm install --global pnpm@10.34.5
pnpm --versionpnpm is not required when you only install and run the published OneBots package globally with npm. See the Quick Start. After meeting the runtime requirement, run onebots doctor for configuration, plugin, permission, and service diagnostics if deployment checks still fail.
When installing the ICQQ adapter from source, store the GitHub Packages token in the user-level npm configuration. pnpm 10 does not expand authentication variables from a repository .npmrc:
pnpm config set --global '//npm.pkg.github.com/:_authToken' '${NODE_AUTH_TOKEN}'The product's CLI, TUI, and Web installation flow creates a temporary authentication file for each private dependency download and removes it afterward, so users do not need to edit the container or workspace .npmrc.
Prepare platform accounts
Before connecting a real platform, create an application in its developer console and obtain the required credentials. Use the Mock adapter for the first installation check because it does not connect to an external platform. After the gateway is healthy, follow the Platform Configuration to add a real account.