An AI-powered commit tool that generates high-quality commit messages and supports multi-project workspaces
AI Commit is a Python utility that leverages the power of AI (Gemini & ChatGPT) to analyze your code changes and automatically generate commit messages that follow the Conventional Commits standard.
- 🔍 Auto-Scan – Automatically scans repositories when the app starts
- 🎯 Visual Selection – Select repositories and files with your mouse
- 🤖 One-Click AI – Generate commit messages with a single click
- 📊 Real-time Log – View all activities in the log panel
- ⚙️ Easy Settings – Toggle AI provider and auto-push options
- ✅ Batch Selection – Select all or clear selection with ease
- 🎨 Modern UI – Clean and intuitive interface
- 🌙 Dark Mode – Switch between light and dark themes
- 📝 Smart File Matching – Auto-detect similar files if errors occur
- ⚙️ Settings Manager – Load/save settings from JSON with error handling
- 🔧 Settings Dialog – Organized tab-based interface
- 🤖 AI Configuration – Choose custom models and manage API keys
- 🐙 GitHub Integration – Username and token support for private repositories
- 📂 Repository Management – Custom parent folder & recent repositories
- 🔄 Auto Refresh – Manually refresh to detect file changes
- 🎯 Better Organization – All configurations in one place
- Open the app → Auto-scan runs automatically
- Select a repository from the dropdown (🔴 indicates changes)
- Configure Settings (first-time setup) – Click ⚙️ Settings
- Select files to commit (or click Select All)
- Click "➕ Add to Stage" to stage files
- Click "🤖 Generate with AI" to create commit messages (or write manually)
- Review the message in the text area
- Click "✅ Commit & Push" to commit and push changes
Access Settings: Click the ⚙️ Settings button in the main window
- AI Provider: Choose between Gemini or ChatGPT
- API Key: Enter the API key for the chosen provider
- Model Selection: Select specific models (gemini-1.5-pro, gpt-4, etc.)
- GitHub Username: Your GitHub username
- GitHub Token: Personal access token for private repos
- Auto-configure Git: Automatically set git config with credentials
- Parent Folder: Custom folder for scanning repositories
- Recent Repositories: History of previously opened repos
- Browse Repository: Manually select a repository folder
- Refresh Button: Manually refresh to detect changes
The GUI supports light and dark themes for better eye comfort:
How to enable:
- Toggle the "🌙 Dark Mode" checkbox in the top-right corner
- The theme instantly updates for all components
Dark Theme:
- Comfortable dark background (#1e1e1e)
- Bright text (#ffffff) for contrast
- Gray frames (#2d2d2d) for clear separation
- Deep blue accents (#0e639c) for highlights
- Perfect for night-time or low-light environments
Light Theme:
- Bright background (#f0f0f0) for well-lit rooms
- Black text (#000000) for maximum clarity
- White frames (#ffffff) for a clean look
- Bright blue accents (#0078d4) for interactions
- Best for daytime or bright environments
- Python 3.9 or later
- Git installed
- API Key from Gemini or OpenAI
- Download AI-Commit.exe – Stable version 1 (1.0.0)
- Go to Google AI Studio
- Sign in with your Google account
- Click "Create API Key"
- Copy the generated key
- Go to OpenAI Platform
- Log in or create an account
- Click "Create new secret key"
- Copy the generated key
- Go to GitHub Settings > Tokens
- Click "Generate new token"
- Select scopes: repo and workflow
- Copy the generated token
A:
- Open the app
- In the top-right corner, check the "🌙 Dark Mode" box
- Toggle to switch between light and dark themes
- The theme updates instantly across the UI
Dark Mode is useful for:
- Night-time work
- Reducing eye strain
- Low-light environments
- Personal preference
A:
- Click ⚙️ Settings
- Open the GitHub tab
- Enter your GitHub username and token
- Check "Auto-configure Git" for automatic setup
- Click Save
A:
- Open Settings → Repository tab
- Click "Browse" next to Parent Folder
- Select the folder containing your Git repositories
- Click Save
- The repository dropdown updates automatically
A: The tool itself is 100% free and open-source. For AI usage:
- Gemini API: Free with a generous daily quota (recommended)
- OpenAI API: Paid, around $0.002 per commit
A:
- ✅ Only git diff (code changes) is sent to the AI
- ✅ No data is stored on external servers
- ✅ API keys and settings are stored locally
⚠️ Do not commit files containing secrets/passwords/tokens
Contributions are always welcome!
- Fork the repository
- Create a feature branch
git checkout -b feature/CoolFeature
- Commit your changes
git commit -m 'feat: add cool feature' - Push to the branch
git push origin feature/CoolFeature
- Create a Pull Request
- AI Providers:
- Google Gemini – Free AI with large quota
- OpenAI – Powerful GPT models
- Standards:
- Conventional Commits – Commit message standard
- Inspired by:
- aicommits by Nutlope
- GitHub Copilot
- 🐛 Open an issue with the label
bug - Include error messages and reproduction steps
- 💡 Open an issue with the label
enhancement - Describe the use case and expected behavior
- 📖 Read FAQ and Troubleshooting above
- 💬 Open an issue with the label
question - 📧 Email: [email protected]
Built with ❤️ for developers who value clean commit history
⭐ Star this repository if you find it useful!
🚀 Happy Committing with AI!
