# Install monocle with Homebrew, Nix

See through all BGP data with a monocle. Version 1.4.0 via Homebrew; verified 2026-07-21. Also installable with nix: nix profile install nixpkgs#monocle.

## Install

```sh
sudo av install brew:monocle
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install monocle
```

  Evidence: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#monocle
```

  Evidence: nixpkgs package indexes: pkgs/by-name/mo/monocle/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## Package facts

- **Package key:** brew:monocle
- **Package manager:** Homebrew
- **Version:** 1.4.0
- **Source summary:** See through all BGP data with a monocle
- **Homepage:** <https://github.com/bgpkit/monocle>
- **Repository:** <https://github.com/bgpkit/monocle>
- **Last updated:** 2026-07-21T19:06:50Z
- **Generated:** 2026-08-03T19:37:03+00:00

## Executables

- monocle (alias)

## Install behavior

- Bottle: not available

## Freshness

- Page generated: 2026-08-03
- Package-manager version: 1.4.0
## Project history and usage

Monocle is a Rust command-line and library tool in the BGPKIT family for working with public Border Gateway Protocol data. BGPKIT's 2022 year-in-review introduced it as the suite's first investigative tool, designed to tie together BGPKIT parser and broker work so users could quickly find relevant BGP announcements from public collector data.

### Project history

The tool's scope expanded from early parse, search, time-conversion, and whois utilities into a broader BGP analysis workstation. The project README and BGPKIT tool page describe commands for parsing local or remote MRT files, searching public archives, reconstructing RIB state at timestamps, inspecting ASNs and prefixes, validating routes with RPKI data, looking up country, IP, AS relationship, and prefix-to-ASN data, and running an HTTP/SSE server mode for programmatic access.

### How it is used

Its package-manager niche is narrow but useful for network operators, routing-security researchers, and incident analysts who want a local CLI instead of stitching together Route Views, RIPE RIS, RPKI, WHOIS, and BGPKIT APIs by hand. The LACNIC republication of a BGPKIT article by Mingwei Zhang notes version 0.5 support for Cloudflare Radar BGP routing statistics and prefix-to-origin APIs, illustrating how the tool fits into operational routing-analysis workflows.

### Sources

- <https://bgpkit.com/blog/2022-year-in-review/>
- <https://bgpkit.com/tools/monocle/>
- <https://blog.lacnic.net/en/command-line-routing-stats-with-bgpkit-monocle-and-cloudflare-radar-api/>
- <https://github.com/bgpkit/monocle>


## Security Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- narrow executable package without higher-risk signals

## Other Package-Manager Records

- Nix - monocle: normalized package name match | nixpkgs package indexes: pkgs/by-name/mo/monocle/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## Combined YAML source

View the package source record on GitHub. [combined/monocle.yml](https://github.com/mxcl/pkgdb/blob/main/combined/monocle.yml)


## Sources

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
