Panshi
EN/

Home / Cost & FinOps

Tokencost

Lightweight open-source library maintaining an up-to-date price table for estimating prompt/completion costs across 400+ models.

CategoryCost & FinOps
Open sourceYes
Self-hostableYes
Pricing modelfree
Pricing notesMIT Python library; no commercial tier
Framework integrationsopenai-sdk, anthropic, litellm
Funding / ownershipMaintained by AgentOps
GitHub stars1,983
Maintenanceslow (2025-09-05)
License (GitHub)MIT
Open issues28
Maturity signal61/100 (Established) — computed from public GitHub signals, see methodology

Pricing/feature source: https://github.com/AgentOps-AI/tokencost

Maturity signal is computed from public GitHub data only. How it is calculated.

Frequently asked questions

Is Tokencost open source?

Yes. Licensed under MIT.

Can I self-host Tokencost?

Yes — Tokencost can run in your own infrastructure.

How much does Tokencost cost?

Free. MIT Python library; no commercial tier