Appearance
OpenClaw 支持 Perplexity Search API 作为 web_search provider,可返回结构化搜索结果。本页为配置摘要,原生 API 需 pplx- 密钥,Sonar/OpenRouter 兼容需 sk-or- 密钥。工具参数包括 country、language、freshness、domain_filter 等,域过滤最多 20 项且不可混用允许/拒绝列表。完整配置与示例请参见 Perplexity search 文档。
Perplexity Search API 配置
本页面已迁移至 Perplexity search。请访问该页面获取完整的配置示例、工具参数、Key 存放说明以及 OpenRouter 兼容模式细节。
相关链接
常见问题
OpenClaw 怎么配置 Perplexity Search API?
请查看 Perplexity search 页面,其中包含原生 API 与 Sonar/OpenRouter 兼容模式的配置示例。
Perplexity Search 支持哪些搜索参数?
完整参数(query、count、country、language、freshness、date_after、date_before、domain_filter、max_tokens 等)见 Perplexity search 页面的工具参数表格。注意 Sonar 兼容模式下仅支持 query 和 freshness。
环境变量 PERPLEXITY_API_KEY 设置在哪里生效?
在 Gateway 进程环境中设置,或放入 ~/.openclaw/.env。若配置了 Perplexity provider 但 Key 未正确解析,启动时会快速失败。详情见 环境变量说明。