⚠️ Born from a $91K bill
Kill Switch

Stop Runaway
Cloud Bills

Cloud providers have no spending caps — and neither do coding agents. One runaway loop can drain your account or burn thousands in tokens overnight. Kill Switch auto-kills runaway cloud services and caps runaway coding agents before the bill arrives. Cloudflare, GCP, AWS — and Claude Code, Cursor, or any agent.

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 5 minutes, queries provider APIs for usage, costs, and anomalies across all connected cloud accounts.

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.

Supported Providers
Kill switches for 14 cloud services
Monitor spending and auto-kill runaway services across cloud infrastructure, AI APIs, databases, and SaaS platforms.
Cloudflare

Cloudflare

Catch runaway Workers and Durable Objects before they rack up millions of requests.

  • Worker request volume spikes
  • Durable Object wall-time hours
  • R2, D1, Queues, Stream costs
  • Route removal & domain disconnect
Google Cloud

Google Cloud

Stop runaway Cloud Run containers and GCE instances from spiraling your billing.

  • Cloud Run auto-scaling spikes
  • Compute Engine instance hours
  • Cloud Functions invocation surges
  • Billing API threshold alerts
AWS

AWS

Shut down Lambda feedback loops and EC2 sprawl before your bill hits five figures.

  • Lambda invocation runaway
  • EC2 instance sprawl detection
  • ECS/Fargate task explosion
  • Cost Explorer threshold triggers

Plus financial kill switches for RunPod · Redis · MongoDB · OpenAI · Anthropic · xAI · Replicate · Snowflake · Vercel · Datadog · Neon · Neo4j

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.

New
Spend caps your coding agent can't override
A coding agent re-sends its entire context on every tool call, so token spend compounds silently — the loop behind the $4,200 weekend, the $87K month, and the reported $500M month after a team “failed to put usage limits on Claude licenses.” Kill Switch caps that loop with per-session and daily-rolling limits — a soft warning, then a hard stop. It protects any coding agent, by design:
🪝

Native hook for Claude Code

Reads the live session, prices real token usage, warns at your soft cap and blocks the next tool call at the hard cap. Fails open on any error — a guard bug never bricks your session.

🛑

Hard proxy wall for everything else

Point Cursor, Aider, or any script at the local metering proxy. At the cap it returns HTTP 402 — the API simply stops answering. A wall the agent can’t argue past.

⏸️

The human holds the key

The escape hatch lives outside the agent loop: ks guard pause, or a single file the agent can’t reach. The agent can hit the wall — it can’t move it.

npm i -g @kill-switch/cli
ks guard install                       # protect Claude Code
ks guard config --session-hard 30 --daily-hard 150
Quick Start
Two ways to get started
Use our managed platform or self-host the open-source version.

Managed Platform

Sign up, connect your cloud credentials, set your thresholds. Done.

  1. 1. Create an account
  2. 2. Connect Cloudflare, GCP, or AWS
  3. 3. Set cost thresholds and alert channels
Get Started
Self-Hosted (Open Source)
# Clone and deploy
git clone https://github.com/Divinci-AI/kill-switch
cd 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
$104,500
Free-tier static site hit 60.7 TB of bandwidth in four days. One MP3 downloaded millions of times.
$96,280
Artist app Cara went viral; Vercel functions spiked to 56M invocations/day. Bootstrapped, no spending cap.
$47,000
Two AI agents locked in a recursive loop, exchanging clarification requests thousands of times around the clock.
$30,000
AWS Bedrock + Claude Opus billed $30K despite a cost-cap setting the customer believed was enabled.
$6,000
Someone left Claude Code running overnight. Token-based billing plus an agentic loop did the rest.
Read the full stories on our blog →
People are posting these in real time
From founders and indie devs — the bill-shock conversation, in real time. Scroll →

Embedded directly from the original posts — nothing here is altered or out of context.
Got a bill-shock story? Tell @KillSwitchCloud.

Pricing
Simple, transparent pricing
Start free and self-host the open source version, or go hands-off with a paid plan from $29/mo.
Free
Open source & self-host
$0/mo
  • 1 cloud account
  • 6-hour check interval
  • 1 alert channel
  • Self-host the open-source version
  • Community support
Start free
Team
For growing organizations
$99/mo
  • 10 cloud accounts
  • 5-minute check interval
  • Team roles & audit log
  • API access
  • Priority support
  • Everything in Pro
Upgrade to Team
Enterprise
For large-scale operations
Custom
  • 100+ cloud accounts
  • 1-minute check interval
  • SSO & SAML
  • Dedicated support & SLA
  • Custom integrations
  • Everything in Team
Contact Sales
Open Source & SaaS
Stop your next surprise bill

Self-host the open source core or use our managed platform.
Either way, you're protected in under 5 minutes.

Get Started View on GitHub