agentleFS
wu1chenghuiwu1chenghui/hermes-search-survival-guide/skills/searxng-config/SKILL.md

searxng-config

Skill0 starsChanged 5 months agoMITView on GitHub

Configure SearXNG for self-hosted instances. Engine reliability table, minimal working config, and engine-by-engine diagnostics. Standalone — does not require Hermes.

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 1 is distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    After extensive testing on a self-hosted SearXNG instance (2026-07):

    line 20
  2. Very specific:

    bing timeout: Default request_timeout: 3.0 is too low for bing.

    line 98
  3. Very specific:

    secret_key in settings.yml: If using use_default_settings: true, any secret_key in your local settings.yml is ignored — SearXNG uses the …

    line 100

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

SearXNG Configuration Guide

When to load

  • Setting up a new SearXNG instance
  • web_search returns empty results from SearXNG
  • Need to know which engines actually work on self-hosted instances

Engine Reliability Table

After extensive testing on a self-hosted SearXNG instance (2026-07):

EngineStatusResultsAction
bing✅~10Enable. Needs timeout: 15.0.
mojeek✅~9-10Enable. Independent index, rarely blocked.
brave❌0Disable. Suspended: too many requests. Permanent ban on self-hosted.
duckduckgo❌0Disable. CAPTCHA on all self-hosted instances.
startpage❌0Disable. CAPTCHA on all self-hosted instances.
presearch❌0Disable. Access denied.
qwant❌0Disable. Access denied.
google🔒0Requires Google Custom Search JSON API key (paid).
wikipedia✅variesEnable. Never CAPTCHA'd.
arxiv✅variesEnable. Never CAPTCHA'd.
github✅variesEnable. Never CAPTCHA'd.
stackoverflow✅variesEnable. Never CAPTCHA'd.
docker hub✅variesEnable. Never CAPTCHA'd.
wikidata✅variesEnable. Never CAPTCHA'd.
bing images✅variesEnable.
bing news✅variesEnable.

Key insight: brave, ddg, startpage, presearch, and qwant are universally blocked on self-hosted SearXNG. This is a business decision by these search providers, not a configuration bug. Do not waste time debugging them — disable and move on.

Minimal Working Config

Copy templates/settings.yml to docker-data/searxng/config/settings.yml.

It enables only: bing, mojeek, wikipedia, arxiv, github, docker hub, stackoverflow, wikidata, bing images, bing news.

Engine Diagnose Commands

Check which engines are responding

curl -s --max-time 30 "http://searxng-core:8080/search?q=test&format=json" | python3 -c "
import sys,json
d=json.load(sys.stdin)
print(f'Total results: {len(d.get(\"results\",[]))}')
print(f'Unresponsive engines: {d.get(\"unresponsive_engines\",[])}')
engines={}
for r in d.get('results',[]):
    e=r.get('engine','?')
    engines[e]=engines.get(e,0)+1
for e,c in sorted(engines.items()): print(f'  {e}: {c}')
"

From host (outside Docker):

curl -s "http://localhost:8085/search?q=test&format=json" | python3 -c "..."

Test a single engine

curl -s --max-time 30 "http://searxng-core:8080/search?q=test&format=json&engines=mojeek" | python3 -c "
import sys,json
d=json.load(sys.stdin)
print(f'Results: {len(d.get(\"results\",[]))}')
print(f'Unresponsive: {d.get(\"unresponsive_engines\",[])}')
"

After editing settings.yml

docker compose restart searxng-core
# Then verify:
curl -s --max-time 30 "http://searxng-core:8080/search?q=test&format=json" | python3 -c "..."

Common Pitfalls

  1. JSON format disabled. SearXNG disables JSON output by default. Add json to search.formats in settings.yml.
  2. bing timeout. Default request_timeout: 3.0 is too low for bing. Set outgoing.request_timeout: 10.0 and per-engine timeout: 15.0.
  3. secret_key in settings.yml. If using use_default_settings: true, any secret_key in your local settings.yml is ignored — SearXNG uses the one from the base config. Either remove it or use the SEARXNG_SECRET env var.
  4. Engine not in engines list. use_default_settings: true pulls in all default engines. You must explicitly disabled: true the ones you don't want. Our minimal config uses use_default_settings: true + explicit disables.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.