Host a Discord bot for free
· 6 min read
The question every finished bot asks next
A Discord bot is online for exactly as long as its process runs somewhere. Your laptop counts, right up until you close the lid; after that the bot is offline and every server that relies on it notices within the minute. So the real question after "my bot works" is not "which command do I add next". It is "where does this thing run while I sleep".
The four options that actually exist
Your own machine is the right place to develop and the wrong place to operate. It adds no cost, but the bot lives and dies with your session. Fine for a test server, wrong for anything people depend on.
A Raspberry Pi is the classic home for a hobby bot. Sixty to ninety euros once, a few watts of power, and a small bot will run on it for years. The hidden price is that you become the administrator: OS updates, restarts after a power cut, a process manager such as systemd so the bot returns after a crash. If you want to learn servers, this teaches you plenty. If you only want a running bot, you just bought yourself a second hobby.
A VPS from roughly four or five euros a month is the Pi with better bandwidth and none of your electricity. Same administration work, more headroom. The right call once a bot has an audience, or needs more memory than free tiers hand out.
Free bot hosting is the shortest path from code to running bot: connect a repository, set the token as an environment variable, press start. No operating system to babysit. The limits are the part the landing pages skip, so they get their own section.
What "free" actually buys you
Memory and electricity cost money, so every free tier saves somewhere; honest providers tell you where. The usual trade-offs are modest memory (a small bot genuinely fits in 100 to 256 MB), a capped runtime per start or a recurring manual renewal, and no promise that the machine never restarts.
Our own hosting here plays in this category, and its limits are printed on the page: the free tier runs 48 hours per start and does not restart on its own, one bot per person. That covers trying things out and small servers. A bot with a real audience deserves the paid tier or a VPS, and pretending otherwise would be marketing. The reason the offer exists at all: hosting a bot here creates its directory listing along the way.
Two things should make you close the tab. First, "unlimited, free forever" with no visible answer to how the provider pays its bills; services like that tend to vanish overnight, and your bot vanishes with them. Second, anything that collects your source or token without making clear who runs it. The token is full control over your bot. Hand it only to a service you would trust near your Discord password, and reset it in the Developer Portal whenever you leave a provider.
Picking without regret
For a first bot: free hosting, or your own machine until you know the bot is staying. For a bot in a dozen servers: a small paid tier or a Pi, depending on whether you enjoy being an administrator. Beyond that: a VPS with a process manager, and monitoring so you learn about downtime before your users do.
Whatever you pick, build the bot so a restart costs nothing: state in a file or database, token in the environment, startup in one command. Do that and moving between all of these options takes minutes, which means today's choice does not lock you in.