OpenCommit: feature-rich CLI to generate meaningful git commit messages now supports local models via Ollama 🤯🔫

Dima Sukharev - Feb 28 - - Dev Community

OpenCommit logo
Hi

OpenCommit is a CLI to generate commit messages, you can try it right now by running npx opencommit in any repo you have changed code in. I suggest you use bunx opencommit (install Bun) or install OpenCommit globally npm i -g opencommit and then run oco which is a shorthand.

Anyway see the README: https://github.com/di-sukharev/opencommit

OpenCommit got 5k stars since the launch. More than 1 hundred PRs have been merged and now we support local Ollama!
Ollama logo
Originally OpenCommit worked with OpenAI apis, but if you dont want to share your code base with 3rd party you can now use an LLM running locally, including Mixtral8x7B, llama and other open-source models.

All the latest OpenAI models are also supported if you want to trade your money for the best performance.

Anyway, OpenCommit is the most feature-rich CLI to generate git commit messages out there, i mean in the open-source.

We support tens of different languages, you can integrate opencommit into a git hook, there is a GitHub Action that can improve all the commits in a repository, you can do Conventional Commits and GitMoji, integrate with commitlint, and lots of other things!

We also got first place in DIY Deployments Track in the latest GitHub+Dev 2023 hackathon

Set it up yourself: https://github.com/di-sukharev/opencommit

mind-blowing

follow me on twitter, khm-khm, on X! https://twitter.com/_sukharev_ for more open-source hits

. . . . . . . . . . . . . . .