Business Software · Finance & Accounting
Flexprice
Usage-based billing and pricing infrastructure for SaaS and AI products.
Flexprice is an API-first billing platform for usage, credits, subscriptions, entitlements, invoices, and hybrid pricing. Its community edition is licensed under AGPL-3.0, while Enterprise Edition components are commercially licensed. Teams can use Flexprice Cloud or deploy the community edition themselves. The service supports metering, pricing rules, wallets, feature access, reporting, and payment integrations.
Key facts
- License
- AGPL-3.0 (core); commercial enterprise components
- Main language
- Go, TypeScript, JavaScript, Python, Shell, HTML, PLpgSQL, Go Template, Makefile, Dockerfile, Typst
- Maintainer
- Flexprice
- First released
- 2024
- Latest release
- v2.1.40, released 2026-10-17
- GitHub stars
- 6880
- Hosted option
- Flexprice Cloud: Pay as you go from $199/month plus 0.5% of billing, including up to 50 million usage events monthly; Enterprise starts at $3,000/month.
What Flexprice is
Flexprice is an active open-core project maintained by Flexprice for usage-based billing and pricing infrastructure. It was first released in 2024 and is aimed at SaaS and AI products whose charges depend on measurable consumption rather than only fixed subscriptions. The repository describes a community edition with an open and composable core covering metering, credits, pricing, and billing. The community edition is licensed under AGPL-3.0, while Enterprise Edition components are commercially licensed. Teams can use Flexprice Cloud or deploy the community edition on their own infrastructure. Its positioning combines real-time usage metering, credit and wallet workflows, entitlements, invoices, reporting, and payment integrations in a focused monetization layer.
How it works
Flexprice provides an API-first workflow that begins when an application, analytics pipeline, or data warehouse sends usage events. The platform ingests and aggregates consumption, applies usage dimensions and pricing rules, evaluates plans and subscriptions, applies prepaid or promotional credits, enforces feature limits, and produces billing records and invoice line items. Teams can combine subscriptions, seats, tiers, free allowances, overages, wallets, and credit grants in one model. APIs and a dashboard support administration, while integrations allow payment, CRM, CPQ, accounting, tax, and other systems to retain established responsibilities. Entitlements connect purchased plans and features to access controls, quotas, limits, or configuration values. Customers can receive usage summaries and detailed charges.
Architecture and recent releases
Flexprice's technology includes Go, TypeScript, JavaScript, Python, Shell, HTML, PLpgSQL, Go Template, Makefile, Dockerfile, and Typst. The documented local architecture starts PostgreSQL, Kafka, ClickHouse, and Temporal, then runs Flexprice API, consumer, and worker services. PostgreSQL supports transactional data, Kafka transports events, ClickHouse supports analytics and metering workloads, and Temporal orchestrates longer-running billing workflows. The latest listed release is v2.1.40, released October 17, 2026. That release added a billing family query engine for financial reports, worker memory budgeting from container limits, guarded ClickHouse replica bootstrap, invoice service-date handling, dashboard cross-origin access, discount visibility in PDF cost breakdowns, and pay-first trial-end behavior through checkout and portal sessions.
License and pricing
The Flexprice community edition uses the AGPL-3.0 license, while Enterprise Edition components are commercially licensed. Flexprice Cloud Pay as you go starts at $199 per month plus 0.5% of billing and includes up to 50 million usage events monthly. The Enterprise plan starts at $3,000 per month with no revenue share and offers cloud, VPC, on-premises, or air-gapped deployment options. Paid capabilities listed include subscription, usage, hybrid, and credit pricing, real-time metering, wallets, entitlements, invoices, reporting, integrations, and support choices. Enterprise adds items such as SAML SSO, SCIM, role-based permissions, custom ingestion sources, custom service levels, and 24/7 support. Self-hosting avoids cloud billing but transfers operations to the customer.
Limitations and how it compares
Flexprice supports broad pricing models, but it also has important limitations. Enterprise Edition components require commercial licensing, and self-hosted teams must manage infrastructure, keys, webhooks, upgrades, migrations, monitoring, backups, storage, scaling, security, and service availability. The local stack is substantial for small deployments because it includes PostgreSQL, Kafka, ClickHouse, Temporal, and multiple application services. Native self-hosted webhook delivery differs from Cloud behavior because it uses no signature and a short retry window by default unless Svix is enabled. Flexprice can replace custom usage metering, ad hoc entitlement tables, and parts of Stripe Billing or Chargebee. Named alternatives include Kill Bill, Lago, OpenMeter, and ERPNext, with comparisons focused on data models, integrations, licensing, operations, and payment responsibilities.
Main features
- Real-time metering. Ingest usage events and aggregate consumption for billing, reporting, customer visibility, and margin analysis.
- Hybrid pricing. Combine subscriptions, seats, tiers, credits, overage, free tiers, and usage charges in one pricing model.
- Entitlements. Connect plans and purchased features to access controls, quotas, limits, and configuration values across a product.
- Credits and wallets. Support prepaid balances, promotional grants, automatic top-ups, expiry rules, and consumption-based charging.
- Billing operations. Manage customers, invoices, subscriptions, payment integrations, billing cycles, proration, and reporting through APIs and dashboard.
- AI cost visibility. Track LLM, GPU, infrastructure, and other usage dimensions with detailed usage summaries and financial reporting.
Self-hosting Flexprice
Flexprice can run on customer infrastructure with Docker Compose for local or small deployments, or through the documented AWS pattern using ECS, RDS, MSK, and EKS. The development setup requires Golang 1.23 or later, Docker, Docker Compose, make, and Linux, macOS, or Windows WSL. The setup starts PostgreSQL, Kafka, ClickHouse, and Temporal, then builds the application, runs PostgreSQL and ClickHouse migrations, initializes Kafka topics, seeds tenant and environment data, and starts API, consumer, and worker services. Self-hosted teams manage their host, keys, webhooks, upgrades, monitoring, backups, storage, scaling, security, and migrations. The community edition is the self-hostable path; Enterprise Edition components remain commercially licensed.
Strengths
- Supports usage, credit, seat, tiered, subscription, and hybrid pricing models.
- Offers hosted and community-edition self-hosting options.
- Combines metering, credits, entitlements, invoicing, and reporting.
- Provides documented Docker Compose and AWS deployment paths.
Drawbacks
- Enterprise Edition components require commercial licensing.
- The operational stack is substantial for small deployments.
- Self-hosted customers manage upgrades, backups, security, and scaling.
What teams replace with it
Teams usually evaluate Flexprice when they want to move off Custom usage-metering services, Ad hoc subscription and entitlement tables, Parts of Stripe Billing or Chargebee.
For side-by-side commercial comparisons, browse our alternatives hub.
Frequently asked questions
Is Flexprice open source?
The core is licensed under AGPL-3.0. The project uses an open-core model in which Enterprise Edition directories and capabilities are commercially licensed. Teams should identify the components they use and review the applicable license before modifying, redistributing, or offering a hosted service.
Can Flexprice be self-hosted?
Yes. Documentation describes Docker Compose for development and small deployments, together with AWS guidance for production layouts. The community edition runs on customer infrastructure. Operators manage infrastructure, upgrades, monitoring, storage, backups, migrations, webhook configuration, and service availability.
What does Flexprice Cloud cost?
The pricing page lists Pay as you go from $199 per month plus 0.5% of billing, including up to 50 million usage events monthly. Enterprise starts at $3,000 per month with no revenue share. Features, support, deployment choices, and integrations differ between plans.
Which databases and services does it use?
The documented local stack includes PostgreSQL, Kafka, ClickHouse, and Temporal, alongside API, consumer, and worker services. PostgreSQL supports transactional data, Kafka transports events, ClickHouse supports analytics and metering workloads, and Temporal orchestrates longer-running billing workflows.
What is the latest release?
The releases page lists v2.1.40, released October 17, 2026. Changes include financial-report analytics, Helm worker memory budgeting, guarded ClickHouse replica bootstrap, invoice service-date handling, and subscription trial-end behavior. Teams should check the repository releases page for a newer version before deployment.
Similar projects to compare
- LagoAGPL-3.0Lago is an API-first billing platform for usage-based, subscription, prepaid, and hybrid pricing. It is maintained by Lago under AGPL-3.0, can be self-hosted for commercial use subject to the license, and has a managed Lago Cloud option with quoted plans and a standard minimum annual commitment in the five figures.
- OpenMeterApache-2.0OpenMeter is an Apache-2.0 platform for collecting usage events, enforcing entitlements, and billing AI, API, SaaS, and developer-tool products. Teams can self-host it, while the managed product is now Konnect Metering & Billing on Kong Konnect. The pricing page publishes no numeric hosted price. Its workflow connects event ingestion with usage aggregation, access decisions, credits, subscriptions, and invoice operations.
- ERPNextGPL-3.0ERPNext is Frappe’s open-source enterprise resource planning system, covering accounting, sales, procurement, inventory, manufacturing, projects, assets, point of sale, human resources, and payroll. It targets organizations needing these business-management capabilities, is licensed under GPL-3.0, and can be self-hosted. A hosted option is available through Frappe Cloud, starting at $5 per month.
- AkauntingBSL-1.1Akaunting is a Laravel-based web accounting application for freelancers and small businesses, with invoicing, bills, banking, reporting, and an app store. It can be self-hosted or used through Akaunting Cloud. The source is licensed under Business Source License 1.1, with limited production rights and GPLv3 as the change license after four years.
- AutumnApache-2.0Autumn is a TypeScript billing and entitlement layer for SaaS and AI products that use subscriptions, credits, seats, usage limits, and overages. It targets product teams building these systems and is licensed under Apache-2.0, with self-hosting available. Autumn Cloud is the hosted option, offering Free at $0/month, Pro at $375/month, and custom-priced Enterprise plans.
- BigcapitalAGPL-3.0Bigcapital is an AGPL licensed web application for double entry accounting, invoicing, purchasing, inventory, bank feeds, reconciliation, and financial reporting. It offers hosted plans from $20 per month and a self managed Docker deployment using several services. The repository lists TypeScript, JavaScript, HTML, CSS, Pug, SCSS, Shell, and Dockerfile languages. Its repository was created in 2021, while the public product announcement was published in 2024.
Sources
Last updated 2026-10-22.