Git AI

Codex

Track OpenAI Codex generated AI-code all the way to production.

Supported since: 2026-02-10

Codex logo
Install Git AI
No special setup required. One command, no per-repo config.
curl -sSL https://usegitai.com/install.sh | bash
Prompt Codex & Commit
No workflow changes. AI attribution is added automatically on commit.
AI Blame & Ask
See who wrote every line — human or AI. Use git-ai ask to query the original prompts and context behind any AI-generated code.

Capabilities

OpenAI Codex fully supports the Git AI standard.

FeatureSupported
Agent Mode
Prompt Saving

How this integration works

Codex has native support for Hooks. When you install Git AI it will automatically install the necessary hooks on file write and edit operations.

Troubleshooting

Not seeing any AI attributions when you run git commit? Here are some common issues to check for:

Verify that the git-ai binary is properly installed and on your path

# macOS/Linuxwhich git# Windows (PowerShell or CMD)where git

Expected Output: ~/.git-ai/bin/git (or C:\Users\...\.git-ai\bin\git on Windows)

If it's not showing up, first try restarting all your shells.

If it's still not working, re-run the installation script and verify you're not doing anything unusual with your PATH in your shell config.

If the problem persists, open an issue on the GitHub repository.

Verify that your Coding Agent is properly calling Git AI after it generates code

git ai status
you  ██░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ai   4%                                   96%   100% AI code accepted | waited 33s for ai29 secs ago     +103      0  Cursor claude-4.5-opus-high-thinking46 secs ago       +2     -1  Cursor claude-4.5-opus-high-thinking57 secs ago      +12     -2  Cursor claude-4.5-opus-high-thinking1 mins ago        +1     -2  Aidan Cunniffe2 mins ago       +53      0  Cursor claude-4.5-opus-high-thinking2 mins ago         0     -3  Cursor claude-4.5-opus-high-thinking2 mins ago        +4     -6  Cursor claude-4.5-opus-high-thinking3 mins ago        +2     -1  Cursor claude-4.5-opus-high-thinking5 mins ago        +6    -16  Claude claude-opus-4-5-202511015 mins ago         0     -2  Aidan Cunniffe

You should see several AI checkpoints linked to the current HEAD sha. If there are not any, the hooks for your agent are not installed properly.

Re-run:

git ai install-hooks

Generate more code and run git ai status again. If you're still not getting AI attributions, restart all your shells, every Agent Session, and your IDE.

If you're still not getting any AI attributions, open an issue on the GitHub repository.

Make sure there are no Hook Errors

Codex will show you which Hooks it runs and error if there are any issues invoking each hook.

If you see anything, please open an issue on the GitHub repository.