Comparisons2 minutes to readChecked

What are the best Heroku and Replit alternatives for hosting a bot?

Heroku has no free dynos and Replit’s free app expires after 30 days. What a 24/7 bot costs on each, and cheaper always-on alternatives.

The short answer

Heroku no longer has free dynos, and Replit’s free plan publishes one app that goes down after 30 days. Both can run a bot all month on a paid plan: $5 to $7 a month on Heroku, or $15 a month for Replit’s smallest Reserved VM. A bot host is cheaper for an always-on worker. Bothosting runs one bot free on Spark, and Relay costs $2.25 a month for 1 GB.

Running one bot 24/7

Published prices, checked 20 November 2026
PlatformFree optionCheapest always-onSleep rules
BothostingSpark: 256 MB, renew every 7 daysRelay $2.25/month: 1 GB, 2 deploymentsNo idle sleep
HerokuNoneEco $5/month for 1,000 shared dyno hours, 0.5 GB; Basic $7/month, always onEco web dynos sleep after 30 minutes without web traffic
Replit1 published app that goes down after 30 daysReserved VM $15/month: shared 0.5 vCPU, 2 GBAutoscale deployments idle after 15 minutes

Running a bot on Heroku

Run a Discord or Telegram polling bot as a worker process, not web. Heroku says worker-only Eco apps don’t sleep, because they don’t respond to web requests. They draw on the 1,000 shared Eco hours, which covers one process for a month. A second always-on app on Eco runs out of hours. Basic at $7 a month per dyno avoids the pool. Heroku’s filesystem is reset when a dyno restarts, so keep data in a database.

Why keep_alive tricks stopped working on Replit

Old tutorials ran a small web server in the Repl and pinged it with UptimeRobot so the workspace stayed awake. Replit now separates the editor from deployments. A bot needs a deployment that keeps running, which is the Reserved VM. Autoscale deployments idle after 15 minutes without requests, and a gateway bot receives no requests. See whether you still need keep_alive.py.

Moving your bot

Export the code and any data files, copy your secrets, stop the old process and start the new one. The checklist is in moving a bot from Render, Railway or Replit. For usage-billed platforms, see Bothosting vs Railway, Render and Fly.io.

About this comparison

This comparison is published by Bothosting (bothosting.dev), one of the providers compared. Figures for Heroku and Replit come from their public pages, read on 20 November 2026. They are not independent benchmarks. Check each provider’s current page, tax and checkout total before you buy.