flexprice/flexprice

▲ 157 stars today★ 6,930⑂ 995

Usage-based pricing and billing for developers 🔓 Cloud or self-hosted ⚙️ No-code UI 💰 Realtime usage metering 🎟 Credits & top-ups 🔑 Control feature access

About flexprice/flexprice

flexprice/flexprice is an open-source project on GitHub, mainly written in Go. Usage-based pricing and billing for developers 🔓 Cloud or self-hosted ⚙️ No-code UI 💰 Realtime usage metering 🎟 Credits & top-ups 🔑 Control feature access It currently holds 6,930 stars and 995 forks with 172 open issues, and was last pushed on 2026-09-23 (repository created 2024-11-05).

Project Overview

Git Homed tracks it on the Today's Trending board, currently at rank #27 with 157 new stars today.

GitHub Repository Details

Repository flexprice/flexprice · default branch main · size 229980 KB · watchers 12 · source: GitHub REST API and repository README

README

https://github.com/flexprice/flexprice/blob/HEAD/flexprice logo

Monetization Infrastructure Built for AI Native Companies

Flexprice lets AI-native and SaaS teams operate usage-based, credit-based, and hybrid pricing with real-time metering and reporting that scales as your product evolves.

DocsDemoWebsiteLinkedInXSlack Community

Go Python JavaScript

https://github.com/flexprice/flexprice/blob/HEAD/flexprice%2Fflexprice | Trendshift

https://github.com/flexprice/flexprice/blob/HEAD/Flexprice - Usage-based pricing and metering for developers | Product Hunt

---

Open architecture

The Flexprice core (metering, credits, pricing, billing) has an open and composable design.

Your application, whether it's running backend APIs, AI agents, or custom workflows, can send usage data to Flexprice. You can directly stream data from data warehouses or analytics pipelines as well.

At the core, Flexprice processes this data in real time. We handle everything that usually ends up as custom logic built by developers. Our platform calculates pricing based on the customer’s plan, applies any prepaid or promotional credits, enforces feature limits, and generates accurate invoices automatically. Whether you're using seat-based subscriptions, usage-based pricing, or prepaid credit bundles, you can set up and iterate on your pricing model without writing billing infrastructure from scratch.

After billing is computed, our platform connects to your existing tools for payments, CPQ, CRM, and accounting, ensuring billing information flows into the systems your business already uses. It can sync invoices to your payment processor, update customer data in your CRM, and push revenue numbers to your accounting tools.

With this architecture, you get full control over how billing works inside your product, while saving your team from the complexity of maintaining it all.

Why billing is a developer problem?

TL;DR

_When existing billing tools don’t flex to your product’s needs, developers shoulder the burden eating up valuable development time and causing ongoing maintenance headaches._

https://github.com/flexprice/flexprice/blob/HEAD/struggle is real

Modern app developers often find themselves wrestling with billing systems. Here are some of the biggest pain points that turn billing into a “developer problem”:

How Flexprice solves this

Flexprice’s approach is to abstract away the hard parts of billing while preserving maximum flexibility and transparency for developers. It addresses the above pain points in several key ways:

By handling the heavy lifting from real-time usage tracking to invoice generation, Flexprice lets your team focus on building your actual product, not the billing system around it

Features

Flexprice provides a rich set of features to power usage-based and hybrid billing models. Key features include:

https://github.com/flexprice/flexprice/blob/HEAD/features

Each of these features is accessible via Flexprice’s APIs and dashboard, allowing you to mix and match to build the exact billing experience you need.

🚀 Setting up Flexprice from source for development and contributions

To run Flexprice for local development or running from source, you will need

1. Golang 2. Docker and Docker Compose 3. Any of the below supported platform environments: 1. Linux based environment 2. OSX (Darwin) based environment 3. WSL under Windows

Quick Setup with Docker Compose

The easiest way to get started is using our Docker Compose setup:

# Clone the repository
git clone https://github.com/flexprice/flexprice
cd flexprice

Set up the complete development environment

make dev-setup

This will:

1. Start all required infrastructure (PostgreSQL, Kafka, ClickHouse, Temporal) 2. Build the FlexPrice application image 3. Run database migrations and initialize Kafka 4. Start all FlexPrice services (API, Consumer, Worker)

Once complete, you can access:

Useful Commands

# Restart only the FlexPrice services
make restart-flexprice

Stop all services

make down

Clean everything and start fresh

make clean-start

Build the FlexPrice image separately

make build-image

Start only the FlexPrice services

make start-flexprice

Running Without Docker

If you prefer to run the application directly:

# Start the required infrastructure
docker compose up -d postgres kafka clickhouse redis temporal temporal-ui

Run the application locally

go run cmd/server/main.go

👨🏻‍💻 Let's Build Together! 👩🏻‍💻

Whether you're a newbie coder or a wizard 🧙‍♀️, your perspective is golden. Take a peek at our:

📜 Contribution Guidelines

🏗️ Local Development Setup

❤️ Code of Conduct

Ask DeepWiki

Contributors

Repo Activity

![Alt](https://repobeats.axiom.co/api/embed/4d6e208eab20ff0615787615c4fa022591adfa6b.svg "Repobeats analytics image")

License

Flexprice is a commercial open source company, which means some parts of this open source repository require a commercial license. The concept is called "Open Core" where the core technology (99%) is fully open source, licensed under AGPLv3 and the last 1% is covered under a commercial license ([ee , internal/ee Enterprise Edition]).

[!TIP]
We work closely with the community and always invite feedback about what should be open and what is fine to be commercial. This list is not set and stone and we have moved things from commercial to open in the past. Please open a discussion if you feel like something is wrong.

GitHub Stars & Activity

6,930Stars
995Forks
172Open issues
GoLanguage

GitHub Popularity

GitHub stars6,930
Forks995
Open issues172
Primary languageGo
LicenseAGPL-3.0
Stars gained today157
Created2024-11-05
Last pushed2026-09-23

Trending History

Daily boardrank #27 · ▲ 157 stars

Related GitHub Projects

1

router-for-me / CLIProxyAPI

Go★ 53,020⑂ 8,006▲ 179 stars
2

projectdiscovery / nuclei

Go★ 31,464⑂ 3,886▲ 37 stars
3

google / ax

Go★ 8,878⑂ 417▲ 1,542 stars
4

maximhq / bifrost

Go★ 8,286⑂ 1,272▲ 34 stars
5

CarterPerez-dev / Cybersecurity-Projects

Go★ 7,320⑂ 1,070▲ 50 stars
6

weave-os / router

Go★ 4,966⑂ 136▲ 188 stars
7

agent-substrate / substrate

Go★ 3,422⑂ 407▲ 560 stars
8

zzet / gortex

Go★ 1,721⑂ 162▲ 71 stars

More Trending Repositories