For SaaS companies with AI features

A hard spending limit for every customer’s AI.

KazenAI checks every model call against that customer’s limit before it runs. Over the limit, the call doesn’t happen, and you get a receipt.

Book a margin review 30 minutes with Dhavan, the founder
Try the open source SDK
Agent FinOps · Postgres limit ledger Recorded run · 2026-10-12

50 agents race one customer’s $5.00 budget.

Over budget
$0.00
Allowed
20
Denied before the provider call
30
Reserved
$5.00
Decision receipts
50
Retried requests that added spend
0
Recorded result of the Agent FinOps concurrency test: 50 workers each asked the Postgres limit ledger to reserve $0.25 for the same customer before their model call. It admitted 20, denied 30 before dispatch with a receipt for each, and replayed retried requests without new spend. The test runs against real Postgres in CI.

You sell AI per seat. You pay for it per call.

AI sold at a flat price has one weak spot: a few customers, or one stuck agent, can cost more than they pay.

  • Heavy users cost more than they pay

    “Today, a quick chat question and a multi-hour autonomous coding session can cost the user the same amount.”

    That is why GitHub moved Copilot to token billing. GitHub · Anthropic added weekly Claude Code limits for users running it around the clock. The Decoder

  • Stuck agents keep spending

    An agent that loops retries the same expensive call all night, and nobody approves each step. OWASP lists it as “unbounded consumption”. OWASP

That gap is the buying reason. If your current stack already closes it for the workflow that matters, you don’t need another product. If it doesn’t, start there, not with a platform migration.

Why the usual fixes don’t hold.

  • Provider spend caps

    Set for the whole organisation or project. One customer’s spike hits every customer.

  • Gateway budgets

    Some gateways can now budget per customer, but every call has to route through them, and not all hold under parallel calls.

  • Dashboards and alerts

    Report spend after it happened. The next call still goes out.

  • Output token limits

    Cap one call, not what a customer spends across a day or a month.

  • KazenAI

    A limit per customer, checked before every call, on one shared ledger.

Think of it as a prepaid card limit for each customer’s AI: when it’s used up, the AI stops instead of your margin.

Limits per customer, enforced before the call.

Agent FinOps makes one spending decision before each model call and keeps a run receipt that explains it. Your billing system stays the source of truth for invoices and entitlements.

DecisionReasonCustomerWorkflowOutcome
RefusedOver this customer’s limitcust_bigsupport-replyDid not run
RefusedNew calls were pausedcust_acmesupport-replyDid not run
AllowedWithin limitscust_globexkb-searchRan and settled
Illustrative example · sample data
Set limits that match your pricing
Per customer, per plan, per workflow, per run. The tightest limit wins.
Stopped before the call, not after
The SDK reserves budget before each model call. If the call would cross a limit, it doesn’t run. Parallel agents share one ledger, so they can’t overshoot together.
A receipt for every allow and deny
Run receipts show which customer, workflow and step spent what, and why each call was allowed or stopped.
Bill it or explain it
Export settled cost per customer as CSV or FOCUS to explain an invoice or set upgrade points.

Inside your app, on your own keys.

  • No proxy to route through

    Wraps the OpenAI or Anthropic client you already use in Python. Works alongside LiteLLM or your existing gateway: with a gateway, either your application or the gateway owns spend accounting for each call, never both, so retries are not counted twice.

  • Your keys, your contracts

    Calls go straight from your app to your provider. Prompts and completions are not sent to KazenAI by default. Run receipts accept OpenTelemetry traces, so they sit next to the observability you already run.

  • Fails closed

    By default, if a limit can’t be confirmed, the call doesn’t run; you can choose to let it through. Uncertain spend stays pending until it’s reconciled, never recorded as zero.

Start in shadow. Enforce when you trust it.

Shadow mode never blocks. After week one your CEO can see cost per customer, who would have hit a limit, and a receipt for every call.

  1. Connect the first workflow

    Instrument a supported path for model calls. Pass customer (business_subject_ref), feature, workflow, and run identifiers so every event and decision shares business context.

  2. Define the operating policy

    Set limits for the customers, plans and workflows you enforce, choose what run receipts may show, and review access, retention, and provider pricing.

  3. Activate and expand

    Start in shadow, test denials, then enforce and apply the pattern to additional workflows.

Visibility and enforcement are different. Capturing a trace does not stop a call.

Start with the open source SDK.

Limits and loop detection inside one process, with no account and no network calls. When you want limits shared across every worker and customer, book a margin review.

Also open source: KazenAI core (GitHub) and the event schema.

The SDK is free. Production is $1,500 a month.

Open Source

$0

The open source SDK, inside your own process. No account needed.

  • Limits and loop detection per process
  • Open source, install from PyPI
  • Runs offline
Install from PyPI

Enterprise

Custom annual

For broader rollouts that need more workflows, higher volume, additional integrations, or tailored support.

  • Rollout planning across workflows
  • Integration and support requirements scoped together
  • Commercial terms aligned to the deployment
Discuss your rollout

Prices are in USD and exclude applicable taxes, fees from model providers, and customer infrastructure. Production usage limits, support, onboarding milestones, expansion scope, renewal, and cancellation terms are agreed in writing before signing. Additional workflows are scoped around usage, data retention, integration, and support, not treated as a separate product.

Before you start

Why not configure the tools we already use?

You should, if they already give you limits per customer and per workflow, a spending decision before each call, and the evidence behind the run you need to investigate. KazenAI is for the workflow where that connection is still missing. We review your framework, gateway, billing system, provider API, authentication, and telemetry before confirming support; replacement is not the default.

Does KazenAI replace our billing system?

No. Agent FinOps gives you cost by customer and workflow, and exports it, to inform pricing, allowances and upgrade points; it does not manage entitlements, calculate customer invoices, or charge your users. Your billing system remains the source of truth.

Does a budget guarantee there will be no overspend?

No. There is no universal guarantee. Coverage depends on the instrumented call path, estimates, concurrent requests, and provider billing behavior. Charges already in flight or never observed cannot simply be undone. Stopping new calls is not the same as cancelling or safely resuming an agent.

Which providers are supported today?

Supported today: Python, OpenAI Chat Completions and Responses, Anthropic Messages, sync and async, with or without streaming; LangChain, LangGraph, CrewAI and LiteLLM. These paths are verified against the live OpenAI and Anthropic APIs as well as synthetic transports, including workflows with several steps that mix models under one shared limit. We confirm your exact stack before rollout. Not supported: OpenAI Realtime, Bedrock/Vertex wrappers, AutoGen.

Can you do the integration for us?

Production sets up your first workflow with you. To have the whole integration done for you, see Dhavan’s consulting work.

What data do you need for a demo?

A description of your workflow, stack, and problem is enough to start, as long as it isn’t confidential. Do not email credentials, prompts, production traces, or customer data. Capture, hosting, access, retention, and deletion requirements are agreed before diagnostic data is shared.

Bring the AI workflow whose cost you need to control.

Tell us what your AI feature does, how customers pay for it, and where its cost becomes hard to predict. In 30 minutes Dhavan will look at your cost per customer with you, discuss fit, and walk you through the hosted demo.

Book a margin review

Dhavan Shah, founder of KazenAI You talk to Dhavan Shah, the founder.