web_search: add searxng provider

This commit is contained in:
He-Xun committed 2026-01-30 15:33:37 +08:00
1 parent 613724c26e
commit 8d4270bcd6
12 files changed
+453 -40

No files matched your search

+8 -4
View File
@@ -1319,10 +1319,13 @@ The Gateway watches the config and supports hot‑reload:
### How do I enable web search and web fetch
`web_fetch` works without an API key. `web_search` requires a Brave Search API
key. **Recommended:** run `openclaw configure --section web` to store it in
`tools.web.search.apiKey`. Environment alternative: set `BRAVE_API_KEY` for the
Gateway process.
`web_fetch` works without an API key. `web_search` requires provider setup:
- Brave: `tools.web.search.apiKey` or `BRAVE_API_KEY`
- Perplexity: `tools.web.search.perplexity.apiKey` or `PERPLEXITY_API_KEY` / `OPENROUTER_API_KEY`
- SearXNG: `tools.web.search.searxng.baseUrl` or `SEARXNG_BASE_URL`
**Recommended:** run `openclaw configure --section web` to set these in config.
```json5
{
@@ -1330,6 +1333,7 @@ Gateway process.
web: {
search: {
enabled: true,
provider: "brave",
apiKey: "BRAVE_API_KEY_HERE",
maxResults: 5
},