Show HN: Tokemon, a terminal dashboard to track LLM token usage

mm65 · 1 day ago · view on HN · tool
quality 1/10 · low quality
0 net
AI Summary

Tokemon is a terminal dashboard written in Rust that aggregates and visualizes token usage and API costs across multiple AI coding tools (Claude, Cursor, custom APIs) by parsing local log files and displaying real-time trends via a TUI interface.

Entities
Tokemon Claude Code Cursor github.com/mm65x/tokemon
Hey HN,

Recently I found myself using a bunch of different AI coding tools at the same time (Claude Code, Cursor, and some custom API scripts). By the end of the week, I had absolutely no idea how many tokens I was burning or what my real API costs were unless I logged into three separate billing pages.

I built tokemon to solve this for myself. It finds the log and cache files generated by these tools on your machine, parses them, handles deduplication so requests aren't double-counted, and drops the totals into a terminal dashboard. I wrote it in Rust, so it's extremely fast and performant.

The feature I end up using the most is `tokemon top`. It opens a live TUI dashboard with sparklines for daily and weekly trends. I usually just leave it running in a terminal pane as a persistent monitor since it's nice to look at and keeps my API spend top of mind.

You can grab it via cargo: cargo install tokemon

Repo is here if you want to poke around or add parsers for other tools: https://github.com/mm65x/tokemon

Let me know what you think!