Skip to content

Repository files navigation

Claudeflare

A fully-functional reverse proxy with one critical architectural difference: every decision is made by Claude.

Performance

Metric Cloudflare Claudeflare
Avg latency ~10ms ~10,000ms
Requests/sec Millions ~2
Edge locations 300+ 1
Cost per 1M requests ~$0.50 ~$30,000
WAF false positive rate ~1% Vibes-dependent
Cache consistency Strong It's a Map

Features

  • WAF -- Claude analyzes every request for SQL injection, XSS, path traversal, etc.
  • Caching -- The "globally distributed" CDN. One Map on one machine. Claude decides what to cache and for how long.
  • Rate Limiting -- No fixed thresholds. Claude dynamically decides what "too many requests" means based on context.
  • DDoS Protection -- When Claude detects an attack, it serves philosophical questions instead of CAPTCHAs. If you answer satisfactorily (judged by Claude), you get through.
  • Geo-Blocking -- Claude receives IP geolocation data and applies access policies based on vibes.
  • SSL Audit -- Claude inspects TLS metadata, grades connection security (A-F), and injects security headers it deems appropriate.
  • DNS -- An actual UDP DNS server. Claude resolves queries using either its training data (guessing) or a real resolver. The dashboard tracks guess accuracy.
  • Workers -- Write prompts instead of JavaScript. Workers are prompt templates injected into Claude's analysis for specific routes.

Quick start

npm install
npm run build
ANTHROPIC_API_KEY=sk-ant-... npm start

Dashboard at http://localhost:3000. Proxy intercepts all non-dashboard routes.

To proxy a real site:

ANTHROPIC_API_KEY=sk-ant-... PORT=3000 npm start
# Then set Origin URL to your backend in Settings

About

Claude-controlled reverse proxy

Resources

Stars

0 stars

Watchers

0 watching

Forks

Contributors

Languages