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 logsconfig.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 = 30Settings reference
| Key | Type | Description |
|---|---|---|
name | string | Your display name |
languages | string | Comma-separated languages you use |
level | string | Experience level: beginner, intermediate, advanced |
provider.active | string | Active provider: anthropic, openai, or openrouter |
provider.<name>.api_key | string | API key for the provider |
provider.<name>.model | string | Model identifier |
watch.pause_seconds | int | Seconds of inactivity before triggering a review |