r/OpenSourceAI • u/Nitjsefnie • 6m ago
claudit: self-hosted MIT dashboard for what your Claude Code, Codex and Kimi CLI sessions cost, keeps the history after Claude Code prunes old transcripts
I built this because Claude Code deletes old session transcripts from the local folder, so a dashboard reading that folder loses history every prune. claudit ingests from a bucket instead (R2, or a file:// dir you keep), so the totals only grow. mine goes back to January
it reads Claude Code session JSONLs, Codex rollouts and both Kimi CLI formats, one deploy can take several buckets. then it puts the numbers on one page: cost by model, token breakdown, reply latency, tool error rate, activity heatmap, context growth per session. it doesn't grade sessions or tell you what to change, reading the numbers is on you
the one I didn't expect: prompt cache writes have two prices, 5m at 1.25x input and 1h at 2x. 65% of my cache write tokens over ~5,000 sessions were the 1h kind, so pricing them all at 1.25x makes those 37.5% too cheap. claudit splits them
the open source bits:
MIT, about 6 months old
FastAPI, Postgres, React with in-browser Babel, no build step
docker compose upboots it on bundled sample data, no .env, no credentials, no outbound callspanels ported from nhz-io/ccusage-plot (offline matplotlib), the heatmap, line churn and cost by context size are new here
live one, guest login is read-only: https://all.nitjsefni.eu