# Install censys on Windows, macOS and Linux

Search Censys for hosts, certificates and subdomains.

The official command-line client for Censys, a search engine that continuously scans the internet and indexes hosts and certificates. It lets you read what a host exposes without sending it any traffic yourself. It needs a Censys account's API ID and secret.

## How to install censys

```
ot install censys
```

ot installs censys 2.3.0 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 censys

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

List subdomains seen in certificates.

```
ot run censys subdomains example.com
```

Show everything Censys knows about a host.

```
ot run censys view 8.8.8.8
```

Search hosts with a Censys query.

```
ot run censys search "services.port: 9200" --pages 1
```

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

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

## API keys for censys

censys reads these environment variables. Store one with `ot keys set NAME` and ot passes it to censys on every run.

| Variable | Purpose |
|---|---|
| `CENSYS_API_ID` | Censys API ID |
| `CENSYS_API_SECRET` | Censys API secret |

## censys licence, platforms and versions

- Project: https://github.com/censys/censys-python
- Licence: Apache-2.0
- Runs on: Windows, macOS and Linux
- Takes: ip, domain, query
- Categories: search, hosts, certificates
- Sends traffic to the target: no
- Python package: censys 2.3.0, in its own isolated environment

## Questions about censys

### How do I install censys on Windows?

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

### Is censys free?

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

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

No. ot installs censys 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 censys?

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

## Tools related to censys

- [shodan](https://otinstaller.com/tools/shodan/): Search Shodan for internet-connected devices, open ports and banners.
- [uncover](https://otinstaller.com/tools/uncover/): Query Shodan, Censys, FOFA and other search engines for exposed hosts.
- [onionsearch](https://otinstaller.com/tools/onionsearch/): Search several .onion search engines at once.
- [tlsx](https://otinstaller.com/tools/tlsx/): Collect TLS certificate details, names and misconfigurations from hosts.

More: [Networks and hosts](https://otinstaller.com/osint-tools/networks/).
