Flexprice logo

Flexprice

Usage-based metering and billing infrastructure for developers

Open-source billing platform for usage-based, credit-based, and hybrid pricing models. Handles metering, pricing, and invoicing with full developer control and composable architecture.

Flexprice banner

Overview

Developer-First Billing Infrastructure

Flexprice is an open-source metering and billing platform designed for engineering teams building usage-based, credit-based, or hybrid pricing models. Instead of wrestling with rigid billing tools or building custom infrastructure from scratch, developers can instrument their applications with simple SDKs and let Flexprice handle real-time usage aggregation, pricing calculations, credit management, and invoice generation.

Open Architecture, Maximum Flexibility

Built with a composable design, Flexprice integrates seamlessly with existing payment processors (Stripe, Chargebee), CRMs, CPQ systems, and accounting tools. Stream usage data from backend APIs, AI agents, data warehouses, or analytics pipelines—Flexprice processes events in real time, applies customer-specific pricing rules, enforces feature limits, and syncs billing information across your stack. Because it's open-source and self-hostable, teams gain full transparency and control without vendor lock-in or percentage-based fees.

Built for Modern Pricing Models

Whether you need pure pay-as-you-go, tiered subscriptions, prepaid credit bundles, promotional credits, or complex hybrids, Flexprice's data model and rules engine adapt without schema migrations or custom code. Define granular usage events, manage feature entitlements per plan, and iterate on pricing strategies in minutes—not months. Engineering teams reclaim time for core product development while finance and operations gain clear visibility into usage and revenue.

Highlights

Real-time usage metering for millions of events with granular tracking and reliable aggregation
Flexible credit system supporting prepaid, promotional, and auto-top-up workflows without custom logic
Composable architecture integrating with Stripe, Chargebee, CRMs, and existing payment infrastructure
Open-source and self-hostable for full transparency, control, and freedom from vendor lock-in

Pros

  • API-first design with SDKs minimizes custom billing code and accelerates implementation
  • Supports complex hybrid pricing models (usage, seats, credits, tiers) out-of-the-box
  • Self-hosting option eliminates percentage-based fees and provides full data ownership
  • Composable with existing tools rather than requiring wholesale replacement of billing stack

Considerations

  • Self-hosting requires infrastructure management and operational expertise
  • Open-source maturity and community ecosystem may be smaller than established SaaS billing vendors
  • Initial setup and integration effort needed to instrument applications and configure pricing rules
  • Real-time metering at scale demands careful architecture and monitoring

Managed products teams compare with

When teams consider Flexprice, these hosted platforms usually appear on the same shortlist.

Chargebee logo

Chargebee

Subscription billing and revenue management for recurring businesses

ChargeOver logo

ChargeOver

Recurring billing and subscription management with invoicing and dunning

Maxio logo

Maxio

Subscription billing & revenue operations platform for B2B SaaS

Looking for a hosted option? These are the services engineering teams benchmark against before choosing open source.

Fit guide

Great for

  • Engineering teams building usage-based or credit-based pricing models from scratch
  • Companies needing flexible, custom billing logic that rigid SaaS tools cannot accommodate
  • Organizations wanting to avoid vendor lock-in and percentage-based revenue fees
  • Product teams iterating rapidly on pricing strategies without engineering bottlenecks

Not ideal when

  • Teams seeking fully managed, zero-ops billing SaaS with no infrastructure responsibility
  • Simple subscription businesses with no usage metering or complex pricing requirements
  • Organizations lacking engineering resources to integrate and maintain billing infrastructure
  • Companies requiring mature enterprise support and extensive third-party integrations out-of-the-box

How teams use it

API Platform with Tiered Usage Pricing

Track millions of API calls in real time, apply tiered volume pricing per customer plan, and generate accurate invoices without custom metering code.

AI Agent Platform with Prepaid Credits

Grant customers prepaid credit bundles, automatically deduct usage costs, trigger top-ups at thresholds, and expire unused credits—all managed by Flexprice.

SaaS Product with Hybrid Seat and Usage Model

Combine seat-based subscriptions with usage-based overages, enforce feature limits per plan, and iterate pricing strategies without schema migrations.

Data Warehouse Billing Integration

Stream usage events directly from data pipelines, aggregate compute or storage consumption, and sync invoices to existing payment processors and accounting tools.

Tech snapshot

Go98%
TypeScript1%
Shell1%
Python1%
Typst1%
Makefile1%

Tags

temporalstripekafkapostgresqlgohacktoberfestclickhouseusage-based-pricingstripe-subscriptionseventsbillingpricingsubscription-management

Frequently asked questions

Is Flexprice a replacement for Stripe or Chargebee?

No, Flexprice is designed to work alongside payment processors like Stripe or Chargebee. It handles usage metering, pricing logic, credits, and entitlements, then syncs invoices and billing data to your existing payment and accounting systems.

Can I self-host Flexprice on my own infrastructure?

Yes, Flexprice is open-source and self-hostable, giving you full control over your billing data and logic without vendor lock-in or percentage-based fees.

What types of pricing models does Flexprice support?

Flexprice supports usage-based, seat-based, tiered, prepaid credit, promotional credit, and hybrid pricing models. You can configure and iterate on pricing strategies without custom code or schema changes.

How does Flexprice handle high-volume usage events?

Flexprice is built to meter and aggregate millions of events in real time with reliable processing at scale, ensuring accurate billing even during peak load.

Do I need to replace my existing billing setup to use Flexprice?

No, Flexprice has a composable architecture that integrates with your current payment gateways, CRMs, CPQ, and accounting tools, preserving existing workflows while adding advanced metering and pricing capabilities.

Project at a glance

Active
Stars
3,545
Watchers
3,545
Forks
130
LicenseAGPL-3.0
Repo age1 year old
Last commityesterday
Self-hostingSupported
Primary languageGo

Last synced yesterday