
Meter
Know who used what.
Attribute calls, tokens, agent actions, and custom events to the correct customer, tenant, feature, or workflow.
UsageTap Meter
Connect calls, tokens, agent actions, and custom product events to customer accounts. Apply plan allowances before expensive work runs, show customers their current and predicted usage, and send validated totals to Stripe.
UsageTap Guard is included: application behavioral monitoring with opt-in email and Slack alerts.
Already have provider exports? Analyze them locally in your browser.

From event to trusted usage

Meter
Attribute calls, tokens, agent actions, and custom events to the correct customer, tenant, feature, or workflow.

Control
Check allowances and limits before running costly AI work.

Forecast
Estimate runout, compare finalized usage with its learned baseline, and route confirmed changes to email or Slack.

Agents
Use UsageTap through MCP to query customer usage, forecasts, and signals from your AI assistant, then investigate the accounts that need attention.
Product walkthrough
Explore two product views: customer-facing usage and allowances, and customer analytics showing calls, tokens, provider cost, and configured policy.


See consumed allowances and available credit in the same usage widget your customers can read.
Open full-size screenshot (opens in a new tab)Customer economics
Define allowances in the units your customers buy, such as documents, searches, calls, or agent actions. Offer prepaid top-ups or PAYG overages when they need more capacity.
Your application keeps running the work. UsageTap keeps the customer usage record and can send validated billable totals to Stripe. Stripe creates invoices and collects payments.
These patterns are starting points for investigation, not automatic classifications of traction, expansion, abuse, or churn.
Monthly allowance for one customer account
Configure how extra usage is funded
Give your coding agent one prompt to connect your existing calls to customer accounts and verify recorded usage.
You can add the code first. Before the test call, set USAGETAP_API_KEY on your server. The prompt never contains your key. Set up the key before testing.
Provider-neutral integration
Meter OpenAI, Anthropic, Google, OpenRouter, self-hosted models, or any HTTP call. Use the direct SDK for agent actions, API requests, generated outputs, and other custom product events that never touch an LLM.
Read the full Meter SDK reference →Provider or route
Integration style
Your selection
Keep the OpenAI SDK and add the UsageTap SDK to meter usage.
npm install @usagetap/sdk openaiimport OpenAI from "openai";
import { withMetering } from "@usagetap/sdk/openai";
const provider = new OpenAI({
apiKey: process.env.OPENAI_API_KEY,
});
// Set USAGETAP_ENVIRONMENT=production (or test) in the server deployment.
const openai = withMetering(provider, {
apiKey: process.env.USAGETAP_API_KEY,
customerId: currentCustomer.id,
feature: "chat.reply",
});
const response = await openai.responses.create({
model: "gpt-5.6-luna",
input: prompt,
});UsageTap Guard · Included with Meter
Guard compares reported application behavior to detect significant changes that could indicate misuse or runaway work, even when total usage and spend stay normal.
Application monitoring with customer and task drill-down for investigation.
Investigate changes in cache reuse, output sizes, input/output relationships, and recorded cost per call.
Investigate feature and task-type mix, attribution coverage, and API call rate.
Organization admins inspect live evidence. Email and Slack notifications are opt-in, off by default, and require enough usable data for supported comparisons. Guard findings support investigation; your application enforces configured Meter limits.
Spend protection
Compare metered usage estimates with daily provider-reported spend. Forecast future consumption and review unexpected changes with customer and feature context.
Known allowances and burst limits, enforced through your application.
Estimated usage and runout, based on reported history.
Confirmed changes in finalized usage and spend, delivered through opt-in email or Slack.


Metered usage forecast with All signals selected. Markers include changes that may not become confirmed incidents.
Open full-size screenshot (opens in a new tab)In July, a runaway agent process in FocusedFit.ai pushed one day of provider spend far outside its normal pattern. That experience is why Meter pairs hard limits for known boundaries with anomaly alerts for changes teams did not anticipate.
Anomaly alerts notify your team; configured Meter limits are what enforce policy before work begins.
Infrastructure and extensibility
Start with one customer and usage unit, then fit Meter into the event, observability, and commerce systems you already run.
Define calls, tokens, generated outputs, searches, audio minutes, agent actions, or another value unit, then attach customer, tenant, feature, and workflow context.
Use the TypeScript SDK or plain HTTP to begin work, record completed usage, and query customer usage status.
Send operational telemetry to OTLP-compatible tools and deliver usage or policy events to the systems your team already runs.
Synchronize validated usage with Stripe. Your commerce provider handles subscriptions, invoices, and payment collection.
Production evidence
FocusedFit.ai needed customer attribution, plans, limits, and a trusted usage record for billing. Inspecting the resulting production calls also exposed broken prompt caching, truncated source data, and duplicated context.
Representative production calls
After the application was corrected
Runtime Compression not enabled
Simple prepaid pricing
Start without a subscription or credit card. Meter includes 100,000 usage events free every month. After that, graduated rates start at $0.20 per 1,000 events and fall to $0.05 per 1,000 at scale, deducted from the same prepaid UsageTap Balance used across the product. These published Meter rates are all-in; no additional UsageTap percentage fee is added.
See all UsageTap pricingIncluded when you start
$0 to start
100,000 usage events free every month.
FAQ
No. Your provider continues to run or route the AI request. UsageTap attributes the resulting usage to a customer and applies your usage policy around the call.
No. Stripe or your commerce platform continues to own subscriptions, invoices, payment methods, and payment collection. UsageTap sends validated usage to that system.
You can meter calls, tokens, agent actions, custom events, and product-specific usage units. Customer, tenant, feature, and workflow identifiers keep the record attributable.
UsageTap surfaces the pattern and its customer and feature context. Your team investigates that context and decides what the change means and how to respond.
No. Anomaly detection confirms unusual usage or spend and alerts your team. Configured Meter allowances, burst controls, and hard limits are the controls that enforce policy before expensive work begins.
Start with calls or tokens, then add allowances, customer-facing usage, and Stripe synchronization as you grow.