tokentally

by steipete · AI Tool · ★ 68

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

Stars68
Forks11
LanguageTypeScript
CategoryAI Tool
LicenseMIT
Quality Score47.378/100
Open Issues1
Last Updated2026-05-22
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 ⭐ 374.0k · Codex Skill
  • n8n ⭐ 189.3k · MCP Server
  • dify ⭐ 142.3k · MCP Server
  • gemini-cli ⭐ 104.5k · MCP Server
  • gstack ⭐ 100.8k · Agent Tool

Frequently Asked Questions

What is tokentally?

tokentally is One tiny lib for LLM token + cost math. It is categorized as a AI Tool with 68 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 68 stars and 11 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