aicommits logo

aicommits

Free

Automatically generate Git commit messages.

FreeFree tier
Type
Open Source

About aicommits

AICommits is an open-source CLI tool that leverages AI to automatically generate Git commit messages based on staged changes. It supports multiple AI providers including TogetherAI, OpenAI, Groq, xAI, OpenRouter, and local models via Ollama or LM Studio. Users can customize the commit message format (plain, conventional, conventional+body, gitmoji, or subject+body), generate multiple message options, and use various CLI flags for staging, clipboard copying, file exclusion, and custom prompts. The tool is designed to streamline developer workflows by eliminating the need to write commit messages manually.

Key Features

Automatically generates commit messages from staged changes using AI
Supports multiple AI providers: TogetherAI, OpenAI, Groq, xAI, OpenRouter, Ollama, LM Studio, and custom OpenAI-compatible endpoints
Customizable commit message formats: plain, conventional, conventional+body, gitmoji, subject+body
Generate multiple message options with the --generate flag
CLI flags for staging, clipboard copying, file exclusion, and custom prompts
Free and open source (MIT license)

Pros & Cons

Pros
  • Saves time by automating the writing of commit messages
  • Supports a wide range of AI providers, including free local models (Ollama, LM Studio)
  • Customizable output formats to match project conventions
  • Simple CLI interface with intuitive flags
  • Free and open-source, no subscription required
Cons
  • Requires an API key for cloud-based AI providers (e.g., OpenAI, TogetherAI)
  • Only processes staged changes; cannot analyze full repository context
  • Limited to commit message generation, not a general-purpose code assistant
  • Dependency on external AI services when using cloud providers

Best For

Generating Git commit messages automatically to save developer timeStandardizing commit message formats across a development teamAccelerating developer workflow by eliminating manual commit writingIntegrating with CI/CD environments for automated commitsUsing local AI models for privacy-sensitive projects

FAQ

How do I install aicommits?
Install it globally via npm: npm install -g aicommits. Requires Node.js v22 or later.
Which AI providers does aicommits support?
It supports TogetherAI, OpenAI, Groq, xAI, OpenRouter, Ollama (local), LM Studio (local), and any custom OpenAI-compatible endpoint.
How do I configure aicommits?
Run aicommits setup to choose a provider, enter your API key, select a model, and choose a commit message format. For CI/CD, you can set configuration via environment variables or a config file.
Can I use aicommits without an API key?
Yes, by using local providers like Ollama or LM Studio, which run AI models on your own machine and require no API key.
What commit message formats are supported?
You can choose from plain, conventional, conventional+body, gitmoji, and subject+body formats.