Manage usage-based metering, credit systems, and subscription billing with an open architecture for AI and SaaS teams.

Flexprice is an open-source, self-hosted web app and server that provides infrastructure for usage-based and hybrid pricing models. It functions as a server-side web application that handles the logic for metering, credits, and subscription management. It is designed for AI-native companies and SaaS teams that require real-time reporting and flexible monetization strategies to scale as their products evolve.
The software is deployed as a server that integrates with existing backend APIs, AI agents, or custom workflows. It processes usage data in real time to calculate pricing, apply credits, and generate invoices. Flexprice acts as a composable layer that can either stand alone or augment existing payment processors and CRM tools to manage entitlements and billing rules, ensuring that billing information flows into the systems a business already uses for accounting and customer management.
The architecture utilizes Go, PostgreSQL, ClickHouse, and Temporal to handle high-volume event streaming and aggregation. It is built for developers who want to avoid vendor lock-in and the complexity of building custom metering logic from scratch. By abstracting the calculation of usage and the enforcement of feature gates, it allows teams to modify pricing strategies in minutes without performing database schema migrations or writing complex migration scripts. The system can ingest data directly from data warehouses or analytics pipelines, providing transparency into usage and charges for both engineering and finance teams.
Flexprice is a developer-first billing engine that separates the logic of pricing and metering from the actual processing of payments.
Manage usage based and subscription billing with an open source system for metering, invoicing, and revenue analytics.
A payment infrastructure for digital products and SaaS that handles billing, sales tax, and merchant of record duties.
Join our newsletter to get shiny new open source software delivered to your inbox. Unsubscribe anytime.