Skip to content

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.

View as Markdown

Best Discord bot hosting in 2026: host a Discord bot 24/7 on Railway, Fly.io, Heroku, Render, a Hetzner VPS, Coolify or while, cheap Discord bot hosting with no sleep, the bot token kept safe

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

HostStays on 24/7Price to startWho manages the serverClosest to France
whileYesA trial with no sign-up, see pricingwhileIn France
RailwayYesHobby at $5 per month, with $5 of usageRailwayAmsterdam
Fly.ioYes$2.19 for 30 days, 256 MBFly.ioParis
HerokuYes, a lone Eco worker$5 for 1,000 hours per monthHerokuEurope
RenderYes, as a paid background worker$7 per month, 512 MBRenderFrankfurt
A Hetzner VPSYes€5.49 excl. VAT per monthYouGermany or Finland
CoolifyYesFree on your serverYouWherever 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.

Host a Discord bot 24/7 with no sleep: a free plan that puts the Discord bot to sleep after a few minutes, and always-on Discord bot hosting that answers day and night, with the bot token kept out of the AI's reach
A plan that sleeps whatever gets no web traffic stops a Discord bot.

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 situationOur pick
A bot that never runs twice during an updatewhile
Your AI takes the bot to production, its token safewhile
A bot already on HerokuA lone Eco worker
A team already on RenderA background worker
Running your own serverA 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.

The message to give your AI
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

  1. Railway, Pricing, accessed November 19, 2026
  2. Railway, Regions, accessed November 19, 2026
  3. Fly.io, Fly.io Resource Pricing, accessed November 18, 2026
  4. Heroku, Eco Dyno Hours, accessed November 19, 2026
  5. Heroku, Pricing, accessed November 19, 2026
  6. Render, Deploy for free, accessed November 19, 2026
  7. Render, Pricing, accessed November 19, 2026
  8. Hetzner, Cloud, accessed November 19, 2026
  9. Coolify, Pricing, accessed November 18, 2026

Questions

Where to host a Discord bot 24/7?

With a host that does not put it to sleep: a lone Heroku worker, a Fly.io machine, a Railway service, a paid Render background worker, a VPS or while. A bot needs no public address, it connects to Discord itself.

Is there free Discord bot hosting?

Rarely for 24/7. At Render, background workers have no free instance6. Railway gives $1 of credit per month after the trial, and Fly.io $1 for 7 days1,3. Coolify is free on your own server, which you pay for. On while, the trial is free with no sign-up, and the Libre plan has no subscription.

What is the cheapest Discord bot hosting?

Fly.io, with a 256 MB machine at $2.19 for 30 days running nonstop3. Heroku Eco gives 1,000 hours per month for $5, shared by all your Eco dynos4.

A VPS or a managed host for a Discord bot?

A VPS costs little, from €5.49 excl. VAT per month at Hetzner8, but you update it, secure it and restart the bot if it crashes. A managed host does that for you.

Does my bot reply twice during an update?

Not on while: a new version replaces the old one without ever running twice.

A bot in Python or Node.js?

Both, with discord.py as with discord.js, on while as with the other hosts on this page.

Give your AI the message, and it takes care of the rest

Give this to your AI

Read while.sh/agents and help me get started with while.

Copy the message

In 3 minutes, with no sign-up, the tool has its own address. To keep it, create your account.

For a company project, write to the while team: hello@while.sh