Per-tenant billing for Supabase

See which customer costs you what on Supabase and bill them for it.

Supabase shows you usage per project. usagebill shows you usage per customer — then turns it into a Stripe-ready invoice. Add one line to your Supabase client and start tracking.

7-day free trial · no card required · $0 extra on your Supabase bill

client.ts
// after — one more line, your usage stays the same
import { createClient } from '@usagebill/sdk'
const supabase = createClient(URL, ANON_KEY, {
  usagebill: { apiKey: 'ub_live_…', tenantId: () => getCurrentTenantId() }
})
The problem

Supabase aggregates everything at the project level.

You can't tell which tenant is responsible for the egress, the queries, the load — so you can't bill usage fairly, and you can't catch the customer quietly costing you money.

How it works

Three steps from query to invoice.

01

Wrap your Supabase client

One line at init. Your queries, storage and auth calls stay exactly the same — usagebill taps the fetch seam Supabase already documents.

02

Every call gets tagged & streamed

Each request, query, egress and row is tagged with a tenant_id and streamed to cheap columnar storage. Fire-and-forget — never blocks your user path.

03

See per-tenant usage, export a bill

Open the dashboard to see usage per customer — then export a ready-made bill straight to Stripe billing meters.

What we measure

Usage proxies — and we're honest about the line.

We measure usage proxies per tenant, not raw compute. That's exactly what usage-based billing runs on.

Measurable per tenant
  • Requestsper tenant, per resource
  • Query count & durationms, from response timing
  • Egress bytesfrom content-length
  • Rows returnedfrom content-range
  • Status codes2xx / 4xx / 5xx
Not measurable
  • Raw CPU cyclesPostgres can't expose it per tenant
  • DB cache / IO timeshared, not attributable
  • Exact compute costnobody can — we don't claim it
Privacy by design

Zero-PII by default. GDPR-friendly out of the box.

usagebill records paths, tables and operations — never your query values or bodies. IPs and user-IDs are hashed (SHA-256) at the edge before they ever leave your infrastructure. No personal data crosses the wire.

Zero-PII defaultSHA-256 hashing at the edgeEU-friendlyNo query bodies stored
What you get

Everything to turn usage into revenue.

One-line SDK install

npm install, wrap createClient, done. No query rewrites, no proxy, no architecture change.

Per-tenant usage dashboard

Requests, egress, query time and top consumers — broken down by the customer who caused them.

Stripe export / billing ledger

Aggregate tenant metrics and push them to Stripe billing meters in a click. Bundled on every plan.

Billing-grade by design

Idempotent, deduplicated and auditable events — not a hacky tenant_id column. Safe to invoice on.

Usage & egress alerts

Get pinged when a tenant spikes — catch a runaway, unprofitable account before the invoice does.

Runs anywhere, $0 extra

Vercel, Netlify, your own server. Data goes straight from your app — no Supabase log-drain fee.

Pricing

Predictable pricing. Billing included in every plan.

One flat price per plan — no per-event metering, no overage, no surprise bill. Pick by what you already know: projects, tenants and seats. See and bill per tenant on every plan. 7-day free trial, no card.

Save 15% with annual billing

Starter

Your first production app

$25/mo

billed annually · $300/yr

Start free trial
  • Per-tenant usage dashboard
  • Stripe billing export
  • Spend-cap controls
  • 1 project
  • Up to 25 tenants
  • 30-day history
  • 1 seat
  • Egress-spike alerts

Pro

Popular

Growing B2B SaaS team

$84/mo

billed annually · $1008/yr

Start free trial
  • Per-tenant usage dashboard
  • Stripe billing export
  • Spend-cap controls
  • 5 projects
  • Unlimited tenants
  • 12-month history
  • 5 seats
  • Stripe Connect (bill-on-behalf)
  • Advanced anomaly alerts

Scale

Larger teams & agencies

$254/mo

billed annually · $3048/yr

Start free trial
  • Per-tenant usage dashboard
  • Stripe billing export
  • Spend-cap controls
  • Unlimited projects
  • Unlimited seats
  • Custom retention
  • Raw-event audit export
  • Priority support

Enterprise

Self-host & custom

Custom

Annual contract

Talk to us
  • Per-tenant usage dashboard
  • Stripe billing export
  • Spend-cap controls
  • Everything in Scale
  • SSO
  • SLA & uptime guarantee
  • Self-host option

Flat pricing — no per-event overage. Fair-use limits apply; outgrow them and we'll move you to the right plan.

Know what every tenant costs you on Supabase — and bill them for it.

One line of code. Per-customer usage. A Stripe-ready invoice.