Commit Sage analyzes git changes in the workspace root.
- Run
git statusand verify there are staged or unstaged changes - If
commitSage.commit.onlyStagedChangesistrue, ensure changes are staged (git add) - Check that VS Code has opened the correct folder (the one containing
.git)
This is a generic error — check the output panel (View → Output → Commit Sage) for the specific cause.
Your API key is invalid or not set.
- Open Command Palette (
Ctrl+Shift+P/Cmd+Shift+P) - Run "Commit Sage: Set <Provider> API Key"
- Paste a fresh key from your provider's console
You have exceeded the provider's rate limit.
- Wait a moment and retry
- Switch to a different model or provider
- For Gemini,
automode will try alternative models automatically
The request exceeded commitSage.apiRequestTimeout (default: 30 seconds).
- Increase the timeout value in settings (
-1disables the timeout) - Check your internet connection
- Try a faster model (e.g.,
gemini-2.0-flash-liteinstead ofgemini-2.5-pro)
Common when using a corporate proxy or custom endpoint.
- Verify the
baseUrlis correct (OpenAI / Ollama settings) - Check that the endpoint is reachable:
curl <baseUrl>/models
"API key not valid" — The key from Google AI Studio is not activated yet (can take a few minutes) or belongs to a different project. Generate a new key at aistudio.google.com.
Model not available in your region — Use auto mode; it fetches the list of models available to your account and tries them in order.
"model not found" — The model name in commitSage.openai.model does not exist on the endpoint. Check the model list from your provider and update the setting.
Azure OpenAI — Set baseUrl to your Azure deployment URL: https://<resource>.openai.azure.com/openai/deployments/<deployment>. The model field should match the deployment name.
LocalAI / Ollama as OpenAI-compatible endpoint — Set baseUrl to your local server (e.g., http://localhost:8080/v1). Leave the API key blank or set any non-empty string.
"Unauthorized" — Codestral requires a separate API key from console.mistral.ai/codestral, distinct from the general Mistral API key.
"Connection refused" — Ollama is not running or not listening on the expected port.
- Start Ollama:
ollama serve - Verify it is accessible:
curl http://localhost:11434/api/tags - Check
commitSage.ollama.baseUrlmatches the actual address
"Model not found" — Pull the model first: ollama pull llama3.2
Using Ollama on a remote machine — Set baseUrl to the remote address and enable commitSage.ollama.useAuthToken if authentication is required.
- Check that the file is at
<project-root>/.commitsage/config.json(same directory as.gitfor the.commitsagedirectory) - Validate the JSON syntax — VS Code will show a red squiggle on invalid JSON, and Commit Sage will show an error notification on save
- Settings in
.commitsage/config.jsonoverride VS Code settings; API keys are always read from VS Code's secure storage regardless
Open .commitsage/config.json and look for:
- Trailing commas after the last item in an object or array
- Missing quotes around string values
- Mismatched braces
- Ensure the Source Control view is focused, or try the Command Palette: "Commit Sage: Generate Commit Message"
- Check for keybinding conflicts: Keyboard Shortcuts editor → search "commitsage"
- Verify Commit Sage is installed and enabled (Extensions sidebar)
- Reload VS Code window: Command Palette → "Developer: Reload Window"
Check the GitHub releases for changelog notes. If you suspect a regression, open an issue with your VS Code version, extension version, and steps to reproduce.