AlameerAshraf / tokentoll
Public🐾 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.
TokenToll is an open-source platform for metering usage like AI tokens in SaaS products, enforcing limits, calculating costs with flexible pricing, and automating invoices with optional payment integration.
How It Works
You hear about this free tool that makes billing your AI app customers super simple, handling usage tracking and payments automatically.
Download the ready-to-go package and start the whole system on your computer in seconds.
Create a dedicated area for your company inside the system to keep everything organized.
Make a secure personal code that lets you connect your app and manage billing safely.
Bring in a user, pick a plan for them, and set usage limits so they stay within bounds.
As customers use your AI features, send simple updates about things like token counts to see costs add up fairly.
Peek at customer usage, remaining credits, and watch automatic bills generate and send.
Sit back as quotas enforce themselves, invoices go out smoothly, and your app scales without billing headaches.
Star Growth
Repurpose is a Pro feature
Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.
Unlock RepurposeSimilar repos coming soon.