# 使用 Homebrew 安装 aicommits

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

## 安装

```sh
sudo av install brew:aicommits
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install aicommits
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:aicommits
- **软件包管理器:** Homebrew
- **版本:** 3.4.0
- **来源摘要:** Writes your git commit messages for you with AI
- **主页:** <https://github.com/Nutlope/aicommits>
- **最后更新:** 2026-07-10T16:49:55-04:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- aic (别名)
- aicommits (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

aicommits is a JavaScript/Node command-line utility that writes Git commit messages from staged diffs using AI models. Its README presents it bluntly as a CLI that writes commit messages so users do not have to.

### 项目历史

The public npm package and GitHub repository both date to February 2023, placing aicommits among the early wave of ChatGPT-era developer CLIs. The project was initially centered on OpenAI-backed commit-message generation and later expanded provider support to TogetherAI, Groq, xAI, OpenRouter, Ollama, LM Studio, and custom OpenAI-compatible endpoints.

The tool grew from a simple `git add` plus `aicommits` workflow into a small Git integration package: it supports selectable message formats, multiple generated recommendations, custom prompts, clipboard output, direct commit invocation, and a prepare-commit-msg hook.

### 采用历史

The official README documents npm installation and a global CLI, while the Homebrew formula packages the same tool for brew users. The GitHub repository had over 9,000 stars when checked through the official repository API.

The npm registry listed 98 published versions and latest version 3.4.0; Homebrew also listed 3.4.0 as the stable formula version.

### 使用方式

The normal workflow is `git add <files...>` followed by `aicommits`; unknown flags are passed through to `git commit`. Users can also install a prepare-commit-msg hook so Git opens the generated message in the configured editor before committing.

Configuration is created by `aicommits setup` in `~/.aicommits`, and the README also documents environment-variable configuration for API keys and provider settings.

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

aicommits became one of the recognizable package names in the AI commit-message subgenre: a tiny npm-installed executable, a memorable binary alias `aic`, a Homebrew formula, and a configuration dotfile. It is also directly named by aicommit2 as an architectural inspiration.

### 时间线

- 2023: npm package record created and GitHub repository opened.
- 2023: Tool ships as a global npm CLI for AI-generated Git commit messages.
- 2026: npm and Homebrew list 3.4.0 as current/latest.

### Related projects

- aicommit2, which cites aicommits as inspiration.
- Git commit hooks, especially prepare-commit-msg.
- OpenAI-compatible API providers and local model runners such as Ollama and LM Studio.

### 来源

- <https://formulae.brew.sh/api/formula/aicommits.json>
- <https://github.com/Nutlope/aicommits>
- <https://registry.npmjs.org/aicommits>


## 安全说明

没有找到 aicommits 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。



## 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: ~/.aicommits

## Credential files

- Unix: ~/.aicommits

## Combined YAML source

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


## 来源

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