A powerful CLI tool for generating commit messages using AI, with support for multiple providers:
- OpenAI (GPT-4, GPT-3.5)
- Anthropic (Claude)
- Google (Gemini)
npm install -g commit-ai-cli
- Run the setup wizard:
commit-ai setup
-
Follow the interactive prompts to:
- Choose your preferred AI provider
- Configure your API key
- Select your preferred model
-
Generate commit messages:
commit-ai
# or
commit-ai generate
-
commit-ai setup
- Interactive setup wizard -
commit-ai generate
- Generate a commit message -
commit-ai diff
- Show current git changes -
commit-ai ai --test
- Test your API key configuration
-
-y, --yes
- Skip confirmation and commit directly -
--show-diff
- Show diff before generating commit message -
-d, --debug
- Enable debug mode
The following commands are equivalent:
commit-ai
aig
aic
You can get your API keys from:
- OpenAI: https://platform.openai.com/api-keys
- Anthropic: https://console.anthropic.com/account/keys
- Google: https://makersuite.google.com/app/apikey
- 🤖 Multiple AI Provider Support
- OpenAI's GPT models
- Anthropic's Claude models
- Google's Gemini models
- 🎯 Conventional Commits Format
- 💡 Smart Context Analysis
- 🔒 Secure API Key Storage
- 🎨 Beautiful CLI Interface
- ⚡ Fast and Efficient
- Node.js >= 14.16
- Git
MIT