# 使用 Homebrew, MacPorts, Nix 安装 ain

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

## 安装

```sh
sudo av install brew:ain
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install ain
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install ain
```

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

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#ain
```

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

## 软件包事实

- **软件包键:** brew:ain
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/ain>
- **版本:** 1.6.0
- **来源摘要:** HTTP API client for the terminal
- **主页:** <https://github.com/jonaslu/ain>
- **仓库:** <https://github.com/jonaslu/ain>
- **上游文档:** <https://github.com/jonaslu/ain>
- **许可证:** MIT
- **源码归档:** <https://github.com/jonaslu/ain/archive/refs/tags/v1.6.0.tar.gz>
- **已生成:** 2026-07-08T07:18:31+00:00

## 可执行文件

- ain (cli)
- ain (别名)

## 构建依赖

- go

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, sonoma, ventura, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-07-08
- 管理器版本: 1.6.0
- 本地数据: OK
- 上游仓库: https://github.com/jonaslu/ain
- 检测到的最新版本: v1.6.0 (当前)
- 信息: No package-manager update timestamp was available.
## 项目历史与用法

Ain is a terminal HTTP API client that uses template files to assemble requests and then delegates the actual call to curl, wget, or httpie. The README describes it as an alternative to Postman, Paw, or Insomnia for users who prefer files, folders, scripts, and pipes.

### 项目历史

The public GitHub repository was created in October 2020. The project is written in Go and centers on a small `.ain` template format with sections such as Host, Query, Headers, Method, Body, Config, Backend, and BackendOptions.

Ain's design goal is explicit in the README: enable scripting of input and further processing of output through terminal pipes. Rather than building its own HTTP stack as the user-facing primitive, it makes curl, wget, or httpie the backend and focuses on request organization.

### 采用历史

Official installation instructions cover `go install`, Homebrew, Scoop, AUR binary packages, and manual downloads from GitHub releases. The input package facts also list Homebrew, MacPorts, and Nix packages.

Homebrew listed version 1.6.0 as stable and reported 107 installs over 365 days when checked, suggesting a small but packaged Unix-tool audience.

### 使用方式

Users write one or more `.ain` template files, pass them to `ain`, optionally provide variables, and receive output from the selected backend. Templates can be layered across files and directories, making it useful for API collections that still behave like shell files.

Ain has no separate credentials store in the official README. Secrets are normally represented through template variables, environment variables, `.env`-style workflows, scripts, or headers inside user-controlled `.ain` files.

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

Ain is a classic package-manager-friendly CLI: a single Go executable, no service account, no desktop app, and a plain-text file format. Its appeal is to users who want API-client ergonomics without leaving the shell or losing composability with find, fzf, pipes, curl, wget, and httpie.

### 时间线

- 2020: Public GitHub repository created.
- 2020s: README documents Go, Homebrew, Scoop, AUR, and binary-release installation paths.
- 2026: Homebrew lists 1.6.0 as stable in checked metadata.

### Related projects

- curl, wget, and httpie, used as request backends.
- Postman, Paw, and Insomnia, named by the README as GUI/API-client alternatives.
- Shell tools such as find, fzf, and environment-variable based workflows.

### 来源

- <https://formulae.brew.sh/api/formula/ain.json>
- <https://github.com/jonaslu/ain>


## 安全说明

broad file, network, media, or database tool signal.

- **Geiger 风险:** blue / 中
- broad file, network, media, or database tool signal


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


## Configuration files

- Unix: *.ain
## 源数据库详情

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

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

- Nix - ain: normalized package name match | nixpkgs package indexes: pkgs/by-name/ai/ain/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- MacPorts - ain: normalized package name match | MacPorts ports tree: www/ain/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## 相关链接

- [Source-control packages](https://www.automicvault.com/zh-hans/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Secret-risk packages](https://www.automicvault.com/zh-hans/pkg/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://www.automicvault.com/zh-hans/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/zh-hans/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [go](https://www.automicvault.com/zh-hans/pkg/brew/go/) - Build dependency declared by Homebrew.
- [graphqurl](https://www.automicvault.com/zh-hans/pkg/brew/graphqurl/) - Shares av.db curated category or tags: api, api-client, cli, developer-tools.
- [httpie](https://www.automicvault.com/zh-hans/pkg/brew/httpie/) - Shares av.db curated category or tags: api, api-client, cli, developer-tools.
- [httpyac](https://www.automicvault.com/zh-hans/pkg/brew/httpyac/) - Shares av.db curated category or tags: api, api-client, cli, developer-tools.
- [mockserver](https://www.automicvault.com/zh-hans/pkg/brew/mockserver/) - Shares av.db curated category or tags: api, cli, developer-tools, http.
- [moco](https://www.automicvault.com/zh-hans/pkg/brew/moco/) - Shares av.db curated category or tags: api, cli, developer-tools, http.
- [swagger-codegen](https://www.automicvault.com/zh-hans/pkg/brew/swagger-codegen/) - Shares av.db curated category or tags: api, api-client, cli, developer-tools.
- [algolia](https://www.automicvault.com/zh-hans/pkg/brew/algolia/) - Shares av.db curated category or tags: api, cli, developer-tools.
- [cliproxyapi](https://www.automicvault.com/zh-hans/pkg/brew/cliproxyapi/) - Shares av.db curated category or tags: api, cli, developer-tools.
- [posting](https://www.automicvault.com/zh-hans/pkg/brew/posting/) - Local metadata places this package in an adjacent workflow. Shared terms: api, api-client, cli, client, developer.
- [resty](https://www.automicvault.com/zh-hans/pkg/brew/resty/) - Local metadata places this package in an adjacent workflow. Shared terms: api, api-client, cli, client, developer.

## Combined YAML source

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


## 来源

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated configuration and credential file locations
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
