Personal AI Agent on Cloudflare Free Tier 2026 (Code) A developer has published a complete guide and code for running a personal AI agent on Cloudflare's free tier, costing $0 per month for roughly 70 Telegram conversations a day and deploying in about 15 minutes. The setup uses Workers for the Telegram webhook entry point, SQLite-backed Durable Objects for per-chat memory, and Workers AI's 10,000 free daily neurons for inference, with the guide noting that neurons are the first free quota to run out, followed by Durable Object row writes and CPU time. The writeup includes a cost comparison showing Workers AI at $0 versus about $0.36/month for a bring-your-own Claude Haiku 5.5 key and $7.20/month for Sonnet 5.5 at the same usage. A personal AI agent on Cloudflare's free tier costs $0 a month for about 70 Telegram conversations a day, and it deploys in 15 minutes. The Workers free plan gives you 100,000 requests a day, Durable Objects give each chat its own SQLite memory, and Workers AI includes 10,000 free neurons daily. The first thing you run out of is neurons, not requests. Below you get the free quotas checked against Cloudflare's docs on 15 October 2026 , a Workers AI versus bring-your-own-key cost comparison in dollars, and a complete project: wrangler.jsonc, an Agents SDK class, and a Telegram webhook handler. It builds on the Cloudflare Workers guide https://dev.to/blogs/cloudflare-workers-guide-2026-build-deploy-scale-edge-functions-free and the Agents Week memory guide https://dev.to/blogs/cloudflare-agents-week-2026-agent-memory-developer-guide . Free plan: 100,000 Worker requests a day, 10 ms CPU per request, 100,000 Durable Object requests a day. Workers AI: 10,000 neurons a day free. At 30 chats a day on Llama 3.3 70B that is about 4,000 neurons, so $0. Bring your own Claude Haiku 5.5 key: about $0.36 a month at the same usage. Sonnet 5.5: about $7.20. Per-chat memory lives in the agent's built-in SQLite. No D1 needed to start. Outgrow order: neurons first, then Durable Object row writes, then CPU time. These are the numbers that matter for an agent. All daily limits reset at 00:00 UTC. | Service | Free quota | What it does for the agent | |---|---|---| | Workers | 100,000 requests/day, 10 ms CPU per request, 50 subrequests, 5 cron triggers | Telegram webhook entry point | | Durable Objects | 100,000 requests/day, 13,000 GB-s/day, 5M rows read/day, 100,000 rows written/day, 5 GB SQLite | One agent instance per user, with memory | | Workers AI | 10,000 neurons/day | Model inference with no API key | | KV | 100,000 reads/day, 1,000 writes/day, 1 GB | Config and cached lookups | | D1 | 5M rows read/day, 100,000 rows written/day, 5 GB | Shared data across users | | R2 | 10 GB-month, 1M Class A and 10M Class B ops/month | Files the agent saves | | Vectorize | 5M stored and 30M queried dimensions/month | Semantic memory | | Queues | 10,000 operations/day, 24-hour retention | Background jobs about 3,300 messages | | Workflows | 10 ms CPU per step, 100 concurrent instances, 1,024 steps | Multi-step durable tasks | Two details save you debugging time. Free accounts can only create SQLite-backed Durable Objects, which is what the Agents SDK uses anyway 3 . And the 10 ms CPU cap counts compute only. Waiting on a model response, a KV read or a fetch does not count against it 1 , so an agent that spends 2 seconds waiting on inference still uses a few milliseconds of CPU. Telegram sends each message to a Worker via webhook. The Worker checks a secret header, looks up an agent instance named after your chat ID, and calls a method on it. The agent stores the message in SQLite, calls a model with the last 12 messages, stores the reply, and returns it. The Worker posts the reply back through the Telegram Bot API. A cron schedule inside the agent sends you a morning summary. One Worker file, one Durable Object class. Workers AI needs no key and no card. Its free allocation is 10,000 neurons a day, and Llama 3.3 70B fp8-fast is priced at 26,668 neurons per million input tokens and 204,805 per million output tokens 2 . The usage assumption below: 30 chats a day, 2,000 input tokens system prompt plus history and 400 output tokens per chat, over 30 days. That is 1.8M input and 0.36M output tokens a month. | Option | Price per M tokens in / out | Monthly cost at this usage | |---|---|---| | Workers AI, Llama 3.3 70B fp8-fast | 26,668 / 204,805 neurons | $0 about 4,060 neurons a day, inside the 10,000 free | | Workers AI, Llama 3.1 8B | 25,608 / 75,147 neurons | $0 about 2,440 neurons a day | | Claude Haiku 5.5 own key | $0.10 / $0.50 | $0.36 | | Claude Sonnet 5.5 own key | $2 / $10 | $7.20 | Workers AI pricing is from Cloudflare's pricing page; Claude pricing is from Anthropic's, both checked 15 October 2026 2 4 . The math for Haiku: 1.8 × $0.10 plus 0.36 × $0.50 equals $0.36. For Sonnet: 1.8 × $2 plus 0.36 × $10 equals $7.20. The practical split: start on Workers AI because it costs nothing and needs no secrets. Switch the single model call to Claude when answers need tool use or better reasoning. At $0.36 a month, Haiku 5.5 is cheaper than the time you would spend tuning a free model. To price your own workload, plug your token counts into the agent run cost simulator https://dev.to/tools/agent-run-cost-simulator . mkdir personal-agent && cd personal-agent npm init -y npm i agents npm i -D wrangler typescript @cloudflare/workers-types mkdir src Install is a single package: npm i agents 5 . Create a Telegram bot with @botfather https://dev.to/botfather and keep the token. Send your new bot any message, then open https://api.telegram.org/bot