# 使用 Homebrew, Nix 安装 aiac

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

## 安装

```sh
sudo av install brew:aiac
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install aiac
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#aiac
```

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

## 软件包事实

- **软件包键:** brew:aiac
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/aiac>
- **版本:** 5.3.0
- **来源摘要:** Artificial Intelligence Infrastructure-as-Code Generator
- **主页:** <https://github.com/gofireflyio/aiac>
- **仓库:** <https://github.com/gofireflyio/aiac>
- **许可证:** Apache-2.0
- **源码归档:** <https://github.com/gofireflyio/aiac/archive/refs/tags/v5.3.0.tar.gz>
- **最后更新:** 2026-07-26T13:19:49+02:00
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- aiac (cli)
- aiac (别名)

## 构建依赖

- go

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 5.3.0
- 管理器更新时间: 2026-07-26
- 本地数据: OK
- 上游仓库: https://github.com/gofireflyio/aiac
- 检测到的最新版本: v5.3.0 (当前)
## 项目历史与用法

AIaC is Firefly's Artificial Intelligence Infrastructure-as-Code Generator, a Go CLI and library that asks LLM providers to generate Terraform, Pulumi, CloudFormation, Kubernetes manifests, CI/CD pipelines, policy-as-code, shell utilities, and related infrastructure snippets.

### 项目历史

The GitHub repository was created in December 2022 and the first listed release, v1.0.0, was published that month. The project appeared during the first wave of developer CLIs built around general-purpose LLM APIs, but narrowed the prompt domain to infrastructure and cloud operations.

The README documents both CLI and library usage, and later versions added a backend-oriented configuration model. By the v5 README, AIaC could define multiple named backends for OpenAI, Amazon Bedrock, Ollama, Azure OpenAI-style endpoints, and related provider settings.

### 采用历史

AIaC's official install instructions include a Homebrew tap, Docker image, go install command, source build, and Arch Linux AUR packages. The supplied package facts list Homebrew and Nix packaging, which fits an infrastructure engineer audience comfortable installing CLIs through multiple channels.

The repository's GitHub metadata shows several thousand stars by the time of this enrichment run, suggesting wider interest than a one-off demo. The release history shows continued releases through v5.3.0 in October 2024.

### 使用方式

Users configure one or more LLM backends in ${XDG_CONFIG_HOME}/aiac/aiac.toml, including API keys or profile settings, then run natural-language prompts such as requests for Terraform, Kubernetes manifests, GitHub Actions, OPA policies, AWS CLI commands, or SQL queries.

By default, the CLI prints extracted code and can run interactively, save generated code to output files, write Markdown readmes, run quietly for scripts, or copy results to the clipboard.

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

AIaC is a useful package-culture artifact from the LLM CLI boom: not a general chat frontend, but a prompt-shaped code generator focused on infrastructure formats that package managers already serve to DevOps users.

Its configuration model also shows the rapid shift from a single OpenAI-key CLI toward pluggable LLM backends, local model support, and provider-specific settings.

### 时间线

- 2022: GitHub repository created and v1.0.0 released.
- 2023: v2 releases shipped in the first half of the year.
- 2024: v4 releases shipped, followed by v5.0.0 in June.
- 2024: v5.3.0 released in October.

### Related projects

- AIaC is related to Terraform, Pulumi, CloudFormation, Kubernetes, CI/CD systems, OPA, and cloud-provider CLIs as output targets rather than replacements.
- The README names OpenAI, Amazon Bedrock, and Ollama as supported LLM provider backends.

### 来源

- <https://api.github.com/repos/gofireflyio/aiac>
- <https://api.github.com/repos/gofireflyio/aiac/releases?per_page=100>
- <https://github.com/gofireflyio/aiac#readme>
- source_facts.package-manager


## 安全说明

infrastructure mutation or orchestration signal.

- **Geiger 风险:** orange / 中
- infrastructure mutation or orchestration 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: ${XDG_CONFIG_HOME}/aiac/aiac.toml, ~/.config/aiac/aiac.toml

## Credential files

- Unix: ${XDG_CONFIG_HOME}/aiac/aiac.toml, ~/.config/aiac/aiac.toml
## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** aiac
- **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 - aiac: normalized package name match | nixpkgs package indexes: pkgs/by-name/ai/aiac/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## 相关链接

- [Cloud CLI packages](https://pkg.so/zh-hans/cloud-clis/) - Belongs to a cloud or infrastructure command family.
- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [MCP tool packages](https://pkg.so/zh-hans/mcp-tools/) - Mentions MCP or Model Context Protocol.
- [Secret-risk packages](https://pkg.so/zh-hans/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [go](https://pkg.so/zh-hans/brew/go/) - Build dependency declared by Homebrew.
- [kuzco](https://pkg.so/zh-hans/brew/kuzco/) - Shares pkgdb curated category or tags: ai, cli, infrastructure-as-code, model-tools, terraform.
- [ollama](https://pkg.so/zh-hans/brew/ollama/) - Shares pkgdb curated category or tags: ai, cli, model-tools.
- [llama.cpp](https://pkg.so/zh-hans/brew/llama-cpp/) - Shares pkgdb curated category or tags: ai, cli, model-tools.
- [llmfit](https://pkg.so/zh-hans/brew/llmfit/) - Shares pkgdb curated category or tags: ai, cli, model-tools.
- [cliproxyapi](https://pkg.so/zh-hans/brew/cliproxyapi/) - Shares pkgdb curated category or tags: ai, cli, model-tools.
- [llm](https://pkg.so/zh-hans/brew/llm/) - Shares pkgdb curated category or tags: ai, cli, model-tools.
- [ramalama](https://pkg.so/zh-hans/brew/ramalama/) - Shares pkgdb curated category or tags: ai, cli, model-tools.
- [apfel](https://pkg.so/zh-hans/brew/apfel/) - Shares pkgdb curated category or tags: ai, cli, model-tools.
- [tfmcp](https://pkg.so/zh-hans/brew/tfmcp/) - Local package facts share a topical domain. Shared terms: ai, cli, code, infrastructure, infrastructure-as-code.

## Combined YAML source

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


## 来源

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