CodeGPT

A CLI written in Go language that writes git commit messages or do a code review brief for you using ChatGPT AI (gpt-4.1, gpt-4o model) and automatically instal

What is CodeGPT?

A CLI written in Go language that writes git commit messages or do a code review brief for you using ChatGPT AI (gpt-4.1, gpt-4o model) and automatically installs a git prepare-commit-msg hook.

Overview of CodeGPT

What it is

CodeGPT is a CLI tool written in Go that generates git commit messages or provides code review summaries using ChatGPT AI models (gpt-5, gpt-4o, gpt-4). It also automatically installs a git prepare-commit-msg hook.

Key features

  • Supports Azure OpenAI Service, OpenAI API, Gemini, Anthropic, Ollama, Groq, OpenRouter, and LiteLLM proxy.
  • Adheres to the conventional commits specification.
  • Integrates with Git prepare-commit-msg Hook.
  • Allows customization of generated diffs by specifying the number of context lines (default: 3).
  • Enables file exclusion patterns for git diff operations.
  • Translates commit messages into other languages (supports en, zh-tw, or zh-cn).
  • Supports streaming output for real-time token display.

Use cases

  • Automatically generate conventional commit messages from staged changes.
  • Obtain brief code reviews for git diffs.
  • Integrate with git hooks to prepare commit messages before editing.
  • Translate commit messages into different languages.
  • Use with various AI backends (OpenAI, Gemini, Anthropic, Ollama, etc.) for flexibility.

Getting started

Install via Homebrew on macOS: sh brew tap appleboy/tap brew install codegpt Install via Chocolatey on Windows: sh choco install codegpt Install from source: sh go install github.com/appleboy/CodeGPT@latest

License and pricing

This project is licensed under the MIT License and is open source.

Based on the project's public README and repository metadata.

Add this badge to your README

Featured on YunoDB Badge styles & help

Maintain this project? Show that it is featured on YunoDB.

Markdown[![Featured on YunoDB](https://yunodb.com/badge/appleboycodegpt.svg)](https://yunodb.com/tools/appleboycodegpt?utm_source=github&utm_medium=badge)
HTML<a href="https://yunodb.com/tools/appleboycodegpt?utm_source=github&utm_medium=badge"><img src="https://yunodb.com/badge/appleboycodegpt.svg" alt="Featured on YunoDB" height="20"></a>