Skip to content

Documentation

Run it yourself

Copy page

Start DarkCrawl on your own machine with Docker Compose and check that it is ready.

DarkCrawl runs on your own machine as a set of Docker containers. It fetches pages through Tor, and the API listens on 127.0.0.1 only. The Run it yourself plan on the pricing page covers running it on your own servers.

You need Docker (Docker Desktop on a Mac) with Docker Compose 2.24 or later. Older Compose versions reject the settings the stack uses.

  1. Get the code. Running DarkCrawl yourself needs a licence, and the code is in a private repository. Write to hello@darkcrawl.dev from your work address and ask for read access. Say which licence it is for. Once you have access, clone the repository with the address we send you.

  2. Start the stack, from the repository root.

    bash
    docker compose up -d

    The first start builds four images (Tor, the app, the extractor and the gateway), bootstraps Tor and downloads the Ahmia list through Tor. It usually takes a few minutes.

  3. Ask whether it is ready.

    bash
    curl -s http://127.0.0.1:3002/health

    Wait until the reply says "status": "ok".

status Meaning
starting Not ready yet: Tor is still bootstrapping, the Ahmia list is not loaded, the database is not ready, or the extractor is not up yet
ok Tor is up, the blocklist is loaded, the database works and the extractor answers
degraded Tor was ready earlier, and Tor or the extractor is down now

The reply also has a key for each part of the stack, such as tor, db and extraction.

The API listens on port 3002. To use another host port, set DARKCRAWL_HOST_PORT.

bash
DARKCRAWL_HOST_PORT=3005 docker compose up -d

docker compose down stops the stack and keeps its data.

bash
docker compose down

docker compose down -v also deletes the volumes: every capture, the Tor state and the generated Tor control password.

bash
docker compose down -v

There is no .env to prepare. The Tor control password is generated on first start.

Once /health says ok, call the API at http://127.0.0.1:3002. The CLI is the quickest way to try it. To give an AI client the same tools, follow a quick-start or read the MCP server page.