keli-wen

Token History — Git skill for Claude Code

Git community

Token usage is the next contribution graph — snapshot yours to git daily, show it anywhere as self-updating SVG charts & badges.

How to install Token History

This entry records only its repository, not the path inside it, so there is no exact command to give. Open keli-wen/token-history and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Token History does

Token usage is the next contribution graph — snapshot yours to git daily, show it anywhere as self-updating SVG charts & badges. Claude Code + Codex, more to come.

Alternatives in Git

  • Cc Usage — by ryoppippi - Handy CLI tool for managing and analyzing Claude Code usage, based on analyzing local Claude Co 11.7k ★
  • Get Commit Details — git show --name-status [COMMIT_ID] git diff [COMMIT_ID]^ [COMMIT_ID] 1.3k ★
  • PR Checks — Show current PR's check status; pull failure logs if any are red 324 ★

README

token-history icon: a pixel coin stamped with a rising bar chart

token-history

**Never lose your AI-coding history —
snapshot it to git daily, chart it a dozen ways, show it anywhere.**

[![Render charts](https://github.com/keli-wen/token-history/actions/workflows/render.yml/badge.svg?branch=master)](https://github.com/keli-wen/token-history/actions/workflows/render.yml) [![uv](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/uv/main/assets/badge/v0.json)](https://github.com/astral-sh/uv) ![Python ≥3.9](https://img.shields.io/badge/python-%E2%89%A53.9-3776AB?logo=python&logoColor=white) ![dependencies: zero](https://img.shields.io/badge/dependencies-zero-brightgreen) ![license: MIT](https://img.shields.io/badge/license-MIT-blue)

tokens over the last 30 days API-equivalent value over the last 30 days active-day streak

pixel badge: tokens over the last 30 days pixel badge: API-equivalent value pixel badge: active-day streak

**Copy this repo and every chart on this page becomes yours.** A GitHub profile already carries two name cards — the contribution graph for how much you code, the star count for what others make of it. Your AI token usage is becoming the third: a day-by-day record of how much you actually build with AI. This repo turns yours into one you own:

  • Snapshots your usage into git, daily. AI coding tools keep usage data only on your disk and quietly expire it — history you don't persist is history you lose. Every number lands in git before that happens, permanently yours.
  • Renders a whole gallery of SVG charts and badges — self-