Skip to content
Guides
How do I host my Discord bot for free so it stays online 24/7?

Free 24/7 Discord bot hosting and what it really costs

Updated · VaultCord

A Discord bot is a program. Discord does not run it for you. Your bot shows the green dot only while that program is connected to Discord's Gateway and sending regular heartbeats to say it is still there. Turn the program off and the bot goes grey.

So "24/7 hosting" just means a computer that keeps your program running all day, restarts it when it crashes, and has a steady internet connection. The question is whose computer, and who pays for it.

Your options, side by side

Prices change too often to print, so this table compares what you pay with, not how much.

OptionWhat you pay with24/7?The catch
Your own PCElectricityOnly while it is onSleep, updates and reboots take the bot offline. Your home IP talks to Discord.
Always-on device at home (Raspberry Pi, old laptop)Hardware you own, electricityMostlyPower cuts and router restarts. You do updates and restarts yourself.
Cloud free tierNothing, within limitsDepends on the termsLimits on hours, memory or CPU. Some sleep idle apps. Some want a card. Terms change.
Paid VPSA monthly feeYesYou set up the server, the runtime and a process manager, and keep it patched.
Managed bot hostA monthly fee, sometimes a limited free planYesEasier panel, less control. Free plans often have the tightest limits.
A service that runs a bot for youIncluded in its planYesYou get the features it offers, not your own code.

What a free 24/7 offer has to get right

Before you move your bot to a free host, check these in its current terms or docs:

  1. 1No sleeping. Some free plans pause apps that get no web traffic. A bot that is paused cannot answer anyone.
  2. 2Monthly hours. A month has about 730 hours. A plan that gives fewer than that will run out before the month ends.
  3. 3Restart on crash. Your bot will crash at some point. The host should restart it without you.
  4. 4Secrets as environment variables. Your bot token should never sit in your code or a public repo. See the bot token guide.
  5. 5Enough memory for your library. A small bot in one server needs little, but check the limit before you add a database or music.

Why slash commands need the bot to be awake

When someone runs a slash command, Discord sends your app an interaction and expects an initial response within 3 seconds. If your program is asleep or starting up, the member sees the command fail. This is why "online most of the time" is not good enough for a moderation or verification bot. The bot has to be there when the raid starts, not a minute later.

Keeping a self-hosted bot online

If you do host it yourself, these habits stop most of the downtime:

  • Run the bot under a process manager or a container restart policy, so a crash means a restart, not an outage.
  • Let your library reconnect. Discord libraries reconnect and resume the Gateway session after normal network drops.
  • Log the Gateway close code when the bot disconnects. Code 4004 means the token is wrong, usually because someone reset it. Code 4014 means you asked for a privileged intent that is not switched on in the Developer Portal. Neither fixes itself by restarting.
  • Only request the intents you use. You toggle privileged intents on the Bot page of your app.

Since 10 June 2026, Discord decides when an app needs review for privileged intents by the number of unique users who can see the app, not by server count. Above 10,000 users you apply for access. Below that, you switch them on yourself.

Which one should you pick?

If you wrote the bot yourself and you are still testing, your own PC is fine. If people rely on it, move it to something that is on all the time: a device at home you trust, a VPS, or a managed host. If what you actually want is a bot that verifies members and brings them back after a raid or a deleted server, you do not need to host anything. Read how to make a Discord bot without coding.

Questions

How much does it cost to host a Discord bot?

Anywhere from nothing to a monthly server bill. Running it on a computer you already own costs only electricity, but it is offline whenever that computer is. A cloud free tier costs nothing within its limits. A VPS or a managed bot host is a monthly fee. A service that runs a bot for you, like VaultCord's custom bot, includes hosting in the plan.

What is the cheapest Discord bot hosting?

Hardware you already own is the cheapest, as long as it stays on. If you need it truly always on, compare free tiers by their current terms: whether they sleep idle apps, cap monthly hours or need a card. If you only need a verification, backup and member restore bot, VaultCord's Free plan hosts 1 custom bot 24/7 at no cost.

Is free 24/7 Discord bot hosting really free?

Sometimes, with conditions. Free plans can limit hours, memory or CPU, show ads in a panel, or put apps to sleep when idle. A sleeping bot is an offline bot. Read the current terms before you move your bot.

Why does my bot go offline when I close my computer?

A bot shows as online only while a running program holds a Gateway connection to Discord and keeps sending heartbeats. Close the program, or let the computer sleep, and the connection drops.

Do I need hosting if I use a no-code bot maker?

No. A no-code maker runs the bot program on its own servers. You only create the application in Discord's Developer Portal and give the service the values it asks for.