Building an autonomous AI agent is easy. Keeping it alive 24/7 for four months on a ₹0 budget is the real engineering problem
Building an autonomous AI agent is easy. Keeping it alive 24/7 for four months on a ₹0 budget is the real engineering problem
XeL Studio 是一個開源、自主運作的新聞室,每 30 分鐘搜尋科技新聞、撰寫文章、生成封面圖片並發布,每日清理資料庫。作者以 ₹0 預算組合免費服務,讓系統持續運作四個月。Groq 和 Cerebras 透過備援路由器互相接替;AI 生成及 Python 抓取工作則由 GitHub Actions 定時執行。
.My first version taught me that the hard way. One LLM, no fallback. Every rate limit or outage froze the entire pipeline. Image generation was worse: I went through several free tiers before Cloudflare, and Hugging Face's free inference simply wasn't dependable enough for a system that never sleeps.
So I rebuilt it as XeL Studio, an open-source, self-driving newsroom. Every 30 minutes it finds tech news, writes the article, generates a cover image, and publishes. Once a day it cleans its own database. No human in the loop.
Here's how I designed around free-tier limits instead of fighting them:
Two LLMs, one pipeline
Groq and Cerebras run behind a fallback router. If one hits a rate limit or goes down, the other takes over. That single change fixed most of v1's failures.
Vercel for the frontend, GitHub Actions for the heavy lifting
The Next.js + TypeScript frontend is hosted on Vercel. But serverless timeouts kill long jobs, so AI generation and Python scraping run on GitHub Actions as a scheduled backend.
Three databases, each with one job
- Firebase: frontend reads. I built the UI layer around it because the load speed is excellent.
- Supabase (PostgreSQL): long-term article storage on its own free tier, so the archive can keep growing. It also runs the daily cleanup.
- JSON: the news pipeline only. When an AI is reading and writing structured data, JSON has been the most reliable format for me.
Discovery via Searchwala
News discovery runs on Searchwala, another open-source project of mine.
Media at ₹0
Cloudflare generates the cover images. Cloudinary stores and delivers them.
Honestly, this is my favourite part of building: taking free tiers that are weak on their own and combining them into something that holds up in production.
Both XeL Studio and Searchwala are open-source. Links in the first comment.
So, would you trust a free-tier stack like this in production, or is it a ticking time bomb?
OpenSource #AIAgents #SystemDesign #Serverless #BuildInPublic
Website link:
https://xel-studio.vercel.app/
GitHub link:
https://github.com/SandeepAi369/xel-studio
來源:DEV Community · dev.to