---
title: "Best Discord bot hosting in 2026: 7 options for 24/7, compared"
url: https://while.sh/en/comparisons/discord-bot-hosting/
author: "Grégoire Mougeolle, co-founder of Nextmap"
updated: 2026-11-19
---

# 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.

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](/en/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.

## 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 none (source 6). 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 nonstop (source 4).

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.

<figure class="illus"><img src="/illustrations/discord-veille-1200.webp" srcset="/illustrations/discord-veille-768.webp 768w, /illustrations/discord-veille-1200.webp 1200w" sizes="(min-width: 48rem) 46rem, 100vw" width="1536" height="1024" loading="lazy" decoding="async" alt="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" /><figcaption>A plan that sleeps whatever gets no web traffic stops a Discord bot.</figcaption></figure>

## 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.69 (source 3). **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 month (sources 4 and 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 usage (source 1). A **Hetzner VPS** starts at €5.49 excl. VAT per month, in its German or Finnish data centers (source 8).

## 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 needed (sources 1 and 3). Coolify is open source and free, but it runs on your own server, which you pay for (source 9). 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](/en/guides/host-discord-bot/).

**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 plan (source 1). Its regions are California, Virginia, Amsterdam and Singapore (source 2).

**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 second (source 3).

**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 hours (source 4). 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 MB (sources 6 and 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 States (source 8). 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 bring (source 9).

**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](/en/comparisons/nodejs-hosting/) or [hosting for a Python API](/en/comparisons/python-api-hosting/), and for prices in detail, [Fly.io pricing](/en/comparisons/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**.

```text titre="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](https://railway.com/pricing), 2026-11-19
2. [Railway, Regions](https://docs.railway.com/reference/deployment-regions), 2026-11-19
3. [Fly.io, Fly.io Resource Pricing](https://fly.io/docs/about/pricing/), 2026-11-18
4. [Heroku, Eco Dyno Hours](https://devcenter.heroku.com/articles/eco-dyno-hours), 2026-11-19
5. [Heroku, Pricing](https://www.heroku.com/pricing), 2026-11-19
6. [Render, Deploy for free](https://render.com/docs/free), 2026-11-19
7. [Render, Pricing](https://render.com/pricing), 2026-11-19
8. [Hetzner, Cloud](https://www.hetzner.com/cloud), 2026-11-19
9. [Coolify, Pricing](https://coolify.io/pricing), 2026-11-18

## 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 instance (source 6). Railway gives $1 of credit per month after the trial, and Fly.io $1 for 7 days (sources 1 and 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 nonstop (source 3). Heroku Eco gives 1,000 hours per month for $5, shared by all your Eco dynos (source 4).

### A VPS or a managed host for a Discord bot?

A VPS costs little, from €5.49 excl. VAT per month at Hetzner (source 8), 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.
