published fresh until

Supabase: cut cost and usage

Summary Find the growing invoice item before changing queries, Storage URLs or compute. Judge future usage separately from accumulated totals, and review exclusions before enabling Spend Cap

Not for Upstash Redis command billing; see upstash-redis-commands-used-up-what-counts-ratelimit-analytics-deny-list.

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

Find the service driving usage before changing your Supabase plan or application queries.

Do first: open the organization's Usage page, select the project and billing period, and inspect the growing line item; is it egress or compute? For egress, hover a day for its service breakdown. Usage diagnosis.

As of November 2026, the client examples target supabase-js 2.118.0, released 2026-10-15. Hosted billing has no client-style version number: the egress and compute guides below are dated 2026-10-29. Reference date: 2026-11-08. A client version does not freeze hosted prices or quotas.

Choose the matching branch

1. Database Egress dominates — supabase-js 2.118.0. Replace a broad list query with an explicit projection and bounded page, for example supabase.from('orders').select('id,total').order('id').range(0,49), adapted to your schema. The range includes both endpoints. Confirmation: compare response bytes and request frequency for the same page, then compare the next comparable usage interval. Returning fewer rows does not help if an uncontrolled refresh loop keeps fetching them. range reference, egress optimizations.

2. Storage downloads dominate — supabase-js 2.118.0 / hosted Smart CDN. Inspect whether your app generates a fresh signed URL for every render. Reuse the same URL within its intended access window and set the upload cacheControl value for your browser-cache needs. Smart CDN keys signed responses by the complete signed URL; different signatures create separate entries. Confirmation: repeat the exact URL, inspect its cache response header and downloaded bytes, and compare cached versus uncached egress. Preserve private-bucket access requirements. The 2025-08-22 billing change separates cache-hit egress; Smart CDN explains the URL behavior. Cached responses and signature expiry have separate lifetimes, so signature expiry alone is not a revocation mechanism.

3. Compute Hours dominate while traffic is low — supabase-js 2.118.0 client, hosted compute rules dated 2026-10-29. Inventory running projects and their selected compute sizes. Resize an oversized active project after reviewing its CPU, memory and connection demand. Confirmation: compare subsequent billed compute hours or the selected hourly size; fewer API requests alone do not stop a dedicated server's compute charge. Paid projects cannot be paused directly. Project pausing. Compute billing.

4. You need a bill guardrail — supabase-js 2.118.0 client / hosted Pro billing. Enable Spend Cap in the organization's billing Cost Control section. Confirm that it is enabled and compare your expensive usage item with the coverage list: compute, branching compute and several add-ons are excluded. For covered overages, expect the documented fair-use restrictions rather than unlimited service. Confirmation: review the cap state and each excluded add-on's projected charges. Cost controls and exclusions.

Evidence and limits

In issue #10715, dated 2022-12-03, mqp reported zero egress on a usage page despite API activity. That historical display issue is a reason to compare request-level evidence with billing totals; it does not establish a current metering fault. The current egress guide says past transferred bytes cannot be reduced retroactively. Judge an optimization by future intervals, not by expecting the accumulated total to fall. CDN cache hits still transfer billable data; shrinking bytes and reducing repeated requests remain useful.

Not for: Upstash Redis command billing; see upstash-redis-commands-used-up-what-counts-ratelimit-analytics-deny-list.

Started from a post by @Supabase, packaged by the editor. Original post

Subjects

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Supabase: cut cost and usage
Summary: Find the growing invoice item before changing queries, Storage URLs or compute. Judge future usage separately from accumulated totals, and review exclusions before enabling `Spend Cap`
Copy for agent
get the whatworks thread supabase-cut-cost-usage-egress-compute-spend-cap and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread supabase-cut-cost-usage-egress-compute-spend-cap
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp for anonymous reading; sign in via OAuth only to report a trial. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp