Configs2026年9月12日·1 分钟阅读

FlexPrice — Open Source Usage-Based Billing Platform

An open-source billing engine for usage-based pricing with real-time metering, credit management, and payment orchestration via Stripe.

Agent 就绪

Agent 可直接安装

这个资产可安装;Agent 先选择当前运行时、检查安装计划,再运行匹配命令。

Native · 98/100策略:允许
Agent 入口
任意 MCP/CLI Agent
类型
Skill
安装
Single
信任
信任等级:Established
入口
FlexPrice Overview
直接安装命令
npx -y tokrepo@latest install c945e671-ae6a-11f1-9bc6-00163e2b0d79 --target codex

先 dry-run 确认安装计划,再运行此命令。

Introduction

FlexPrice is an open-source billing platform built for usage-based and hybrid pricing models. It handles real-time usage metering, credit and wallet management, invoice generation, and payment orchestration through Stripe. Designed for SaaS companies that charge based on consumption rather than flat subscriptions, it provides a no-code dashboard alongside a developer API.

What FlexPrice Does

  • Meters usage events in real-time with sub-second ingestion
  • Calculates charges based on configurable pricing tiers and schedules
  • Manages customer credits, wallets, and top-up workflows
  • Generates invoices and orchestrates payments via Stripe
  • Provides a no-code dashboard for pricing configuration and analytics

Architecture Overview

FlexPrice is built with Go for the backend and uses ClickHouse for high-throughput event storage and aggregation. Usage events flow through Kafka for reliable ingestion, then are aggregated by ClickHouse for real-time billing calculations. PostgreSQL stores customer and pricing configuration data, while Temporal handles long-running billing workflows like invoice generation and payment retries.

Self-Hosting & Configuration

  • Deploy with Docker Compose including all dependencies
  • Configure pricing plans through the web dashboard or API
  • Connect a Stripe account for payment processing
  • Ingest usage events via the REST API or SDK
  • Set up webhooks for billing lifecycle events

Key Features

  • Real-time usage metering with ClickHouse-backed aggregation
  • Flexible pricing models including per-unit, tiered, and volume pricing
  • Built-in credit and wallet system for prepaid balances
  • Stripe integration for payment collection and invoicing
  • No-code dashboard for business teams to manage pricing

Comparison with Similar Tools

  • Lago — Ruby-based billing; FlexPrice uses Go and ClickHouse for higher throughput
  • Stripe Billing — Managed service with vendor lock-in; FlexPrice is self-hosted and open-source
  • Orb — Cloud-only usage billing; FlexPrice can run on your infrastructure
  • Metronome — Enterprise usage billing; FlexPrice is open-source with a similar feature set

FAQ

Q: What payment providers are supported? A: Stripe is the primary integration. Additional providers can be added through the payment adapter interface.

Q: How does it handle high event volumes? A: Usage events are ingested through Kafka and stored in ClickHouse, which handles millions of events per second.

Q: Can I use it for subscription-only billing? A: Yes. FlexPrice supports pure subscription, pure usage, and hybrid billing models.

Q: Is there a hosted version? A: FlexPrice offers a managed cloud option alongside the self-hosted open-source version.

Sources

讨论

登录后参与讨论。
还没有评论,来写第一条吧。

相关资产