Ordainer Cap vs OpenMeter
The situation
Your customers' scripts and AI agents use your API far past their plans. One common answer is usage metering: record every use, add it up per customer, and bill for it. OpenMeter is a well-known tool for that, and it can also tell your app whether a customer still has access. Ordainer Cap solves a narrower piece: one allow-or-deny check per call, per agent key, before the work runs.
What OpenMeter does
OpenMeter is open-source metering, entitlements and billing (Apache 2.0). You can self-host it, and the hosted version is now sold as Konnect Metering & Billing. It doesn't sit in your request path.
- Metering. Your product sends usage events. Meters add them up, for example API requests or AI tokens.
- Entitlements. You set a customer's allowance for a feature over a usage period such as a day, week or month. Your app queries OpenMeter, and the answer includes
hasAccess, which your app uses to allow or refuse the call. - Billing. It can turn metered usage into invoices.
What Ordainer Cap does
At the top of your handler, you send the caller's agent key and the tool name to decide(). Cap checks that key's plan, answers allow or deny, and counts the call in the same step, so there's no separate usage event to send. Each decision writes one audit row. On a deny in enforce mode, the work doesn't run, only that key is stopped, and the Node, Python, Ruby and Java SDKs give you a ready response with the reason and reset time to send the caller. Plans you add in the console start in shadow mode, which logs what would have been denied and lets those calls run, until you switch them to enforce.
A plan is a count of allowed calls each month, day or minute, for one tool or for every tool. Each key counts on its own, so one runaway agent doesn't use up the allowance of the customer's other agents.
Side by side
| OpenMeter | Ordainer Cap | |
|---|---|---|
| Main job | Meter usage, calculate access, bill | Allow or deny one call before the work runs |
| Who a limit applies to | A customer, per feature | Each agent key (one per integration or agent) |
| Unit | Whatever you meter, such as requests or tokens | Allowed calls |
| Period | A usage period such as a day, week or month | Month, day or minute |
| How usage is counted | Usage events your product sends | The decide() call itself |
| Who enforces | Your app, using hasAccess | Your handler, using Cap's allow or deny |
| Billing | Yes | No. Your invoices go out as they do today |
| Record | Metered usage history | One audit row per decision, exportable as CSV or JSON |
Using them together
They fit side by side. Use OpenMeter, or the billing you have, to meter and invoice. Put Cap in front of the tools where one customer's agent going over the plan costs you most, so that one agent gets a clear no and the rest of the customer's traffic keeps going.
Today Ordainer doesn't send usage to a billing or metering system. If you use both, your handler sends its usage event the way it does now, after an allowed call.
What Cap doesn't do
- It doesn't meter for billing or send invoices.
- It counts calls, not dollars or tokens.
- It isn't a rate limiter. Keep your own rate limits for traffic spikes.
- One cap covering all of a customer's keys together isn't available today. Each key counts on its own.
See it work
- How to cap each API customer's usage, with code
- How to stop a runaway AI agent on your API
- Produce a real deny in the live demo
Facts about OpenMeter come from its official docs as of November 2026. If something has changed, tell us at support@ordainer.ai and we'll fix it.
Try it
Ordainer is free during the beta: sign up for test keys with 1,000 decisions a month, no credit card needed.
Metering your API today and still getting surprise overages? We'd like to hear how you handle them: support@ordainer.ai.