{"repo":"AlameerAshraf/tokentoll","free":true,"listed":false,"github":"https://github.com/AlameerAshraf/tokentoll","clone":"git clone https://github.com/AlameerAshraf/tokentoll.git","description":"🐾 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.","language":"Python","stars":76,"topics":["billing","llm","money","llm-wraper"],"license":null,"category":"auth-billing-email","readme_excerpt":"The open-source billing engine for AI & SaaS products Meter tokens. Enforce quotas. Invoice automatically. Star History 12 AI Providers · 5 Pricing Models · 30+ API Endpoints · Python & Node SDKs 🚀 Quick Start · 🎯 Features · 📦 SDKs · 📖 API Reference · ⚙️ Configuration · 🐳 Deployment · 🤝 Contributing --- 🐾 What is TokenToll? The problem: You're building a SaaS on top of LLMs. You need to track usage per customer, enforce quotas, support free tiers and prepaid credits, and generate invoices. Building all that from scratch takes weeks. The solution: TokenToll gives you a single API to handle all of it. Ingest usage events, define pricing in YAML, and let TokenToll compute costs, enforce limits, generate invoices, and sync to Stripe — or run fully self-hosted. 🎯 Features 📊 Usage Metering ✅ Event ingestion via REST or SDK ✅ Idempotent (duplicate IDs ignored) ✅ Batch ingestion ✅ Multi-meter (tokens, calls, compute) --- 💰 Flexible Pricing ✅ Per-unit — qty × rate ✅ Tiered — bracket-based rates ✅ Volume — total determines rate ✅ Flat — fixed monthly fee ✅ Prepaid — credit deduction ✅ Free tiers — free allowance 🔒 Quotas & Entitlements ✅ Hard limits — block at cap ✅ Soft limits — alert via webhook ✅ Budget caps — dollar spending limits ✅ Alert thresholds — 80%, 100%, etc. --- 🧾 Invoicing & Payments ✅ Auto monthly invoice generation ✅ Per-meter line items ✅ Stripe sync or self-hosted ✅ Prepaid credit auto-apply ✅ Invoice status tracking ✅ Retry with exponential backoff 🏢 Mu","default_branch":null,"files":null,"tree":[],"storefront":"/r/AlameerAshraf","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/AlameerAshraf/tokentoll/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}