Retour au classement

openmeterio/openmeter

Goopenmeter.io

Metering and Billing for AI, API and DevOps. Collect and aggregate millions of usage events in real-time and enable usage-based billing.

kafkameteringusage-based-billinggolangusagefinopsbillingclickhousestripeusage-based-pricingpricingcost
Croissance des étoiles
Étoiles
2.1k
Forks
197
Croissance hebdomadaire
Issues
32
1k1.5k2k
juin 2023juin 2024juil. 2025juil. 2026
ArtefactsGo Modulesgo get github.com/openmeterio/openmeter
README

OpenMeter logo

OpenMeter

The open-source metering and billing platform for AI, agentic and DevTool monetization.

Docs | Hosted | Blog | Contributing

GitHub Release CI Status Go Report Card GitHub Stars


OpenMeter is a real-time metering and billing engine that helps you track usage, enforce limits, manage subscriptions, and automate invoicing — all in one platform. Ingest events via a simple API, define meters with flexible aggregations, and connect usage data to billing, entitlements, and customer-facing dashboards.

Features

  • Usage Metering — Ingest events in CloudEvents format, define meters with flexible aggregations (SUM, COUNT, AVG, MIN, MAX), and query usage in real time.
  • Usage-Based Billing — Generate invoices from metered usage. Supports tiered, graduated, and flat-fee pricing with automated invoice lifecycle management.
  • Usage Limits and Entitlements — Enforce usage quotas per feature with real-time balance tracking, boolean feature flags, and grace periods.
  • Product Catalog — Define plans, add-ons, features, and rate cards. Manage subscriptions with mid-cycle changes, prorating, and alignment.
  • Prepaid Credits — Support paid or promotional credit grants with priority-based burn-down and expiration.
  • Customer Portal — Token-based self-service dashboards so your customers can see their own usage.
  • Notifications — Webhook-based alerts with configurable rules and channels for usage thresholds and billing events.
  • LLM Cost Tracking — First-class support for metering AI token usage and computing model-specific costs.

Getting Started

Cloud

The fastest way to start. Start for free and begin metering and billing in minutes — no infrastructure to manage.

Self-Hosted

Run OpenMeter locally with Docker Compose:

git clone git@github.com:openmeterio/openmeter.git
cd openmeter/quickstart
docker compose up -d

Then ingest your first event:

curl -X POST http://localhost:48888/api/v1/events \
  -H 'Content-Type: application/cloudevents+json' \
  --data-raw '{
    "specversion": "1.0",
    "type": "request",
    "id": "00001",
    "time": "2026-07-07T00:00:00.001Z",
    "source": "my-service",
    "subject": "customer-1",
    "data": { "method": "GET", "route": "/api/hello" }
  }'

Query your usage:

curl 'http://localhost:48888/api/v1/meters/api_requests_total/query?windowSize=HOUR' | jq

See the full quickstart guide for more details.

Deploy to Production

Deploy to Kubernetes using our Helm chart.

SDKs

Language Package Source
Go openmeter api/client/go
JavaScript / Node.js @openmeter/sdk api/client/javascript
Python openmeter api/client/python

Don't see your language? Use the OpenAPI spec directly or request an SDK.

Architecture

OpenMeter is built in Go with a stack optimized for high-volume event ingestion and real-time aggregation:

Component Role
PostgreSQL (Ent ORM) Billing, subscriptions, entitlements, product catalog
ClickHouse Real-time usage aggregation and analytics
Kafka Event streaming and ingestion pipeline
TypeSpec API-first design — OpenAPI spec and SDKs from TypeSpec

See Architecture and data flow for a diagram of the runtime components and their primary interactions.

Community

We'd love to have you involved:

  • Contributing — Start here if you want to contribute code.
  • Code of Conduct — Our community guidelines.
  • Blog — Product updates and engineering deep dives.

Development

Prerequisites: Nix and direnv are recommended. See CONTRIBUTING.md for detailed setup instructions.

make up       # Start dependencies (Postgres, Kafka, ClickHouse)
make server   # Run the API server with hot reload
make test     # Run tests
make lint     # Run linters

License

Licensed under Apache 2.0.

FOSSA Status

Dépôts similaires
pathwaycom/pathway

Python ETL framework for stream processing, real-time analytics, LLM pipelines, and RAG.

PythonPyPIOtherbatch-processingkafka
pathway.com
62.6k1.7k
DataTalksClub/data-engineering-zoomcamp

Data Engineering Zoomcamp is a free 9-week course on building production-ready data pipelines. The next cohort starts in January 2026. Join the course here 👇🏼

Jupyter Notebookdata-engineeringkafka
airtable.com/appzbS8Pkg9PL254a/shr6oVXeQvSI5HuWD
43.9k8.6k
apache/kafka

Apache Kafka - A distributed event streaming platform

JavaMavenApache License 2.0scalakafka
kafka.apache.org
33.3k15.4k
yudaocode/SpringBoot-Labs

一个涵盖六个专栏:Spring Boot 2.X、Spring Cloud、Spring Cloud Alibaba、Dubbo、分布式消息队列、分布式事务的仓库。希望胖友小手一抖,右上角来个 Star,感恩 1024

JavaMavenspring-bootspring-cloud
20.1k6.2k
influxdata/telegraf

Agent for collecting, processing, aggregating, and writing metrics, logs, and other arbitrary data.

GoGo ModulesMIT Licensetelegrafmonitoring
influxdata.com/telegraf
17.7k5.8k
heibaiying/BigData-Notes

大数据入门指南 :star:

JavaMavenhadoophdfs
16.9k4.3k
zhisheng17/flink-learning

flink learning blog. http://www.54tianzhisheng.cn/ 含 Flink 入门、概念、原理、实战、性能调优、源码解析等内容。涉及 Flink Connector、Metrics、Library、DataStream API、Table API & SQL 等内容的学习案例,还有 Flink 落地应用的大型项目案例(PVUV、日志存储、百亿数据实时去重、监控告警)分享。欢迎大家支持我的专栏《大数据实时计算引擎 Flink 实战与性能优化》

JavaMavenApache License 2.0flinkkafka
54tianzhisheng.cn/tags/Flink/
15.1k3.9k
aalansehaiyang/technology-talk

【大厂面试专栏】一份Java程序员需要的技术指南,这里有面试题、系统架构、职场锦囊、主流中间件等,让你成为更牛的自己!

javaspring
offercome.cn
14.7k3.8k
sogou/workflow

C++ Parallel Computing and Asynchronous Networking Framework

C++Apache License 2.0taskinghttp
14.4k2.6k
debezium/debezium

Change data capture for a variety of databases. Please log issues at https://github.com/debezium/dbz/issues.

JavaMavenApache License 2.0change-data-capturekafka-connect
debezium.io
12.9k3k
IBM/sarama

Sarama is a Go library for Apache Kafka.

GoGo ModulesMIT Licensekafkakafka-client
12.5k1.9k
redpanda-data/redpanda

Redpanda is a streaming data platform for developers. Kafka API compatible. 10x faster. No ZooKeeper. No JVM!

C++kafkacpp
redpanda.com
12.4k772