🧮 tokentally — One tiny lib for LLM token + cost math Token usage in, dollar totals out. Small TypeScript library for: Normalizing token usage across providers Resolving per-token pricing (static maps, LiteLLM catalog, OpenRouter catalog) Estimating and aggregating USD cost Install Core usage (browser-safe) Node helpers (catalog sources) LiteLLM pricing + limits OpenRouter pricing (optional) ts import { fetchOpenRouterPricingMap, resolvePricingFromMap } from "tokentally/node"; const map = await fetchOpenRouterPricingMap({ apiKey: process.env.OPENROUTERAPIKEY!, fetchImpl: fetch, }); const...
| Stars | 68 |
| Forks | 11 |
| Language | TypeScript |
| Category | AI Tool |
| License | MIT |
| Quality Score | 47.378/100 |
| Open Issues | 1 |
| Last Updated | 2026-05-22 |
| Created | 2025-12-19 |
| Platforms | node |
| Est. Tokens | ~14k |
Explore other popular ai tool tools:
tokentally is One tiny lib for LLM token + cost math. It is categorized as a AI Tool with 68 GitHub stars.
tokentally is primarily written in TypeScript. It covers topics such as cost, token, typescript.
You can find installation instructions and usage details in the tokentally GitHub repository at github.com/steipete/tokentally. The project has 68 stars and 11 forks, indicating an active community.
tokentally is released under the MIT license, making it free to use and modify according to the license terms.