Skip to content

The best hosting for a 24/7 Discord bot in 2026

Your Discord bot works on your computer, but it stops when you close your laptop. Here’s where to run it 24/7, with no server to maintain.

By Grégoire Mougeolle, co-founder of Nextmap. Facts checked on November 2, 2026. How this comparison is made.

View as Markdown

The right choice depends on your app

  • Do you want your bot online in a few minutes, and France doesn’t matter? Choose Railway: your agent deploys it there through its MCP server1.
  • Do you want to keep your own server? Choose Coolify: it’s open source and free, and it turns your server into a PaaS2.
  • Do you want your AI agent to deploy the bot without ever seeing its Discord token? Choose while: you enter the token in while, and your bot receives it.

Try while on your app, without an account. Copy the instructions

The comparison

HostYour AI agentIn FranceTo get started
RailwayAn MCP server with OAuth, on the projects you choose1No, Amsterdam is the closest3Hobby at $5 per month, with up to $5 of usage included4
Fly.ioAn MCP server in beta, which doesn’t deployYes for apps, not for the database5$2.19 per month for the smallest always-on app6
HerokuA remote MCP server, with OAuth7No, a Europe region8$5 per month for 1,000 hours of Eco worker, on a personal account9
CoolifyA built-in MCP server, with limited-permission tokens10If your server is thereFree, plus your server11
whileAn MCP server with OAuth: sensitive actions wait for your approvalYes, with Nextmap, a French company€0 to get started, then the CPU and memory it uses

Railway, simple and smooth

Railway is one of the smoothest for an agent: your database is created in a single request, and your services stop dead at the spending limit you set12.

Fly.io, close to your players

Fly.io runs your bot in many regions around the world5.

Heroku, a dyno that doesn’t sleep

A Heroku worker doesn’t sleep, from $5 per month on Eco with a personal account9.

Coolify, on your own server

Coolify is open source and free, and it turns any server into a PaaS2.

while, your bot deployed by your agent, with its token kept safe

Your agent deploys your bot over MCP, as a service that runs nonstop, with no public address. You enter its Discord token in while: your bot receives it, your agent never sees it. An update never runs two bots at once, and a scheduled job posts at a set time.

Next steps

Sources

  1. Railway, the MCP server, accessed November 2, 2026
  2. Coolify, home page, accessed November 2, 2026
  3. Railway, regions, accessed November 2, 2026
  4. Railway, plans, accessed November 2, 2026
  5. Fly.io, regions, accessed November 2, 2026
  6. Fly.io, pricing, accessed November 2, 2026
  7. Heroku, the remote MCP server, accessed November 2, 2026
  8. Heroku, regions, accessed November 2, 2026
  9. Heroku, Eco dyno hours, accessed November 2, 2026
  10. Coolify, the MCP server, accessed November 2, 2026
  11. Coolify, pricing and FAQ, accessed November 2, 2026
  12. Railway, cost control, accessed November 2, 2026

Questions

Does my bot reply twice during an update?

Not on while: a new version replaces the old one without ever running both at once.

Node.js or Python?

Both work, on while as elsewhere.

How much does a small bot cost?

On while, you only pay for the CPU and memory it uses.

Connect your agent, it takes care of the rest

To paste into your agent

Read while.sh/agents, then deploy my app with while.

Copy the instructions

No account needed to try: your app is live right away. To keep it, sign in.

A project for your company? Talk to the team: hello@while.sh