Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

🌟Open source pricing and billing infrastructure to support any pricing model, from usage-based to subscription and everything in between.👨‍💻No more building billing in house. ❌Say goodbye to revenue cuts by stripe and chargebee.

License

NotificationsYou must be signed in to change notification settings

flexprice/flexprice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

fleprice logo

⚡️ Usage metering and billing for AI companies ⚡️

🌟 Built with developers in mind, so you don’t have to createbilling and metering from scratch. 🌟


LinkedIn

Flexprice is adeveloper first answer to building and launching any pricing model and collecting usage data in real-time.

We have one goal - our friends should never have to write a billing system from scratch again.

The struggle is real since AI is here

Record Replay Testing

In-house Billing Systems are a nightmare for Engineers. With rising use of AI workloads internally and building new AI features, it has become necessary to build metering and billing systems to track usage and costs.

Frequency of changes in pricing models is also increasing. These changes make it hard to manage existing subscriptions and require a lot of manual effort in terms of migrations and testing.

The Solution: Flexprice

Usage metering, subscription management and infra cost into one stack

Record Replay Testing

Developers don't need to spendmonths building internal metering and rating systems.

Flexprice offers APIs, SDKs, self serve UI widgest, internal dashboards and more to help you get started in minutes. With Flexprice, you can:

  • Evolve your pricing with flexibility: We support Usage-based pricing, Minimum commitments, Volume discounts, Prepaid Credits, Upgrades and downgrades, etc.

  • Real-time overview AI Infrastructure Costs: Optimize revenue operations and measure LLM Token Usage, GPU Time, Compute Hours, API Call Frequency and Duration, etc

  • Custom Invoice and Billing logic: Raise invoices, manage billing cycles, apply discounts, taxes, grace period, payment terms, etc

Flexprice Dashboard

🚀 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 andDocker 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 repositorygit clone https://github.com/flexprice/flexpricecd flexprice# Set up the complete development environmentmake 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 servicesmake restart-flexprice# Stop all servicesmake down# Clean everything and start freshmake clean-start# Build the FlexPrice image separatelymake build-image# Start only the FlexPrice servicesmake start-flexprice

Running Without Docker

If you prefer to run the application directly:

# Start the required infrastructuredocker compose up -d postgres kafka clickhouse temporal temporal-ui# Run the application locallygo run cmd/server/main.go

Code Architecture

SeeCONTRIBUTING.md for more details on the code architecture and design principles.

👨🏻‍💻 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

✨ Resources!

📖API Docs

About

🌟Open source pricing and billing infrastructure to support any pricing model, from usage-based to subscription and everything in between.👨‍💻No more building billing in house. ❌Say goodbye to revenue cuts by stripe and chargebee.

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp