Open-source metering and billing platform for usage-based AI, API, and DevTool monetization
- Stars2k
- Forks185
- Open Issues119
Apache-2.0
- Go
- TypeScript
- TypeSpec

About OpenMeter
OpenMeter is a real-time metering and billing engine for AI, agentic, and DevTool monetization. It tracks usage, enforces limits, manages subscriptions, and automates invoicing in one platform, connecting usage data to billing, entitlements, and customer-facing portals.
It ingests CloudEvents through an API, defines meters with SUM, COUNT, AVG, MIN, and MAX aggregations, and queries usage in real time. Billing covers metered invoices with tiered, graduated, and flat-fee pricing, plans, add-ons, rate cards, mid-cycle subscription changes and prorating, prepaid credits, and LLM cost tracking. SDKs are available for Go, JavaScript, and Python.
It is written in Go and licensed under Apache-2.0. Self-host with Docker Compose using Postgres, Kafka, and ClickHouse, run on Kubernetes via Helm, or use the managed cloud.
Key features
- CloudEvents ingestion with SUM, COUNT, AVG, MIN, and MAX meters
- Usage-based invoices with tiered, graduated, and flat-fee pricing
- Usage quotas, real-time balances, feature flags, and grace periods
- Plans, add-ons, features, rate cards, and mid-cycle subscription changes
- Webhook alerts for usage thresholds and billing events
Details
- On GitHub since
- 2023
- Deployment
- self-hostable · cloud · docker
- Language
- Go
- Dependencies
- Postgres · Kafka · ClickHouse
- Events
- CloudEvents format
- License
- Apache-2.0
