OpenCommit is a command-line tool that writes your git commit messages with an LLM — in about a second, in the format your team expects. Billing itself as the most feature-rich GPT wrapper for git, it supports hosted models from OpenAI and Anthropic as well as local models through Ollama. The project has about 7,500 stars on GitHub, is released under the MIT license, and was actively maintained in 2026.
The workflow could not be simpler: stage your changes, run oco, and OpenCommit reads the diff, asks the configured model to describe it, and commits with a generated message you can accept, edit or regenerate. It follows the Conventional Commits specification, can add emojis, supports multiple languages, and learns your repository’s recent style. Configuration lets you switch providers — GPT models, Claude, Azure OpenAI, Gemini or a fully local Ollama model for private codebases — and set message length, tone and per-repository overrides. A git hook integration can generate messages automatically on every commit. For developers who commit dozens of times a day, it removes one of the small but constant frictions of the job.
Free. OpenCommit is open source under the MIT license; you bring your own model API key, or run it against a local model at no cost at all.
Developers and teams who want consistently clear, conventional commit histories without stopping to hand-write a message for every small change.