Generate Git commit messages instantly using AI — right from the VS Code Source Control panel.
Supports Anthropic Claude (cloud) and Ollama (local, free).
- One-click generation — a sparkle button appears in the Source Control panel toolbar. Click it to generate a commit message from your current diff.
- Style matching — analyzes your last 5 commits and matches your repo's existing style and format.
- Staged-first — uses your staged diff if available, falls back to all modified files.
- Claude or Ollama — switch between Claude (cloud) and any locally installed Ollama model from the status bar.
- Install the extension.
- Open the Command Palette (
Ctrl+Shift+P) and run CommitCraft: Set API Key. - Paste your Anthropic API key.
- Stage some changes and click the $(sparkle) sparkle button in the Source Control toolbar.
- Install and start Ollama.
- Pull a model:
ollama pull llama3.2 - Click the model indicator in the status bar (bottom-right) and select your Ollama model.
- Stage some changes and click the sparkle button.
| Command | Description |
|---|---|
CommitCraft: Generate Commit Message |
Generate and insert a commit message |
CommitCraft: Set API Key |
Store your Anthropic API key securely |
CommitCraft: Edit API Key |
Replace your stored API key |
CommitCraft: Delete API Key |
Remove your stored API key |
CommitCraft: Select Model |
Switch between Claude and Ollama models |
| Setting | Default | Description |
|---|---|---|
commitcraft.provider |
claude |
AI provider: claude or ollama |
commitcraft.ollamaHost |
http://localhost:11434 |
Ollama server URL |
commitcraft.ollamaModel |
(none) | Ollama model to use |
- Claude: An Anthropic API key (paid, usage-based)
- Ollama: Ollama installed and running locally with at least one model pulled
- The sparkle button now animates into a loading spinner while the commit message is being generated, then reverts once done.
- Initial release with Claude and Ollama support.
MIT