A small Bun CLI that uses AI to generate git commit messages.
commit # generate a commit message from staged changes and commit it
commit ask # generate message ideas from the working tree
commit login # save OAuth credentials for a provider
commit apikey # save API key for a provider (OpenAI, Anthropic, etc.)
commit model # set the model for the current sessionsrc/index.ts- CLI entry point and command flowsrc/git.ts- git diff and commit helperssrc/ai.ts- AI prompt and response parsingsrc/auth.ts- OAuth credential storage helpers
- Defaults to
openai/gpt-4o-mini - Shares credentials with pi agent via
~/.pi/agent/auth.json - Stores commit settings under the
commitkey in~/.pi/agent/settings.json - Supports both OAuth (GitHub Copilot, Google Gemini CLI) and API keys (OpenAI, Anthropic, OpenRouter)
- Requires staged changes for the default commit flow