The best hosting for a 24/7 Discord bot in 2026
Your Discord bot works on your computer, and stops when you close the laptop. To answer day and night, it needs a host that does not put it to sleep, at a price that stays small. We compared seven ways to host a Discord bot in November 2026.
By Grégoire Mougeolle, co-founder of Nextmap. Facts checked on November 19, 2026.
Your Discord bot works on your computer, and stops as soon as you close the laptop. To answer 24/7, it needs a host that keeps it running, and that is where most free plans fail: they put to sleep whatever gets no web traffic. The right choice depends on three things: does the bot stay on, what does it cost per month, and who looks after the server. We compared seven ways to host a Discord bot.
Our verdict. For a bot your AI takes to production, while. Its token stays out of its reach, it never runs twice at once during an update, and your data stays in France. Elsewhere, only for a bot already on Heroku or Render, or to keep control of your own server, with a VPS or Coolify.
The 7 Discord bot hosts at a glance
| Host | Stays on 24/7 | Price to start | Who manages the server | Closest to France |
|---|---|---|---|---|
| while | Yes | A trial with no sign-up, see pricing | while | In France |
| Railway | Yes | Hobby at $5 per month, with $5 of usage | Railway | Amsterdam |
| Fly.io | Yes | $2.19 for 30 days, 256 MB | Fly.io | Paris |
| Heroku | Yes, a lone Eco worker | $5 for 1,000 hours per month | Heroku | Europe |
| Render | Yes, as a paid background worker | $7 per month, 512 MB | Render | Frankfurt |
| A Hetzner VPS | Yes | €5.49 excl. VAT per month | You | Germany or Finland |
| Coolify | Yes | Free on your server | You | Wherever your server is |
Each host’s facts come from its pricing page and documentation, cited as sources.
Try while on your tool, no sign-up. Copy the message
Hosting a Discord bot 24/7, with no sleep
A Discord bot gets no web visits: it connects to Discord itself and waits for messages. A host that puts services without web traffic to sleep therefore stops it, and the bot stops answering. At Render, free instances are for web services, Postgres databases and Key Value, and background workers have none6. At Heroku, an app with only an Eco worker does not sleep, since it does not answer the web, and it then uses its hours nonstop4.
For a bot that answers day and night, you need a service that runs nonstop: a worker, a machine, a VPS, or a service with no public address on while.

Cheap Discord bot hosting
Fly.io is the cheapest entry for an always-on bot: a 256 MB machine costs $2.19 for 30 days nonstop, and 512 MB $3.693. Heroku Eco costs $5 per month for 1,000 hours, shared by all your Eco dynos. Once the hours run out, all your Eco dynos sleep until the end of the month, and moving to Basic costs $7 per month4,5.
Railway costs $5 per month on Hobby with $5 of usage included, then about $10 per GB of memory and $20 per CPU for a full month, so a small bot often fits in the included usage1. A Hetzner VPS starts at €5.49 excl. VAT per month, in its German or Finnish data centers8.
Free Discord bot hosting?
Free 24/7 Discord bot hosting is rare. Railway gives $1 of credit per month after the trial, and Fly.io $1 for 7 days, then a credit card is needed1,3. Coolify is open source and free, but it runs on your own server, which you pay for9. To try a bot for a few days, these credits are enough. For a Discord server that relies on its bot, a small paid plan is safer.
while, your bot in production by your AI, its token safe
We built while for what your AI takes to production, bots included. Claude Code, Cursor or Codex connects to while over MCP, with OAuth, and puts your bot in production as a service that runs nonstop, with no public address.
You, to your AI: Put my Discord bot in production on while, running 24/7, and give me the link where I paste its token.
- Its Discord token stays in while: you paste it into while through a link, your bot receives it, your AI never sees it.
- An update never runs two bots at once, so nobody gets two replies.
- An automation posts at a set time, the morning summary as well as the evening reminder.
- What matters waits for a person, and everything runs in France, at Nextmap.
For the step by step, follow our guide to hosting a Discord bot 24/7.
Who it is for: a bot your AI takes to production and watches, its token protected.
Railway, a small bot within the included usage
Railway takes a Git repository to production, in Python as in Node.js, and bills usage on top of the plan1. Its regions are California, Virginia, Amsterdam and Singapore2.
Who it is for: a small bot that wants to pay for what it uses.
Fly.io, the cheapest always-on bot
Fly.io runs a machine in many regions, Paris included, billed by the second3.
Who it is for: an always-on bot, at the lowest price.
Heroku, a lone Eco worker
On Heroku, an app with only an Eco worker does not sleep, and draws on the month’s 1,000 hours4. With a single bot, that covers a whole month.
Who it is for: a bot already on Heroku, the account’s only Eco dyno.
Render, a paid background worker
Render runs a bot as a background worker, a service that runs continuously, with no free instance, from $7 per month for 512 MB6,7. Its closest region is Frankfurt.
Who it is for: a team already on Render, adding its bot there.
A VPS, to manage yourself
A VPS costs little, from €5.49 excl. VAT per month at Hetzner, in Germany, Finland, Singapore or the United States8. You install Python or Node.js, restart the bot if it crashes, and keep the server up to date.
Who it is for: someone who likes running a server, and will keep doing it.
Coolify, on your own server
Coolify is open source and free on your server, and Coolify Cloud costs $5 per month for two servers, which you bring9.
Who it is for: a team that wants to keep its servers, with an interface to manage them.
Which one to choose
| Your situation | Our pick |
|---|---|
| A bot that never runs twice during an update | while |
| Your AI takes the bot to production, its token safe | while |
| A bot already on Heroku | A lone Eco worker |
| A team already on Render | A background worker |
| Running your own server | A VPS or Coolify |
For a bot that also serves an API, read the best Node.js hosting or hosting for a Python API, and for prices in detail, Fly.io pricing. To try while, give this message to your AI. The trial is free, with no sign-up, and your bot runs in 3 minutes.
Read while.sh/agents and help me get started with while.
How we chose
On November 19, 2026, we read the pricing pages and documentation of Railway, Heroku, Render and Hetzner, cited as sources, and reused our November 18 reading for Fly.io and Coolify. Prices are for the smallest size that keeps a bot on, in dollars or euros as each host displays them. We use while every day, and we compared the seven options on sleep, price, server management and region.
Sources
- Railway, Pricing, accessed November 19, 2026
- Railway, Regions, accessed November 19, 2026
- Fly.io, Fly.io Resource Pricing, accessed November 18, 2026
- Heroku, Eco Dyno Hours, accessed November 19, 2026
- Heroku, Pricing, accessed November 19, 2026
- Render, Deploy for free, accessed November 19, 2026
- Render, Pricing, accessed November 19, 2026
- Hetzner, Cloud, accessed November 19, 2026
- Coolify, Pricing, accessed November 18, 2026