Skip to main content

Prerequisites

Before installing GitWhisper, ensure you have:
  • Git installed and available in your PATH
  • One of the installation methods below available on your system
GitWhisper requires Git to be installed and accessible from the command line. Verify with git --version.

Installation methods

Choose the installation method that works best for your system:

Install via Dart pub

If you have Dart SDK installed, you can activate GitWhisper globally:
dart pub global activate gitwhisper
Requires Dart SDK version 3.0.0 or higher.
After installation, make sure the Dart pub global bin directory is in your PATH:
# Add to ~/.bashrc, ~/.zshrc, or equivalent
export PATH="$PATH":"$HOME/.pub-cache/bin"
Verify the installation:
gitwhisper --version
gw --version

Verify installation

After installation, verify that both gitwhisper and gw commands are available:
# Check version
gitwhisper --version

# Test the short alias
gw --version

# View help
gitwhisper --help
gw --help
You should see output similar to:
gitwhisper version: 0.1.15

Post-installation setup

After installing GitWhisper, you’ll need to configure at least one AI model API key:
1

Choose an AI model

Select an AI provider from: Claude, OpenAI, Gemini, Grok, Llama, DeepSeek, GitHub, Ollama, or use the free model (no API key required)
2

Save your API key

gitwhisper save-key --model openai --key "your-api-key-here"
3

Set default model (optional)

gitwhisper set-defaults --model openai --model-variant gpt-4o
Skip API key setup if you’re using the free model: gw commit --model free

Next steps

Quick start guide

Generate your first AI-powered commit message

Configuration

Set up API keys, default models, and preferences

Update GitWhisper

To update GitWhisper to the latest version:
dart pub global activate gitwhisper
GitWhisper includes a built-in update command that works across all installation methods.

Uninstall

To remove GitWhisper from your system:
dart pub global deactivate gitwhisper
Optionally, remove the configuration file:
rm ~/.git_whisper.yaml

Build docs developers (and LLMs) love