Guide · Updated June 2026

Discord bot hosting — every option, honestly compared

A Discord bot only stays online while its code is running somewhere. That “somewhere” is the hosting decision — and it’s the part most bot tutorials skip. Here are your real options in 2026, from a Raspberry Pi in your closet to fully managed hosting.

The options

Where can you host a Discord bot?

OptionCostEffortThe catch
Your own computerFreeNone up frontBot dies when the machine sleeps. Fine for testing only.
Raspberry Pi~Free (own hardware)High — Linux setup, updates, restartsCheap and fun if you like tinkering; you are the on-call engineer.
VPS (Hetzner, DigitalOcean…)$4–$10/moMedium — server admin, deploys, monitoringThe classic route. Reliable, but you maintain everything.
Cloud platforms (Railway, Render…)$5–$10/mo typicalLow–medium — connect a repo, configureGood developer experience; you still write and own the deployment.
Hatchbot managed hosting$4/mo (24h free trial)None — built and hosted for youDescribe the bot in a sentence; building, hosting, and uptime are handled.

The shortcut

The easiest way to build and host a bot

Every option above assumes you already have a bot to host. Hatchbot collapses both steps: describe what you want your bot to do in plain English, and it generates real discord.js code, deploys it to managed infrastructure, and invites it to your server — in minutes. Hosting, uptime, and restarts are included at $4/month, and the first 24 hours on your real server are free with no card.

And if you outgrow managed hosting: download the generated code for $3 and move it to any VPS or cloud platform in the table above. No lock-in.

Build & host your bot free

FAQ

Hosting questions, answered

Why does my Discord bot go offline?

A Discord bot is a program that must be running continuously somewhere. If it only runs on your laptop, it goes offline the moment you close the lid or lose connection. To stay online 24/7 it needs to run on an always-on machine: a VPS, a cloud platform, or a managed host like Hatchbot.

What is the cheapest way to host a Discord bot?

A Raspberry Pi you already own is nearly free but needs setup and maintenance. Budget VPS providers start around $4–$6/month. Hatchbot hosts your bot for $4/month with zero setup — and builds the bot for you in the first place.

Can I host a Discord bot for free?

Mostly no, anymore. The well-known free tiers (Heroku, Railway free plan, Replit always-on) have been discontinued or restricted. Free options that remain generally sleep your bot or require workarounds. A reliable 24/7 bot realistically costs a few dollars a month wherever you host it.

What is the easiest way to build and host a Discord bot?

Hatchbot is the easiest route: describe the bot in one sentence, and it generates the code, hosts it, and deploys it to your server in minutes. The first 24 hours are free with no card; keeping it is $4/month, or $3 once to download the code and self-host.

Do I need to keep my computer on for my Discord bot?

Only if your computer is where the bot runs. Hosting it on a VPS, cloud platform, or managed service like Hatchbot means it runs independently of your machine, 24/7.

Don’t have a bot yet?

Read how to make a Discord bot — or skip straight to describing it and let Hatchbot build and host it for you.

Start building