mirror of
https://github.com/hanzoai/bot.git
synced 2026-10-30 17:24:26 +00:00
Comprehensive rename of all openclaw references to hanzo-bot equivalents: - Package: openclaw → @hanzo/bot - Binary: openclaw → hanzo-bot - Types: OpenClaw* → Bot* - Env vars: OPENCLAW_* → BOT_* - Android: ai.openclaw.android → ai.hanzo.bot.android - iOS/macOS: ai.openclaw.* → ai.hanzo.* - Swift modules: OpenClaw* → Bot* - Plugins: openclaw.plugin.json → bot.plugin.json - Paths: .openclaw/ → .hanzo/bot/ - URLs: github.com/openclaw → github.com/hanzoai
1.9 KiB
1.9 KiB
summary, read_when, title
| summary | read_when | title | ||
|---|---|---|---|---|
| Perplexity Sonar setup for web_search |
|
Perplexity Sonar |
Perplexity Sonar
Hanzo Bot can use Perplexity Sonar for the web_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
{
tools: {
web: {
search: {
provider: "perplexity",
perplexity: {
apiKey: "pplx-...",
baseUrl: "https://api.perplexity.ai",
model: "perplexity/sonar-pro",
},
},
},
},
}
Switching from Brave
{
tools: {
web: {
search: {
provider: "perplexity",
perplexity: {
apiKey: "pplx-...",
baseUrl: "https://api.perplexity.ai",
},
},
},
},
}
If both 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, Hanzo Bot 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
See Web tools for the full web_search configuration.