chu2bard/tokenmeter

Token counter and LLM cost estimator CLI

27
/ 100
Experimental

This tool helps you understand and manage the costs of using large language models (LLMs) from providers like OpenAI, Anthropic, and Google. You input text or token counts, and it tells you how many tokens your text contains and how much it will cost to process with various models. It's designed for anyone working with LLMs who needs to keep track of their API expenses.

Use this if you need to quickly check the token count of text or estimate the API cost for a specific LLM interaction before you run it.

Not ideal if you need a real-time, in-app cost monitoring solution integrated directly into your application's payment system.

LLM cost management API expense tracking Natural Language Processing AI project planning content tokenization
No Package No Dependents
Maintenance 10 / 25
Adoption 6 / 25
Maturity 11 / 25
Community 0 / 25

How are scores calculated?

Stars

20

Forks

Language

TypeScript

License

MIT

Last pushed

Feb 11, 2026

Commits (30d)

0

Get this data via API

curl "https://pt-edge.onrender.com/api/v1/quality/llm-tools/chu2bard/tokenmeter"

Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.