Configuration
Customize GitBot settings
Configuration
GitBot stores configuration at ~/.config/gitbot/config.toml.
Managing Configuration
# Show all settings
gitbot config show
# Set a value
gitbot config set model claude-sonnet-4-20250514
# Get a value
gitbot config get model
# Set API key interactively
gitbot config set-api-key
Available Settings
| Key | Default | Description |
|---|---|---|
api_key | — | Your Anthropic API key |
model | claude-sonnet-4-20250514 | Claude model to use |
max_tokens | 4096 | Maximum response length |
api_base_url | https://api.anthropic.com | API endpoint URL |
API Key Resolution
GitBot looks for your API key in this order:
ANTHROPIC_API_KEYenvironment variableapi_keyin config file- Interactive prompt (offered to save to config)
Example Config File
api_key = "sk-ant-..."
model = "claude-sonnet-4-20250514"
max_tokens = 4096