2
1 Comment

Built a VS Code extension to track AI API costs after getting a $340 Anthropic bill

Last month I got a $340 bill from Anthropic. I knew I'd been using Claude a lot but had no idea it had gotten that high. The usage dashboard is fine but you only check it after the damage is done.

So I built something that shows the cost per call in your VS Code status bar as it happens. It runs a local proxy, you point your SDK at it with one env var, no code changes. Nothing leaves your machine.

Would love to know if anyone else has had this problem or found a better way to deal with it.

https://marketplace.visualstudio.com/items?itemName=tokenlens.tokenpulse

on July 5, 2026
  1. 1

    I like that you're making cost visible at the moment decisions are made instead of after the invoice arrives.

    A lot of developer tools report what happened. Showing the cost while someone is still writing code changes behavior, because developers can adjust before the expense becomes irreversible.

Trending on Indie Hackers
The hardest part isn't building anymore User Avatar 98 comments I sold $6,773 in 2 weeks, with almost no existing community. User Avatar 60 comments Before you build another feature, use this workflow User Avatar 42 comments Ferguson is LIVE on ProductHunt today... so I audited their homepage first! User Avatar 38 comments I spent months chasing clients who already had a webmaster. So I built something that only finds the ones who don't. User Avatar 32 comments From Fractional CTO to Micro-SaaS: How 15 Unbilled Hours Inspired an AI Shield (And What the Data Says About V2) User Avatar 26 comments