Open Source CLI Tool
Git Commit AI
Generate Conventional Commit messages from staged git changes using LLMs. Supports local models (Ollama, llama.cpp) and cloud APIs (OpenAI, Anthropic, Groq).
$ npm install -g @vavasilva/git-commit-ai
Quick Start
Stage your changes and let AI generate the commit message.
Terminal
# Make changes to your code
git add .
# Generate commit message with AI
git-commit-ai
๐ Generated commit message
feat(auth): add login validation
[C]onfirm [E]dit [R]egenerate [A]bort? c
โ Committed: feat(auth): add login validation
Features
Everything you need for smart commit messages.
Multiple Backends
Local (Ollama, llama.cpp) or cloud (OpenAI, Anthropic, Groq). Your choice.
Conventional Commits
Generates type(scope): subject format. Karma compatible.
Interactive Flow
Confirm, edit, regenerate, or abort before committing.
Git Hook
Auto-generate on git commit. Zero friction workflow.
Multi-language
Generate messages in English, Portuguese, Spanish, and more.
Configurable
Per-project or global config. Set defaults, temperature, and more.
Supported Backends
Use local models for privacy or cloud APIs for power.
๐ฆ Ollama (local)
๐ง llama.cpp (local)
OpenAI (GPT)
Anthropic (Claude)
Groq (Llama)