Perplexity Sonar
Clawdia can use Perplexity Sonar for theweb_search tool. You can connect
through Perplexity’s direct API or via OpenRouter.
API options
Perplexity (direct)
- Base URL: https://api.perplexity.ai
- Environment variable:
PERPLEXITY_API_KEY
OpenRouter (alternative)
- Base URL: https://openrouter.ai/api/v1
- Environment variable:
OPENROUTER_API_KEY - Supports prepaid/crypto credits.
Config example
Switching from Brave
PERPLEXITY_API_KEY and OPENROUTER_API_KEY are set, set
tools.web.search.perplexity.baseUrl (or tools.web.search.perplexity.apiKey)
to disambiguate.
If no base URL is set, Clawdia chooses a default based on the API key source:
PERPLEXITY_API_KEYorpplx-...→ direct Perplexity (https://api.perplexity.ai)OPENROUTER_API_KEYorsk-or-...→ OpenRouter (https://openrouter.ai/api/v1)- Unknown key formats → OpenRouter (safe fallback)
Models
perplexity/sonar— fast Q&A with web searchperplexity/sonar-pro(default) — multi-step reasoning + web searchperplexity/sonar-reasoning-pro— deep research
