Instant commit messages in the terminal powered by OpenRouter
curl -sSL https://raw.githubusercontent.com/shivamhwp/git-acm/main/install.sh | sh
to update : just run the installation command, it checks the system for prev version and then installs a new version if there's one.
- ensure git is initialized in the dir. or run
git init. - get OpenRouter API key
- add it in your project's
.envfile (preferred) orexportit in terminal.
OPENROUTER_API_KEY="your_api_key_here"
- run
git-acm get-modelsto fetch available models (run once, stores locally). you can rungit-acm listto see the list of the models. - go to openrouter.ai/models, click copy model id.

- run
git-acm use <copied_model_id>to select the model. - stage your changes with
git add .or specific files. - just run
git-acmto generate and use the commit message(it already gets copied to the clipboard automatically).
get-models : Fetch and store models from OpenRouter (run occasionally to update).
use <model> : Choose a model.
list : Lists all available models.
autocommit enable/disable : Enables/disables automatic git commit after generation.
run : Generate a commit message (default behavior).
git-acm get-models # Fetch models (first time)
git-acm list # See available models
git-acm use anthropic/claude-sonnet-4.5 # Select model
git-acm autocommit enable # Enable auto-commit
git-acm # Generate commit message
git-acm autocommit disable # Disable auto-commitensure
rustis installed on your system . go tohttps://doc.rust-lang.org/book/ch01-01-installation.htmlfor details.
-
git clone https://github.com/shivamhwp/git-acm.git
- get OpenRouter API key. see .env.example
- create
.envfile at root > setOPENROUTER_API_KEY="your_key". -
cargo build
cargo run --to get the commit msg in the terminal.- start with
main.rsand break stuff.
bhai(s) : sargam (idea) and smr (suggestions).
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.