commitai
Local AI-powered git commit message generator using Ollama. Zero API cost, fully local.
Requirements
- Python 3.12+
- Ollama running locally with a model pulled (e.g.
llama3.2:3b)
Installation
pip install commitai
Usage
# Stage your changes first
git add .
# Generate commit message → confirm → commit
commit
# Generate commit message → confirm → commit → push
commit /deploy
At the prompt you can:
Yor Enter — accept and commitn— aborte— open your$EDITORto edit the message before committing
Configuration
Create a .commitrc file in your repo root to override defaults:
model = "llama3.2:3b"
style = "conventional"
protected_branches = ["main", "master"]
How it works
- Reads your staged diff (
git diff --cached) - Strips binary files and scans for secrets
- Sends the diff to your local Ollama instance
- Returns a Conventional Commits message
Metadata
Release files for commitai-cli 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| commitai_cli-0.2.0.tar.gz | 6.3 kB | Without provenance | Details for commitai_cli-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| commitai_cli-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for commitai_cli-0.2.0-py3-none-any.whl |
Total release size: 11.1 kB
Release files / commitai_cli-0.2.0.tar.gz
| Download URL | commitai_cli-0.2.0.tar.gz |
|---|---|
| Size | 6.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
aa4909d9641a537c3d5b4654e07b52a226d819f82f37167bbc383990ea333267
|
|
BLAKE2b-256 checksum How to use checksums |
209c0c2eb016d5001bf870ae5a86b9ed755397a131d644ccd622549d0fd7745c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / commitai_cli-0.2.0-py3-none-any.whl
| Download URL | commitai_cli-0.2.0-py3-none-any.whl |
|---|---|
| Size | 4.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0e1ac000f4ffc656d7a0ec508ef397a554fdd4eafb821e0ea16d4f0a3f4336c9
|
|
BLAKE2b-256 checksum How to use checksums |
4af17a02e660166b6bcaeb6987c8fdb70a013f073e22a3fa872e9ee22cb26884
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for commitai-cli 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.