🧮 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 | 74 |
| Forks | 13 |
| Language | TypeScript |
| Category | 未分类 |
| License | MIT |
| Quality Score | 47.378/100 |
| Last Updated | 2026-06-13 |
| Created | 2025-12-19 |
| Platforms | node |
| Est. Tokens | ~11k |
Explore other popular 未分类 tools:
tokentally is One tiny lib for LLM token + cost math. It is categorized as a 未分类 with 74 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 74 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.