Discord bot hosting on a VPS: online 24/7, no sleeping

· 0x.cloud Team

Discord bot hosting on a VPS: online 24/7, no sleeping

Discord bot hosting on your own VPS keeps your bot online around the clock, with no idle sleep and no monthly hour caps. 0x.cloud servers start at $4.49 a month or bill hourly and run in Warsaw. The "Bots" image ships with Python and Discord libraries, Node.js with pm2, and a service that keeps your bot running.

Why paid Discord bot hosting on a VPS

Most people searching for Discord bot hosting add "free 24/7". Free tiers come with limits: monthly hours, sleep on inactivity, shared resources. When your bot drops offline, it misses commands and server events, and members notice.

A VPS gives you:

  • A Gateway connection that stays up. The process runs nonstop, and pm2 or systemd restarts it after a crash or reboot.
  • Root and any dependency. FFmpeg for music, PostgreSQL or Redis for economy and leveling, your own scripts.
  • Unmetered traffic at up to 1 Gbps, which matters for voice and music bots.

Best VPS for Discord bot hosting: pick a plan

We break down memory use by bot type in how much RAM a bot needs. To start:

Your bot Plan Specs Monthly
Moderation, commands, roles across a few servers s1-1 1 vCPU, 1 GB RAM, 15 GB NVMe $4.49
Music, a database, LLM replies s1-2 1 vCPU, 2 GB RAM, 30 GB NVMe $7.99
Several bots, a database, hundreds of servers s2-4 2 vCPU, 4 GB RAM, 60 GB NVMe $15.99

Past a certain number of servers, Discord requires sharding and memory needs climb. Hourly billing lets you measure real load before you commit to a month or a prepaid year.

Host a Discord bot 24/7 in 5 minutes

  1. Create a server: s1-1 with the "Bots" image or plain Ubuntu 24.04.
  2. Pull your code with git clone from the server's web console.
  3. Store the token from the Discord Developer Portal in .env (chmod 600), never in the repo.
  4. Run the bot as a service.

For a discord.js bot, pm2 is all you need:

npm ci                              # install exact dependencies from the lockfile
pm2 start index.js --name discord-bot
pm2 save                            # remember the process list
pm2 startup                         # prints a boot command; run it
pm2 logs discord-bot                # tail the logs

For discord.py, create a systemd service with Restart=always, as shown in deploy a Discord bot. Runtime tips live on Python VPS hosting and Node.js VPS hosting.

Common gotcha: the bot shows online but ignores prefix commands. Turn on the Message Content intent in the Developer Portal and request it in your client options.

Want your AI agent to handle it? Through the 0x.cloud MCP server or REST API, an agent gets a dry_run quote, creates the server and starts the bot, capped by the spend limit on its key.

Prompt for an AI agent

Create an s1-1 server on 0x.cloud with the Bots image. Clone my discord.js bot repo, put the token in .env, start it with pm2 with boot persistence and show me the logs. Show the dry_run price first.

Discord bot hosting options compared

Option Online 24/7 Custom packages (FFmpeg, DBs) Cost Fits
Your own PC only while it's on yes electricity development
Free bot host within the tier's limits limited $0 a first learning bot
PaaS platform yes, on paid tiers limited depends on plan Git deploys without server admin
0x.cloud VPS yes yes from $4.49/mo or hourly community bots, music, several bots

Every plan and the 3, 6 and 12 month discounts are on the pricing page.

Discord bot hosting FAQ

Is there free Discord bot hosting that runs 24/7? Free tiers usually cap monthly hours or sleep idle apps, so the bot drops offline. For a bot that stays online, use a small always-on VPS. On 0x.cloud that starts at $4.49 a month.

How much RAM does a Discord bot need? A discord.py or discord.js bot serving a handful of servers fits in 1 GB (s1-1). Music bots and bots with a database or LLM calls are safer on 2 GB (s1-2).

Do I need to open ports for a Discord bot? No. The bot opens an outbound WebSocket to the Discord Gateway, and outgoing connections work on every server. A web dashboard for the bot would need a public address, which 0x.cloud servers do not have.

Why can't my hosted bot read message text? Enable the Message Content intent in the Discord Developer Portal and request it in your code. Without it, prefix commands won't work.

How do I move my bot from my PC to a VPS? Pull the code with git, move the token into an .env file, install dependencies, and run the bot under systemd or pm2.