OpenMeter
Cloud-native usage metering platform for AI and SaaS applications.
Why consider OpenMeter?
OpenMeter is an open-source, real-time usage metering system written in Go and backed by ClickHouse. It processes millions of events per second to track AI token usage and API calls for accurate billing.
Learn OpenMeter by building
Practical setup notes, real use cases, and copy-ready examples in one focused guide.
In this guide3 sections
Overview of OpenMeter
OpenMeter is built for developer platforms and AI companies charging for token consumption, compute hours, or API requests. Powered by Apache Kafka and ClickHouse, it records events in real-time, calculates running balances, and syncs totals with Stripe Invoicing.
Deploying OpenMeter
git clone https://github.com/openmeterio/openmeter.gitcd openmeterdocker compose up -dAccess the OpenMeter API and web playground on http://localhost:8888.
Ingesting Events with CloudEvents
curl -X POST http://localhost:8888/api/v1/events \ -H "Content-Type: application/cloudevents+json" \ -d '{ "specversion": "1.0", "id": "event-1", "source": "ai-gateway", "type": "tokens", "subject": "customer-123", "time": "2026-08-24T12:00:00Z", "data": { "prompt_tokens": 150, "completion_tokens": 300 } }'OpenMeter is distributed under the Apache License Version 2.0.
Related tools
More options with a similar category or technology profile.
diskus
Minimal, fast alternative to du -sh written in Rust using multi-threaded directory traversal.
peco
Simplistic interactive filtering tool for Unix pipelines, process lists, and file trees.
Dapr CLI
Command-line tool for managing Dapr distributed application runtime environments and sidecars.
Freeze
Generate beautiful image screenshots and SVGs of code snippets and terminal outputs.