Early Access Beta: free, no credit card needed. Sign up →

For teams whose API or MCP tools get called by apps and AI agents.

Stop the runaway integration, not the customer.

Ordainer Cap gives every integration that calls your API, whether it's an app, a script or an AI agent, its own allowance, checked with one call before it runs. The one that goes over gets a no, and the customer's other integrations keep working.

Every integration that calls your API gets its own allowance, checked before it runs. The one that goes over gets a no. The others keep working.

  • You choose when blocking starts. New plans you create start in shadow mode and only log would-denies. In enforce mode, we answer no to an integration or agent that's over its plan, before your API does the work.
  • One key per integration or agent. A deny stops that one integration or agent; the customer's others keep working.
  • One row per new decision: which integration or agent, which customer, and the reason. Export it as CSV or JSON when you need to show a customer what happened.
allow: within the allowance deny: over the allowance Illustration, not live traffic.
decide() · one call before your tool runs
# Your handler asks first
curl -s -X POST https://api.ordainer.dev/v1/decide \
  -H "Authorization: Bearer <agent-key>" \
  -H "Content-Type: application/json" \
  -d '{"tool":"research.run"}'
Allow · within the allowance, the tool runs
{"decision":"allow","reason":"ok","remaining":4,"limit":5,…}
Deny · over the allowance, the tool doesn't run
{"decision":"deny","reason":"quota_exceeded","remaining":0,…}
Try it below. See an allow or a deny, no account needed.

The problem

Their integration or agent blows past the plan. You find out on the invoice.

Your pricing page says 500 calls a month on the pilot plan. Scripts and AI agents don't read pricing pages. They retry, loop and run overnight, and one customer may run several of them.

When usage runs past the plan, the usual options are all bad:

  • Absorb it: the cost lands on you.
  • Bill it later: your customer gets an invoice they didn't expect.
  • Revoke the key: the customer's good traffic goes down with the bad.
Ordainer Cap puts the plan in front of the call.

The integration or agent that's over gets a clear no before your tool runs. The same customer's other integrations and agents keep working.

Get started free

Free APIs

Your API is free. Your customers' integrations and agents still need limits.

When one customer's AI agent or sync job loops, an account-wide limit or a suspended key stops their billing, scheduling or accounting integrations too. Give each integration or agent its own agent key and allowance. Ordainer Cap says no to the one that's over, before your API does the work, and that deny doesn't cut off the customer's other integrations. Start in shadow mode to see which ones would go over, then switch to enforce when the numbers look right.

Ordainer Cap for free APIs →

How it works

Three steps. One call in your code.

One call before your tool runs checks that caller's plan and counts the use. Over the limit, only that integration or agent is stopped, and your code sends it a plain message saying why. Every decision leaves a row you can export, so you can show a customer exactly what happened.

  1. We issue an agent key to each integration or agent.

    Each of your customers' integrations and agents gets its own agent key, tied to one customer and one plan. A plan is a monthly limit for one tool, or for all your tools.

  2. Your handler asks first.

    Before any work, send the caller's agent key and the tool name to decide(). We answer allow or deny and count it in the same step. On a deny, the work doesn't run.

  3. Roll out safely.

    New plans you create start in shadow mode: we log what we would have blocked and block nothing. Switch to enforce in the console when the numbers look right, with no deploy unless your code pins the mode. With our Node SDK (npm install ordainer), you choose per tool what happens if we're slow to answer: the tool runs (the default) or it's blocked.

Where Ordainer sits.

In front of your product. Not inside it. Not instead of the bill.

  1. YOUR CUSTOMER’S INTEGRATION OR AI AGENT

    Asks your product to do work.

  2. ORDAINER

    Yes or no, before the work.

    This key · this plan · this customer.

    The check, not a gatewayYour traffic never routes through us.

  3. YOUR PRODUCT

    Does the work after a yes.

    A deny stops that one integration or agent, not the whole customer.

  4. THE BILL

    Invoice goes out as it does today.

    Not us. Still your billing.

DecisionOne allow-or-deny answer from decide(). Your free sandbox includes 1,000 test decisions a month.

Get started freeFull API reference

Live demo · No sign-up

Produce a deny.

Say you sell a research tool, research.run. Your customer Example Co has two AI agents: pilot, capped at 5 calls a day, and production, with plenty of room. Each press below is a real decide() call, and each one writes a real audit row. The 5-a-day cap is just this example plan's limit, and the demo resets each day. Your own sandbox has 1,000 test decisions a month, and only allowed ones count. Presses here don't count toward it at all.

Press it six times. Calls 1 to 5 are allowed. Call 6 isn't.

Show me the request
# The same call this demo makes.
curl -s -X POST https://api.ordainer.dev/demo/decide \
  -H "Content-Type: application/json" -d '{"key":"pilot"}'
Run it six times. Demo keys only work on this toy tool. Your sandbox gives you your own test keys for POST /v1/decide.
research.run · Example Co
  1. No decisions yet.

Each line is one decision: the answer, the integration or agent, calls left today, the reason, and the request ID of its audit row.

Demo presses are logged like real decisions. To give each visitor their own counters and to stop abuse, we keep a hashed version of your network address.

Pricing

Free while we're in beta.

Ordainer is free during the beta: sign up for test keys with 1,000 decisions a month, no credit card needed.

FAQ

Common Questions

What does early access mean?

The free sandbox is open now: sign up, get test keys and produce your first deny. Prefer our Node SDK? Install it with npm install ordainer, or call the HTTP API from any language.

What happens if you're down?

By default, our Node, Python and Ruby SDKs let your tool run if we can't answer in time, and log a warning. Where an unchecked call is worse, you can set that tool to block instead. With plain HTTP, your handler decides what to do. Fail open vs fail closed

How much latency does it add?

One HTTPS call before your handler runs. We'll publish numbers once we've measured them, and we won't quote one before then.

Do denies count toward the sandbox limit?

No. In the free sandbox, only allowed decisions count toward the 1,000 a month, and denies don't count. When those are used up, test keys in enforce mode answer deny until the 1st (UTC). In shadow mode, calls still run and are logged as would-deny.

Will Ordainer Cap stay free?

The beta is free. When it ends, you'll still have a free plan with normal limits. We'll check with beta teams before we set prices for paid plans, and we'll email you at least 30 days before the beta ends or our prices or terms change.

Can one limit cover all of a customer's integrations and agents?

Not today. Ordainer counts per agent key (one per integration or agent): each key has its own monthly count, for one tool or all tools. Several keys can share a plan, but each key counts on its own.

Do we have to change our billing system?

No. Keep your existing billing system. Ordainer doesn't send usage to your billing system today. You can export your decisions as CSV or JSON from the console. An export covers your whole account. Before you share one with a customer, keep only that customer's rows.

What do you see of our traffic?

The tool name, the agent key, and, if you send them, an idempotency key and a mode. Never your request payloads. Like any web service, we also receive connection details such as IP addresses.

Does it work with MCP?

Yes. Call decide() from your MCP tool over HTTP today. A packaged MCP adapter is coming soon.

Which languages?

Anything that can make an HTTPS request. The docs have curl, Python, Node, Ruby and Java examples. Our Node SDK (npm install ordainer) includes Express middleware, our Python package (pip install ordainer) has a Python quickstart, and our Ruby gem (gem install ordainer) has a Rails quickstart. Need another language? Email support@ordainer.ai.

Our billing system or gateway already has limits. Do we need you?

If yours already enforces plan limits per integration or agent, you may not. If yours doesn't limit per integration or agent yet, Ordainer Cap is one decide() call in the handler you already have: no products to set up, and your traffic never routes through us.

We already have a gateway and rate limits. Why add this?

Keep them. They limit how much traffic gets through. Ordainer Cap decides whether one integration or agent may do one piece of work, so you can say no to the one that's over its allowance without cutting off that customer's other integrations. Each new decision writes an audit row you can show the customer.

Our API is free. Is Ordainer Cap for us?

Yes, if one customer's integration or agent can run away. You set an allowance per agent key, and nothing is billed to your customers. A deny stops only that key. Ordainer Cap counts uses against a monthly allowance. It isn't a rate limiter, so keep your own rate limits for short bursts.

Is this rate limiting?

No. Your limits are counts per agent key: a monthly cap for one tool or for all your tools. Before the work runs, your handler calls decide() with the caller's agent key and tool name. We answer allow or deny, and each new decision writes one audit row. Keep your own rate limits for traffic spikes.

Does our traffic go through you?

No. The SDK sends only the agent key, the tool name and, if you set them, an idempotency key and a mode, never your payload. If we're slow or unreachable, the SDK stops waiting after a short timeout. By default it lets the call run, and you can set it to block instead.

Get started freeContact sales

Your plan says no. Now your API can too.