13 stable releases
| 2.0.0 | Oct 7, 2025 |
|---|---|
| 1.3.0 | May 22, 2025 |
| 1.2.3 | Apr 17, 2025 |
| 1.1.2 | Feb 6, 2025 |
| 0.1.2 | Jan 7, 2025 |
#223 in Configuration
160KB
829 lines
git-acm - git auto-commit-message
instant meaningful commit messages powered by OpenRouter
installation
curl -sSL https://raw.githubusercontent.com/shivamhwp/git-acm/main/install.sh | sh
how to use
- Ensure git is initialized (
git initif needed). - Get OpenRouter API key and add to
.envor export:OPENROUTER_API_KEY="your_key" - Run
git-acm get-modelsto fetch models (run once, stores locally). Usegit-acm listto view. - Visit openrouter.ai/models, copy model ID.
- Run
git-acm use <copied_model_id>to select (e.g.,anthropic/claude-sonnet-4.5). - Stage changes:
git add . - Run
git-acmto generate and use the commit message (copies to clipboard automatically).
📍 commands available
get-models : Fetch models from OpenRouter.
use <model> : Select model.
list : List models.
autocommit enable/disable : Toggle auto-commit.
📍 example
git-acm get-models
git-acm list
git-acm use anthropic/claude-sonnet-4.5
git-acm autocommit enable
git-acm
config storage ----------------
git-acm-prefs.json(model + autocommit prefs.) andmodels.json(list of models available) are stored in your OS config directory.
- macOS:
~/Library/Application Support/git-acm- Linux:
$XDG_CONFIG_HOME/git-acm- Windows:
%APPDATA%/git-acm
note ---------------------
This tool sends the staged git diff to OpenRouter to generate a commit message. Review staged changes and avoid including sensitive content.
Dependencies
~15–35MB
~516K SLoC