Open Source ยท Free ยท v0.2.0

Your Git workflow,
supercharged by AI

gitgrok lives in your terminal. Generate commit messages, review code, fix bugs from error output, and chat with AI about your entire repo. No browser. No IDE plugin. Just the command line.

~/my-project
โ–ˆ
xAI Grok OpenAI Anthropic Ollama

Everything you need,
nothing you don't

๐Ÿ“

gitgrok commit

Reads your staged diff and recent commit history to generate a perfect Conventional Commits message. One command โ€” done.

$ gitgrok commit --dry-run
๐Ÿ”

gitgrok review

Instant AI code review covering bugs, security issues, performance, and style โ€” on your staged or unstaged changes.

$ gitgrok review
๐Ÿ’ก

gitgrok explain

Plain-English explanation of any diff or commit. Great for understanding unfamiliar code or onboarding teammates.

$ gitgrok explain --commit HEAD~1
๐Ÿ”ง

gitgrok fix

Paste an error or pipe stderr directly. AI reads your files, generates a patch, previews it with syntax highlighting, then asks before writing.

$ python app.py 2>&1 | gitgrok fix
๐Ÿ’ฌ

gitgrok chat

Interactive REPL with your full git context pre-loaded. Slash commands for diff, status, adding files, and more.

$ gitgrok chat --provider ollama
โš™๏ธ

gitgrok config

Manage providers, models, and API keys in ~/.gitgrok.toml. Per-command overrides with --provider and --model.

$ gitgrok config show

See gitgrok in action

~/my-project โ€” gitgrok

One CLI. Any AI.

Switch providers in one command. No lock-in, ever.

xAI Grok

grok-3

Default provider. Fast, capable, and deeply integrated with the xAI ecosystem.

XAI_API_KEY

OpenAI

gpt-4o

Industry standard. Great for code generation and nuanced technical reviews.

OPENAI_API_KEY

Anthropic

claude-sonnet-4-5

Excellent at following instructions precisely. Top choice for code review.

ANTHROPIC_API_KEY

Ollama

llama3 ยท codellama ยท mistral

Run fully local. No API key. No data leaves your machine. 100% private.

No key needed
$ gitgrok config set defaults.provider openai โ–ˆ

gitgrok vs aider

aider is great. gitgrok is lighter, faster, and opinionated about simplicity.

Feature gitgrok aider
AI code editingโœ“โœ“
Multi-provider (Grok / GPT / Claude / Ollama)โœ“โœ“
Interactive chatโœ“โœ“
Auto-fix from error / stderrโœ“~
Conventional Commits generationโœ“~
Full repo mappingโœ—โœ“
Auto test / lint runnerโœ—โœ“
Token usage ๐ŸŸข Low ๐Ÿ”ด High
Setup complexity ๐ŸŸข Simple ๐Ÿ”ด Complex

gitgrok โ€” lighter, faster, fewer tokens. Perfect for daily Git workflow.

Up and running
in 60 seconds

01

Clone & install

$ git clone https://github.com/0ailab/GitGrok
$ cd gitgrok
$ python3 -m venv .venv && source .venv/bin/activate
$ pip install -e .
02

Set your API key

# Pick one (or more)
$ export XAI_API_KEY="your-xai-key"
$ export OPENAI_API_KEY="sk-..."
$ export ANTHROPIC_API_KEY="sk-ant-..."

# Or use config file
$ gitgrok config set xai.api_key YOUR_KEY
03

Start shipping

$ git add .
$ gitgrok commit        # AI commit message
$ gitgrok review        # code review
$ gitgrok fix "error"  # auto-fix bugs
$ gitgrok chat          # interactive session

Ready to ship faster?

Open source. Free forever. No account required.