GitBot.WTF

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

KeyDefaultDescription
api_keyYour Anthropic API key
modelclaude-sonnet-4-20250514Claude model to use
max_tokens4096Maximum response length
api_base_urlhttps://api.anthropic.comAPI endpoint URL

API Key Resolution

GitBot looks for your API key in this order:

  1. ANTHROPIC_API_KEY environment variable
  2. api_key in config file
  3. Interactive prompt (offered to save to config)

Example Config File

api_key = "sk-ant-..."
model = "claude-sonnet-4-20250514"
max_tokens = 4096

On this page