Alpha release — we'd love your feedback

Providers

Pear is BYOK (Bring Your Own Key). You provide an API key from your preferred provider. Your code context is sent directly from your machine to the provider — pear never stores your code.

ProviderDefault ModelEnv Variable
Anthropicclaude-sonnet-4-20250514ANTHROPIC_API_KEY
OpenAIgpt-4oOPENAI_API_KEY
OpenRouteranthropic/claude-sonnet-4-20250514OPENROUTER_API_KEY

Anthropic

  1. Go to console.anthropic.com/settings/keys
  2. Create a new API key
  3. Run pear init and select Anthropic, then paste your key

Or set the ANTHROPIC_API_KEY environment variable and pear will detect it automatically.

OpenAI

  1. Go to platform.openai.com/api-keys
  2. Create a new secret key
  3. Run pear init and select OpenAI, then paste your key

Or set the OPENAI_API_KEY environment variable.

OpenRouter

  1. Go to openrouter.ai/keys
  2. Create a new API key
  3. Run pear init and select OpenRouter, then paste your key

OpenRouter gives you access to hundreds of models from multiple providers through a single API key. Change your model anytime in ~/.pear/config.toml.