Generate Git commit messages using local or cloud LLMs. Supports Apple Foundation Models, LM Studio, Ollama, OpenAI, and any OpenAI-compatible API.
Requirements
Visual Studio Code version 1.80.0 or higher
One of the supported providers configured and running
Installation
Install Visual Studio Code
Install the "LLM Commit" extension from the VS Code marketplace.
Configure your provider in the extension settings.
Quick Setup
Apple Foundation Models: Set provider to "Apple" — no model download or configuration needed! Requires macOS 26+ with Apple Silicon and Apple Intelligence enabled.
LM Studio (default): Start LM Studio, load a model, and enable the local server — no configuration needed!
Ollama: Run ollama serve to start the server — no configuration needed!
OpenAI: Set provider to "OpenAI" and add your API key in settings
Custom: Set provider to "Custom" and configure URL, API key, and model manually
Model choice
Apple Foundation Models: Uses Apple's on-device ~3B model. Runs natively, completely private, and fast. Great for commit messages since they're short tasks.
LM Studio / Ollama: Any instruction-following model works. I recommend qwen2.5-coder-7b-instruct — small, fast, and understands code well.
OpenAI: Uses gpt-4.1 by default.
Extension Settings
This extension contributes the following settings:
Provider Presets
llm-commit.provider: Select a provider preset for quick setup:
Apple: Apple Foundation Models — on-device, no setup required (macOS 26+, Apple Silicon)
LM Studio (default): http://127.0.0.1:1234/v1/chat/completions