selfhost.directory

The index of self-hostable projects — ranked, categorized and served with live updates.
Own your data and stop giving it to big tech.

SearXNG logo

Self-host SearXNG

Privacy-respecting metasearch engine

ReleaseOpen SourceAGPL-3.0
Updated5 months ago
LanguagePython
Setup difficultyModerate
Stars
39 557
Port
8080 (HTTP web interface)
Docker
docker.io/searxng/searxng
Install with Docker

What is SearXNG?

A privacy-focused metasearch engine that combines results from hundreds of search providers without tracking users. The software runs on your own infrastructure, supports Tor routing, and offers 58 interface languages. It includes OpenSearch support for browser integration, optional image proxying, rate limiting with Valkey/Redis backend, and an admin API. Deployment options cover Docker Compose, standalone containers, or traditional Linux installs with uWSGI or Granian. The codebase is AGPL-3.0 licensed and community-maintained as a continuation of the original searx project.

Should you self-host SearXNG?

SearXNG scores 86/100 on selfhost.directory (how scoring works) and ranks #1 of 41 in Search Engines. It has 39 557 GitHub stars, +1 318 in the last 30 days.

There was no stable release in the past 12 months, so check the repository's recent activity before you rely on it.

Setup is moderate: expect some configuration beyond a single command. An official Docker image is available. It is AGPL-3.0-licensed and written mostly in Python.

Its closest alternative on selfhost.directory is elasticsearch (84/100, 78 705 stars). SearXNG scores higher overall. See SearXNG vs elasticsearch side by side.

Features

  • Administration API
  • Image proxy
  • Metasearch aggregation
  • Multi-language Support
  • OpenSearch support
  • Privacy Protection
  • Rate LimitingRequires Valkey/Redis
  • Tor Support

SearXNG README

How to install SearXNG

Install SearXNG with Docker

Docker or Podman
Environment variables
SEARXNG_*, GRANIAN_*, FORCE_OWNERSHIP

Create directories for configuration and persistent data

$ mkdir -p ./searxng/config/ ./searxng/data/ $ cd ./searxng/

Run the container

$ docker run --name searxng -d
-p 8888:8080
-v "./config/:/etc/searxng/"
-v "./data/:/var/cache/searxng/"
docker.io/searxng/searxng:latest

Manual container instancing example

FAQ

What are the consequences of using public instances?

You must trust the instance administrator, who could log or sell your search data. Public instances without protection are more vulnerable to abuse, which may cause search services to enforce CAPTCHAs or ban the instance IP.

How does SearXNG protect privacy?

SearXNG removes private data from requests to search services, doesn't forward third-party content like ads, and removes private data from requests to result pages. It generates random browser profiles per request and doesn't send cookies to external engines.

More in Search Engines

Rate this project

Click to rate — no account needed.

0 comments

Posting as guest
Loading comments…