Cloudflare cost alerts for each resource
CostHex converts reported Cloudflare usage into estimated dollars per hour. Get an alert when a resource crosses your hourly threshold, by email, Slack, Discord or Telegram. Free checks one account hourly. CostHex alerts you; it cannot stop charges.
Start free with Cloudflare Compare plans
Set up your alerts
Connect Cloudflare
Sign in and connect your Cloudflare account with a read-only token. CostHex stores the token encrypted and uses it to read usage. You do not need to change your application code.
Choose an hourly threshold
Set one default dollars-per-hour threshold for the account. CostHex checks resources separately against that same threshold. This is a spend-rate alert, not a monthly budget or a separate limit for each function.
Add an alert destination
Use email, Slack, Discord or Telegram. Alerts include resource links and handling suggestions. Reminders repeat every 30 minutes until someone selects “I’m on it”.
Cloudflare products covered
Workers, Durable Objects, D1, KV, R2, Queues, Workers AI, Images, Browser Rendering and Containers.
CostHex estimates resource spend at published list rates. It also estimates the bill for your current billing period. Estimates can differ from your invoice; taxes, discounts and some billing details are not modeled.
Only Cloudflare is supported. AWS, Firebase, Google Cloud, Vercel, Netlify, Supabase and external AI APIs are not supported. Join the waitlist for another platform.
Two ways to detect rising spend
Hourly threshold: get an alert when a resource’s estimated hourly spend exceeds the account’s default threshold.
Optional anomaly detection: enable comparisons with a 7-day baseline. Detection needs at least 24 hours of data before it can flag unusual spend.
Free checks hourly. Solo and Pro are configured to check every minute, but paid upgrades are not open. Cloudflare reporting delays affect detection. End-to-end alert latency has not been measured.
If you need to cap spending
CostHex uses read-only access. It cannot pause a Worker, change a CPU limit or block traffic for you. Pair alerts with limits in your own application and Cloudflare account.
See which controls can contain your Workers bill, including CPU limits and traffic rules.
Cloudflare monitoring questions
- Does CostHex need write access?
- No. CostHex monitors Cloudflare with read-only access. It cannot pause resources or make changes in your account.
- Can CostHex cap my Cloudflare bill?
- No. CostHex alerts you when a resource exceeds an hourly spend threshold. You decide what to change. Resources in the same account share one default threshold and are checked separately.
- How fast will I hear about a spike?
- Free checks one account hourly. Solo and Pro are configured for minute-by-minute checks, but paid upgrades are not open. Cloudflare reporting delays also affect detection. End-to-end alert latency has not been measured.
- How does anomaly detection work?
- You must enable it first. It compares spend with a 7-day baseline and needs at least 24 hours of data before it can detect unusual spend.
- Where do my credentials live?
- Your Cloudflare token is stored encrypted. CostHex uses it to read usage for monitoring.