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
// before
import { createClient } from '@supabase/supabase-js'
const supabase = createClient(URL, ANON_KEY)// 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() }
})// 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() }
})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.
Three steps from query to invoice.
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.
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.
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.
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.
- Requestsper tenant, per resource
- Query count & durationms, from response timing
- Egress bytesfrom content-length
- Rows returnedfrom content-range
- Status codes2xx / 4xx / 5xx
- Raw CPU cyclesPostgres can't expose it per tenant
- DB cache / IO timeshared, not attributable
- Exact compute costnobody can — we don't claim it
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.
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.
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.
Starter
Your first production app
billed annually · $300/yr
- 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
PopularGrowing B2B SaaS team
billed annually · $1008/yr
- 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
billed annually · $3048/yr
- 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
Annual contract
- 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.