Skip to content

gitai

gitai is a tiny AI-powered command line toolkit for working with Git repositories.

The current utility is gitai commit, which generates Conventional Commit messages from the current repository diff. The project is packaged as a Python CLI so it can be installed globally with uv and used from any Git repository on the machine.

What It Does

  • Configures LLM providers with an interactive setup flow.
  • Stores local provider settings in ~/.gitai/config.json.
  • Reads provider keys from environment variables when preferred.
  • Generates short or long Conventional Commit messages from staged or unstaged diffs.
  • Can optionally create the Git commit after confirmation.

Quick Example

uv tool install .
gitai setup
gitai commit --length short

Use gitai commit --apply after staging files when you want the tool to create the commit.

Project Status

gitai is early-stage. The CLI is intentionally small, with commit as the first repository utility.