Skip to main content

Setup

  1. Get an API key from console.anthropic.com.
  2. Set the environment variable:
export ANTHROPIC_API_KEY="sk-ant-..."

Configuration

agents:
  root:
    model: anthropic/claude-sonnet-4-0

Available models

ModelBest for
claude-sonnet-4-5Most capable, extended thinking
claude-sonnet-4-0Strong coding, balanced performance

Thinking budget

Anthropic uses an integer token budget. The value must be between 1024 and 32768 and must be less than max_tokens. Defaults to 8192 with interleaved thinking enabled.
models:
  claude-deep:
    provider: anthropic
    model: claude-sonnet-4-5
    max_tokens: 64000
    thinking_budget: 16384  # must be < max_tokens
Thinking budget values below 1024 or greater than or equal to max_tokens are ignored and a warning is logged.
To disable thinking:
models:
  claude:
    provider: anthropic
    model: claude-sonnet-4-5
    thinking_budget: 0

Interleaved thinking

Interleaved thinking allows the model to call tools during its reasoning process, enabling tighter integration between thinking and action. It is enabled by default.
models:
  claude:
    provider: anthropic
    model: claude-sonnet-4-5
    provider_opts:
      interleaved_thinking: false  # disable if needed

Build docs developers (and LLMs) love