Privacy-respecting web search using your local SearXNG instance.
This skill requires a running SearXNG instance.
If you don't have SearXNG set up yet:
-
Docker (easiest):
docker run -d -p 8080:8080 searxng/searxng
-
Manual installation: Follow the official guide
-
Public instances: Use any public SearXNG instance (less private)
- 🔒 Privacy-focused: Uses your local SearXNG instance
- 🌐 Multi-engine: Aggregates results from multiple search engines
- 📰 Multiple categories: Web, images, news, videos, and more
- 🎨 Rich output: Beautiful table formatting with result snippets
- 🚀 Fast JSON mode: Programmatic access for scripts and integrations
Search "python asyncio tutorial"
Search "climate change" with 20 results
Search "cute cats" in images category
Search "breaking news" in news category from last day
You must configure your SearXNG instance URL before using this skill.
Configure the SEARXNG_URL environment variable in your Clawdbot config:
{
"env": {
"SEARXNG_URL": "https://your-searxng-instance.com"
}
}Or export it in your shell:
export SEARXNG_URL=https://your-searxng-instance.comYou can also use the skill directly from the command line:
# Basic search
uv run ~/clawd/skills/searxng/scripts/searxng.py search "query"
# More results
uv run ~/clawd/skills/searxng/scripts/searxng.py search "query" -n 20
# Category search
uv run ~/clawd/skills/searxng/scripts/searxng.py search "query" --category images
# JSON output (for scripts)
uv run ~/clawd/skills/searxng/scripts/searxng.py search "query" --format json
# Time-filtered news
uv run ~/clawd/skills/searxng/scripts/searxng.py search "latest AI news" --category news --time-range daygeneral- General web search (default)images- Image searchvideos- Video searchnews- News articlesmap- Maps and locationsmusic- Music and audiofiles- File downloadsit- IT and programmingscience- Scientific papers and resources
Filter results by recency:
day- Last 24 hoursweek- Last 7 daysmonth- Last 30 daysyear- Last year
uv run ~/clawd/skills/searxng/scripts/searxng.py search "rust programming language"uv run ~/clawd/skills/searxng/scripts/searxng.py search "sunset photography" --category images -n 10uv run ~/clawd/skills/searxng/scripts/searxng.py search "tech news" --category news --time-range dayuv run ~/clawd/skills/searxng/scripts/searxng.py search "python tips" --format json | jq '.results[0]'The skill is configured to work with self-signed certificates (common for local SearXNG instances). If you need strict SSL verification, edit the script and change verify=False to verify=True in the httpx request.
If you get connection errors:
-
Check your SearXNG instance is running:
curl -k $SEARXNG_URL # Or: curl -k http://localhost:8080 (default)
-
Verify the URL in your config
-
Check SSL certificate issues
If searches return no results:
- Check your SearXNG instance configuration
- Ensure search engines are enabled in SearXNG settings
- Try different search categories
- No tracking: All searches go through your local instance
- No data collection: Results are aggregated locally
- Engine diversity: Combines results from multiple search providers
- Full control: You manage the SearXNG instance
SearXNG is a free, open-source metasearch engine that respects your privacy. It aggregates results from multiple search engines while not storing your search data.
Learn more: https://docs.searxng.org/
This skill is part of the Clawdbot ecosystem and follows the same license terms.