|
Run Ollama locally. Your code never leaves your machine. Perfect for corporate environments. Works with OpenAI, Gemini, Ollama, and any OpenAI-compatible API (Groq, DeepSeek, etc.). |
Modern terminal UI with colors, spinners, and smooth interactions powered by Charm libraries. Written in Go. Single binary. Zero dependencies. Instant startup. |
# Clone the repo
git clone https://github.com/meklas/gitwhisper.git
cd gitwhisper
# Build (requires Go 1.21+)
go build -o gitwhisper .
# Stage your changes
git add .
# Let AI write your commit
./gitwhisper generateCreate ~/.gitwhisper.yaml:
ai:
provider: ollama # openai | ollama | gemini | openai-compatible
# Ollama (Local & Private)
ollama_endpoint: "http://localhost:11434/api/generate"
ollama_model: "mistral" # or qwen, llama3, etc.
# OpenAI
openai_api_key: "sk-..."
openai_model: "gpt-4o"
# Google Gemini
gemini_api_key: "AIza..."
gemini_model: "gemini-pro"
# Generic (DeepSeek, Groq, etc.)
# openai_base_url: "https://api.deepseek.com/v1/chat/completions"| Feature | Description |
|---|---|
| 🔐 Privacy | Local models via Ollama - no data leaves your machine |
| 🤖 Multi-AI | OpenAI, Gemini, Ollama, or any compatible provider |
| 📝 Conventional Commits | Generates feat:, fix:, docs: format automatically |
| ✏️ Interactive | Review, edit, or reject before committing |
| 🎨 Beautiful CLI | Lipgloss styling + Bubbletea TUI |
| ⚡ Fast | Go binary - instant startup, no runtime needed |
| Provider | Privacy | Speed | Quality | Models |
|---|---|---|---|---|
| Ollama | 🟢 Local | ⚡ Fast | ⭐⭐⭐⭐ | mistral, llama3, qwen |
| OpenAI | 🔴 Cloud | ⚡⚡ Very Fast | ⭐⭐⭐⭐⭐ | gpt-4o, gpt-3.5-turbo |
| Gemini | 🔴 Cloud | ⚡⚡⚡ Ultra Fast | ⭐⭐⭐⭐ | gemini-pro |
| Compatible | 🟡 Varies | 🟡 Varies | 🟡 Varies | Groq, DeepSeek, LocalAI |
$ git add .
$ gitwhisper generate
⠋ Generating commit message...
╭─────────────────────────────────────────────────╮
│ │
│ feat: add multi-provider AI engine support │
│ │
╰─────────────────────────────────────────────────╯
Commit with this message? (y/n/e[dit]): y
✓ Commit successful!Built with industry-standard Go libraries:
- Cobra - CLI framework
- Viper - Configuration management
- Lipgloss - Terminal styling
- Bubbletea - TUI framework
Contributions are welcome! See CONTRIBUTING.md for guidelines.
- Fork the repo
- Create your feature branch (
git checkout -b feature/amazing) - Commit using GitWhisper 😉 (
gitwhisper generate) - Push and open a PR
MIT © meklasdev
⭐ Star this repo if you find it useful!
Made by meklas with Go ⚡