CLI Setup
Using Bonsai CLI (Recommended)
The easiest way to start Claude Code with Bonsai is with the Bonsai CLI:/model @model-alias
to set the default model.
Environment Variables
Alternatively, you can export environment variables before you runclaude
:
Global Configuration
Set up Claude Code CLI to use Bonsai globally:Project-Specific Configuration
If you only want to use Bonsai with Claude Code in a particular project:VS Code Extension
You can configure Claude Code in VS Code to use Bonsai in a couple of ways:- Global Configuration - applies to all projects
- Project-Specific Configuration - applies to a single project