Polar screenshot thumbnail

Polar

Used by Tailwind Labs and recognized as an official GitHub funding partner, Polar is the open-source billing infrastructure that lets developers ship production-ready monetization in hours instead of weeks. Meter tokens, API calls, agent runs, GPU seconds, and storage with event-level precision, then compose usage billing with subscriptions, seats, credits, trials, and discounts into whatever pricing model your product requires. As Merchant of Record, Polar handles sales tax, VAT, chargebacks, receipts, and regulatory compliance across all supported countries so you receive clean payouts without building tax infrastructure. Integrate via the full REST API with official SDKs for JavaScript, Python, PHP, and Go, plus framework adapters for Next.js, Astro, Remix, SvelteKit, and Laravel enabling checkout integration in minutes. Automatically deliver benefits upon purchase including GitHub repository access, Discord roles, license keys, file downloads, and meter credits through configurable automation rules. The built-in customer portal provides subscription management, payment method updates, invoice history, and benefit access with full white-label branding. Monitor revenue, costs, and margins through real-time analytics dashboards showing the unit economics every AI startup needs to scale. Running on a dedicated VPS on RepoCloud with guaranteed CPU, RAM, and SSD, full root SSH access, and a browser serial console. Apache License 2.0 licensed.

Deploy
Flexprice screenshot thumbnail

Flexprice

Flexprice is a developer-first billing platform built specifically for AI-native and SaaS companies that need usage-based, credit-based, and hybrid pricing models without building custom billing infrastructure. The metering engine ingests millions of usage events in real time through HTTP APIs or SDK calls, supporting sum, count, unique count, latest value, and multiplier aggregation strategies across custom event schemas like API calls, token counts, compute minutes, and GPU time. Credit management handles prepaid wallets with promotional grants, rollover caps, auto top-ups, and priority-based credit application during invoice generation. The pricing engine supports per-unit, tiered, volume, package, and flat-rate models with per-customer overrides, committed minimums, and enterprise contract terms. Feature entitlements enforce boolean toggles, metered usage limits, and configuration values per plan, enabling applications to gate functionality through simple API checks. Automated invoicing calculates charges from real-time usage data with proration for mid-cycle upgrades and downgrades, generating detailed line items linked to tracked consumption. The architecture separates event ingestion through Kafka from billing computation via Temporal workflow orchestration, allowing each layer to scale independently with ClickHouse handling high-performance usage aggregation. Stripe Connect integration processes payments and manages customer payment methods. Running on a dedicated VPS on RepoCloud with guaranteed CPU, RAM, and SSD, full root SSH access, and a browser serial console. AGPLv3 licensed.

Deploy
Lago screenshot thumbnail

Lago

Trusted by Mistral AI, PayPal, Groq, and Synthesia with over 10,300 GitHub stars and Y Combinator backing, Lago is the open-source billing engine that handles usage-based, subscription-based, and hybrid pricing models through a single API-first platform — replacing the need to build custom billing logic or depend on opaque SaaS pricing infrastructure. Real-time event ingestion via ClickHouse processes billable events with deduplication and multiple aggregation methods including count, sum, unique count, max, and weighted sum, while graduated pricing tiers, package-based billing, and percentage-based fees model any pricing strategy from simple subscriptions to complex marketplace commission structures. Automated invoice generation calculates charges according to configurable billing cycles with grace periods, proration for mid-cycle changes, and credit note issuance for refunds and adjustments. Prepaid credits enable pay-in-advance models where customers purchase credit blocks and draw down as usage accumulates, while entitlements tie feature access directly to billing plans for automated provisioning and de-provisioning. Payment orchestration integrates natively with Stripe, Adyen, and GoCardless with automatic retry logic, dunning workflows for failed payments, and multi-gateway routing. Revenue analytics provide cross-stream visibility into MRR, usage trends, churn, and revenue drivers through dedicated API endpoints. The customer portal embeds into your application for self-service invoice access and usage monitoring. Running on a dedicated VPS on RepoCloud with guaranteed CPU, RAM, and SSD, full root SSH access, and a browser serial console. AGPL-3.0 licensed.

Deploy
KillBill screenshot thumbnail

KillBill

Kill Bill handles the complete subscription billing lifecycle from plan definition through invoice generation to payment collection across any gateway, with 15 years of Fortune 500 production use and 5,600+ GitHub stars behind it. Plans, trials, add-ons, and pricing tiers live in a versioned XML catalog that propagates changes without code deploys. The multi-phase subscription engine manages trial periods, promotional discounts, evergreen billing, usage-based metering, and hybrid pricing models with automatic proration on plan upgrades and downgrades. Automated invoice generation calculates charges, applies credits and adjustments, and triggers payment collection through pluggable gateways including Stripe, Adyen, Braintree, PayPal, and CyberSource. The Java plugin framework extends every billing domain with custom logic for tax calculation via Avalara AvaTax or Vertex, fraud detection through Accertify or Feedzai, and ERP integration without modifying the core. The Kaui admin dashboard gives finance and operations teams account management, subscription controls, invoice views, payment configuration, billing timeline visualization, MRR tracking, advanced search, and full audit history with object-level change tracking. Multi-tenancy isolates billing data across thousands of brands with tenant-specific catalogs, payment configs, and RBAC policies. REST APIs expose every operation with webhook notifications for downstream integration. Deploys via Docker Compose on MySQL or PostgreSQL. Running on a dedicated VPS on RepoCloud with guaranteed CPU, RAM, and SSD, full root SSH access, and a browser serial console. Apache 2.0 licensed.

Deploy
Meteroid screenshot thumbnail

Meteroid

Meteroid delivers the billing infrastructure that SaaS companies need when Stripe Billing gets too rigid and building in-house gets too expensive. The Rust backend ingests usage events via REST API or Kafka with deduplication by event ID and customer ID, storing time-series data in ClickHouse for sub-second aggregation queries across billions of events. Billable metrics transform raw events — API calls, compute time, tokens, storage, transactions — into accurate charges using configurable aggregation functions, dimensions, and filters without pre-aggregation. The plan builder supports any pricing structure: flat rate, per-unit, tiered graduated, tiered volume, package, and hybrid combinations with multiple price components per plan. Versioned plans enable pricing changes without affecting existing subscribers through grandfathering, while experiments let you A/B test pricing with controlled rollouts. Subscription management handles the full lifecycle — creation, upgrades, downgrades, mid-cycle proration, scheduled changes, and cancellation with configurable grace periods. The TypeScript frontend provides a complete web dashboard for managing customers, plans, subscriptions, invoices, and revenue analytics with MRR tracking, churn analysis, and cohort insights. Automated invoice generation handles complex scenarios including usage-based line items, credits, discounts, and tax calculations with PDF rendering. Stripe Connect integration enables payment collection directly through the platform. Running on a dedicated VPS on RepoCloud with guaranteed CPU, RAM, and SSD, full root SSH access, and a browser serial console. AGPL-3.0 licensed.

Deploy