Configuration
Set your API key and understand where CodeBrew reads it from.
CodeBrew needs an ANTHROPIC_API_KEY to talk to Claude. There are two ways to provide it.
Option 1: environment variable
export ANTHROPIC_API_KEY=your_keyOption 2: a .env file in your working directory
Create a .env file in the directory you run codebrew from:
.env
ANTHROPIC_API_KEY=your_api_key_hereCodeBrew reads .env from the current working directory you run codebrew in, not from where the package is installed. If doctor can't find your key, check that you're running codebrew from the folder containing your .env file.
Node.js version
CodeBrew requires Node.js 18 or higher. Run codebrew doctor to check your current version against this requirement.
Default guardrails
| Setting | Default | Notes |
|---|---|---|
| Max turns | 25 | Stops runaway loops per session |
| Max budget | $1.00 USD | Spend cap per session |
| Effort | medium | Balances speed and depth |
