r/OpenSourceeAI • u/siropkin • Mar 28 '26
I'm a frontend dev who barely writes code anymore. Built a tool to figure out where all my AI tokens go.
I'm a frontend developer in the Bay Area. Since late last year I barely write code by hand — it's all Claude Code and Cursor. My company gives me enterprise subscriptions for both, so I'm not paying out of pocket, but I got curious: how much does this actually cost? Am I using tokens efficiently? Is Cursor or Claude Code better value for the work I do?
I started trying to build a cost optimization tool. Failed. Turns out optimizing costs is really hard when you can't even see them. So I pivoted to visibility first — just show me where the tokens go.
That became budi. Open source, local-only, Rust. I tried to build it the way I'd want a dev tool to feel — fast CLI, live status line in Claude Code, a web dashboard, Starship integration. The kind of thing where you run one command and it just works.
This is what a month of a frontend developer who doesn't write code anymore looks like: 136K messages, $6,154 in estimated cost, and Claude Code quietly charging me for 5,508 Haiku messages I never asked for.
What budi does:
Works with Claude Code and Cursor (more agents planned)
Cost per message — every API call, not daily buckets
Exact cost via OpenTelemetry (catches thinking tokens other tools miss)
Breaks down by repo, branch, ticket, model — auto-detected from git
Custom tags — map repos to teams, tag however you want
Git worktree support
Live status line: budi · $12.50 today · $87.30 week
Web dashboard with charts and message-level detail
100% local. SQLite. Never reads your prompts or code
brew install siropkin/budi/budi && budi init~6 MB binary. One command. That's it.
I'm looking for feedback and honestly just want to know — are there other people who care about this? Or is it just me being obsessive about data I don't even pay for?
GitHub: https://github.com/siropkin/budi
1
u/shadowlands-mage Mar 29 '26
you are FED but write tool in rust ???
1
u/siropkin Mar 29 '26
Yeah… ai did lol Now with the power of ai there is less limitations. I just decided to go with fastest solution on the market
1
u/Veduis Apr 01 '26
gonna use this thanks!
1
u/Staylowfm Apr 03 '26
How did it go? Did it improve your understanding and costs? I might use this too but don't want to waste time if this project is not worth it
2
u/Current-Coffee-2788 Mar 28 '26
This is really cool! Thanks for sharing your project. I'm excited to check it out and see how it can help me better understand token usage.