TokenLens is a VS Code extension that shows your OpenAI, Anthropic, Gemini and Mistral API costs in real time. It runs a local proxy on your machine. Point your SDK at it with one env var and every API call shows its cost in your status bar as it happens. No code changes needed. Nothing leaves your machine on the free plan. Free tier includes unlimited tracking and 7 day history. Pro is £19/mo for unlimited history, CSV export and cloud backup.
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.
Report
Love how the status bar integration just shows the cost right where you're working, no extra clicks needed. The one env var setup is a really clean touch too, keeps the whole thing feel invisible until you actually want to look.
Report
Love how it just slots into the status bar with one env var, finally a way to see my Anthropic spend creeping up in real time. Local proxy on the free plan is a nice touch too.
Report
No reviews yetBe the first to leave a review for TokenLens
Love how the status bar integration just shows the cost right where you're working, no extra clicks needed. The one env var setup is a really clean touch too, keeps the whole thing feel invisible until you actually want to look.
Love how it just slots into the status bar with one env var, finally a way to see my Anthropic spend creeping up in real time. Local proxy on the free plan is a nice touch too.