Skip to content

feat: add SearXNG self-hosted search backend - #23618

Closed
kjames2001 wants to merge 1 commit into
NousResearch:mainfrom
kjames2001:feat/searxng-backend
Closed

feat: add SearXNG self-hosted search backend#23618
kjames2001 wants to merge 1 commit into
NousResearch:mainfrom
kjames2001:feat/searxng-backend

Conversation

@kjames2001

Copy link
Copy Markdown
Contributor

Adds a self-hosted SearXNG backend for web_search and web_extract tools, filling the gap for zero-cost self-hosted search.

  • Config-driven only (no auto-detect) — set backend: searxng in config or SEARXNG_URL env var
  • Uses SearXNG JSON API (/search?format=json) for search
  • HTTP extract for full-text page content
  • Graceful fallback to firecrawl (default unchanged) for backward compatibility
  • Only 1 file changed: tools/web_tools.py (+120/-1)

Closes: #19607

- SearXNG JSON API for web_search and web_extract
- Config-driven only (no auto-detect): backend: searxng or SEARXNG_URL env var
- Graceful fallback to firecrawl for backward compatibility
- No hardcoded search engine list
@alt-glitch alt-glitch added type/feature New feature or request comp/tools Tool registry, model_tools, toolsets tool/web Web search and extraction P3 Low — cosmetic, nice to have duplicate This issue or pull request already exists labels May 11, 2026
@alt-glitch

Copy link
Copy Markdown
Collaborator

Duplicate of #20823 (merged). SearXNG was already added as a native search backend. The merged PR also includes extract/crawl guards. This PR re-implements what already exists on main.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp/tools Tool registry, model_tools, toolsets duplicate This issue or pull request already exists P3 Low — cosmetic, nice to have tool/web Web search and extraction type/feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants