git-acm

Crates.iogit-acm
lib.rsgit-acm
version2.0.0
created_at2025-01-07 02:13:15.244902+00
updated_at2025-10-07 11:20:48.190753+00
descriptioninstant meaningful commit messages.
homepagehttps://git-acm.pages.dev
repositoryhttps://github.com/shivamhwp/git-acm
max_upload_size
id1506566
size254,902
shivam (shivamhwp)

documentation

README

git-acm - git auto-commit-message

instant meaningful commit messages powered by OpenRouter

Docs Crates.io

Crates.io Total Downloads

installation

curl -sSL https://raw.githubusercontent.com/shivamhwp/git-acm/main/install.sh | sh

how to use

  1. Ensure git is initialized (git init if needed).
  2. Get OpenRouter API key and add to .env or export:
    OPENROUTER_API_KEY="your_key"
    
  3. Run git-acm get-models to fetch models (run once, stores locally). Use git-acm list to view.
  4. Visit openrouter.ai/models, copy model ID.
  5. Run git-acm use <copied_model_id> to select (e.g., anthropic/claude-sonnet-4.5). Model selection screenshot
  6. Stage changes: git add .
  7. Run git-acm to 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.) and models.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.

Commit count: 150

cargo fmt