# 使用 Homebrew 安装 onion-location

查看 onion-location 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

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

其他安装命令:

### macOS

- Homebrew (100%):

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

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:onion-location
- **软件包管理器:** Homebrew
- **版本:** 0.1.0
- **来源摘要:** Discover advertised Onion-Location for given URLs
- **主页:** <https://codeberg.org/Freso/python-onion-location>
- **最后更新:** 2026-07-10T11:15:53Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- onion-location (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 0.1.0
## 项目历史与用法

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.

### 项目历史

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.

### 采用历史

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.

### 使用方式

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.

### 为什么软件包爱好者会关心

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.

### 时间线

- 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.

### 来源

- <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/>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals


## 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)


## 来源

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