# Install theharvester on Windows, macOS and Linux

Collect emails, subdomains, hosts and employee names for a domain from public sources.

theHarvester collects what public sources reveal about an organisation's domain: email addresses, subdomains, hosts and employee names. It queries search engines and certificate logs, and reaches more sources when given API keys.

## How to install theharvester

```
ot install theharvester
```

ot installs theharvester 4.11.1 with uv into a Python environment of its own under `~/.ot`, so it cannot conflict with your system Python or with any other tool.

If you do not have ot yet:

macOS and Linux:

```
curl -fsSL https://otinstaller.com/install.sh | sh
```

Windows (PowerShell):

```
irm https://otinstaller.com/install.ps1 | iex
```

Current version: 0.3.0. Both scripts verify the download against its [SHA-256 checksum](https://otinstaller.com/releases/v0.3.0/checksums.txt) before installing.

## How to use theharvester

Arguments after the tool's name go straight to theharvester.

Search two sources that need no API key.

```
ot run theharvester -d example.com -b crtsh,duckduckgo
```

Use three sources, allow 200 results each, and save the report as XML and JSON.

```
ot run theharvester -d example.com -b crtsh,rapiddns,hackertarget -l 200 -f report
```

`ot run theharvester --help` lists every option.

An AI agent can run theharvester too: `ot mcp` serves it over the Model Context Protocol. See [OSINT with AI agents](https://otinstaller.com/mcp/).

## Run theharvester with other tools

`ot scan domain example.com` runs theharvester together with subfinder and merges what they find into one table, listing each finding once.

## theharvester licence, platforms and versions

- Project: https://github.com/laramies/theHarvester
- Licence: GPL-2.0
- Runs on: Windows, macOS and Linux
- Takes: domain
- Categories: domain, email, recon
- Sends traffic to the target: no
- Python package: theharvester 4.11.1, in its own isolated environment

## Questions about theharvester

### How do I install theharvester on Windows?

Open PowerShell and install ot with `irm https://otinstaller.com/install.ps1 | iex`. Then run `ot install theharvester`. ot fetches a pinned version of theharvester and keeps it under `~/.ot`, apart from the rest of your system.

### Is theharvester free?

Yes. theharvester is open source, released under the GPL-2.0 licence. ot, which installs it, is free under the Apache 2.0 licence.

### Do I need to set up Python to use theharvester?

No. ot installs theharvester with uv into a virtual environment of its own, separate from your system Python. If uv is not installed, ot fetches its own copy first.

### How do I update or remove theharvester?

`ot update theharvester` moves it to the version pinned in ot's registry, and `ot update theharvester --latest` to the newest upstream release. `ot remove theharvester` uninstalls it.

## Tools related to theharvester

- [amass](https://otinstaller.com/tools/amass/): In-depth attack surface mapping and subdomain discovery from many data sources.
- [bbot](https://otinstaller.com/tools/bbot/): Recursive OSINT automation: subdomains, emails, web and cloud findings in one run.
- [checkdmarc](https://otinstaller.com/tools/checkdmarc/): Check a domain for SPF, DMARC, DNSSEC and mail server configuration.
- [dnsx](https://otinstaller.com/tools/dnsx/): Fast DNS toolkit for resolving and probing large lists of hostnames.
- [fierce](https://otinstaller.com/tools/fierce/): DNS reconnaissance for locating hosts and non-contiguous IP space of a domain.
- [httpx](https://otinstaller.com/tools/httpx/): Probe lists of hosts for live web servers, titles, status codes and technologies.

More: [Email addresses](https://otinstaller.com/osint-tools/email/), [Subdomains and DNS](https://otinstaller.com/osint-tools/subdomains/).
