Common questions about Commit-AI.
Commit-AI is an intelligent Git commit message generator that uses AI to analyze your code changes and create professional, detailed commit messages following the Conventional Commits specification.
- You make code changes and stage them with
git add - Run
commit-ai - Commit-AI retrieves your staged changes
- Sends the diff to Groq's AI for analysis
- AI generates 3 commit message options
- You select one and optionally edit it
- Commit-AI creates the git commit
Yes! Commit-AI is free and open-source (MIT license). Groq also offers a free tier for API usage.
- Windows (amd64)
- macOS (Intel and Apple Silicon)
- Linux (amd64, arm64)
No, Commit-AI requires an internet connection to communicate with Groq's AI API.
See Installation Guide for detailed instructions for your platform.
Quick install:
# macOS/Linux
curl -L https://github.com/NeelFrostrain/Commit-Ai/releases/latest/download/commit-ai-darwin-arm64 -o /usr/local/bin/commit-ai
chmod +x /usr/local/bin/commit-ai
# Windows
# Download installer from GitHub releases- Visit https://console.groq.com/keys
- Sign up or log in
- Create a new API key
- Copy and save the key
See Configuration Guide.
Quick setup:
commit-ai
# Enter API key when promptedBasic workflow:
git add .
commit-ai
# Select from 3 options
# Review and confirmOr commit automatically:
commit-ai -c| Flag | Description |
|---|---|
-c |
Commit automatically |
-y |
Skip confirmations |
-v |
Verbose mode |
-e |
Add emojis |
-m |
Override AI model |
Yes! When selecting the commit title, choose "✏️ Edit manually..." to customize it.
Yes! When selecting the report format, choose "✏️ Edit report" to customize the body.
Yes! Use the -c -y flags for automation:
commit-ai -c -yYes! Add to .git/hooks/pre-commit:
#!/bin/bash
commit-ai -vDefault: llama-3.1-8b-instant (fast and accurate)
Other options:
llama-3.1-70b-versatile(more powerful)mixtral-8x7b-32768(alternative)
Yes! Use the -m flag:
commit-ai -m llama-3.1-70b-versatileVery accurate! The AI understands code logic and generates meaningful commit messages. Test it with your own code to see.
Not yet, but it's planned for v2.0.0. Currently, only Groq models are supported.
Groq offers a free tier with rate limits. Upgrade your plan for higher limits.
Yes! Your API key is stored locally in ~/.commit-ai.env with secure permissions (600). It's never logged or displayed.
Only the staged diff is sent to Groq's API for analysis. No other data is transmitted.
Yes! You can:
- Use your own Groq account
- Configure proxy settings
- Store API key securely
- Use in CI/CD pipelines
None! Commit-AI doesn't collect any usage data or analytics.
Possible reasons:
- Slow internet connection
- Large diff size
- Groq API rate limit
- System resource constraints
Solutions:
- Check internet speed
- Stage fewer files
- Wait and retry
- Close other applications
Default: 8,000 characters (configurable)
Larger diffs are truncated to stay within API limits.
Groq's free tier has rate limits. Check your usage at https://console.groq.com/usage.
Upgrade your plan for higher limits.
Yes! Set environment variable:
export COMMIT_AI_MAX_TOKENS=20000Set your API key:
echo "GROQ_API_KEY=gsk_your_key_here" > ~/.commit-ai.envStage your changes:
git add .
commit-aiWait a moment and try again, or upgrade your Groq plan.
Check your internet connection and API key validity.
For more troubleshooting, see Troubleshooting Guide.
- feat (features)
- fix (bug fixes)
- docs (documentation)
- style (formatting)
- refactor (code restructuring)
- perf (performance)
- test (tests)
- chore (maintenance)
- build (build system)
- ci (CI/CD)
Not yet, but it's planned for future versions.
See Roadmap for planned features.
Yes! See Contributing Guide.
| Feature | Commit-AI | Others |
|---|---|---|
| AI-powered | ✅ | ✅ |
| Free | ✅ | ❌ |
| Open-source | ✅ | ❌ |
| Multiple options | ✅ | ❌ |
| Emoji support | ✅ | ❌ |
| Detailed reports | ✅ | ❌ |
| Cross-platform | ✅ | ✅ |
- Free and open-source
- AI-powered analysis
- Multiple commit options
- Detailed reports
- Emoji support
- Easy to use
- Cross-platform
- Check Troubleshooting Guide
- Search GitHub Issues
- Create new issue with:
- Version:
commit-ai version - System info:
uname -a - Error message
- Steps to reproduce
- Version:
- Check Roadmap
- Search GitHub Issues
- Create new issue with feature description
- GitHub Issues: https://github.com/NeelFrostrain/Commit-Ai/issues
- GitHub Discussions: https://github.com/NeelFrostrain/Commit-Ai/discussions
- Documentation: https://github.com/NeelFrostrain/Commit-Ai/tree/main/docs