Skip to content

Installing

Scope: the three ways SearXNG gets onto a machine — Docker, a manual install from source, and the project's installer script — which one the lab used and why, and how to know the install is whole.

The three routes

Route What it is Lab status
Docker image The project's official container, usually with Docker Compose, and a Valkey container beside it Documented only — the build machine has no container runtime
Manual install Clone the source, make a Python virtual environment, install the requirements, run it The lab's route, run for real
Installer script The project's searxng.sh utility, which automates a system install (service user, systemd unit, the works) on a spare machine Documented only — read, not run

Most households should take the Docker route: it is the one the project maintains first, it bundles its own Python and dependencies, and updating is pulling a newer image. The manual route below is what the lab could actually run, and it has a virtue of its own — nothing is hidden. Every file is where you put it, which makes the later chapters' talk of settings and updates concrete. The script installer suits a dedicated box you intend to leave alone; it makes system-level decisions (users, services) that this guide would rather you make deliberately.

The manual install, as run

You need Python 3 and git. The lab machine had Python 3.12.3.

git clone --depth 1 https://github.com/searxng/searxng.git
cd searxng
git log -1 --format='%H %cs'   # write down what you got
python3 -m venv venv
./venv/bin/pip install -r requirements.txt

The lab's clone landed on commit 81371861, dated 2026-10-19 — SearXNG versions are dates, and the running program reports itself as 2026.10.19+8137186 (transcript t00). The requirements install cleanly into the virtual environment; nothing touches the system Python.

Two engines complain at every start on a machine without a Tor proxy:

ERROR:searx.engines: ahmia: can't register engine (loading engine failed)
ERROR:searx.engines: torch: can't register engine (loading engine failed)

Ahmia and Torch search Tor hidden services; with no Tor proxy configured they cannot load, and SearXNG carries on without them. Log noise, not damage — worth knowing before it worries you at 1 a.m.

Check: the version should answer before you configure anything:

PYTHONPATH=. ./venv/bin/python \
  -c "from searx.version import VERSION_STRING; print(VERSION_STRING)"
# 2026.10.19+8137186   (yours will differ — it should be a date)

The Docker route, in brief

Documented, not run in this lab. The project publishes an official image and a Compose setup: a searxng service holding the settings in a mounted folder or environment variables, and optionally a valkey service for the limiter. The concepts are the same ones this guide teaches — settings file, secret key, port — wearing containers. If you take this route, chapters 4 on apply the unchanged; only this chapter's commands and chapter 11's update step differ.

Where things live

Keep three places straight and every later chapter gets easier:

  • the source tree (the clone — the program),
  • the virtual environment (its Python libraries),
  • and your settings file, which should live outside the clone, so an update can replace the program without touching your configuration.

The next chapter makes the settings file and starts the server.