# 使用 Homebrew, apk 安装 gauth

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

## 安装

```sh
sudo av install brew:gauth
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install gauth
```

  证据: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add gauth
```

  证据: Alpine Linux edge package indexes: gauth from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

## 软件包事实

- **软件包键:** brew:gauth
- **软件包管理器:** Homebrew
- **版本:** 1.5.0
- **来源摘要:** Google Authenticator in your terminal
- **主页:** <https://github.com/pcarrier/gauth>
- **仓库:** <https://github.com/pcarrier/gauth>
- **最后更新:** 2026-07-25T20:55:21-04:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- gauth (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

gauth is a small command-line authenticator for time-based one-time passwords. Its README frames the project as a terminal replacement for Google Authenticator.

### 项目历史

The official GitHub repository was created in 2013 and is maintained as a Go command-line tool. The README documents installation through Homebrew or `go install`, a plain text account file, optional OpenSSL-based encryption, and compatibility reports for common services.

### 采用历史

Official adoption evidence is modest and mostly visible through packaging and repository activity. The tool is packaged by Homebrew and Alpine, and the README invites users to report additional service compatibility results.

### 使用方式

Users store one secret per line in `~/.config/gauth.csv` using `name:secret` entries or otpauth URLs, restrict file permissions, and run `gauth` to display previous, current, and next codes. The CLI also supports printing a single key, bare output for scripting, adding and removing keys, and retrieving an account secret.

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

gauth matters to package-manager users as a deliberately small security CLI: one binary plus a user-managed local secrets file. It represents the Unix preference for inspectable text configuration and shell-friendly output in a domain often dominated by mobile apps.

### 时间线

- 2013: The official GitHub repository was created.
- 2010s: The README documented use with Homebrew, Go installation, and multiple online services.
- 2020s: The project remains available as a packaged Go TOTP CLI.

### Related projects

- The README points users who need to interpret QR codes toward gauthQR. The project is conceptually related to Google Authenticator-compatible TOTP tools and the otpauth URI format.

### 来源

- <https://github.com/pcarrier/gauth>
- <https://github.com/pcarrier/gauth#readme>


## 安全说明

narrow executable package without higher-risk signals.

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

## 其他软件包管理器记录

- apk - gauth - 1.5.0-r15: normalized package name match | Alpine Linux edge package indexes: gauth from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Replacement for Google Authenticator | https://github.com/pcarrier/gauth


## Combined YAML source

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


## 来源

- 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
