Tokencost
Lightweight open-source library maintaining an up-to-date price table for estimating prompt/completion costs across 400+ models.
| Category | Cost & FinOps |
| Open source | Yes |
| Self-hostable | Yes |
| Pricing model | free |
| Pricing notes | MIT Python library; no commercial tier |
| Framework integrations | openai-sdk, anthropic, litellm |
| Funding / ownership | Maintained by AgentOps |
Pricing/feature source: https://github.com/AgentOps-AI/tokencost