Ross ROSS = Recommend OSS · open-source software intelligence for agents

AgentOps-AI/tokencost

Some data may be outdated — see provenance labels.

Easy token price estimates for 400+ LLMs. TokenOps. observed · 2026-10-06

github.com/AgentOps-AI/tokencost · homepage · Python · MIT (permissive) observed · 2026-10-06

Health v2 · maintenance only

43/100

  • Activity 32
  • Release rhythm 40
  • Longevity 75
How is this computed?

round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-10-21. Adoption (stars, forks) is never an input.

  • gap_med: 17
  • age_days: 1052
  • days_rel: 433
  • days_push: 410
  • n_releases_24m: 12

Full methodology

Adoption not part of the score

2007 stars · 107 forks observed · 2026-10-06

What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded

A Python library that estimates the USD cost of LLM API calls by counting tokens for prompts and completions across 400+ models. It maintains up-to-date pricing data for major providers like OpenAI and Anthropic.

Use cases

  • estimate the cost of an OpenAI API call before sending it
  • count tokens in a prompt for gpt-3.5-turbo
  • track LLM pricing across 400+ models
  • calculate USD cost of prompts and completions in an AI agent
  • budget monitoring for LLM applications

When to choose

  • you need clientside token counting and cost estimation without API round-trips
  • you want a lightweight single-function API for cost calculation
  • you build AI agents and need to track spend per model

When to avoid

  • you need full LLM observability, tracing, and debugging rather than just cost math
  • you need exact billing figures from the provider rather than estimates
  • your stack is not Python

Facets

library · maturity active

analytics monitoring sdk large-language-models artificial-intelligence analytics python cli token-counting cost-estimation llm-pricing openai anthropic ai-agents

4 sources

Member repositories

RepositoryRoleHealth v2
AgentOps-AI/tokencostmain43

For agents

markdown · JSON · MCP: product_card(name="AgentOps-AI/tokencost")

Data as of 2026-10-19T08:05:51.212177+00:00 · Report a problem