# 使用 Homebrew, apk, MacPorts, Nix 安装 goat

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

## 安装

```sh
sudo av install brew:goat
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install goat
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install goat
```

  证据: MacPorts ports tree: graphics/goat/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add goat
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#goat
```

  证据: nixpkgs package indexes: pkgs/by-name/go/goat/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## 软件包事实

- **软件包键:** brew:goat
- **软件包管理器:** Homebrew
- **版本:** 0.2.3
- **来源摘要:** General purpose AT Protocol CLI in Go
- **主页:** <https://github.com/bluesky-social/goat>
- **仓库:** <https://github.com/bluesky-social/goat>
- **最后更新:** 2026-07-25T20:55:23-04:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- goat (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

goat is the Bluesky Social Go command-line tool for the AT Protocol, described by its README as a general-purpose atproto CLI similar in spirit to curl. It gives developers and operators a shell-native way to inspect records, stream the firehose, work with PLC identity data, migrate accounts, administer PDS instances, and call XRPC endpoints.

### 项目历史

The AT Protocol project emerged from Bluesky's protocol work: Bluesky described its spring 2022 ADX work as the first iteration, then announced the Authenticated Transfer Protocol on October 18, 2022. The protocol centers on portable identities, signed repositories, federation, Lexicon schemas, and HTTP/WebSocket synchronization.

goat was forked from the Bluesky indigo codebase in August 2025 and had its first tagged release, v0.1.0, on August 12, 2025. Subsequent releases added and reorganized account, PDS admin, lexicon, dependency, and XRPC capabilities while tracking the evolving indigo SDK.

### 采用历史

goat serves the AT Protocol developer and operations community rather than end users of the Bluesky app. The surrounding ecosystem had already encouraged third-party work: by October 2023, Bluesky documentation described developers building bots, clients, feed generators, and future applications on atproto.

The Homebrew formula packages goat as a direct CLI install path for users who want an atproto toolbox without building from source. Its README also documents prebuilt binaries, Debian/Ubuntu packages, and go install.

### 使用方式

goat is used to resolve identities, list and fetch at:// records, export repositories and blobs, inspect PLC history, tail PLC operations, subscribe to relay firehose events, post through Bluesky APIs, manage lexicons, and make XRPC query or procedure calls. Some commands are public; account-modifying commands require login with an app password.

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

goat is interesting to package maintainers because it turns a fast-moving protocol stack into a reproducible local executable. For developers exploring atproto, it is the low-friction bridge between shell workflows, jq pipelines, Go-based SDK code, and network services such as PDSes, relays, PLC, Lexicon, and XRPC.

Its presence in package managers is also a sign of the AT Protocol ecosystem maturing beyond one hosted application: protocol developers need inspection, migration, and admin tools just as much as client libraries.

### 时间线

- 2022: Bluesky announced ADX had become the Authenticated Transfer Protocol.
- 2023: Bluesky documentation invited developers to build bots, clients, feeds, and other projects on atproto.
- 2025: goat was forked from indigo and tagged v0.1.0.
- 2025: goat v0.2.0 added more lexicon management commands and required Go 1.25.
- 2026: goat v0.2.3 added the first version of the xrpc subcommand.

### Related projects

- goat is closely related to the AT Protocol, Bluesky, indigo, Personal Data Servers, relays, PLC identity infrastructure, Lexicon schemas, and the XRPC HTTP API model.

### 来源

- <https://atproto.com/guides/overview>
- <https://bsky.social/about/blog/10-18-2022-the-at-protocol>
- <https://docs.bsky.app/blog/building-on-atproto>
- <https://docs.bsky.app/docs/advanced-guides/atproto>
- <https://github.com/bluesky-social/goat>
- <https://raw.githubusercontent.com/bluesky-social/goat/main/CHANGELOG.md>
- <https://raw.githubusercontent.com/bluesky-social/goat/main/README.md>


## 安全说明

narrow executable package without higher-risk signals.

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


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Credential files

- Unix: $XDG_STATE_HOME/goat/auth-session.json, ~/.local/state/goat/auth-session.json
## 其他软件包管理器记录

- Nix - goat: normalized package name match | nixpkgs package indexes: pkgs/by-name/go/goat/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - goat - 0.2.3-r1: normalized package name match | Alpine Linux edge package indexes: goat from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Go AT protocol CLI tool | https://github.com/bluesky-social/goat
- apk - goat-doc - 0.2.3-r1: normalized package name match | Alpine Linux edge package indexes: goat-doc from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Go AT protocol CLI tool (documentation) | https://github.com/bluesky-social/goat
- MacPorts - goat: normalized package name match | MacPorts ports tree: graphics/goat/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Combined YAML source

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


## 来源

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