di-sukharev/opencommit
top #1 and most feature rich GPT wrapper for git — generate commit messages with an LLM in 1 sec — works with Claude, GPT and every other provider, supports local Ollama models too
What it solves
OpenCommit solves the problem of writing boring, vague, or inconsistent Git commit messages. It automatically generates meaningful, descriptive commit messages from your staged changes, so you don't have to think about what to write or worry about forgetting important details.
How it works
You install OpenCommit globally with npm, add your API key (for OpenAI or any supported LLM provider), and then run the oco command in your repository. It looks at the files you've staged (via git add or automatically), sends that diff to an AI model, and produces a commit message in Conventional Commits style (or optionally following your project's @commitlint rules). It then asks you to confirm and commits the changes for you. You can customize almost everything: the AI provider (OpenAI, Anthropic, Azure, Ollama, llama.cpp, and many more), the model, whether to include GitMoji emojis, the language of the message, and even the exact template used.
Who it's for
It's for developers who use Git regularly and want to keep their commit history clean and informative without spending time writing messages manually. It's also great for teams that want a consistent commit format across all contributors, and for anyone who wants to try running AI-powered tools locally with models like Ollama or llama.cpp for privacy or cost reasons.
Highlights
- Winner of a GitHub 2023 hackathon.
- Supports a wide range of LLM providers: OpenAI, Anthropic, Azure, Ollama, llama.cpp, Gemini, Flowise, DeepSeek, and several gateway services (OrcaRouter, Cheaper Inference, Requesty, Atlas Cloud, UberLLM).
- Highly configurable: GitMoji emojis, language, model choice, one-line commits, extra description, custom message templates, and more.
- Works with local models via Ollama or llama.cpp—no cloud API required.
- Can integrate with
@commitlintto match your project's existing commit rules. - Supports ignore files (
.opencommitignore) so you can avoid sending large or sensitive files to the AI.
Related
- Project
- Project
- Project
- Project
- Project