Flexprice
Metering and billing infrastructure for AI and SaaS teams running usage-based, credit-based or hybrid pricing without writing it themselves.
Open Source Alternative to:

Flexprice is monetization infrastructure for teams whose pricing does not fit a standard subscription tool. Applications, agents or workflows send usage events, and the platform takes over the metering, credit application, entitlement checks and invoicing that otherwise turns into custom billing code nobody wants to maintain.
Processing happens in real time. Events arrive from your backend through Go, Python and JavaScript SDKs, or stream in from a data warehouse or analytics pipeline. Once billing is computed the results flow outward, syncing invoices to a payment processor, customer data to a CRM and revenue figures to accounting.
The core splits into a handful of pieces you can adopt separately.
- Usage metering: define granular events such as API calls, compute time or database queries and aggregate them as they land.
- Credit grants: prepaid and promotional credits, automatic top-ups at thresholds, and expiry for what goes unused.
- Pricing plans: seat-based, pay-as-you-go, volume-tiered and hybrid models, with per-customer overrides and plan versioning.
- Feature management: toggles, metered limits and configuration values enforced per plan or per customer.
- Subscriptions and invoicing: proration, overages and credits produce invoice lines tied back to tracked usage.
Written in Go and self-hostable, Flexprice suits teams that dislike percentage-of-revenue fees or opaque billing logic and want to read the code that charges their customers. Local development runs on Docker Compose, and it can layer over an existing provider such as Stripe or Chargebee instead of replacing it.
Stars
5,098Forks
497Last commit
5 days agoRepository age
2 yearsLicense
AGPL-3.0Version
2.1.29Repository
flexprice/flexprice
Auto-fetched from GitHub .
Open source alternatives similar to Flexprice:
Stars
Forks
Last commit
Stars
Forks
Last commit
Stars
Forks
Last commit