Skip to content
FluxMeter
中文

Writing

Export usage to Lago/Stripe/Orb/Metronome: don't replace

Customer-level token cost needs attribution plus export into Lago, Stripe, Orb, or Metronome—don't replace them. Not a billing suite; no zero-overspend promise.

2026-11-15 · Integrations · 8 min read

A team already on Lago, Stripe, Orb, or Metronome—or mid-selection of a "complete billing platform"—still cannot answer how many tokens a given customer burned this month, or how that cost attaches. The suite may already cover invoicing, rating, collections, and tax. If what it receives is a pooled upstream invoice, or gateway totals with no customer dimension, it will not invent customer-level usage lines.

The missing piece is often not a larger billing system. It sits further upstream: an upstream invoice is not customer-level usage. Once you have attributed usage lines, the next step is export—feeding those lines into the billing stack you already have or plan to use. Export is not replacement.

Selecting a complete billing platform vs upstream metering attribution + export

These are two different questions. They should not be collapsed into one bake-off.

Selecting a complete billing platform. Who is the system of record for invoicing, rating, collections, tax, and credits / commitments / true-up? Lago, Stripe, Orb, and Metronome are examples of that billing-stack category. This piece lists them as stacks you can export into. It does not rank them or promise a migration.

Upstream metering attribution + export. Where do customer-level token and cost facts come from? How do you take attributed usage lines—optionally priced by your rules—and send them into that stack as usage records, events, or inputs?

Choosing or keeping a billing system of record is not the same as already having the customer usage lines that feed it. The first is commercial and invoicing truth. The second is the input the metering layer is supposed to hand over. The two questions can connect. They do not substitute for each other.

What export is: usage lines enter your billing stack

The path stays short and explicit:

usage event → attributed / priced customer usage line → export into your billing stack

Event: an observable usage occurrence (tokens, model, timestamp, plus your customer / tenant id).

Attribute / Price: attach it to the right customer and apply your rate card or cost map—do not paste provider invoice rows as customer truth.

Export: send the attributed customer usage line into your billing stack as usage records, events, or inputs. Export is optional.

The billing suite remains the system of record for invoicing, rating, collections, tax, and credits / commitments / true-up. Metering stops at the usage line. Export hands that line to the stack that already owns invoicing; it does not build a second full billing product inside the metering layer.

What this layer solves—and what it does not

It supplies attributed input. It does not issue the invoice.

It helps youIt does not replace
See tokens and cost per customer, then export usage lines into your billing stackFull subscriptions, invoicing, collections, tax
Feed usage records / events / inputs to Lago, Stripe, Orb, or Metronome (or a similar stack you already use or plan to use)Those billing suites, or a self-description as a complete billing platform
Keep upstream totals and customer detail comparable but separateA promise of zero overspend
Leave rating, credits / commitments, and true-up in the billing system of recordTreating HTTP 202 / custody as settlement; ClickHouse as billing truth; Flink as a billing engine

In one sentence: metering stops at the attributed usage line; export is optional; invoicing and payment stay in your billing stack. FluxMeter is not a complete billing platform, and it does not replace Lago, Stripe, Orb, or Metronome.

Comparisons stay at category level: metering layer vs billing suite

The contrast in this piece stays at category: a metering layer (attribution and optional export) and a billing suite (invoicing and system of record) are two layers, not interchangeable products in the same story. Comparisons use public information only. This post does not invent feature matrices, claim performance or benchmark advantages, or promise an "easy migrate from X," "faster than Y," or "drop-in replacement."

For public-info compare pages, see Compare, plus the live pages for Lago, Orb, and Metronome. There is no standalone Stripe compare page; Stripe appears here, like the other three, only as an example of a billing stack you can export into. Those pages describe category boundaries and complementary use. They are not a ranking.

Where FluxMeter fits

FluxMeter’s positioning is deliberate: Open-source usage metering for AI gateways and multi-tenant products — customer-level tokens and cost, without a full billing suite.

Canonical reading: an open-source, self-hostable LLM token metering layer that attributes tokens and cost to each customer, and can optionally export clean usage into your billing stack (for example Lago, Stripe, Orb, or Metronome). It is not a full billing suite. It does not own subscriptions, invoicing, collections, or tax, and it does not replace those tools. Here FluxMeter means LLM token metering software—not a physics instrument or magnetic-fluxmeter brand story.

From flux to ledger: ingest usage from a gateway or SDK, move it through custody and stream processing into a queryable ledger, and read attributed, optionally priced customer usage lines from the Usage API. Export is optional. If optional pre-request budget controls are enabled, they sit on top of attributed usage: they reduce overspend risk but do not guarantee zero overspend. This post does not develop the budget topic; see check/reserve for token budgets.

On the wire: a 202 on ingest means custody (usage was durably accepted), not settlement. ClickHouse is an audit cold store, not billing truth; Flink aggregates usage, it is not a billing engine. Meter every token. Attribute every cost. Stop at the usage line; leave invoicing to the billing layer.

When the gateway times out or a usage receipt never arrives, you may not know whether an event happened—that receipt problem lives in the Architecture post on gateway timeouts. This piece assumes events can enter the metering layer and discusses how to export after attribution—not how to stand up a second billing system.

Next steps

If "the billing suite is in place, but customer-level token cost still does not reconcile" is the stuck point, first confirm that you have customer-dimension usage lines (see upstream invoice ≠ customer-level usage), then export those lines into the stack you already have—rather than reframing the gap as "we need to select another complete billing platform."

Boundaries and public comparisons: Compare · Lago · Orb · Metronome

Touch the stack locally: `make demo` (see Docs)

Product and path facts: Architecture

Pool total ≠ customer grain: Upstream invoice ≠ customer-level usage

Seeing who is burning first: customer-level token cost when an agent runs away

Metering ≠ traces: Metering is not observability

Control primitives and the hard bound: Check/reserve for token budgets: no zero-overspend guarantee

Receipts when the gateway times out: LLM provider finishes, gateway times out

Get the customer-level usage lines right, then export them into the billing stack you already chose or plan to use. Export is a connection, not a replacement.

Get the customer-level usage lines right, then export them into the billing stack you already chose or plan to use. Export is a connection, not a replacement.