AICommit: Generate Professional Commit Messages Automatically

A powerful CLI tool that uses Large Language Models to write your git commit messages for you. Fast, reliable, and completely free mode included.

$ cargo install aicommit
NPM Crates.io VS Code Extension

Unmatched Efficiency

Everything you need to streamline your development workflow and maintain a clean git history.

AI-Powered

Generate meaningful, descriptive commit messages using state-of-the-art Large Language Models.

Simple Free Mode

Zero cost, zero setup. Automatically selects and rotates through the best available free models via OpenRouter.

Multiple Providers

Full support for OpenRouter, Ollama (local), and any OpenAI-compatible API endpoints.

Smart Versioning

Automate your release workflow with built-in support for Cargo.toml, package.json, and GitHub tags.

Watch Mode

Keep working! AICommit can monitor your files and commit only when you take a break from typing.

VS Code Extension

Generate commit messages directly from your IDE with a dedicated button in the Source Control view.

Usage Guide

Master Your Workflow

Three main ways to use AICommit to make your life easier.

Standard Mode

Generate a message and commit manually. Perfect for ultimate control.

aicommit

Full Automation

Stage, generate, pull, and push with ONE command. Set it and forget it.

aicommit --add --pull --push

Watch Mode

Sit back and let AICommit handle everything. It commits when you're done typing.

aicommit --watch --wait-for-edit 30s
zsh — suenot/aicommit
% aicommit --add
✔ Staging changes...
✔ Analyzing differences...
✔ Using Meta Llama 4 Maverick (Free)
Generated commit message:
"feat(provider): add support for DeepSeek Chat v3"
Tokens: 156↑ 18↓ Cost: $0.0000 (Free Mode)
✓ Commit created successfully.
Deployment

Ready to Start?

Get AICommit running in seconds with your preferred package manager.
Cargo is recommended for best performance.

Rust
Primary / Recommended

Cargo / Rust

Best for Rust developers and users who want absolute maximum performance.

cargo install aicommit
npm
Also Available

NPM / Node.js

For global CLI access from any project. Perfect for JS/TS environments.

npm install -g @suenot/aicommit
Latest

Build from Source

Clone the repository and build the binary yourself for experimental features.

git clone https://github.com/suenot/aicommit
cd aicommit
cargo install --path .