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)