GitSage
Configuration

AI Providers

GitSage supports two primary intelligence modes: Cloud (Powered by GitSage's Intelligence Layer) for maximum speed and accuracy, and Local (Ollama) for absolute privacy.

Provider Comparison

Cloud Mode

ai_provider: "gitsage"

  • ✅ Sub-2s analysis speed
  • ✅ Deep reasoning on complex diffs
  • ✅ 95%+ scope accuracy
  • ⚠️ Requires GitSage key

Stealth Mode (Local)

ai_provider: "local"

  • ✅ Zero data leaves your machine
  • ✅ No API key required
  • ✅ Works offline
  • ⚠️ ~5s latency on avg hardware
  • ⚠️ Requires Ollama installed

Setting Up Cloud Mode

  1. Create an account at the GitSage Portal and generate an API key.
  2. Configure GitSage with your secure key using the CLI command below.
  3. Run gitsage in any repository to start auto-committing.
bash
1234
gitsage config --provider gitsage --key YOUR_API_KEY
# Or via environment variable:
export GITSAGE_API_KEY="your-key-here"

Setting Up Ollama (Local)

  1. Install Ollama from ollama.ai.
  2. Pull a supported model (Mistral recommended).
  3. Switch GitSage to local mode in your current repository.
bash
123456789101112
# 1. Install Ollama (macOS example)
brew install ollama
# 2. Pull the Mistral model
ollama pull mistral
# 3. Switch GitSage to local mode
gitsage config --provider local
# 4. Verify the connection
gitsage --local
# 🛡️ Stealth Mode active — Ollama/mistral connected
Stealth Active
Ollama Ready

Supported local models: mistral, llama3, codellama, gemma2

Switching Providers on the Fly

bash
12345
# Use GitSage Cloud for this commit only (without changing global config)
gitsage --provider gitsage
# Use local for this commit only
gitsage --provider local

GitSage Docs

View on GitHub