Discord bot hosting: free, managed or VPS?

You have built a Discord bot. Now it needs to run somewhere, preferably around the clock. The options range from free platforms to a full VPS, and each comes with trade-offs. Here is what to expect from each.

Option 1: free platforms

Services like Oracle Cloud free tier or Replit (with limits) let you host a small bot at no cost. The catch is always the same: the bot sleeps after a period of inactivity, restarts are not guaranteed, and resources are shared.

  • Uptime: not guaranteed. Expect the bot to go offline during maintenance or resource reclaims.
  • RAM: typically 256 to 512 MB. Enough for a simple bot, tight for anything with a database or image processing.
  • Good for: testing, development, personal bots in small servers.

Option 2: managed bot hosting

Some providers offer hosting specifically for Discord bots, with a panel to upload your code, set environment variables and monitor logs. You do not manage the OS or runtime yourself.

  • Uptime: usually 99%+ with automatic restarts.
  • Languages: often limited to Node.js and Python. Bots written in Go, Rust or Java may not be supported.
  • Control: limited. You upload code, not configure the system.
  • Good for: bot developers who want simplicity and do not need root access.

Option 3: VPS

A virtual private server gives you a full Linux machine. You install your runtime, set up a process manager like systemd or pm2, and run whatever you want. This is the most flexible option and the one that scales best.

  • Uptime: 99.9%+ with proper setup.
  • Languages: anything that runs on Linux.
  • Control: full root access.
  • Good for: production bots, bots with databases, multi-bot setups, bots that run alongside other services.

Comparison at a glance

FeatureFree tierManaged bot hostVPS
Monthly costFree2 to 5 EURFrom 3 EUR
Always onlineNoYesYes
Root accessNoNoYes
Multiple botsDifficultOne per planUnlimited
DatabaseExternal onlySometimes includedInstall your own
Custom runtimeLimitedLimitedFull freedom

Setting up a Discord bot on a VPS

  1. Provision a VPS with at least 1 GB RAM and Ubuntu 24.04.
  2. Install your runtime: sudo apt install nodejs npm for Node.js, or sudo apt install python3 python3-pip for Python.
  3. Upload your bot code via SFTP or clone from Git.
  4. Store your bot token in an environment variable, never in the code.
  5. Use a process manager: pm2 start bot.js for Node, or create a systemd service for Python.
  6. Enable the process manager to start on boot so the bot survives reboots.

Security basics

A bot token is like a password. Keep it in an .env file or system environment variable, never commit it to Git, and rotate it immediately if it leaks. On a VPS, set up a firewall with ufw and keep the system updated.

Can I run multiple bots on one VPS?

Yes. A 2 GB VPS comfortably runs several lightweight bots. Use pm2 or separate systemd services to manage them independently.

Does my bot need a lot of resources?

Most bots use very little CPU and memory. A simple moderation or music bot runs fine on 512 MB. Bots with image generation, large databases or AI features need more.

What about Docker?

Docker works well for bots. It isolates dependencies and makes deployment reproducible. On a 2 GB VPS you can run Docker with two or three bots without issues.

Our Discord bot hosting plans include a managed panel and automatic restarts. Need more control? A VPS gives you root access and the freedom to run anything.


Still stuck? Open a support ticket and our team will help you out.

Back to the blog