Installation

Pick your install method. Everything below is demo content you can adapt for the real ByteBots distribution.

Node runtime

Recommended: Node 20+ for modern fetch, streams, and performance.

Production

Use environment variables for secrets. Never commit tokens or signing keys.

Option A — CLI (recommended)

terminal
$ npm i -g bytebots-cli
$ bytebots init my-app
$ bytebots dev

Option B — Library only

terminal
$ npm i bytebots

Environment variables

Example .env for Discord + webhooks:

.env
DISCORD_TOKEN=********
WEBHOOK_SIGNING_SECRET=bb_live_********
BYTEBOTS_LOG_LEVEL=info

Local dev for this docs site

The header/footer use fetch. Use a tiny local server when previewing:

terminal
$ cd bytebots_site
$ python -m http.server 8080
# open http://localhost:8080

Next: API Overview.