# Install alterx on Windows, macOS and Linux

Generate likely subdomain names from known ones using patterns.

alterx takes the subdomains you already know and produces the variations an administrator might also have created, such as `api-dev` next to `api`. It only generates names. Pass its output to dnsx to see which of them exist.

## How to install alterx

```
ot install alterx
```

ot downloads alterx 0.1.0 as a prebuilt binary from [github.com/projectdiscovery/alterx](https://github.com/projectdiscovery/alterx/releases) and verifies its SHA-256 checksum before installing it. Nothing has to be compiled.

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 alterx

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

Generate variations of one known subdomain.

```
echo api.example.com | ot run alterx
```

Start from a file of names, and add the words found in them to the wordlist.

```
ot run alterx -l subdomains.txt -enrich -o candidates.txt
```

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

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

## alterx licence, platforms and versions

- Project: https://github.com/projectdiscovery/alterx
- Licence: MIT
- Runs on: Windows, macOS and Linux
- Takes: domain
- Categories: domain, subdomain, wordlist
- Sends traffic to the target: no
- Release binary: version 0.1.0 from github.com/projectdiscovery/alterx, verified by SHA-256

## Questions about alterx

### How do I install alterx on Windows?

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

### Is alterx free?

Yes. alterx is open source, released under the MIT licence. ot, which installs it, is free under the Apache 2.0 licence.

### Do I need Go or a compiler to install alterx?

No. ot downloads the prebuilt alterx binary for your platform and checks its SHA-256 checksum. A mismatch installs nothing.

### How do I update or remove alterx?

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

## Tools related to alterx

- [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.
- [chaos](https://otinstaller.com/tools/chaos/): Query the ProjectDiscovery Chaos dataset of known subdomains.
- [findomain](https://otinstaller.com/tools/findomain/): Fast subdomain enumeration from certificate transparency logs and APIs.
- [knockpy](https://otinstaller.com/tools/knockpy/): Enumerate subdomains by passive lookup and wordlist, with HTTP and TLS checks.
- [subfinder](https://otinstaller.com/tools/subfinder/): Fast passive subdomain enumeration from dozens of public sources.

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