⚠️ Born from a $91K bill
Kill Switch

Stop Runaway
Cloud Bills

Cloud providers have no spending caps. A single feedback loop can drain your account overnight. Kill Switch monitors usage and auto-kills runaway services before the bill arrives. Cloudflare, GCP, and AWS.

Get Started See How It Works
$91K
Our bill (before)
$0
Our bill (after)
6h
Check interval
How It Works
Three steps to peace of mind
Deploy in under 5 minutes. No external dependencies.
1

Monitor

Every 6 hours, queries Cloudflare's GraphQL API for Durable Object requests, wall-time, and Worker request volume.

2

Detect

Compares per-worker usage against your configured thresholds. Catches feedback loops, runaway DOs, and request spikes.

3

Disconnect

Removes routes and custom domains from offending workers. Code stays intact. Pages PagerDuty until someone acknowledges.

Built for production
Everything you need to sleep through the night.
🛡️

Reversible Disconnect

Removes routes, not code. Your worker stays intact — just stops receiving traffic. Re-enable with a single deploy.

📞

PagerDuty Integration

Critical alerts that call your phone until someone acknowledges. No more waking up to surprise bills.

💬

Discord & Slack

Free alerting via Discord webhooks or Slack incoming webhooks. Rich embeds with usage details.

🔒

Protected Workers

Mark critical workers as protected. They'll trigger alerts but never get disconnected automatically.

⚙️

Configurable Thresholds

Set limits for DO requests, wall-time hours, and Worker request volume. Tune based on your normal usage.

🌐

Zero Dependencies

Single TypeScript file. No npm packages beyond Wrangler. Deploys in under a minute. Runs on the free tier.

Quick Start
Deploy in 60 seconds
Three commands and you're protected.
# Clone and deploy
git clone https://github.com/Divinci-AI/cloudflare-billing-kill-switch
cd cloudflare-billing-kill-switch
npm install && wrangler deploy

# Set your secrets
wrangler secret put CLOUDFLARE_ACCOUNT_ID
wrangler secret put CLOUDFLARE_API_TOKEN
wrangler secret put PAGERDUTY_ROUTING_KEY

# Test it
curl https://your-worker.workers.dev/test-alert
Cloud providers have no spending caps
Real incidents from the community. This is not theoretical.
$91K Cloud Bill
$91,316
Cloud compute bill from runaway containers generating 1.38 billion requests in one month. $88K in compute duration alone.
Us (the authors of this project)
$5,000+
Cloud service feedback loop running unchecked. Possibly $20,000+ before manual intervention.
Cloud Provider Community Forum
$20,000+
Uncontrolled writes from a retry loop bug. No native circuit breaker to stop it.
Hacker News
Open Source
Stop your next surprise bill

MIT licensed. Single file. Zero dependencies. Free tier compatible.
Deploys in 60 seconds.

Get Started — Free View on GitHub