chu2bard/tokenmeter
Token counter and LLM cost estimator CLI
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.
Stars
20
Forks
—
Language
TypeScript
License
MIT
Category
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.
Higher-rated alternatives
jmuncor/tokentap
Intercept LLM API traffic and visualize token usage in a real-time terminal dashboard. Track...
AgentOps-AI/tokencost
Easy token price estimates for 400+ LLMs. TokenOps.
Merit-Systems/echo
The User Pays AI SDK
Ruthwik000/tokenfirewall
Scalable LLM cost enforcement middleware for Node.js with budget protection and multi-provider support
adarshxs/TokenTally
Estimate Your LLM's Token Toll Across Various Platforms and Configurations