🤖 AI Commit Generator (Multi-Provider)
Stop wasting time writing commit messages. Let AI analyze your code changes and generate clear, detailed, and professional commit messages in seconds.

🤔 Why This Extension?
The Problem:
Writing good commit messages is tedious. Developers often resort to vague messages like "fix bug" or "update code" because crafting a proper description takes time and mental effortβespecially after a long coding session.
The Solution:
This extension uses AI to read your actual code changes (git diff) and generate a meaningful, descriptive commit message that follows best practices. No more guessing, no more "WIP" commits.
🎯 Who Is This For?
- 👨β💻 Solo developers who want cleaner git history without the effort
- 👥 Teams that enforce commit message standards (like Conventional Commits)
- 🎓 Beginners learning how to write proper commit messages
- β‘ Anyone who values productivity over repetitive tasks
β¨ What Does It Do?
| Feature |
Description |
| 🔄 Multi-Provider AI |
Uses 4 free AI providers (Groq, OpenRouter, Mistral, Cohere) with automatic fallback if one fails |
| 📝 Conventional Commits |
Generates messages in feat:, fix:, docs: format automatically |
| 🌐 Multi-Language |
Supports English and Indonesian output |
| 🎯 Smart Context |
Detects your tech stack (React, Python, etc.) to give relevant descriptions |
| β‘ One-Click Operation |
Press a button or use a shortcutβdone in 2 seconds |
| 📋 Flexible Output |
Copy to clipboard, auto-fill SCM input, or edit before using |
| 🚀 Performance Optimized |
Fast models with 78-91 tok/s throughput |
| 🔀 Smart Change Detection |
Auto-detects staged/unstaged changes with interactive options (Stage All, Use Unstaged, Cancel) |
| 📦 Multi-Repo Support |
Works with multiple git repositories open at once |
🚀 Quick Start
1οΈβ£ Install
Search "AI Commit Generator" in VSCode Extensions and click Install.
2οΈβ£ Get a FREE API Key
You need at least one API key (all are FREE):
💡 Pro Tip: Add multiple API keys for better reliability!
- Open VSCode Settings (
Ctrl + , / Cmd + ,)
- Search "AI Commit"
- Paste your API key(s) in the appropriate field(s)
4οΈβ£ Generate!
- Make some code changes
- Click the β¨ sparkle icon in Source Control panel
- Or press
Ctrl+Shift+G then Ctrl+Shift+M
- Or open Command Palette (
Ctrl+Shift+P) β "AI: Generate Commit Message"
- If files are staged β commit message is generated instantly
- If no staged files β you'll be prompted:
- Stage All & Generate β stages everything and generates
- Use Unstaged Changes β generates without staging
- Cancel β do nothing
- Done! Your commit message is ready 🎉
βοΈ Configuration
General Settings
| Setting |
Options |
Default |
Description |
| Preferred Provider |
auto, groq, openrouter, mistral, cohere |
auto |
Choose AI provider (auto = smart fallback) |
| Commit Style |
conventional, detailed, simple |
conventional |
Message format style |
| Language |
english, indonesian |
english |
Output language |
| Output Mode |
clipboard, scm, editor |
clipboard |
Where to put the message |
Provider-Specific Settings
Each provider has dedicated settings for:
- 🔑 API Key
- 🤖 Model Selection
- 🌐 API Base URL (optional)
Available Models (as of v1.3.0)
Groq:
llama-3.3-70b-versatile β‘ (Recommended - Balanced)
llama-3.3-70b-specdec 🚀 (Ultra Fast - Speculative Decoding)
OpenRouter:
arcee-ai/trinity-large-preview:free 🎯 (Best Free)
arcee-ai/trinity-mini-preview:free β‘ (Fastest - 2.8s latency)
Mistral:
codestral-latest 💻 (Best for Code)
ministral-8b-latest 🪶 (Lightweight - 91.5 tok/s)
open-mistral-nemo 🔓 (Open Source - 78.6 tok/s)
Cohere:
command-r-plus 🧠 (Most Capable)
command-r βοΈ (Balanced)
command-r7b-12-2024 🚀 (Fastest - 88.8 tok/s)
📝 Commit Style Examples
🎯 Conventional (Recommended)
feat(auth): implement OAuth2 login flow
- Add Google OAuth provider integration
- Create session management middleware
- Update user model to support external auth
📄 Detailed
Implement OAuth2 login flow with Google provider
This commit adds complete OAuth2 authentication support including
session management and user model updates for external providers.
Changes include:
- Google OAuth2 integration
- Session middleware
- User model extensions
β‘ Simple
Add OAuth2 login with Google provider
🔒 Privacy & Security
- β
Your API keys are stored locally on your machine (in VSCode settings)
- β
Code diffs are sent directly to the AI provider you choose
- β
The extension developer has NO access to your keys or code
- β
Open source β inspect the code yourself on GitHub
- β
No telemetry or tracking β your privacy is respected
🐛 Troubleshooting
Solution: Add at least one API key in VSCode Settings β search "AI Commit"
β "Failed to generate commit message"
Solutions:
- Check if you have staged changes (
git add .)
- Verify your API key is valid
- Try a different provider (set Preferred Provider to another option)
- Check internet connection
β Rate limit errors
Solution: The extension will automatically try the next provider. Consider adding multiple API keys for better reliability.
β οΈ Slow generation
Solutions:
- Use faster models (e.g., Groq's
llama-3.3-70b-specdec)
- Switch to lightweight models (e.g., Mistral's
ministral-8b-latest)
- Check your internet speed
🛠οΈ For Developers
Want to contribute or run locally?
# Clone repository
git clone https://github.com/muhammadalifh/vscode-ai-commit.git
cd vscode-ai-commit
# Install dependencies
npm install
# Compile TypeScript
npm run compile
# Launch Extension Development Host
# Press F5 in VSCode
Project Structure
vscode-ai-commit/
βββ src/
β βββ extension.ts # Main entry point
β βββ providers/ # AI provider implementations
β βββ services/ # Core services
β βββ utils/ # Helper functions
βββ package.json # Extension manifest
βββ tsconfig.json # TypeScript config
Contributing
See CONTRIBUTING.md for guidelines.
| Provider |
Model |
Speed |
Latency |
Quality |
| Groq |
llama-3.3-70b-specdec |
β‘β‘β‘ |
~1.5s |
βββββ |
| OpenRouter |
trinity-mini |
β‘β‘β‘ |
~2.8s |
ββββ |
| Mistral |
ministral-8b |
β‘β‘ |
~3.2s |
ββββ |
| Cohere |
command-r7b |
β‘ |
~4.1s |
βββ |
Benchmarks based on average response time for 200-line diffs
🔄 Changelog
See CHANGELOG.md for version history.
📝 License
MIT License β use it freely, even commercially.
See LICENSE for full text.
🙏 Credits & Acknowledgments
Built with β€οΈ by Muhammad Alif H
Powered By:
- Groq β Lightning-fast LLaMA 3.3 70B inference
- OpenRouter β Unified API for multiple models
- Mistral AI β Open-source excellence
- Cohere β Enterprise-grade language models
Special Thanks:
- VSCode Extension API team
- The open-source community
- All contributors and users
💬 Support & Feedback
🌟 Star History

Made with 💻 and β by developers, for developers.