home / skills / openclaw / skills / local-websearch-1
This skill enables private web searching via a self-hosted SearXNG instance, aggregating engines and returning transparent results.
npx playbooks add skill openclaw/skills --skill local-websearch-1Review the files below or copy the command above to add this skill to your agents.
---
name: searxng
description: Search the web using a self-hosted SearXNG metasearch engine. Aggregates Google, Brave, DuckDuckGo, and more without API keys.
homepage: https://docs.searxng.org
command-dispatch: cli
command: python3 {baseDir}/scripts/searxng_search.py
metadata: {"moltbot":{"emoji":"🔍","requires":{"bins":["python3"],"env":["SEARXNG_URL"]}}}
---
# SearXNG Web Search
Privacy-respecting metasearch via your self-hosted SearXNG instance.
## When to use (trigger phrases)
Use this skill when the user asks:
- "search the web for..."
- "look up..." / "find information about..."
- "what is..." (when current info needed)
- "research..." / "search for..."
- "google..." (redirect to privacy-respecting search)
## Quick start
```bash
python3 {baseDir}/scripts/searxng_search.py "your query"
python3 {baseDir}/scripts/searxng_search.py "query" --count 10
python3 {baseDir}/scripts/searxng_search.py "query" --lang de
```
## Setup
Set `SEARXNG_URL` environment variable:
```bash
export SEARXNG_URL="http://your-searxng-host:8888"
```
## Flags
| Flag | Default | Description |
|------|---------|-------------|
| `-n`, `--count` | 5 | Results to return (1-20) |
| `-l`, `--lang` | auto | Language code (en, de, fr, es, etc.) |
## Output
Returns JSON:
```json
{
"query": "search terms",
"count": 5,
"results": [
{"title": "...", "url": "...", "description": "...", "engines": ["google", "brave"], "score": 1.5}
]
}
```
## Notes
- No API keys needed—SearXNG aggregates upstream engines
- Results include source engines for transparency
- Scores indicate relevance (higher = better)
- For news, add "news" to query or use `--lang` for regional results
This skill lets you search the web using a self-hosted SearXNG metasearch engine. It performs privacy-respecting searches by aggregating results from multiple upstream engines like Google, Brave, and DuckDuckGo without needing API keys. Results are returned as structured JSON including titles, URLs, descriptions, source engines, and relevance scores. You control the instance URL and result count via simple flags or environment variables.
The skill sends user queries to your configured SearXNG instance and parses the aggregated response into a consistent JSON payload. It reports which upstream engines contributed each result and a numerical relevance score for transparency. Language and result count can be adjusted via flags or environment variables to tailor regional or topical coverage. No third-party API keys are required because SearXNG handles upstream aggregation on your host.
Do I need an API key to use this skill?
No. The skill queries your self-hosted SearXNG instance, which aggregates upstream engines without requiring API keys.
How do I change language or number of results?
Use the --lang flag to set a language code and --count (or -n) to set how many results (1–20). You can also set defaults via environment variables.