🧮 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 | 79 |
| Forks | 13 |
| Language | TypeScript |
| Category | AI Tool |
| License | MIT |
| Quality Score | 65.8482315042719/100 |
| Last Updated | 2026-07-03 |
| 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 79 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 79 stars and 13 forks, indicating an active community.
tokentally is released under the MIT license, making it free to use and modify according to the license terms.