CLI to attribute AI coding token usage to GitHub PRs and post cost summary
Developers using AI coding assistants often lose track of token consumption and its dollar impact. prtokens scans local Claude, Codex, and OpenCode data, aggregates usage per commit, and posts a formatted comment on the related pull request. It works as a standalone CLI or via a pre‑push Git hook, requiring only Node and an authenticated GitHub CLI. By surfacing exact token counts and cost estimates, teams gain transparency without leaving their PR workflow.
View on GitHub →SamuelZ12/prtokens