一个基于 Rust 的快速网页搜索 API,聚合 DuckDuckGo、Yahoo 和 Brave Search 的搜索结果,提供 SearXNG 兼容的接口。
https://github.com/netlops/SoSearch
/usr/local/bin)bash <skill_dir>/scripts/install.sh
安装程序将执行以下操作:
/usr/local/bin/SoSearch/usr/local/bin/sosearch-start.shnohup /usr/local/bin/sosearch-start.sh > /tmp/sosearch.log 2>&1 &
curl -s http://127.0.0.1:3000/search?q=test
正常情况下会返回 JSON 格式的搜索结果。
安装完成后,启用 OpenClaw 中的 SearXNG 插件:
openclaw config set plugins.entries.searxng.enabled true
openclaw config set plugins.entries.searxng.config.webSearch.baseUrl "http://127.0.0.1:3000"
然后重启网关,web_search 工具将使用 SoSearch 作为后端。
请使用端口 3000,不要使用 10080。Node.js 的 undici/fetch 会阻止某些"不良端口"如 10080。
如需在防火墙后运行,请在启动 SoSearch 前设置代理环境变量:
export HTTP_PROXY=http://your-proxy:port
export HTTPS_PROXY=http://your-proxy:port
检查 SoSearch 是否正在运行:
pgrep -f SoSearch
确认端口为 3000(不是 10080)
检查代理连接:
curl -s -x http://127.0.0.1:7897 https://httpbin.org/ip
重启 SoSearch 以清除失效的连接:
pkill SoSearch
nohup /usr/local/bin/sosearch-start.sh > /tmp/sosearch.log 2>&1 &
tail -f /tmp/sosearch.log
GET http://127.0.0.1:3000/search?q=关键词GET http://127.0.0.1:3000/health