searxng
Privacy-respecting metasearch using your local SearXNG instance. Search the web, images, news, and more without external API dependencies.
SearXNG Search Skill for Clawdbot
Privacy-respecting web search using your local SearXNG instance.
Prerequisites
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)
Features
- 🔒 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
Quick Start
Basic Search
Search "python asyncio tutorial"
Advanced Usage
Search "climate change" with 20 results
Search "cute cats" in images category
Search "breaking news" in news category from last day
Configuration
You must configure your SearXNG instance URL before using this skill.
Set Your SearXNG Instance
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.com
Direct CLI Usage
You 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 day
Available Categories
general- 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
Time Ranges
Filter results by recency:
day- Last 24 hoursweek- Last 7 daysmonth- Last 30 daysyear- Last year
Examples
Web Search
uv run ~/clawd/skills/searxng/scripts/searxng.py search "rust programming language"
Image Search
uv run ~/clawd/skills/searxng/scripts/searxng.py search "sunset photography" --category images -n 10
Recent News
uv run ~/clawd/skills/searxng/scripts/searxng.py search "tech news" --category news --time-range day
JSON Output for Scripts
uv run ~/clawd/skills/searxng/scripts/searxng.py search "python tips" --format json | jq '.results[0]'
SSL/TLS Notes
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.
Troubleshooting
Connection Issues
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
No Results
If searches return no results:
- Check your SearXNG instance configuration
- Ensure search engines are enabled in SearXNG settings
- Try different search categories
Privacy Benefits
- 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
About SearXNG
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/
License
This skill is part of the Clawdbot ecosystem and follows the same license terms.