AlameerAshraf/tokentoll
🐾 TokenToll: is a self-hostable billing infrastructure for LLM APIs and SaaS products. Drop-in SDKs for Node.js and Python, YAML-defined pricing plans, Stripe adapter, and a real-time usage dashboard | The open-source alternative to Lago and Orb.
This is a self-hostable billing system designed for businesses offering services powered by Large Language Models (LLMs) or other SaaS products. It takes raw usage data, such as tokens consumed or API calls, and automatically applies your defined pricing plans to generate invoices. This is for product managers, founders, and finance teams at SaaS companies looking to accurately meter usage and bill customers.
Use this if you are launching an AI-powered or usage-based SaaS product and need to track customer consumption, apply various pricing models, and automate invoicing without building a complex billing system from scratch.
Not ideal if your product has a simple, fixed subscription fee without any usage-based components or if you require an off-the-shelf, fully managed billing solution.
Stars
74
Forks
9
Language
Python
License
—
Category
Last pushed
Mar 09, 2026
Commits (30d)
0
Get this data via API
curl "https://pt-edge.onrender.com/api/v1/quality/llm-tools/AlameerAshraf/tokentoll"
Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.
Higher-rated alternatives
jmuncor/tokentap
Intercept LLM API traffic and visualize token usage in a real-time terminal dashboard. Track...
AgentOps-AI/tokencost
Easy token price estimates for 400+ LLMs. TokenOps.
Merit-Systems/echo
The User Pays AI SDK
Ruthwik000/tokenfirewall
Scalable LLM cost enforcement middleware for Node.js with budget protection and multi-provider support
adarshxs/TokenTally
Estimate Your LLM's Token Toll Across Various Platforms and Configurations