# 使用 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
- **版本:** 5.3.0
- **来源摘要:** Artificial Intelligence Infrastructure-as-Code Generator
- **主页:** <https://github.com/gofireflyio/aiac>
- **仓库:** <https://github.com/gofireflyio/aiac>
- **最后更新:** 2026-07-26T13:19:49+02:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- aiac (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 5.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
## 其他软件包管理器记录

- 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


## 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
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
