Loading...
Loading...
Search the web using a self-hosted SearXNG instance. Use when users ask to search with SearXNG, or when web search is needed and a SearXNG instance is configured. Supports categories, engines, time range, and language filters.
npx skill4agent add xyenon/agents searxng-search$XDG_CONFIG_HOME/agents/searxng.json~/.config/agents/searxng.json| Field | Type | Required | Description |
|---|---|---|---|
| | Yes | SearXNG instance URL (no trailing slash) |
| | No | Auth config object (see below) |
| | If auth | |
| | If bearer | Bearer token value (supports |
| | If basic | Basic auth username |
| | If basic | Basic auth password |
| | No | Key-value pairs of additional HTTP headers |
| | No | Default language code (e.g. |
| | No | Default categories (e.g. |
| | No | Default engines (e.g. |
| | No | Default safe search level: |
| | No | Default time range: |
| | No | Max results to display (default: |
| | No | Request timeout in seconds (default: |
{
"base_url": "https://searx.example.com",
"auth": {
"type": "bearer",
"token": "your-token-here"
},
"default_categories": ["general"],
"default_engines": ["google", "duckduckgo", "brave"],
"default_max_results": 10,
"headers": {
"X-Custom-Header": "value"
}
}{
"base_url": "https://searx.example.com",
"auth": {
"type": "basic",
"user": "admin",
"pass": "password"
},
"default_safesearch": 1
}python3 scripts/search.py [OPTIONS] <query>| Flag | Description |
|---|---|
| Comma-separated categories ( |
| Comma-separated engines ( |
| Language code ( |
| Page number (default: 1) |
| Time range: |
| Max results to show (overrides config default) |
| Safe search: |
# Basic search
python3 scripts/search.py "SearXNG documentation"
# Search news from the last day
python3 scripts/search.py -c news -t day "latest tech news"
# Search with specific engines, page 2
python3 scripts/search.py -e google,duckduckgo -p 2 "rust programming"
# Search in Chinese with more results
python3 scripts/search.py -l zh-CN -n 10 "开源搜索引擎"-l en-e baidu,sogou -l zh-CN-l en-e baidu,sogou -l zh-CNscripts/search.py-p-n