# Install aicommit2 with Homebrew

Reactive CLI that generates commit messages for Git and Jujutsu with AI. Version 2.7.0 via Homebrew; verified 2026-07-08.

## Install

```sh
sudo av install brew:aicommit2
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install aicommit2
```

  Evidence: local Homebrew formula metadata

## Package facts

- **Package key:** brew:aicommit2
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/aicommit2>
- **Version:** 2.7.0
- **Source summary:** Reactive CLI that generates commit messages for Git and Jujutsu with AI
- **Homepage:** <https://github.com/tak-bro/aicommit2>
- **Repository:** <https://github.com/tak-bro/aicommit2>
- **Upstream docs:** <https://github.com/tak-bro/aicommit2>
- **License:** MIT
- **Source archive:** <https://registry.npmjs.org/aicommit2/-/aicommit2-2.7.0.tgz>
- **Last updated:** 2026-07-08T03:28:43Z
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- aic2 (cli)
- aicommit2 (cli)
- aic2 (alias)
- aicommit2 (alias)

## Dependencies

- node

## Install behavior

- Post-install hook: not defined
- Bottle: available on all

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 2.7.0
- Package-manager updated: 2026-07-08
- Local data: ok
- Upstream repository: https://github.com/tak-bro/aicommit2
- info: No cached GitHub release or tag data was available.
## Project history and usage

aicommit2 is a Node-based command-line tool for generating commit messages and code-review text from version-control diffs. Its upstream README describes support for Git, YADM, and Jujutsu, plus cloud and local AI providers including OpenAI, Anthropic, Gemini, Mistral, Groq, Ollama, OpenRouter, and other OpenAI-compatible services.

### Project history

The project positions itself as a successor-style tool in the AI commit-message niche: the README explicitly says AICommits inspired its core functionality and architecture. The npm registry records the aicommit2 package as created in July 2023, while the current GitHub repository record dates the public repository to January 2024.

Later development emphasized provider breadth, reactive selection among generated messages, Jujutsu support, prepare-commit-msg hook usage, diff compression, and optional code review. The configuration documentation settled on an XDG-style INI file with a legacy dotfile fallback.

### Adoption history

Official install paths include npm, Homebrew, and Nix. The README advertises both npm and Homebrew badges, and the Homebrew formula describes it as a reactive CLI for Git and Jujutsu commit messages.

Homebrew analytics for the formula reported 1,842 installs over 365 days at the time checked, while the npm registry showed 155 published versions and latest version 2.6.1.

### How it is used

Typical use is to stage changes and run `aicommit2`, or use the shorter `aic2` alias. Users configure at least one provider through `aicommit2 setup`, `aicommit2 config set`, environment variables, or a config file.

Package-manager users care about the config-path order because the same file can hold provider keys and model settings: `$AICOMMIT_CONFIG_PATH`, then XDG config, then `~/.aicommit2`.

### Why package nerds care

aicommit2 is part of the post-ChatGPT wave of small, global CLI tools that wrap Git workflows with LLM calls. It is interesting beside aicommits because it shows a package evolving from single-purpose commit generation into a multi-provider, multi-VCS terminal assistant while still installing as one small executable.

### Timeline

- 2023: npm package record for aicommit2 created.
- 2024: Current GitHub repository created.
- 2026: Homebrew formula and npm package list version 2.6.1 as stable/latest.

### Related projects

- aicommits, cited by aicommit2 as inspiration.
- Git, YADM, and Jujutsu, the version-control systems aicommit2 targets.
- Ollama and OpenAI-compatible APIs, supported provider families.

### Sources

- <https://formulae.brew.sh/api/formula/aicommit2.json>
- <https://github.com/tak-bro/aicommit2>
- <https://github.com/tak-bro/aicommit2/blob/main/docs/settings.md>
- <https://registry.npmjs.org/aicommit2>


## Security Notes

No matching local secret-handling manifest was found for aicommit2. Nucleus package metadata is still published here so future coverage has a stable package 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: $AICOMMIT_CONFIG_PATH, $XDG_CONFIG_HOME/aicommit2/config.ini, ~/.config/aicommit2/config.ini, ~/.aicommit2

## Credential files

- Unix: $AICOMMIT_CONFIG_PATH, $XDG_CONFIG_HOME/aicommit2/config.ini, ~/.config/aicommit2/config.ini, ~/.aicommit2
## Source Database Details

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


## Related links

- [Source-control packages](https://www.automicvault.com/pkg/source-control-tools/) - Belongs to a source-control command family.
- [MCP tool packages](https://www.automicvault.com/pkg/mcp-tools/) - Mentions MCP or Model Context Protocol.
- [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.
- [node](https://www.automicvault.com/pkg/brew/node/) - Runtime dependency declared by Homebrew.
- [aicommit](https://www.automicvault.com/pkg/brew/aicommit/) - Package name indicates the same formula family.
- [aicommits](https://www.automicvault.com/pkg/brew/aicommits/) - Shares av.db curated category or tags: ai, cli, commit-messages, developer-tools, git.
- [commitlint](https://www.automicvault.com/pkg/brew/commitlint/) - Shares av.db curated category or tags: cli, commit-messages, developer-tools, git, version-control.
- [vibecheck](https://www.automicvault.com/pkg/brew/vibecheck/) - Shares av.db curated category or tags: ai, cli, developer-tools, git, version-control.
- [braid](https://www.automicvault.com/pkg/brew/braid/) - Shares av.db curated category or tags: cli, developer-tools, git, version-control.
- [cig](https://www.automicvault.com/pkg/brew/cig/) - Shares av.db curated category or tags: cli, developer-tools, git, version-control.
- [codeberg-cli](https://www.automicvault.com/pkg/brew/codeberg-cli/) - Shares av.db curated category or tags: cli, developer-tools, git, version-control.
- [commitizen](https://www.automicvault.com/pkg/brew/commitizen/) - Shares av.db curated category or tags: cli, developer-tools, git, version-control.
- [git-mob](https://www.automicvault.com/pkg/brew/git-mob/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, control, developer, developer-tools, git.

## Combined YAML source

View the package source record on GitHub. [combined/aicommit2.yml](https://github.com/automic-vault/db/blob/main/combined/aicommit2.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
- cross-ecosystem install command graph
