tokentally

by steipete · AI Tool · ★ 79

About tokentally

🧮 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...

costtokentypescript

Quick Facts

Stars79
Forks13
LanguageTypeScript
CategoryAI Tool
LicenseMIT
Quality Score65.8482315042719/100
Last Updated2026-07-03
Created2025-12-19
Platformsnode
Est. Tokens~14k

More AI Tool Tools

Explore other popular ai tool tools:

View all AI Tool tools →

Popular TypeScript Agent Tools

  • openclaw ⭐ 382.2k · Codex Skill
  • n8n ⭐ 195.7k · MCP Server
  • dify ⭐ 148.2k · MCP Server
  • gstack ⭐ 120.5k · Agent Tool
  • gemini-cli ⭐ 105.8k · MCP Server

Frequently Asked Questions

What is tokentally?

tokentally is One tiny lib for LLM token + cost math. It is categorized as a AI Tool with 79 GitHub stars.

What programming language is tokentally written in?

tokentally is primarily written in TypeScript. It covers topics such as cost, token, typescript.

How do I install or use tokentally?

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.

What license does tokentally use?

tokentally is released under the MIT license, making it free to use and modify according to the license terms.

View on GitHub → Browse AI Tool tools