What is SearXNG?
SearXNG is a privacy-respecting metasearch engine: it queries 200+ search engines and blends the results, with no tracking, no profiling, and no ads. Use it as your own search homepage that never builds a profile on you, on your own domain.
It is also the standard web-search backend for AI: point this catalogue’s open-webui, litellm, dify, or flowise at it to give models live web results, keeping the queries on your own infrastructure instead of a third-party search API.
The image self-serves HTTP on port 5000 via SEARXNG_PORT - no separate proxy needed. Set a secret so sessions survive restarts; for a public, rate-limited instance, add a managed Valkey. Otherwise it is a single light container.
What you get
- Aggregates 200+ engines; no tracking, no ads, no profiling
- Great private search homepage on your own domain
- A clean web-search backend for RAG and AI agents
- Self-serves HTTP on port 5000 - no proxy needed
- Optional managed Valkey for rate-limiting public instances
- AGPL-3.0, light footprint
How it runs on Lyngbak
| Service | Role | Public |
|---|---|---|
searxng | metasearch engine (:5000) | yes (or private for RAG) |
config volume | settings.yml + cache | no |
Before you deploy
SEARXNG_SECRETset explicitly so sessions survive restarts
SEARXNG_BASE_URLthe https domain, with a trailing slash
Sizing and billing
512 MiB is comfortable for a personal or RAG instance. Add a managed Valkey and SEARXNG_LIMITER=true only if you expose it publicly and want rate-limiting.
A resource is a flat monthly price, with RAM and disk add-ons when the stack needs a little more than a tier, and room for your own apps on a larger one. On Usage Billing each service takes the smallest size that fits it and is billed by the second it runs, so a stopped stack stops costing CPU and RAM. Its 2.93 GiB of volumes cost $0.15 per GiB a month ($0.44/mo) for as long as they exist. One workspace can use both. See pricing
Compared with the managed service
| Service | Plan | Price | Includes |
|---|---|---|---|
| Kagi | Professional | $10/mo | $10/mo for private search |
Kagi charges for private search; SearXNG is free software giving you private metasearch on your own domain (and a RAG backend). Prices from each vendor's pricing page, June 2026.
Run it locally first
The same compose file runs with plain Docker Compose. Clone the template source, copy .env.example to .env, and run docker compose up -d.
Questions
Can AI tools use it for web search?
Yes - that is one of its best uses. open-webui, litellm, dify, and flowise all support SearXNG as a web-search tool, so your models get live results while the search queries stay on your own infrastructure.
Do I need Redis or a separate proxy?
No. The image self-serves HTTP on port 5000 (via SEARXNG_PORT) with no extra proxy. A managed Valkey is optional - only needed for the rate-limiter on a public instance.
Why set SEARXNG_SECRET explicitly?
If you do not set it, SearXNG generates a new secret on each restart, which resets sessions. Setting it (a long random string) keeps the instance stable across redeploys on Lyngbak.