OSINT tool
Install censys on Windows, macOS and Linux
Search Censys for hosts, certificates and subdomains.
ot install censysThe 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 censysot 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.
New to ot? It is one command to install, shown below.
How to use censys
Arguments after the tool's name go straight to censys, so its own documentation applies unchanged.
List subdomains seen in certificates.
ot run censys subdomains example.comShow everything Censys knows about a host.
ot run censys view 8.8.8.8Search hosts with a Censys query.
ot run censys search "services.port: 9200" --pages 1ot run censys --help lists every option. The project's own documentation is at github.com/censys/censys-python.
An AI agent can run censys too: ot mcp serves it over the Model Context Protocol. See OSINT with AI agents.
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 |
| 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.
Install ot
curl -fsSL https://otinstaller.com/install.sh | shirm https://otinstaller.com/install.ps1 | iexRun it in PowerShell.
Current version: 0.3.0. Both scripts verify the download against its SHA-256 checksum before installing.