# Install onion-location with Homebrew

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

## 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>
- **Repository:** <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-04-22T11:40:33Z
- **Generated:** 2026-07-08T18:08:21+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-07-08
- Package-manager version: 0.1.0
- Package-manager updated: 2026-04-22
- 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:** 2
- **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://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Language runtime packages](https://www.automicvault.com/pkg/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Web development packages](https://www.automicvault.com/pkg/web-dev-tools/) - Matched web development metadata.
- [python@3.14](https://www.automicvault.com/pkg/brew/python-3-14/) - Runtime dependency declared by Homebrew.
- [nyx](https://www.automicvault.com/pkg/brew/nyx/) - Shares av.db curated category or tags: cli, networking, tor.
- [onionprobe](https://www.automicvault.com/pkg/brew/onionprobe/) - Shares av.db curated category or tags: cli, networking, onion-services, tor.
- [airshare](https://www.automicvault.com/pkg/brew/airshare/) - Shares av.db curated category or tags: cli, networking, python.
- [dsocks](https://www.automicvault.com/pkg/brew/dsocks/) - Shares av.db curated category or tags: cli, networking, tor.
- [gdown](https://www.automicvault.com/pkg/brew/gdown/) - Shares av.db curated category or tags: cli, networking, python.
- [geoip2fast](https://www.automicvault.com/pkg/brew/geoip2fast/) - Shares av.db curated category or tags: cli, networking, python.
- [getmail6](https://www.automicvault.com/pkg/brew/getmail6/) - Shares av.db curated category or tags: cli, networking, python.
- [magic-wormhole](https://www.automicvault.com/pkg/brew/magic-wormhole/) - Shares av.db curated category or tags: cli, networking, python.
- [podcast-archiver](https://www.automicvault.com/pkg/brew/podcast-archiver/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, python, python-3-14.

## Combined YAML source

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


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- cross-ecosystem install command graph
