Install
$ curl -fsSL https://commit.jaw.dev/install.sh | bash
Configure
The first run asks for your OpenRouter API key and preferred model,
then securely saves both. Press Enter to use openrouter/free.
$ curl -fsSL https://commit.jaw.dev | bash
$ curl -fsSL https://commit.jaw.dev | bash -s -- --setup
Basic Usage
$ git add .
$ curl -fsSL https://commit.jaw.dev | bash
How It Works
- Stage the changes you want to commit.
- Run Commit with one OpenRouter API key.
- Review, regenerate, edit, or accept the suggested message.
Diffs larger than 1 MiB are rejected before an API request is made.
Options
-m, --model- Override the configured OpenRouter model for one run. Find valid IDs in the OpenRouter model catalog.
--dry-run- Preview the generated message without creating a commit.
-y, --yes- Accept the generated message without asking for confirmation.
-v, --verbose- Show detailed command output.
-h, --help- Show command help.
--setup- Configure the saved OpenRouter API key and model.
Examples
$ curl -fsSL https://commit.jaw.dev | bash
$ curl -fsSL https://commit.jaw.dev | bash -s -- --model openrouter/auto
$ curl -fsSL https://commit.jaw.dev | bash -s -- --dry-run
$ curl -fsSL https://commit.jaw.dev | bash -s -- --yes
$ curl -fsSL https://commit.jaw.dev | bash -s -- --verbose
The default is openrouter/free, which randomly selects an available free model.
Free models have lower rate limits and may be less consistent.