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 loc
What is 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
Overview of opencommit
What it is
OpenCommit is a command-line tool that auto-generates meaningful Git commit messages using a large language model (LLM). It wraps Git and works with multiple providers including OpenAI, Claude, Ollama, and llama.cpp. The tool is designed to kill lame commits with AI.
Key features
- Automatically generates a commit message from staged changes in about one second
- Supports multiple LLM providers: OpenAI (GPT‑4o‑mini, GPT‑4o, GPT‑3.5‑turbo), Claude, Azure OpenAI, Flowise, Ollama, llama.cpp, and OrcaRouter
- Offers local model support via Ollama and llama.cpp without sending data to external services
- Provides GitMoji emoji support with a default 10‑emoji set and an optional full GitMoji specification
- Allows extensive configuration (model, API key, API URL, custom headers, token limits, language, emoji position, one‑line commits, descriptions, and prompt modules)
Use cases
Developers who want to save time writing commit messages and maintain a consistent commit style across a repository. Teams that want to standardise commit formatting (e.g., Conventional Commits with optional emoji). Users who prefer running a local LLM (via Ollama or llama.cpp) for privacy‑sensitive projects.
Getting started
Install globally via npm:shnpm install -g opencommitSet your API key (replace `` with your actual key):shoco config set OCO_API_KEY=Stage your changes and run OpenCommit:shgit addocoFor local Ollama usage, see the repository README.
License and pricing
This project is licensed under the MIT license. It is open source and has no stated pricing tier. Users pay for their own LLM API usage (e.g., OpenAI API costs) or run local models at no API cost.
Based on the project's public README and repository metadata.