Free Cloudflare AI Assistant Tutorial Updated: WAF Rate Limiting to Stop Key-Leak Bills

sujingshen · x · 2026-10-23

A detailed free setup tutorial has been shared and supplemented: running a personal AI assistant on Cloudflare's free tier handles around 70 Telegram conversations a day at $0 cost — Workers offers 100,000 requests per day, Durable Objects give each chat its own isolated SQLite memory, and Workers AI throws in 10,000 neurons per day for free (the quota that runs out first). The tutorial provides a complete, copy-paste wrangler.jsonc config, an Agents SDK agent class, and Telegram webhook handling, plus cost estimates for switching to a Claude key (about $0.36/month on Haiku, around $7.2 on Sonnet). The person resharing it added two practical tips: build webhook secret validation into your code (many tutorials skip this), and attach the Worker to your own domain with a WAF rate-limiting rule, so even if your key leaks it won't be drained overnight.

Original post →

More from coding & agent

coding & agent channel →