# Install aicommit with Homebrew, winget

AI-powered commit message generator. Version 0.6.5 via Homebrew; verified 2026-07-26. Also installable with winget: winget install --id RussMckendrick.Aicommit -e.

## Install

```sh
sudo av install brew:aicommit
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install aicommit
```

  Evidence: local Homebrew formula metadata

### Windows

- winget (92%):

```sh
winget install --id RussMckendrick.Aicommit -e
```

  Evidence: Windows Package Manager source index: RussMckendrick.Aicommit from https://cdn.winget.microsoft.com/cache/source.msix

## Package facts

- **Package key:** brew:aicommit
- **Package manager:** Homebrew
- **Version:** 0.6.5
- **Source summary:** AI-powered commit message generator
- **Homepage:** <https://github.com/coder/aicommit>
- **Repository:** <https://github.com/coder/aicommit>
- **Last updated:** 2026-07-26T13:19:49+02:00
- **Generated:** 2026-08-03T19:37:03+00:00

## Executables

- aicommit (alias)

## Install behavior

- Bottle: not available

## Freshness

- Page generated: 2026-08-03
- Package-manager version: 0.6.5
## Project history and usage

aicommit is Coder's small Go CLI for generating Git commit messages from staged changes. It is intentionally narrower than a general coding assistant: it builds a prompt from repository history and diffs, streams a model-generated message, and then runs git commit unless used in dry-run or ref-targeting modes.

### Project history

The GitHub repository was created in August 2024, and releases followed rapidly through the autumn of that year. The README frames the project around an opinionated problem: many AI commit-message tools exist, but this one tries to follow a repository's existing commit style.

The implementation uses OpenAI-compatible chat completions, defaults to an OpenAI model, and supports overriding the base URL for compatible providers. The source includes a persistent key path under the user's config directory and a COMMITS.md style-guide convention.

### Adoption history

Official installation paths are Homebrew, go install, and GitHub release binaries. The supplied package facts also list a winget package, giving it modest cross-platform package-manager presence despite its small scope.

The package belongs to the 2024 wave of single-purpose AI developer CLIs: tools that do one Git-adjacent task with LLM assistance rather than trying to become a full IDE assistant.

### How it is used

Users stage changes, provide OPENAI_API_KEY or save a key with --save-key, and run aicommit. Flags support amending the previous commit, dry-running the generated git command, targeting a specific ref, adding extra context, changing the model, and using an OpenAI-compatible base URL.

Style configuration is file-based: aicommit reads COMMITS.md from the repository root when present, otherwise ~/COMMITS.md. This makes the package interesting for teams that want generated messages to match local conventions rather than a generic conventional-commits template.

### Why package nerds care

aicommit is small, but package-nerd-relevant because it shows how quickly AI utilities became normal CLI packages: a single binary, Homebrew formula, Go install path, release artifacts, environment-variable configuration, and optional local secret persistence.

Its narrowness is the point. It can be packaged, audited, and replaced more easily than a large assistant, while still touching a high-frequency developer workflow.

### Timeline

- 2024: GitHub repository created in August.
- 2024: v0.3.x and v0.4.x releases published within days of repository creation.
- 2024: v0.6.5 released in November.
- 2026: Input package facts list Homebrew and winget packaging.

### Related projects

- aicommit is related to Git, OpenAI-compatible APIs, local model gateways such as LiteLLM, and other AI commit-message generators.
- It uses a repository-local COMMITS.md convention instead of a broader project-management or changelog system.

### Sources

- <https://api.github.com/repos/coder/aicommit>
- <https://api.github.com/repos/coder/aicommit/releases?per_page=100>
- <https://github.com/coder/aicommit#readme>
- <https://raw.githubusercontent.com/coder/aicommit/main/cmd/aicommit/main.go>
- <https://raw.githubusercontent.com/coder/aicommit/main/cmd/aicommit/savekey.go>
- source_facts.package-manager


## Security Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- narrow executable package without higher-risk signals


## 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: COMMITS.md in repository root, ~/COMMITS.md

## Credential files

- Linux: ${XDG_CONFIG_HOME}/aicommit/openai.key, ~/.config/aicommit/openai.key
- macOS: ~/Library/Application Support/aicommit/openai.key
- Windows: %AppData%\aicommit\openai.key
## Other Package-Manager Records

- winget - RussMckendrick.Aicommit: normalized package name match | Windows Package Manager source index: RussMckendrick.Aicommit from https://cdn.winget.microsoft.com/cache/source.msix


## Combined YAML source

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


## Sources

- 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
