IPremise
A long time ago (a month ago, that is), I was tasked with delivering a gargantuan task (to create a replica of AWS Lambda) in the mere span of 14 days. And, just like any rational person, I cranked the model up to the Anthropic family and began. My struggles and plight while building the new module deserve another article (hopefully soon enough), but I was confronted by a much more sinister and sneakier problem — my Cursor usage.
IIThe Cursor curse
Ever since the advancement of AI models, agentic coding has been the norm. And I'm no godlike entity to write code by hand. But with agentic coding comes the API cost. Now, up until a few months prior, Cursor's usage tab (in the enterprise team plan) — like a good, reasonable service — showcased my general liability score to the company, i.e. my dollar usage. And that kept me reasonably in check and let me plan accordingly. But due to some wicked, ill-thought sorcery, the very arbiter keeping me in check was stripped of the one entity that made me reconsider my career choices — the dollar usage I burn through. All I was left with was the % API usage and % plan usage. Which, granted, are data in and of themselves, but not as clear nor as fearsome to look at. For what good is a 100% API stat if I can still run the best models seamlessly? (I was burning through the team pool.)
IIIThe exorcism and aftermath
The amount of dollars consumed by each team member was showcased only to the TLs and managers, which meant multiple reminders from their end that I'm costing the company way more than my utility (ouch). Then I regained my lost IQ points through a miracle of God and realised that all my agentic workflows were using MAX mode by default, due to a misconfigured md file 😃😃. I fixed it and — voila! — I was no longer a credit-burning machine. But the very experience instilled a need for some form of monetary monitoring (intended alliteration) for my overall Cursor usage. And that's how *ptr (pointer, that is) was born.
IV*ptr
I made pointer to solve the two problems that I had with Cursor: I couldn't see my dollar usage, and the usage page itself was unappealing (just like seeing your bank balance towards the end of the month).

*ptr works on a simple mechanism, really. It just uses the data that Cursor was already sending over its network (but which somehow the UI was too shy to show), and uses the stored application cookie in your browser to access it. Along with that, it has projection and budget-setting capabilities — i.e. if you want to be more economical and less of a liability to a company, you can set a budget and track the projected end of the month.
The only downside is the refreshing of the token in case of logout — although that can be solved by hitting the cURL with your creds, but then it kind of falters for Google sign-in.
To make the data less jarring, I made my own little entity, *ptr (a bad pun on cursor, honestly). You can pet him, and his mood changes depending on your discipline. As you indulge, he suffers, and finally dies if you exceed the budget — how poetic.

That's really pretty much the reason for making this little extension. I have uploaded the binary and the relevant JS on GitHub, so perhaps you can extend it and make your own.
Have fun with *ptr, and try not to get him killed :p
VFrom the sketchbook
Before any of it was code, *ptr was just a face I kept redrawing in the margins — figuring out whether he needed a mouth, how he should die, and which budget ratio mapped to which mood.



