logoalt Hacker News

spiderfarmeryesterday at 10:16 AM4 repliesview on HN

Is there a way to see how many tokes one does with claude code (pro)?


Replies

bpavukyesterday at 10:36 AM

the casino has no clocks, as one HN user put it some time ago.

I second ccusage, it's nice

O_H_Etoday at 12:38 AM

https://github.com/kenn-io/agentsview

> Local-first session search, analytics, insights, and token use statistics for coding agents, supporting Claude Code, Codex, and more than 20 other agents.

solid piece of software

edg5000yesterday at 11:09 AM

It's in the JSONs in ~/.claude, but last 30 days only I think. You can have the model analyze history. So for correct history you'd need to run history analysis on a cron job or something. Kinda hacky.

show 1 reply