Get started with Commit-AI in 5 minutes.
- Git installed and configured
- Groq API key (free at https://console.groq.com/keys)
# Download and run installer
# Or use Go
go install github.com/NeelFrostrain/Commit-Ai@latestcurl -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-aicurl -L https://github.com/NeelFrostrain/Commit-Ai/releases/latest/download/commit-ai-linux-amd64 -o ~/.local/bin/commit-ai
chmod +x ~/.local/bin/commit-ai- Visit https://console.groq.com/keys
- Sign up or log in
- Create a new API key
- Copy the key
Run commit-ai for the first time:
commit-aiWhen prompted, enter your API key. It will be saved to ~/.commit-ai.env.
# Make your code changes
echo "console.log('hello')" > app.js
# Stage changes
git add .# Generate commit message
commit-ai
# Select from 3 AI-generated options
# Choose report format (keep, edit, or skip)
# Review and confirm# Option 1: Use commit-ai to commit
commit-ai -c
# Option 2: Manual commit
git commit -m "feat(app): add hello world"# Generate and commit in one step
commit-ai -c
# Verbose mode (see analysis)
commit-ai -v
# Add emojis
commit-ai -e
# Skip confirmations
commit-ai -y
# Combine flags
commit-ai -cev- Stage only related changes - Better commit messages when changes are grouped logically
- Use verbose mode - See what the AI is analyzing with
-vflag - Try emoji mode - Use
-eflag for more visual commits - Check examples - See Examples for inspiration
# Set API key
echo "GROQ_API_KEY=your_key_here" > ~/.commit-ai.env# Make sure you have staged changes
git status
git add .- Wait a moment and try again
- Upgrade your Groq plan
- Stage fewer files at once
For more help, see Troubleshooting Guide.