Documentation
CLI
Copy page
Install the darkcrawl command line client, point it at DarkCrawl, and see one example for each command.
darkcrawl is a thin client for the HTTP API. It sends your command to DarkCrawl, and the server applies every rule. Run darkcrawl <command> --help for every option of a command.
Install
Section titled “Install”Install it with uv, from the repository root. It puts darkcrawl on your path.
uv tool install .Point it at DarkCrawl
Section titled “Point it at DarkCrawl”The client talks to http://127.0.0.1:3002, the address Run it yourself starts. Change it with --url before the command, or set DARKCRAWL_URL.
darkcrawl --url https://api.darkcrawl.dev scrape <url>The key comes from DARKCRAWL_API_KEY in the environment. The client never prints it.
export DARKCRAWL_API_KEY=YOUR_API_KEYEverything on this page down to “On your own server” works with a hosted key. The commands after it need your own DarkCrawl, or an extra install.
Read pages
Section titled “Read pages”scrape
Section titled “scrape”Reads one page. --format is markdown (the default), html, links or product. --full-page keeps navigation and footers, -o FILE writes a file, and --json prints the whole reply, indicators included.
darkcrawl scrape <url> --format linksReads a local PDF or Office document and prints its text. The file is only read, and nothing is stored.
darkcrawl parse ./report.pdfReads a site, page by page. Without --wait it prints the job id.
darkcrawl crawl <url> --limit 50 --depth 2 --waitReads many pages as one job. Give the addresses on the line, or in a file with --file.
darkcrawl batch <url> <url> --waitstatus and cancel
Section titled “status and cancel”status shows a crawl’s or a batch’s progress, and cancel stops one.
darkcrawl status <id>darkcrawl cancel <id>Lists a site’s URLs, one per line.
darkcrawl map <url> --search forumSearch what DarkCrawl holds
Section titled “Search what DarkCrawl holds”search
Section titled “search”Searches the pages DarkCrawl has stored first. Only when they give fewer results than --limit, and the server has DARKCRAWL_SEARCH_URL set, it also asks Ahmia, and then Ahmia sees the search terms. A DarkCrawl you run yourself needs DARKCRAWL_SEARCH_URL for Ahmia results.
darkcrawl search "debian mirror" --limit 10Searches the text of the pages DarkCrawl has stored, and never Ahmia. Each result shows its title, URL, fetch time, capture id and a snippet.
darkcrawl find wallet --host <host> --limit 20Ask an agent
Section titled “Ask an agent”Kipp, the agent, reads pages with a model to answer a prompt, so the server needs a model provider. agent starts a job and prints its id, and --wait follows it to the end.
darkcrawl agent "who sells the mirror list?" --url <url> --waitagent-status and agent-cancel
Section titled “agent-status and agent-cancel”darkcrawl agent-status <id>darkcrawl agent-cancel <id>Alerts and watches
Section titled “Alerts and watches”channel
Section titled “channel”Creates a place alerts go: a webhook, Slack or email. A webhook or Slack address is a secret, so it is read from --url-file or a hidden prompt, never from the command line.
darkcrawl channel add mail --kind email --recipient analyst@example.orgalerts
Section titled “alerts”Lists alert events.
darkcrawl alerts --monitor <id> --since 2026-11-01T00:00:00ZMatches every page the index records as new or changed against a brand phrase, a domain, an email address or a pattern, and tells your channels. watch also has list, show, set, delete and hits.
darkcrawl watch create brand --phrase "Acme Ltd" --domain acme.exampleLeak library
Section titled “Leak library”leaks asks about ransomware leak sites from data DarkCrawl already holds. It has check, countdowns, recent and sites. Every listing is an unverified claim by the group that posted it.
darkcrawl leaks check acme.exampleOn your own server
Section titled “On your own server”These commands call routes a hosted key does not reach, or need an extra install. They work against a DarkCrawl you run yourself.
Searches the stored pages with a regular expression, newest match first.
darkcrawl regex "bc1[a-z0-9]+" --limit 20Shows what DarkCrawl knows about one site.
darkcrawl sites <host>capture
Section titled “capture”Shows one stored capture’s evidence record as JSON.
darkcrawl capture <capture-id>Shows which onion services link to or name which. --format csv gives an edge list for Gephi.
darkcrawl graph --job <id> --format csv -o edges.csvexport
Section titled “export”Exports indicators, source URLs and onion hosts as STIX 2.1 or MISP JSON, never page text. Give exactly one of --job, --capture or --host.
darkcrawl export --format stix --job <id> -o findings.jsonmonitor
Section titled “monitor”Watches a page or a site for changes and tells your channels. monitor also has list, show, run, pause, resume, runs, edit and delete.
darkcrawl monitor add board <url> --interval 60 --keyword ransomalerts resend
Section titled “alerts resend”alerts resend ALERT_ID sends one existing alert again to its channels.
mcp runs an MCP server on stdio, so an AI client can call DarkCrawl as tools. It needs the .[mcp] install; the MCP server page and the quick-starts show it.
darkcrawl mcpExit codes
Section titled “Exit codes”0 means success. 1 means an API error, with a one-line reason on stderr. 2 means DarkCrawl could not be reached. 130 means you interrupted it.