Blog · Username OSINT
How to use Sherlock: installation, commands and results
Sherlock is an open-source tool that checks which social networks have an account with a given username. You run it from the terminal: type sherlock user123 and it returns the list of sites where a profile with that name exists, with its URL. It covers more than 400 social networks according to its README, is MIT-licensed and needs no API keys.
This guide follows the README of the official repository, the project's installation page, the code of its latest release and the package page on Kali Linux, as we read them on 18 November 2026. It covers how to install it on your system, what each option does, how to read the output and why a list of accounts is not yet a finding. At the end we cover which part of that work Pandora, the tool we build, does in the browser.
The short answer
- What it is. A command-line username search across social networks, maintained on GitHub under the MIT licence. The latest release is 0.16.2, from September 2026, and the latest change on its main branch is from 1 November 2026.
- How to install it. The project recommends
pipx install sherlock-project. There is also an official Docker image and an official Fedora package, plus community packages for Kali, Homebrew and BlackArch. - How to use it.
sherlock <username>, with several usernames if you like, and options to limit the sites, save the output and also see where nothing was found. - What you get. The accounts found, on screen, and if you ask for it, in a text, CSV or Excel file.
- What you do not get. Who is behind each account. That comes from reading the profiles and corroborating them.
Before you start: what Sherlock actually checks
Sherlock keeps a list of sites in its repository, in a data.json file, with a rule for each one: which profile URL to request and how to tell from the response whether the account exists. When you give it a username, it runs through that list and records the sites where the rule says "exists". By default, in version 0.16.2, it does not use the copy installed with the program: it downloads the current list from the project's website every time you run it, and if it cannot download it, it stops with an error. With --local it uses the installed copy.
That has two practical consequences. First, the output is only as good as each rule: a site that changes its pages, or responds the same way whether or not the account exists, can produce a false positive until someone updates the rule. Second, Sherlock knows whether an account with that name exists, but not whether it belongs to the person or organisation you care about. The legitimate uses are the usual ones: finding where the username of an account impersonating your brand is in use, reviewing the public footprint of a professional profile as part of due diligence, or checking your own exposure.
How to install it
With pipx, the route the project recommends. Sherlock is on PyPI as sherlock-project and needs Python 3.9 or later:
pipx install sherlock-project
sherlock --version
If you do not use pipx, pip install --user sherlock-project works, and the README says uv is an option too. Whichever route you take, the installation page suggests checking it with sherlock --version.
On Kali Linux. The package is called sherlock and installs with sudo apt install sherlock. It is maintained by Debian's security tools packaging team, not by the project. Watch the version: Kali's page lists 0.16.0, older than the latest, and its help does not fully match 0.16.2 (more on that in the options table). The page does not say whether it comes preinstalled.
With Homebrew, on Fedora or on BlackArch. On macOS and Linux, brew install sherlock installs 0.16.2. Fedora has an official package, sudo dnf install sherlock-project. On BlackArch, sudo pacman -S sherlock. Homebrew and BlackArch are community packages the project does not maintain. The README also warns that the third-party packages for ParrotOS and Ubuntu 24.04 appear to be broken, and recommends uv, pipx, pip or Docker on those systems.
With Docker. There is an official image:
docker run --rm -t sherlock/sherlock user123
To keep the output, the installation page recommends mounting a volume and writing with -o to a path under /opt/sherlock/results/.
On Windows. Neither the README nor the installation page gives Windows-specific instructions. The PyPI route is the same on any system: install Python 3.9 or later, then run pipx install sherlock-project or pip install --user sherlock-project. Docker is the other option. The documentation does not cover Termux either.
From source. The project does not officially support it, but recommends it for contributors and packagers: clone the repository and run it without installing, with python3 -m sherlock_project user123.
The commands you will use most
sherlock user123
sherlock user1 user2 user3
sherlock "user{?}123"
sherlock user123 --site GitHub --site Reddit
sherlock user123 --print-all
sherlock user123 --csv --txt
sherlock user1 user2 --folderoutput results --csv
The first searches the whole database for one username. The second searches several at once. The third uses the {?} wildcard: Sherlock replaces it with an underscore, a hyphen and a dot, and searches all three variants (user_123, user-123 and user.123); the quotes stop the shell from interpreting the characters. The fourth limits the search to the sites you name, case-insensitively; if one is not in the database, Sherlock reports an error. The fifth also shows the sites where nothing was found. The sixth saves the output as CSV and as text. The last one writes the files for several usernames into a folder.
The options, in a table:
| Option | What it does |
|---|---|
--site <name> | Limits the search to that site; repeat it for several |
--print-all | Also shows where the account was not found and where an anti-bot protection blocked the check |
--timeout <seconds> | How long to wait for each site; 60 seconds by default |
--proxy, -p | Sends the requests through a proxy, such as socks5://127.0.0.1:1080 |
--txt | Creates a text file with the URLs found (in Kali's 0.16.0 it is created by default, and --no-txt skips it) |
--csv | Creates a CSV file per username |
--xlsx | Creates an Excel file per username |
--output, -o | The output file, when you search a single username |
--folderoutput, -fo | The output folder, when you search several |
--browse, -b | Opens every account found in your browser |
--local, -l | Uses the data.json installed on your machine instead of downloading the site list from the project's website |
--json, -j | Loads a different site data file |
--ignore-exclusions | Turns off the project's exclusions; its help warns that this may return more false positives |
--verbose, -v | More debugging information and metrics |
How to read the output
Each account found appears on a line starting with [+], with the site name and the profile URL, and at the end Sherlock prints [*] Search completed with N results, with the number of accounts. With --print-all you also get two kinds of lines marked [-]: sites where the account does not exist (Not Found!) and sites that answered with an anti-bot protection page (Blocked by bot detection). The latter are neither a yes nor a no: Sherlock could not check.
If you need to document the case, ask for the CSV. In version 0.16.2 it has one row per site with the username, the site name, its main URL, the profile URL, whether the account exists, the HTTP status code of the response and how long it took. The Excel file has the same columns, with the URLs as links.
From list to finding: check every account
A [+] line means that site's rule believes an account with that name exists. Before you record it:
- Open the profile. Check that it exists and is not a generic page. It is the fastest way to weed out false positives.
- Ask whether the username is common. A username like
alexexists almost everywhere and tells you nothing; a long, unusual one on several sites is already a lead. - Look for what links two accounts. The same photo, a link from one profile to the other, the same public key on two code forges or an unusual combination of details. A matching name is not enough.
- Cross-check with another tool. Maigret keeps its own site database, with different rules: an account both tools find carries more weight. We compare them in Sherlock vs Maigret, and explain Maigret step by step in how to use Maigret.
- Note the date. Accounts get created, deleted and change hands. What you find today is a snapshot of today.
The full method for working a username, with more sources than Sherlock, is in our guide to searching a username across hundreds of sites. If you are looking for similar tools, we compare them in our Sherlock alternatives.
Is there a Sherlock online?
Not from the project. Its website, sherlockproject.xyz, is the documentation, with no online search. People who search for "Sherlock online" usually want the same thing without installing Python or wrestling with the terminal.
Sherlock without the terminal: Pandora
Pandora is the tool we build: an OSINT link analysis search engine that runs in the browser, with nothing to install. It does not replace Sherlock: it runs it, and crosses what it finds with the rest of the case.
What it does with a username. The automatic sweep for each username uses the WhatsMyName data, and Sherlock and Maigret are launched by hand from the entity, because they take longer. Pandora records how many sites each sweep checked and how many returned an account, and every account carries the database it came from, so the cross-check in step 4 is visible at a glance.
What it adds to a list. Public profiles through each platform's API (GitHub, Gravatar, Stack Exchange, Bluesky and its name history, Discourse forums, Roblox, Minecraft and Telegram's public preview), public SSH and PGP keys from code forges, packages published to 12 registries and the same photo across different accounts, matched by perceptual hash and not by face recognition. That is what you need for step 3.
What it leaves out, on purpose. It does not query adult content, dating, health, religion or politics sites, collection is passive, and every query is recorded in the case's audit log.
What it costs. Each transform uses credits and plans renew them every period; prices are on the pricing page. A free account comes with one trial search, with the findings masked: you see what kind of findings turn up and how many, but not which ones, until you choose a plan.
The legal side
Sherlock is legal and only requests public pages. But as soon as you record what it finds about an identifiable person, you are processing personal data: you need a legitimate purpose and a lawful basis under the GDPR or its local equivalent, and you keep no more than the case needs. Never to follow, monitor or harass anyone, and never about anyone under 18, which Pandora's acceptable use policy also prohibits. Our article on OSINT and the GDPR covers this in detail.
This article is not legal advice.
Frequently asked questions
How do you use Sherlock?
From the terminal, with the username after the command: sherlock user123. Sherlock checks more than 400 social networks and prints, marked with [+], the ones that have an account with that name. You can search several usernames at once, limit the search with --site and save the results with --txt, --csv or --xlsx.
How do you install Sherlock on Kali Linux?
With sudo apt install sherlock. It is a community-maintained package, not one the project maintains, and Kali's page lists version 0.16.0, older than the latest release (0.16.2). For the latest version, the project recommends pipx install sherlock-project.
Can you use Sherlock on Windows?
Neither the README nor the project's installation page gives Windows-specific instructions. The PyPI route is the same on any system with Python 3.9 or later: pipx install sherlock-project, or pip install --user sherlock-project. There is also an official Docker image.
Where does Sherlock save its results?
In the latest version, 0.16.2, only on screen unless you ask for a file: --txt creates user123.txt, --csv creates user123.csv and --xlsx an Excel file, in the folder you run the command from. In the 0.16.0 version Kali packages, the help offers --no-txt instead, to skip the text file.
Is Sherlock free?
Yes. It is free software under the MIT licence and needs no API keys or account. Its website, sherlockproject.xyz, is the project's documentation and does not offer online searches.
If Sherlock finds an account, does it belong to the person I am looking into?
Not necessarily. Sherlock checks whether an account with that name exists, not who uses it. The same username on two sites can belong to two different people. A match is a lead to corroborate with something stronger, such as the same photo, the same public key or a link from the profile itself to the other account.