today
Report and ingest agent usage in the open AUDR format
We're excited to announce that Stigg now supports AUDR (Agent Usage Detail Record), an open, vendor-neutral format for recording who started an agent run and what each step of it used. The Stigg Agent SDK can now emit AUDR records, and Stigg can ingest AUDR records from any harness, gateway or framework that emits them.
🆕 What's new?
- Emit AUDR from the Agent SDK: Turn on AUDR reporting, and the Agent SDK writes an AUDR record for every model call it meters. Send those records to any destination that reads AUDR, such as a billing system like Chargebee, a data warehouse or an observability stack.
- Ingest AUDR into Stigg: If your harness, gateway or framework already writes AUDR records, add Stigg as another destination. Stigg receives each record as usage, ready for your meters and credit formulas.
💡 Why it matters
- One usage format across your stack: AUDR counts tokens the same way for every model vendor, so every system that reads it can price calls to any model with one set of meters.
- Bill where you already bill: Stigg checks access and meters each call before and after it runs. Your billing system receives a record of the same call and invoices it, with no custom pipeline between them.
- Bring in usage Stigg can't see yet: If a gateway or harness already writes AUDR, its usage can count toward Stigg meters and credit balances without a custom integration.
⚒️ Get started
To emit AUDR records from the Agent SDK:
- Install the AUDR packages:
npm install @openaudr/audrplus the sink for your destination, such as@openaudr/audr-sink-chargebee. - Turn it on: Pass
audr: { client, environment }to theStiggAgentSDKconstructor. - Add a subscription ID if your sink needs one: Some sinks, including Chargebee, reject records without
attribution.subscription_id. Set it with a small client wrapper.
To ingest AUDR records into Stigg:
- Install the Stigg sink:
npm install @openaudr/audr @openaudr/audr-sink-stigg. - Connect it: Create the sink with an event name and a Stigg server API key, and pass it to your AUDR client.
- Configure meters: Filter on your event name and sum a dimension, such as
usage__llm__input_tokens. You can also charge credits with a custom formula.
Read Reporting usage in AUDR format and Ingestion from AUDR, or explore the AUDR spec and repository.
📦 Availability
Agent SDK
- Agent SDK (
@stigg/agent-sdk-js): v0.7.7
AUDR sinks
- Stigg sink (
@openaudr/audr-sink-stigg): works with@openaudr/audr0.2
⚠️ Notes
Stigg supports both direct usage reporting as well as ingestion in AUDR. Ensure only one of the methods is used to avoid duplicate usage reporting.