AI Commit - Automagically generate conventional commit messages with AI
FreeAutomagically generate conventional git commit messages with AI
FreeFree tier
About AI Commit - Automagically generate conventional commit messages with AI
AI Commit is an open-source PHP CLI tool that automatically generates conventional Git commit messages using various AI models. It supports multiple backends including OpenAI, GitHub Copilot CLI, ERNIE-Bot, Moonshot, and Bito CLI. Users configure API keys, then run a simple command to produce commit messages following the Conventional Commits specification, with options for type selection. Requires PHP 8.2+.
Key Features
Supports multiple AI backends: OpenAI, GitHub Copilot CLI, ERNIE-Bot, Moonshot, Bito CLI, and more
Generates commit messages following the Conventional Commits specification
Interactive type selection (feat, fix, docs, style, refactor, perf, test, etc.)
Simple CLI usage: `./ai-commit commit`
Customizable via global configuration for API keys and default generator
Lightweight PHP tool requiring PHP 8.2+
Available as a downloadable binary or via Composer
Pros & Cons
Pros
- Works with many popular AI models and services
- Open source and free to use
- Easy set up with a single binary download or Composer
- Generates well-structured, conventional commit messages
- Lightweight and fast CLI tool
Cons
- Requires PHP 8.2+, limiting use on older systems
- Requires API keys for each AI backend, which may incur costs
- Only generates commit messages; does not analyze code quality or write code
- Dependent on external AI services for generation
Best For
Automate commit message generation in Git workflowsEnforce conventional commit standards across a teamReduce time writing commit messages for developersIntegrate AI assistance into existing Git hooks or CI/CD pipelines
FAQ
What PHP version is required?
PHP 8.2 or higher is required.
Which AI backends are supported?
Bito CLI, ERNIE-Bot-turbo, ERNIE-Bot, GitHub Copilot CLI, GitHub Models CLI, Moonshot, OpenAI Chat, and OpenAI.
How do I install AI Commit?
You can download the ai-commit binary directly from the releases, or install via Composer globally with `composer global require guanguans/ai-commit --dev`.
What commit types does it support?
The tool supports conventional commit types including feat, fix, docs, style, refactor, perf, test, and others. You can choose automatically or manually.