cd /news/developer-tools/show-hn-frugal-tokens-explore-costs-… · home topics developer-tools article
[ARTICLE · art-103230] src=demo.frugaltokens.com ↗ pub= topic=developer-tools verified=true sentiment=· neutral

Show HN: Frugal Tokens – explore costs and usage across coding agents

Developer dpclark4 released Frugal Tokens, an open-source tool that analyzes token costs and usage across coding agent sessions, showing overall spend, cache miss impact, model-level breakdowns, and session-level metrics. The tool, available on GitHub, requires Deno and includes a demo with scrubbed data, and future plans include identifying patterns that increase workflow costs.

read1 min views1 publishedAug 19, 2026

I wanted to share a project I’ve been working on called Frugal Tokens. I originally built it because I was curious to see how much all of my sessions cost and how much cache misses affected that spend. I’d noticed people had widely different spend profiles and wanted to better understand what might contribute to that.

As I’ve worked on this, the tool has grown to show more usage patterns across all of your sessions. It shows overall usage, estimated working time and overlapping sessions, and where your spend is coming from across models and cache misses. I also have a few session level metrics with percentile breakdowns, along with a list of your sessions and high level info.

Clicking into a session opens an explorer where you can see individual model calls and tool inputs and outputs. You can also jump directly to where a cache miss happened. There’s also a rough cost comparison that shows what the recorded session would have cost with another model’s pricing, or for Anthropic, with 5m vs 1h caching.

In the future, I’d love to collect more information to see which patterns might make people’s workflows more expensive, e.g. long sessions, high context usage, many turns, etc.

The tool requires deno, but is just one command to run once that is installed. The demo provided has some of the data scrubbed, but helps to show what it looks like before running it.

Would appreciate any thoughts or ideas

[https://github.com/dpclark4/frugal-tokens](https://github.com/dpclark4/frugal-tokens)

Comments URL: [https://news.ycombinator.com/item?id=49364223](https://news.ycombinator.com/item?id=49364223)

Points: 10

── more in #developer-tools 4 stories · sorted by recency
── more on @dpclark4 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/show-hn-frugal-token…] indexed:0 read:1min 2026-08-19 ·