Installation

Start by installing the Bonsol CLI which provides you with all the necessary tools for starting a new project. The Bonsol CLI is compatible with both Linux and macOS operating systems.

Interested in contributing? Head over to the Contributing section to learn more.

Requirements

Installation

Build with Bonsol by installing the following components:

  • RISC Zero zkVM – Write secure off-chain logic.

  • Bonsol CLI – Initialize, build, and deploy your off-chain programs.

You can install these tools using the provided install script or opt for manual installation.

Install Script

# Install Bonsol CLI and Risc0 toolchain
curl --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/bonsol-collective/bonsol/refs/heads/main/bin/install.sh | sh

Make sure the script completed without errors. Otherwise use the manual install method below.

Manual Install

Install the RISC Zero version management library and CLI using rzup. Bonsol currently supports version 1.2.1.

Then install the Bonsol CLI depending on your architecture:

Linux

Install the Bonsol CLI on Linux without CUDA support:

Linux + CUDA

Install the Bonsol CLI on Linux with CUDA support:

macOS

Install the Bonsol CLI on macOS:

Verify Installation

Verify the installation by running:

You will see the following:

See here for documentation on these Bonsol CLI commands.

Uninstall

If you want to uninstall Bonsol, simply run:

Verify the uninstall using:

You will see the following:

Notes

Docker Setup for WSL

For Bonsol development in WSL, we strongly recommend installing Docker directly in your WSL environment rather than using Docker Desktop for Windows.

Docker in WSL

1. Install Prerequisites

2. Add Docker's Official GPG Key

3. Add Docker Repository

4. Install Docker

5. Configure User Permissions

6. Verify Installation

Notes

  • Docker daemon starts automatically with WSL

  • No Docker Desktop required

  • GUI features available through Docker Desktop later if needed

  • Compatible with all Bonsol development requirements

Troubleshooting

If you encounter permission issues after installation:

  1. Ensure you've logged out and back in after adding your user to the docker group

  2. Or run newgrp docker to apply changes in current session

If Docker daemon isn't starting:

FlatBuffers v24.3.25

FlatBuffers is a cross-platform serialization library. Build it from source on Linux or macOS.

Linux

Ensure you have the build requirements.

Build and install FlatBuffers v24.3.25:

macOS

Ensure you have the build requirements.

Build and install FlatBuffers v24.3.25:

Last updated