OpenMeter is a Real-Time and Scalable Usage Metering for AI, Usage-Based Billing, Infrastructure, and IoT use-cases.
Learn more about OpenMeter at https://openmeter.io.
Check out the quickstart guide for a 5-minute overview and demo of OpenMeter.
See our examples to learn about common OpenMeter use-cases.
- Metering OpenAI Chat GPT Usage
- Metering Kubernetes Pod Execution Time
- Usage Based Billing with Stripe
Currently, we offer the following Client SDKs:
For languages where an SDK isn't available yet, we encourage using the OpenAPI definition. We recommend using the OpenAPI Generator to generate your own client.
For an optimal developer experience, it is recommended to install Nix and direnv.
Installing Nix and direnv
Note: These are instructions that SHOULD work in most cases. Consult the links above for the official instructions for your OS.
Install Nix:
sh <(curl -L https://nixos.org/nix/install) --daemonConsult the installation instructions to install direnv using your package manager.
On MacOS:
brew install direnvInstall from binary builds:
curl -sfL https://direnv.net/install.sh | bashThe last step is to configure your shell to use direnv. For example for bash, add the following lines at the end of your ~/.bashrc:
eval "\$(direnv hook bash)"
Then restart the shell.
For other shells, see https://direnv.net/docs/hook.html.
MacOS specific instructions
Nix may stop working after a MacOS upgrade. If it does, follow these instructions.
Run the dependencies:
make upRun OpenMeter:
make runRun tests:
make testRun linters:
make lintVisit our website at https://openmeter.io for our public roadmap.
The project is licensed under the Apache 2.0 License.