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
If you have a Claude subscription, you can link it to your Bonsai account with:
bonsai sub link
If you need to unlink your subscription, you can do so with:
bonsai sub unlink

Log Out

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