Configuration

All pear configuration lives in ~/.pear/. Nothing is stored in your project repository except optional git hooks.

Directory structure

~/.pear/
├── config.toml          # Main configuration
├── learning.json        # Learning progress and concept tracking
├── codebases/<slug>.toml # Per-repo overrides
└── logs/<timestamp>.log  # Session logs

config.toml

Created by pear init. You can also edit it directly.

name = "Mitch"
languages = "go, typescript"
level = "intermediate"

[provider]
active = "anthropic"

[provider.anthropic]
api_key = "sk-ant-..."
model = "claude-sonnet-4-20250514"

[provider.openai]
api_key = ""
model = "gpt-4o"

[provider.openrouter]
api_key = ""
model = "anthropic/claude-sonnet-4-20250514"

[watch]
# Pause detection threshold in seconds
pause_seconds = 30

Settings reference

KeyTypeDescription
namestringYour display name
languagesstringComma-separated languages you use
levelstringExperience level: beginner, intermediate, advanced
provider.activestringActive provider: anthropic, openai, or openrouter
provider.<name>.api_keystringAPI key for the provider
provider.<name>.modelstringModel identifier
watch.pause_secondsintSeconds of inactivity before triggering a review