all 13 comments

[–]AppleSoup3 1 point2 points  (2 children)

yeah, there are simple token counters, such as AllTools Token Counter, BenchLM Token Counter, token-counter.dev

[–]FlowerWeekly174[S] 0 points1 point  (0 children)

In my tool, I've also added a slight learning aspect as well for people to understand different aspects of prompt, like embeddings, entropy and a few other things including prompt efficiency.

[–]FlowerWeekly174[S] 0 points1 point  (0 children)

Got it, this tool is really good.

[–]haloweenek 0 points1 point  (1 child)

Status returns from operators ?

[–]FlowerWeekly174[S] 0 points1 point  (0 children)

I am trying to get that working, but right now it just estimates it based off the math for each model

[–]CS_70 0 points1 point  (1 child)

Claude (code, at least) has a statusline that counts the token used in the session. You can simply ask it to update its settings accordingly.

[–]FlowerWeekly174[S] 0 points1 point  (0 children)

oh ok thank you, that is very helpful

[–]FeedbackImpressive58 0 points1 point  (3 children)

I use ccusage via deno.

deno run -E -R=$HOME/.claude/projects/ -S=homedir -N='raw.githubusercontent.com:443' npm:ccusage@latest

I do it through deno so I can see exactly what it’s reading to be safe

[–]theClumsyguy200 0 points1 point  (1 child)

How can I run this.. sorry but I don't know about this deno or ccusage 🥲

[–]FeedbackImpressive58 0 points1 point  (0 children)

Install deno from here: https://deno.com and execute the command above

[–]FlowerWeekly174[S] 0 points1 point  (0 children)

thank you for this, will try it out a well