# Install ipinfo on Windows, macOS and Linux

Look up geolocation, ASN, carrier and privacy details for IP addresses.

The official command-line client for IPinfo. It returns the location, network owner, AS number and hosting or VPN status of an IP address, and includes utilities for working with address ranges. Basic lookups work without an account.

## How to install ipinfo

```
ot install ipinfo
```

ot downloads ipinfo 3.3.4 as a prebuilt binary from [github.com/ipinfo/cli](https://github.com/ipinfo/cli/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 ipinfo

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

Look up one address.

```
ot run ipinfo 8.8.8.8
```

Look up an AS number.

```
ot run ipinfo AS15169
```

Show the details of your own address.

```
ot run ipinfo myip
```

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

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

## API keys for ipinfo

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

| Variable | Purpose |
|---|---|
| `IPINFO_TOKEN` | IPinfo access token (optional, raises rate limits) |

## ipinfo licence, platforms and versions

- Project: https://github.com/ipinfo/cli
- Licence: Apache-2.0
- Runs on: Windows, macOS and Linux
- Takes: ip
- Categories: ip, geolocation, network
- Sends traffic to the target: no
- Release binary: version 3.3.4 from github.com/ipinfo/cli, verified by SHA-256

## Questions about ipinfo

### How do I install ipinfo on Windows?

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

### Is ipinfo free?

Yes. ipinfo 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 Go or a compiler to install ipinfo?

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

### How do I update or remove ipinfo?

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

## Tools related to ipinfo

- [asnmap](https://otinstaller.com/tools/asnmap/): Map an organisation, domain or IP to its ASNs and network ranges.
- [cdncheck](https://otinstaller.com/tools/cdncheck/): Identify the CDN, cloud provider or WAF in front of an IP or domain.
- [mapcidr](https://otinstaller.com/tools/mapcidr/): Expand, slice and aggregate CIDR ranges and IP lists.
- [masscan](https://otinstaller.com/tools/masscan/): Internet-scale TCP port scanner.
- [naabu](https://otinstaller.com/tools/naabu/): Fast port scanner for finding open ports on hosts.
- [nmap](https://otinstaller.com/tools/nmap/): Network mapper for host discovery, port scanning and service detection.

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