Skip to content
otinstaller
Install

OSINT tool

Install shodan on Windows, macOS and Linux

Search Shodan for internet-connected devices, open ports and banners.

searchhostsnetworkpassive
ot install shodan

The official command-line client for Shodan, the search engine for internet-connected devices. It shows a host's open ports, banners and known vulnerabilities from Shodan's own scans, so you send the host no traffic yourself. It needs a Shodan API key.

How to install shodan

ot install shodan

ot installs shodan 1.31.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.

Before first use: Run "ot run shodan init <your key>" once before use.

New to ot? It is one command to install, shown below.

How to use shodan

Arguments after the tool's name go straight to shodan, so its own documentation applies unchanged.

Save your API key, once.

ot run shodan init YOUR_API_KEY

Show what Shodan has recorded for an address.

ot run shodan host 8.8.8.8

List the DNS records and subdomains Shodan knows.

ot run shodan domain example.com

Search with a Shodan query.

ot run shodan search --fields ip_str,port,org "product:nginx country:DE"

ot run shodan --help lists every option. The project's own documentation is at github.com/achillean/shodan-python.

An AI agent can run shodan too: ot mcp serves it over the Model Context Protocol. See OSINT with AI agents.

shodan licence, platforms and versions

Projecthttps://github.com/achillean/shodan-python
LicenceMIT
Runs onWindows, macOS and Linux
Takesip, query
Sends traffic to the targetNo
Python packageshodan 1.31.0, in its own isolated environment

Questions about shodan

How do I install shodan on Windows?

Is shodan free?

Do I need to set up Python to use shodan?

How do I update or remove shodan?

Install ot

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

Current version: 0.3.0. Both scripts verify the download against its SHA-256 checksum before installing.

More: Network and host OSINT tools