Discord Bot Hosting (2026): Why 1 GB Is Usually Enough
For discord bot hosting, a plain discord.py or discord.js bot fits in 512 MB to 1 GB of RAM. The cheapest plan we’d pick is RackNerd’s 1 GB special at $1.83/month billed yearly (checked Dec 4, 2026). Move to 2 GB or more for a music bot with Lavalink, a database or a dashboard. Oracle’s free tier works only if you can live with the reclaim risk.
On this page
This page is for bots you wrote yourself or self-host: discord.py, discord.js, or a Lavalink music setup. Not managed bot panels. If “VPS” still sounds vague, read what a VPS actually is first.
Some links earn us a commission. Picks are ordered by fit and price, not commission.
How we picked
Prices are read from each provider every day (last Dec 4, 2026). Account terms come from the providers’ own pages: RackNerd checked Nov 9, 2026, netcup Nov 11, 2026. We ranked plans by fit for the bot’s size first, then real monthly cost (minimum term and IPv4 included), then account terms. Community reports are linked and dated, and treated as reports, not measurements. How we check.
Quick picks: discord bot hosting by bot size
You can compare VPS prices across every provider we track, or open every 1 GB plan sorted by real monthly cost.
What a Discord bot actually needs
The bot process is small
A bot keeps one connection open to Discord’s Gateway and waits for events. Discord’s developer docs describe it this way: “Gateway connections are persistent WebSockets”. Most of the time it just waits.
Neither discord.py nor discord.js publishes a RAM figure. The discord.py docs say it works with Python 3.8 or higher (2.7.1 is the current release on PyPI). discord.js 14.28.1 on npm declares Node 18 or newer, and the docs for its main branch already require Node 24.17.0. Install a current Node LTS and you’re covered for both.
So the RAM number is our recommendation, not a fact: 512 MB runs a small bot, and 1 GB leaves room for the OS, updates and logs.
What makes a bot grow
Caches come first. discord.py keeps up to 1,000 messages in memory by default (max_messages). It also caches members “as much as possible with the currently selected intents”, per its API reference. discord.js caches too, and its guide on cache customization exists “to reduce memory usage” through makeCache, Options.cacheWithLimits and sweepers.
Guild count comes next. Discord’s docs say apps in 2,500 or more guilds must use sharding, and each shard handles at most 2,500 guilds. Every shard is another Gateway connection to keep open.

At the far end, the developer of a bot in 45,000 servers wrote in a July 2025 dev.to post that the bot server uses 18 GB of RAM and 3 vCPUs on Oracle’s free tier. Most bots never get near that.
Music bots: FFmpeg and Lavalink
Voice is where a VPS for a Discord bot stops being tiny. discord.py needs the discord.py[voice] extra, and on Debian-based Linux the docs list libffi-dev libnacl-dev python3-dev. The discord.js voice guide says FFmpeg is needed for many media types, such as MP3, and recommends an Opus encoder for performance.
Lavalink is a separate Java server that streams audio for many music bots. Its README requires Java 17 LTS or newer. It doesn’t publish a RAM number, but its sample systemd unit starts it with -Xmx4G, a 4 GB heap cap you can lower. Our recommendation: 2 GB minimum for a bot plus Lavalink on one server, 4 GB if a database or many guilds join them.

| Bot | RAM we’d start with | Example plan |
|---|---|---|
| Commands, moderation, reminders | 512 MB–1 GB | RackNerd 1 GB, $1.83/month |
| Bot plus SQLite/Postgres or a web dashboard | 2 GB | InterServer 1 slice, $3.00/month |
| Music bot with Lavalink | 2–4 GB | OVHcloud VPS-1, $5.35/month |
| Thousands of guilds, sharded | 4 GB and up | Measure first, then size |
Free discord bot hosting vs a VPS
Most free hosts don’t fail on RAM. They sleep, which drops the Gateway connection and shows your bot as offline.
The Python Discord community’s hosting tag notes that “Heroku is no longer free”. It says free options like repl.it for 24/7 hosting are “strongly discouraged”. Its VPS guide adds the details. Replit needs a web server running next to the bot to stop it being shut off, the file system is ephemeral, and every project shares one IP. A shared IP means you share Discord’s rate limits with strangers.
A free tier is fine for testing, or for a bot that serves one small server and can afford to drop out. The serious free option is Oracle Cloud’s Always Free tier. Its Arm (A1) allowance is 2 OCPUs and 12 GB of RAM, per Oracle’s Always Free docs (checked Dec 4, 2026).
The catch sits in the same docs. Oracle may reclaim an idle Always Free instance if, over 7 days, 95th-percentile CPU, network and (on A1) memory use all stay under 20%.

A Discord bot is idle by design, so it fits that profile unless you run something else beside it. Users report losses too. An August 2026 r/oraclecloud thread describes a free VM running a website and a Discord bot being terminated. A June 2026 r/oraclecloud thread covers new free accounts dropping from 4 OCPU / 24 GB to 2 / 12. Oracle also warns of “out of host capacity” errors when creating instances in busy regions.
On the paid side, one r/discordbots user explained why they run everything on a plain VPS instead of a bot-hosting service (their setup, not our test):
a plain vps for everything i run. once you have more than one bot plus postgres and redis, a $5-10 box with docker compose beats every bot host on price and control.
The best VPS for a Discord bot, in detail
01
RackNerd KVM VPS Special 1 GBBest for a typical botVisit RackNerd
- You pay$1.83/mo source
- Plan1 vCPU · 1 GB RAM · 20 GB SSD · 3 TB transfer
- ContractPaid yearly, 12 months up front
- LocationsLos Angeles · San Jose · Seattle · Utah +16
- ID checkNot mentioned. source
- RefundsNo refunds by default. source
- Unpaid server7 days. source
- Transparency2 of 5 checks pass what we check
RackNerd’s 1 GB special gives you 1 vCPU, 1 GB RAM and 20 GB SSD for $1.83/month, billed yearly (checked Dec 4, 2026). It renews at the same price, includes one IPv4 address and has no setup fee. The special is sold in New York, Los Angeles, Dallas and Seattle only.
This is the plan for a command or moderation bot that fits in 1 GB, which is most of them. You pay twelve months up front, and in return the monthly cost is the lowest of any pick here.
The catches come from RackNerd’s terms. There are no refunds by default. An unpaid VPS is terminated 7 days after the due date, and the data cannot be restored. Set a payment reminder and keep your bot’s code and data somewhere else.
Buy this if you know the bot will run for a year. Don’t buy it to experiment, or if you need a server in Europe. Our RackNerd review covers the rest of the terms.
Visit RackNerd$1.83/mo
02
netcup VPS pico G11.5sBest in EuropeVisit netcup
netcup’s VPS pico gives you 1 vCPU, 1 GB RAM and 30 GB SSD for $2.00/month excl. VAT, including the paid IPv4 option (checked Dec 4, 2026). It has a 12-month minimum term and runs in Nuremberg only.
Pick this if you, your database or your users are in Europe and you want the same 1 GB for a similar price before VAT.
The catches are paperwork. netcup asks for ID verification or a prepayment after your first order. Contracts renew until cancelled, with one month’s notice to the end of a month, and you can’t leave before the minimum term ends. Support is by email, and users report slow replies.
Buy this if you’ll commit for a year in the EU. Don’t buy it if you want monthly billing or quick ticket answers. See our netcup review for details.
Visit netcup$2.00/mo
03
InterServer 1 sliceBest monthly plan with room for a databaseVisit InterServer
- You pay$3.00/mo source
- Plan1 vCPU · 2 GB RAM · 40 GB SSD · 2 TB transfer
- ContractMonthly, no minimum term source
- LocationsNew York · Dallas · Los Angeles
- ID checkNot stated in the terms. source
- RefundsNo refunds by default. source
- Unpaid serverNot stated as a number of days. source
- Transparency2 of 5 checks pass what we check
InterServer’s 1 slice gives you 1 vCPU, 2 GB RAM and 40 GB SSD for $3.00/month on monthly billing (checked Dec 4, 2026). Locations in our data are New York, Dallas and Los Angeles.
This is the pick when you want 2 GB and no yearly commitment. A bot plus SQLite or a small Postgres, or a bot plus a web dashboard, fits without memory pressure.
The catch is that we haven’t checked InterServer’s account terms yet: ID checks, refunds and what happens to an unpaid server. It also has a single vCPU, which is fine for a bot and a database but thin for audio transcoding.
Buy this if you want 2 GB month to month. Don’t buy it if you need verified account terms before you sign up.
Visit InterServer$3.00/mo
04
OVHcloud VPS-1Best for music bots with LavalinkVisit OVHcloud
OVHcloud VPS-1 gives you 2 vCPU, 4 GB RAM and 40 GB NVMe for $5.35/month on monthly billing (checked Dec 4, 2026). The locations in our data are Vint Hill, Virginia and Hillsboro, Oregon.
A bot plus Lavalink plus a database is where 2 GB gets tight. This is the cheapest 4 GB plan on monthly billing from the large providers we read daily. Two vCPUs help when FFmpeg or Lavalink are busy with audio. It’s also the monthly pick in our VPS for AI agents list.
The catch is on the account side. We haven’t verified OVH’s account terms yet, and community reviews of OVH support are mixed.
Buy this if you run a music bot or your bot has outgrown 2 GB. Don’t buy it for a small command bot.
Visit OVHcloud$5.35/mo
05
Vultr Regular 1GBBest for hourly billing and region choiceVisit Vultr
- You pay$5.00/mo source
- Plan1 vCPU · 1 GB RAM · 25 GB SSD · 1 TB transfer
- ContractMonthly, no minimum term source
- LocationsNew Jersey · Chicago · Dallas · Seattle +26
- ID checkA payment-method check at sign-up: link a card with a $0.00 deposit, or make a small deposit with another method. source
- RefundsNo refunds by default. source
- Unpaid serverNo fixed deadline. source
- Transparency3 of 5 checks pass what we check
Vultr Regular 1GB gives you 1 vCPU, 1 GB RAM and 25 GB SSD for $5.00/month, billed by usage (checked Dec 4, 2026). The plan is listed in about 30 locations in our data.
Usage billing suits testing and moving servers: create one, try the bot, delete it, pay for the hours. The long location list helps if you want the server near a database you already run elsewhere.
The catch is price. The same 1 GB costs a lot more here than at RackNerd. We also haven’t checked Vultr’s account terms. Pay for it when you’ll use the panel, snapshots or API.
Visit Vultr$5.00/mo
Comparison table: 512 MB to 4 GB plans for Discord bots
Discord bot hosting plans from 512 MB to 4 GB, in USD, checked Dec 4, 2026. “Excl. VAT” where marked.
| Plan | You pay | Billing and catch | Visit |
|---|---|---|---|
#1RackNerd Special 1 GB1 vCPU / 1 GB / 20 GB SSD | $1.83/mobilled yearly | Yearly; US only, no refunds, 7-day deletion | Visit |
#2netcup VPS pico G11.5s1 vCPU / 1 GB / 30 GB SSD | $2.00/moincl. $0.54 IPv4, excl. VAT, billed yearly | 12-month minimum; Nuremberg; ID or prepayment | Visit |
#5Vultr Regular 1GB1 vCPU / 1 GB / 25 GB SSD | $5.00/mo | Usage billing; many regions | Visit |
DigitalOcean Basic 1GB1 vCPU / 1 GB / 25 GB SSD | $6.00/mo | Usage billing; terms not checked | Visit |
Linode Nanode 1GB1 vCPU / 1 GB / 25 GB SSD | $5.00/mo | Monthly; terms not checked | Visit |
Hetzner CPX021 vCPU / 1 GB / 20 GB NVMe | $6.59/moincl. $0.60 IPv4, excl. VAT | Hourly; ID or prepayment may be requested | Visit |
RackNerd Special 2.5 GB2 vCPU / 2.5 GB / 30 GB SSD | $2.33/mobilled yearly | Yearly; same terms as the 1 GB | |
#3InterServer 1 slice1 vCPU / 2 GB / 40 GB SSD | $3.00/mo | Monthly; terms not checked | Visit |
netcup VPS nano G11.5s2 vCPU / 2 GB / 60 GB SSD | $3.36/moincl. $0.54 IPv4, excl. VAT, 6-month minimum | 6-month minimum; Nuremberg | Visit |
#4OVHcloud VPS-12 vCPU / 4 GB / 40 GB NVMe | $5.35/mo | Monthly; terms not checked | Visit |
RackNerd Special 4 GB4 vCPU / 4 GB / 60 GB SSD | $4.00/mobilled yearly | Yearly; same terms as the 1 GB |
The RackNerd 2.5 GB special is worth a look if you’d rather pay yearly than monthly for 2 GB or a bit more. Hetzner’s CPX02 bills by the hour, but the IPv4 is extra and Hetzner may ask for a government ID or a card prepayment before it processes an order.
Keep your Discord bot running
With self-managed discord bot hosting, nobody restarts the bot for you. You need a process manager that restarts it after a crash or reboot, and a token that stays on the server.
Before you deploy, spend half an hour on securing a new VPS. The commands below assume Ubuntu 24.04 and the sudo user yourname from that guide.
Python: a systemd service
Install the venv module, then put the bot and its own Python environment in one folder:
sudo apt update && sudo apt install -y python3-venv
mkdir -p ~/mybot && cd ~/mybot
python3 -m venv .venv
.venv/bin/pip install -U discord.py
In bot.py, read the token from the environment, never from the code: client.run(os.environ["DISCORD_TOKEN"]) (with import os at the top). Then store the token in a root-only file:
sudo nano /etc/mybot.env
DISCORD_TOKEN=paste-your-token-here
sudo chmod 600 /etc/mybot.env
sudo nano /etc/systemd/system/mybot.service
[Unit]
Description=My Discord bot
After=network-online.target
Wants=network-online.target
[Service]
User=yourname
WorkingDirectory=/home/yourname/mybot
EnvironmentFile=/etc/mybot.env
ExecStart=/home/yourname/mybot/.venv/bin/python bot.py
Restart=on-failure
RestartSec=5
[Install]
WantedBy=multi-user.target
Restart=on-failure restarts the bot when it exits with an error, per the systemd.service manual. RestartSec=5 waits five seconds first, so a crash loop doesn’t spin. Start it and watch the log:
sudo systemctl daemon-reload
sudo systemctl enable --now mybot
journalctl -u mybot -f
Node.js: PM2
For a discord.js bot, PM2 does the same job. Its docs say apps are restarted automatically when they crash. Put the token in a .env file next to index.js (one line, DISCORD_TOKEN=...). Load it at the top of your code with process.loadEnvFile(), built into Node since 20.12.0. Then:
sudo npm install -g pm2
pm2 start index.js --name mybot
pm2 startup
pm2 startup prints one sudo env PATH=... command. Copy and run it, then save the process list so it comes back after a reboot, as the PM2 startup docs describe:
pm2 save
If a leak slowly eats memory, pm2 start index.js --name mybot --max-memory-restart 300M restarts the bot when it passes that limit.
Never commit the bot token
Discord’s own getting started guide says to never share your token “or check it into any kind of version control”. Anyone with the token can act as your bot. Add .env to .gitignore before your first commit. If a token ever lands in a repo, a screenshot or a paste, open the Developer Portal, go to the Bot page and click Reset Token. The old one stops working.
Common mistakes
- Paying for 4 GB before you’ve measured the bot. Run it on 1 GB, watch
free -mfor a week, then decide. - Running Lavalink, a database and the bot on 1 GB. Music setups need 2 GB at least.
- Picking a yearly plan to experiment. RackNerd has no refunds by default, and netcup won’t let you leave before the minimum term ends.
- Forgetting VAT and IPv4. netcup and Hetzner prices exclude VAT, and Hetzner charges for IPv4 separately.
- Hard-coding the token in
bot.pyorindex.js, then pushing it to GitHub. - Trusting a free host that sleeps, then wondering why the bot is offline every morning.
Questions
How much RAM does a Discord bot need?
A simple discord.py or discord.js bot runs in 512 MB, and 1 GB gives the OS and updates room to breathe. Plan on 2 GB for a bot with a database or dashboard, and 2–4 GB for a music bot running Lavalink. Neither library publishes an official figure, so these are our recommendations.
Can I host a Discord bot for free 24/7?
Not reliably. Free discord bot hosting that sleeps drops the Gateway connection. Oracle Cloud’s Always Free tier stays awake, but Oracle may reclaim instances that stay under 20% CPU, network and memory use for 7 days, and a Discord bot often does.
Is a VPS better than a Discord bot hosting panel?
For a bot you wrote, usually yes. A VPS gives you root access, any library or system package you need, and room for a database or Lavalink. A panel is simpler if you never want to touch Linux, but you work within its limits.
When does a Discord bot need sharding?
Discord requires sharding once an app is in 2,500 or more guilds, and each shard can hold at most 2,500 guilds. Below that, one process and one connection are enough. discord.py and discord.js both include tools for sharding when you get there.
Where should I host my Discord bot?
Near you, for faster SSH, and near any database the bot talks to. We haven’t measured latency from these providers to Discord, so we don’t rank locations for it.
Key takeaways
- Discord bot hosting is cheap: a typical bot fits in 512 MB to 1 GB, and RackNerd’s 1 GB special at $1.83/month (billed yearly) is the cheapest plan we’d pick.
- A VPS for a Discord bot with Lavalink, a database or a dashboard needs 2 GB or more; OVHcloud VPS-1 at $5.35/month covers a music bot.
- Caches and guild count make a bot grow; Discord requires sharding at 2,500 guilds.
- Free hosts that sleep take the bot offline. Oracle Always Free stays awake but may reclaim idle instances.
- Run the bot under systemd or PM2 with automatic restarts, and keep the token out of your code and your repo.
- VPS for gamingPicking a VPS for gaming? Compare Geekbench 6 single-core speed per dollar, official RAM needs for 5 games, DDoS terms, and see our 3 top monthly picks.
- Minecraft Server on UbuntuHow to run a Minecraft Java server on Ubuntu 24.04: install Java, download the server jar, accept the EULA, open port 25565, and run it as a systemd service.
- VPS for MinecraftRun a Minecraft server on a VPS: how much RAM vanilla and modpacks need, why single-thread CPU speed matters most, and 5 plans ranked by real monthly cost.