# Install ain with Homebrew, MacPorts, Nix

HTTP API client for the terminal. Version 1.6.0 via Homebrew; verified from local package data.

## Install

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

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install ain
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install ain
```

  Evidence: 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
```

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

## Package facts

- **Package key:** brew:ain
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/ain>
- **Version:** 1.6.0
- **Source summary:** HTTP API client for the terminal
- **Homepage:** <https://github.com/jonaslu/ain>
- **Repository:** <https://github.com/jonaslu/ain>
- **Upstream docs:** <https://github.com/jonaslu/ain>
- **License:** MIT
- **Source archive:** <https://github.com/jonaslu/ain/archive/refs/tags/v1.6.0.tar.gz>
- **Generated:** 2026-07-09T07:20:21+00:00

## Executables

- ain (cli)
- ain (alias)

## Build dependencies

- go

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, sonoma, ventura, x86_64_linux

## Freshness

- Page generated: 2026-07-09
- Package-manager version: 1.6.0
- Local data: ok
- Upstream repository: https://github.com/jonaslu/ain
- Upstream latest detected: v1.6.0 (current)
- info: No package-manager update timestamp was available.
## Project history and usage

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.

### Project history

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.

### Adoption history

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.

### How it is used

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.

### Why package nerds care

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.

### Timeline

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

### Sources

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


## Security Notes

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

- **Geiger risk:** blue / medium
- 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 Details

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

## Other Package-Manager Records

- 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


## Related links

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


## Sources

- 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
