Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Configuration Overview

clawzero uses TOML configuration files with a layered loading strategy.

Config file locations

FileScopePriority
~/.config/clawzero/config.tomlGlobal (user-wide)Lower
clawzero.tomlProject-local (current directory)Higher

Project-local settings override global settings.

Defaults

[defaults]
model = "anthropic/claude-sonnet-4-20250514"
max_tokens = 8192
max_turns = 25
context_limit = 200000
FieldDefaultDescription
modelanthropic/claude-sonnet-4-20250514Default model in provider/model format
max_tokens8192Maximum tokens per response
max_turns25Maximum agent loop turns
context_limit200000Token limit for context window management

The model can also be overridden via the CLAWZERO_MODEL environment variable or the --model CLI flag.

Full config example

[defaults]
model = "anthropic/claude-sonnet-4-20250514"
max_tokens = 8192
max_turns = 25
context_limit = 200000

[providers.anthropic]
protocol = "anthropic"
base_url = "https://api.anthropic.com"
api_key_env = "ANTHROPIC_API_KEY"

[providers.openai]
protocol = "openai"
base_url = "https://api.openai.com"
api_key_env = "OPENAI_API_KEY"

[gateway.slack]
app_token_env = "SLACK_APP_TOKEN"
bot_token_env = "SLACK_BOT_TOKEN"

[gateway.discord]
bot_token_env = "DISCORD_BOT_TOKEN"

[gateway.webui]
host = "127.0.0.1"
port = 3000

See Providers for all provider configurations and Environment Variables for available env vars.