Skip to main content

Installation

You can install the Bonsai CLI with npm:
npm install -g @bonsai-ai/cli

Quick Start

Once you’ve installed the Bonsai CLI, you can log in to your Bonsai account with:
bonsai login
After you’ve logged in, you can start Claude Code with Bonsai with:
bonsai start claude
When you start a session, you’ll automatically be assigned a frontier model at random. Model names are hidden in stealth mode to evaluate performance without bias.

Log Out

If you need to log out of your Bonsai account, you can run:
bonsai logout