Skip to main content
This guide covers everything you need to install and configure Botpress for local development.

Prerequisites

Before installing Botpress, ensure your system meets these requirements:

Required software

1

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

Version manager (recommended)

Use nvm or fnm to manage multiple Node versions
Using a version manager like nvm makes it easy to switch between Node.js versions for different projects.
2

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.
3

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:
You should see output like:
The exact version number may differ based on the latest release.

Get help

View all available commands:
Get help for a specific command:

Authenticate with Botpress Cloud

1

Generate a Personal Access Token

  1. Log in to Botpress Cloud
  2. Click your profile avatar in the top-right corner
  3. Select Personal Access Tokens
  4. Click Generate Token
  5. Give your token a descriptive name (e.g., “Development Machine”)
  6. Copy the token and save it securely
Your Personal Access Token is shown only once. Store it in a password manager or secure location.
2

Log in via the CLI

Run the login command:
You’ll be prompted for:
After entering your token, select your workspace:
The CLI caches your credentials in ~/.botpress/, so you only need to log in once per machine.
3

Verify authentication

Test that you’re logged in correctly:
If authentication succeeded, you won’t see any login-related errors.

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 with bp 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:
You must use pnpm for local development. The repository uses pnpm workspaces and won’t work with npm or yarn.

Build all packages

Build the CLI, SDK, and all packages:

Run checks

Verify everything is working:
This runs:
  • Type checking
  • Linting
  • Format checking
  • Dependency validation

Use local CLI

Run the CLI directly from source:
Or link it globally:

Windows-specific setup

Windows users need additional prerequisites:
1

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.
2

Use PowerShell or Windows Terminal

For the best experience, use:
  • PowerShell (comes with Windows)
  • Windows Terminal (recommended, available in Microsoft Store)
Avoid using the legacy Command Prompt (cmd.exe).
3

Configure execution policy (if needed)

If you encounter script execution errors, run PowerShell as Administrator and execute:

Environment variables

Some CLI commands support environment variables for configuration:
Set these in a .env file in your project root, and the CLI will automatically load them.

Verify your setup

Confirm everything is installed correctly:
1

Check versions

2

Test authentication

You should be able to select a workspace without errors.
3

Create a test project

If this succeeds, your installation is complete!

Troubleshooting

The CLI wasn’t installed globally or isn’t in your PATH.Solution:
  1. Reinstall globally:
  2. Check your global npm bin directory:
  3. Ensure this directory is in your system PATH.
You’re running an unsupported Node.js version.Solution:Install Node.js 18.0.0 or higher:
You may need elevated permissions for global installs.Solution:Use a version manager like nvm (recommended) or:
Using sudo can cause permission issues. Use nvm instead when possible.
This usually means you’re missing prerequisites.Solution:
  1. Ensure you have git installed
  2. On Windows, install Visual C++ Redistributable
  3. Delete node_modules and pnpm-lock.yaml, then run pnpm install again
Your token might be invalid or expired.Solution:
  1. Generate a new Personal Access Token in Botpress Cloud
  2. Run bp login again
  3. 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