Free bot hosting goes to sleep, rate-limits you, or vanishes. A small VPS keeps your Discord bot online around the clock for a few euros — here's how to set it up properly.
Free tiers and "always-on" hobby platforms tend to sleep idle apps, cap your hours, or change terms. A bot needs to be actually running 24/7. A small VPS gives you a real always-on machine with full control for the price of a coffee — and your bot doesn't share fate with a free platform's policy changes.
Most bots are light. A 1 GB Starter handles a typical bot comfortably; size up only for big bots, music streaming, or databases. Discord bots make outbound connections to Discord's API, so NAT IPv4 is a non-issue — you don't need a dedicated IP (see NAT IPv4 vs dedicated IP).
apt update && apt upgrade.nodejs/npm for a JS bot, or python3/pip/venv for a Python one.Clone your code (git) or upload it, install dependencies (npm install or pip install -r requirements.txt), and put your bot token in an environment variable or a .env file — never hard-code it. Test that it starts and connects.
You want the bot to restart on crash and on reboot. Two standard ways:
pm2 start bot.js, then pm2 startup and pm2 save so it survives reboots. Great logs and restarts built in.Restart=always and enable it. The most robust, OS-native option.Avoid running the bot in a bare screen/tmux long-term — it won't survive a reboot. pm2 or systemd is the right tool.
Check logs (pm2 logs or journalctl -u yourbot), keep the system updated, and take a snapshot before big changes. That's it — a bot that's genuinely online 24/7.
Yes — most bots are light and run comfortably on a 1 GB KVM VPS with full root. It's the reliable way to stay online 24/7 versus free tiers that sleep or cap usage.
No. Discord bots make outbound connections to Discord's API, so a shared (NAT) IP is completely fine. You don't need a dedicated IP for a bot.
Use pm2 (pm2 startup + pm2 save) or a systemd service with Restart=always and enable it. Both auto-restart on crash and survive reboots — better than screen/tmux.
No. A KVM VPS with full root runs either. Install nodejs/npm or python3/pip/venv as your bot needs.
Always-on KVM, full root, from €4.99/mo.
Why full root and your own kernel matter.
Why NAT is fine for bots.
Order to running server in minutes. 30% off your first invoice.