#180180th of 236 in Coding agents and AI editors
opencommit
CLI that writes git commit messages from staged diffs using an LLM
- Stars
- 7.5k
- License
- MIT
- Last commit
- Nov 2026
- Last release
- May 2023
- Language
- JavaScript
7,188 on 25 Apr 20267,549 on 14 Nov 2026
From GitHub's daily star counts.
Checked on GitHub.
Overview
OpenCommit is an npm-installed CLI (`oco`) that sends your staged diff to an LLM and commits with the generated message. It supports OpenAI, Anthropic, Azure, Gemini, Ollama, llama.cpp, Flowise, DeepSeek and OpenRouter, and can run as a prepare-commit-msg hook or a GitHub Action that rewrites commit messages on push.
Who it is for: Developers who want AI-written commit messages in the terminal, hooks or CI
Strengths
- Works with local models via Ollama or llama.cpp, so diffs need not leave your machine
- prepare-commit-msg hook integrates with IDE source control and allows editing before commit
- Per-repo .env and global ~/.opencommit config, plus .opencommitignore to exclude files from the prompt
- Supports conventional-commit or commitlint prompt modules, GitMoji, and multiple output languages
Weaknesses
- GitHub Action is marked beta and rewrites history via rebase, changing commit SHAs
- Last tagged release is from 2023-05-21 despite recent commits
- Default input limit is 4096 tokens, so large diffs may need tuning
- README contradicts itself on default model: gpt-4o-mini in config, 3.5-turbo in payments
What it needs
- no GPU
- Needs Node.js, npm, git, LLM provider API key or local Ollama/llama.cpp server
- Models: OpenAI, Anthropic, Azure OpenAI, Gemini, Ollama
What changed
From the release notes. No flag means the note does not say so, not that the upgrade is safe.
Also in Coding agents and AI editors
See all 236| Rank | Project | Score |
|---|---|---|
| 1 | claw-codeRust CLI coding agent harness using Anthropic and OpenAI-compatible APIs | 96 out of 100 |
| 2 | t3codeDesktop, web and mobile front end for controlling local coding agent CLIs | 96 out of 100 |
| 3 | codewhaleTerminal coding agent in Rust that works with 40+ model providers | 94 out of 100 |
| #4 | gooseRust AI agent with desktop app, CLI and API, extended through MCP | 93 out of 100 |
| #5 | ArchonYAML workflow engine that runs AI coding agents through fixed dev steps | 93 out of 100 |