Open-source billing infrastructure for usage-based, credit-based, and hybrid pricing
- Stars3.6k
- Forks171
- Open Issues154
AGPL-3.0
- Go
- Shell
- TypeScript

About Flexprice
Flexprice is monetization infrastructure for AI-native and SaaS teams that need usage-based, credit-based, seat-based, or hybrid billing. Applications send usage events from backend APIs, AI agents, custom workflows, or data pipelines, and Flexprice meters usage and applies pricing rules in real time.
It supports custom usage events, prepaid and promotional credits with auto top-ups and expiry, customer-specific plan overrides, plan versioning, feature entitlements, usage limits, and invoice generation. It exposes Go, Python, and JavaScript SDKs plus webhooks, can sync to payment, CPQ, CRM, and accounting tools, and builds on top of providers such as Stripe or Chargebee.
The core is open source under AGPL-3.0 and runs self-hosted via Docker Compose over PostgreSQL, Kafka, ClickHouse, and Temporal, with a hosted cloud also available. A small Enterprise Edition is offered under a separate commercial license.
Key features
- Real-time usage metering from custom events
- Prepaid and promotional credits with top-ups and expiry
- Usage-based, seat-based, tiered, pay-as-you-go, and hybrid plans
- Feature entitlements and usage limits per plan
- Invoice sync to payment, CRM, CPQ, and accounting tools
Details
- On GitHub since
- 2024
- Deployment
- self-hostable · cloud · docker
- Language
- Go
- Stack
- Postgres · Kafka · ClickHouse
- Pricing models
- Usage · credits · seats · hybrid
- License
- AGPL-3.0 (open core)
