This guide covers everything you need to install and configure Botpress for local development.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/botpress/botpress/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
Before installing Botpress, ensure your system meets these requirements:Required software
Node.js 18.0.0 or higher
Botpress requires Node.js version 18.0.0 or higher.Check your current version:If you need to install or upgrade Node.js:
Official installer
Download from nodejs.org
Package manager
You’ll need one of these package managers:
- npm (comes with Node.js)
- yarn (install via
npm install -g yarn) - pnpm (install via
npm install -g pnpm)
All examples in this documentation work with any package manager. Choose the one you prefer.
Botpress Cloud account
Create a free account at app.botpress.cloud to:
- Deploy your bots and integrations
- Access the Hub and available integrations
- Use the visual Studio editor
- Manage workspaces and collaborators
Optional tools
These tools enhance your development experience:- Git - Version control for your bot projects
- TypeScript - Already included as a dependency, but useful for editor support
- VS Code - Recommended editor with excellent TypeScript support
Install the Botpress CLI
The Botpress CLI is the primary tool for building, testing, and deploying bots and integrations.Global installation
Install the CLI globally to use it anywhere on your system:Verify installation
Confirm the CLI is installed and check the version:The exact version number may differ based on the latest release.
Get help
View all available commands:Authenticate with Botpress Cloud
Generate a Personal Access Token
- Log in to Botpress Cloud
- Click your profile avatar in the top-right corner
- Select Personal Access Tokens
- Click Generate Token
- Give your token a descriptive name (e.g., “Development Machine”)
- Copy the token and save it securely
Log in via the CLI
Run the login command:You’ll be prompted for:After entering your token, select your workspace:
Using profiles
If you work with multiple Botpress workspaces, use profiles to switch between them:Install the Botpress SDK
When you create a new bot or integration withbp init, the SDK is automatically added as a dependency. However, you can also install it manually in existing projects.
Add to your project
SDK usage
The SDK provides TypeScript types and utilities for building bots and integrations:The SDK uses Zod for schema validation. Import
z from @botpress/sdk to define schemas.Local development setup
For contributors or advanced users who want to build Botpress from source.Clone the repository
Install dependencies
Botpress uses pnpm as its package manager:Build all packages
Build the CLI, SDK, and all packages:Run checks
Verify everything is working:- Type checking
- Linting
- Format checking
- Dependency validation
Use local CLI
Run the CLI directly from source:Windows-specific setup
Windows users need additional prerequisites:Install Visual C++ Redistributable
Download and install the Microsoft Visual C++ Redistributable for Visual Studio 2015-2022.This is required for native dependencies used by the CLI.
Use PowerShell or Windows Terminal
For the best experience, use:
- PowerShell (comes with Windows)
- Windows Terminal (recommended, available in Microsoft Store)
Environment variables
Some CLI commands support environment variables for configuration:| Variable | Description | Example |
|---|---|---|
BP_API_URL | Custom Botpress API URL | https://api.botpress.cloud |
BP_TOKEN | Personal Access Token | bp_pat_... |
BP_WORKDIR | Working directory for commands | ./my-bot |
Verify your setup
Confirm everything is installed correctly:Troubleshooting
Command 'bp' not found
Command 'bp' not found
The CLI wasn’t installed globally or isn’t in your PATH.Solution:
-
Reinstall globally:
-
Check your global npm bin directory:
- Ensure this directory is in your system PATH.
Node version error
Node version error
You’re running an unsupported Node.js version.Solution:Install Node.js 18.0.0 or higher:
Permission denied on macOS/Linux
Permission denied on macOS/Linux
You may need elevated permissions for global installs.Solution:Use a version manager like
nvm (recommended) or:pnpm install fails in local development
pnpm install fails in local development
This usually means you’re missing prerequisites.Solution:
- Ensure you have
gitinstalled - On Windows, install Visual C++ Redistributable
- Delete
node_modulesandpnpm-lock.yaml, then runpnpm installagain
Authentication keeps failing
Authentication keeps failing
Your token might be invalid or expired.Solution:
- Generate a new Personal Access Token in Botpress Cloud
- Run
bp loginagain - If you’re using a custom API URL, verify it’s correct:
Next steps
Quickstart guide
Build your first bot in under 5 minutes
CLI reference
Explore all available CLI commands and options
SDK reference
Learn about the Botpress SDK API
Build an integration
Create custom integrations for external services