Use OpenAI / Azure OpenAI / DeepSeek / Gemini APIs to review staged Git changes, generate conventional commit messages, and keep commit conventions consistent across repositories.
This project is a fork of Sitoi/ai-commit, with independent branding, release workflow, and repository-level language override improvements.
English · 简体中文 · Report Bug · Request Feature
Features
- Generate commit messages from staged diffs with OpenAI / Azure OpenAI / DeepSeek / Gemini.
- Support multi-language commit messages.
- Support repository-level language overrides for multi-project workflows.
- Support Gitmoji prompts.
- Support custom system prompts.
- Support Conventional Commits.
Installation
- Download the latest
.vsixasset from GitHub Releases. - In VS Code, run
Extensions: Install from VSIX.... - Select the downloaded
ai-commit-plus-<version>.vsixpackage.
Note
Use Node.js24.14.1or later for local development and packaging.
Usage
- Install and enable
AI Commit Plus. - In VS Code settings, configure the
ai-commit-plussettings namespace. - Stage the changes you want to include in the commit.
- Optional: enter extra context in the Source Control message box before generating the commit message.
- Click the
AI Commit Plusaction in the Source Control title area. - Review the generated message and commit if it looks correct.
If you switch between repositories that require different commit languages, press Ctrl+Shift+P to open the Command Palette (Cmd+Shift+P on macOS), then run Set Commit Language for Current Repository. It stores a workspace or folder override only for the active repository.
Note
This command saves the language choice as a VS Code workspace or folder setting. In a single-folder repository, it will usually write to.vscode/settings.json; if that file is tracked by Git, you may see it in your changes list.
Note
If your diff is too large for the configured model context window, stage and generate the commit in smaller batches.
Configuration
Note
Since0.0.5,EMOJI_ENABLEDandFULL_GITMOJI_SPECare no longer required. The default Gitmoji prompt is prompt/with_gitmoji.md. If you do not want Gitmoji output, setAI_COMMIT_SYSTEM_PROMPTto your own prompt and start from prompt/without_gitmoji.md.
All settings live under the ai-commit-plus. prefix in VS Code:
| Setting | Type | Default | Required | Notes |
|---|---|---|---|---|
AI_PROVIDER |
string | openai |
Yes | Supported values: openai, gemini |
OPENAI_API_KEY |
string | None | Yes* | Required when AI_PROVIDER is openai |
OPENAI_BASE_URL |
string | None | No | For Azure, use https://{resource}.openai.azure.com/openai/deployments/{model} |
OPENAI_MODEL |
string | gpt-4o |
Yes* | You can update it with Show Available OpenAI Models |
AZURE_API_VERSION |
string | None | No | Azure OpenAI API version |
OPENAI_TEMPERATURE |
number | 0.7 |
No | Valid range: 0 to 2 |
GEMINI_API_KEY |
string | None | Yes* | Required when AI_PROVIDER is gemini |
GEMINI_MODEL |
string | gemini-2.0-flash-001 |
Yes* | Gemini model name |
GEMINI_TEMPERATURE |
number | 0.7 |
No | Valid range: 0 to 2 |
AI_COMMIT_LANGUAGE |
string | English |
Yes | Supports 19 languages and repository-level overrides |
AI_COMMIT_SYSTEM_PROMPT |
string | None | No | Custom system prompt for commit generation |
Local Development
You can develop online with GitHub Codespaces:
Or clone the repository locally:
git clone https://github.com/mizuikk/ai-commit.git
cd ai-commit
npm installOpen the project in VS Code and press F5 to launch an Extension Development Host.
Contributing
Issues and pull requests are welcome. Use GitHub Issues for bugs, feature requests, and discussion.
Contributors
Credits
- auto-commit - https://github.com/lynxife/auto-commit
- opencommit - https://github.com/di-sukharev/opencommit
License
This project is MIT licensed.


