Use AI to generate commit message for your staged changes.
- Use local models (via Ollama) or remote models (OpenAI/Gemini)
- Use your preferred AI model
- Regenerate commit messages until you find the perfect one
- Simple CLI interface with debug mode
pip install ai-gen-commit
In any git directory with staged changes, run:
aic
aic -d
aic -m <model-name>
aic -m "llama3.2:3b"
# OR
export OLLAMA_MODEL="llama3.2:3b"
⚠️ Only supports OpenAI and Gemini models for now.
To run in remote mode, export your OpenAI or Gemini API keys as:
export OPENAI_API_KEY=<openai-or-gemini-api-key>
then enable remote mode:
aic -r
Specify the model to use based on the provider's API key:
# For OpenAI
aic -r -m "gpt-4o-2024-11-20"
# For Gemini
aic -r -m "gemini-1.5-flash"
aic -h
make setup