# Install onion-location with Homebrew

Discover advertised Onion-Location for given URLs. Version 0.1.0 via Homebrew; verified 2026-07-10.

## Install

```sh
sudo av install brew:onion-location
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install onion-location
```

  Evidence: local Homebrew formula metadata

## Package facts

- **Package key:** brew:onion-location
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/onion-location>
- **Version:** 0.1.0
- **Source summary:** Discover advertised Onion-Location for given URLs
- **Homepage:** <https://codeberg.org/Freso/python-onion-location>
- **Upstream docs:** <https://codeberg.org/Freso/python-onion-location>
- **License:** AGPL-3.0-or-later
- **Source archive:** <https://files.pythonhosted.org/packages/72/0d/e2656bdb8c66dc590da40622ca843f0513cd6f4b78bb1f9b6ed4592d283e/onion_location-0.1.0.tar.gz>
- **Last updated:** 2026-07-10T11:15:53Z
- **Generated:** 2026-08-04T22:13:35+00:00

## Executables

- onion-location (cli)
- onion-location (alias)

## Dependencies

- python@3.14

## Uses from macOS

- libxml2
- libxslt

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-08-04
- Package-manager version: 0.1.0
- Package-manager updated: 2026-07-10
- Local data: ok
- Upstream repository: https://codeberg.org/Freso/python-onion-location
- info: Release/tag comparison is only available for GitHub repositories.
## Project history and usage

onion-location is a small Python utility/library for discovering Onion-Location HTTP headers, the non-standard Tor Browser mechanism that lets a clearnet HTTPS site advertise its corresponding .onion service. Its package-nerd interest is less about a large standalone ecosystem and more about turning a Tor Browser convention into a scriptable CLI/library primitive.

### Project history

The package appeared on PyPI as onion-location 0.1.0 on August 2, 2024, authored by Frederik "Freso" S. Olesen and licensed AGPL-3.0-or-later. PyPI describes the project as a Python library for discovering Onion-Location HTTP headers and shows a minimal API that resolves torproject.org to its advertised onion URL.

### Adoption history

Its adoption evidence is modest: PyPI hosts the Python package and Homebrew packages it as onion-location. The project sits downstream of Tor's Onion-Location deployment guidance rather than defining the browser feature itself.

### How it is used

Developers and operators can use onion-location to check whether a URL advertises an onion counterpart without manually inspecting response headers. That makes it useful for audits of onion-service discoverability, small monitoring scripts, or package-index style metadata enrichment.

### Why package nerds care

For package nerds, onion-location is a good example of a tiny package wrapping one operational convention: one HTTP response header, one Tor-specific validation model, and a CLI/package-manager surface that makes the convention easy to probe from automation.

### Timeline

- 2020: Tor Browser 9.5 introduced user-facing Onion-Location support, giving HTTPS sites a browser-visible way to advertise onion services.
- 2024-08-02: onion-location 0.1.0 was released on PyPI.
- 2026: Homebrew distributes onion-location as a formula with the same advertised purpose.

### Related projects

- The project is related to Tor Browser's Onion-Location feature, Tor onion services, and broader onion-service discovery work.

### Sources

- <https://community.torproject.org/onion-services/advanced/onion-location/>
- <https://formulae.brew.sh/formula/onion-location>
- <https://pypi.org/project/onion-location/>
- <https://support.torproject.org/tor-browser/features/onion-services/>


## Security Notes

narrow executable package without higher-risk signals.

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

## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** onion-location
- **Version Scheme:** 0
- **Revision:** 3
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable


## Related links

- [Terminal utility packages](https://pkg.so/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Language runtime packages](https://pkg.so/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [Networking and protocol packages](https://pkg.so/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Web development packages](https://pkg.so/web-dev-tools/) - Matched web development metadata.
- [python@3.14](https://pkg.so/brew/python-3-14/) - Runtime dependency declared by Homebrew.
- [nyx](https://pkg.so/brew/nyx/) - Shares pkgdb curated category or tags: cli, networking, tor.
- [onionprobe](https://pkg.so/brew/onionprobe/) - Shares pkgdb curated category or tags: cli, networking, onion-services, tor.
- [speedtest-cli](https://pkg.so/brew/speedtest-cli/) - Shares pkgdb curated category or tags: cli, networking, python.
- [magic-wormhole](https://pkg.so/brew/magic-wormhole/) - Shares pkgdb curated category or tags: cli, networking, python.
- [checkdmarc](https://pkg.so/brew/checkdmarc/) - Shares pkgdb curated category or tags: cli, networking, python.
- [torsocks](https://pkg.so/brew/torsocks/) - Shares pkgdb curated category or tags: cli, networking, tor.
- [gdown](https://pkg.so/brew/gdown/) - Shares pkgdb curated category or tags: cli, networking, python.
- [spoof-mac](https://pkg.so/brew/spoof-mac/) - Shares pkgdb curated category or tags: cli, networking, python.
- [apprise](https://pkg.so/brew/apprise/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, networking, python, python-3-14, services.

## Combined YAML source

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


## Sources

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- cross-ecosystem install command graph
