Caricamento in corso...
Caricamento in corso...
Last synced: Today, 22:00
Technical reference for the OpenClaw framework. Real-time synchronization with the official documentation engine.
Use this file to discover all available pages before exploring further.
OpenClaw supports Perplexity Search API as a
web_searchtitleurlsnippetFor compatibility, OpenClaw also supports legacy Perplexity Sonar/OpenRouter setups. If you use
OPENROUTER_API_KEYsk-or-...plugins.entries.perplexity.config.webSearch.apiKeyplugins.entries.perplexity.config.webSearch.baseUrlmodelPERPLEXITY_API_KEYIf you were already using OpenRouter for Perplexity Sonar, keep
provider: "perplexity"OPENROUTER_API_KEYsk-or-...plugins.entries.perplexity.config.webSearch.apiKeyOptional compatibility controls:
plugins.entries.perplexity.config.webSearch.baseUrlplugins.entries.perplexity.config.webSearch.modeljson5{ plugins: { entries: { perplexity: { config: { webSearch: { apiKey: "pplx-...", }, }, }, }, }, tools: { web: { search: { provider: "perplexity", }, }, }, }
json5{ plugins: { entries: { perplexity: { config: { webSearch: { apiKey: "<openrouter-api-key>", baseUrl: "https://openrouter.ai/api/v1", model: "perplexity/sonar-pro", }, }, }, }, }, tools: { web: { search: { provider: "perplexity", }, }, }, }
Via config: run
openclaw configure --section web~/.openclaw/openclaw.jsonplugins.entries.perplexity.config.webSearch.apiKeyVia environment: set
PERPLEXITY_API_KEYOPENROUTER_API_KEY~/.openclaw/.envIf
provider: "perplexity"These parameters apply to the native Perplexity Search API path.
For the legacy Sonar/OpenRouter compatibility path:
querycountfreshnesscountcountrylanguagedate_afterdate_beforedomain_filtermax_tokensmax_tokens_per_pageExamples:
javascript// Country and language-specific search await web_search({ query: "renewable energy", country: "DE", language: "de", }); // Recent results (past week) await web_search({ query: "AI news", freshness: "week", }); // Date range search await web_search({ query: "AI developments", date_after: "2024-01-01", date_before: "2024-06-30", }); // Domain filtering (allowlist) await web_search({ query: "climate research", domain_filter: ["nature.com", "science.org", ".edu"], }); // Domain filtering (denylist - prefix with -) await web_search({ query: "product reviews", domain_filter: ["-reddit.com", "-pinterest.com"], }); // More content extraction await web_search({ query: "detailed AI research", max_tokens: 50000, max_tokens_per_page: 4096, });
-["-reddit.com"]titleurlsnippetplugins.entries.perplexity.config.webSearch.baseUrlmodelcacheTtlMinutes© 2024 TaskFlow Mirror
Powered by TaskFlow Sync Engine