Shared Compute - General Compute
$5.00/mo
1 vCPU · 1 GB · 20 GB
Choose location
Ashburn, United States
Bots and messaging
A Discord bot is a process that has to stay connected. When your laptop closes, the bot goes offline. On a VPS the process keeps running, restarts after a crash and comes back after a reboot. NodeRings lets you compare live plans from independent providers and deploy one with root access.
We measured a small discord.js bot under PM2: 70.5 MiB of memory at idle, plus 53.5 MiB for the PM2 daemon. That leaves plenty of room on a 1 GB plan for the system and a few more bots.
Recommended start: 1 vCPU, 1 GB RAM · from $5.00/mo on live plans
Live marketplace offers
These are live offers that meet the size you pick. Prices and regions come from the providers and change when they do.
What are you running?
One small discord.js or discord.py bot fits easily. Leave headroom for updates.
1 provider
Live prices, sizes and regions from independent providers in one list.
Use Node, Python, Java or Go, with PM2, systemd or Docker.
Test a bot by the hour, or keep a monthly plan for one that stays.
Create the server with Terraform, OpenTofu or an MCP assistant, then deploy your bot from CI.
The sizing below comes from a real run, with the numbers and the method published on our blog.
Keep it in a settings file on your server, not on a third-party platform.
Start small, then watch memory after a day of real use.
| Workload | Start with | Note |
|---|---|---|
| One small slash-command bot | 1 vCPU, 1 GB | About 124 MiB for the bot plus PM2 in our lab run, before the system. |
| Two to four small bots | 1 vCPU, 2 GB | Use one service per bot so a crash stays contained. |
| Bot with a local database | 2 vCPU, 4 GB | A database server wants its own memory. |
| Music bot | 2 vCPU, 4 GB | Audio streaming needs steady CPU and bandwidth. Measure with your own tracks. |
| Bot in many servers, with sharding | 2 vCPU, 4 GB and up | Caches grow with servers and members. Limit intents and sweep old data. |
Starting points, not guarantees. Measure your own workload.
Measured on a NodeRings lab host
The lab bot ran without a live Discord token, so it measures the process, not gateway traffic. Memory grows with guild count and caches.
These install on a Compute Instance for you, next to or apart from your bot.
About fifteen minutes. You need a Discord account, an SSH key and a bot application.
In the Discord Developer Portal, create an application, add a bot, and copy the token. Treat it like a password. Use a bot application. Automating a normal user account is against Discord's rules.
Choose Deploy on a plan that fits, pick Ubuntu 24.04, add your SSH key and confirm. A default payment method is required.
Log in as root and install Node.js 22 and PM2.
ssh root@YOUR_SERVER_IP
curl -fsSL https://deb.nodesource.com/setup_22.x | bash -
apt install -y nodejs
npm install -g pm2@6.0.14Make a folder for the bot and install discord.js and dotenv at fixed versions.
mkdir -p /opt/discord-bot && cd /opt/discord-bot
npm init -y
npm install discord.js@14.25.1 dotenv@16.4.7 --save-exactPut your bot code in index.js, and the token in a .env file that stays out of git. The blog post has a complete starter bot with a /ping command you can copy.
printf 'DISCORD_TOKEN=\nDISCORD_CLIENT_ID=\n' > .env
chmod 600 .env
nano .envrequire("dotenv").config();
const { Client, Events, GatewayIntentBits } = require("discord.js");
const client = new Client({ intents: [GatewayIntentBits.Guilds] });
client.once(Events.ClientReady, (c) => {
console.log(`Ready as ${c.user.tag}`);
});
client.login(process.env.DISCORD_TOKEN);As root, pm2 startup adds a systemd service for PM2 straight away. pm2 save stores the process list that comes back after a reboot, so run it again whenever you add or remove a process.
pm2 start index.js --name discord-bot --max-memory-restart 300M
pm2 startup
pm2 saveRun pm2 status and pm2 logs discord-bot. In your Discord server the bot should show as online. Use max-memory-restart as a safety net, not as a plan. If memory climbs every hour, look for caches that never expire.
Prefer code? This creates the same server. Set your API token in the environment as the provider docs describe, run terraform init and terraform apply (OpenTofu works the same), then continue from step 3.
terraform {
required_providers {
noderings = {
source = "noderings/noderings"
}
}
}
# An SSH key you added under Orchestration > SSH Keys, by its name.
data "noderings_ssh_key" "laptop" {
name = "laptop"
}
# A location the plan list shows for this plan, for example in terraform.tfvars.
variable "country" {
type = string
}
variable "city" {
type = string
}
data "noderings_marketplace_offer" "server" {
plan_code = "SC-GC-1C-1G-20"
country = var.country
city = var.city
billing_type = "usage"
}
resource "noderings_virtual_machine" "server" {
hostname = "discord-bot"
plan_id = data.noderings_marketplace_offer.server.plan_id
region_id = data.noderings_marketplace_offer.server.region_id
distro = "ubuntu_24_04"
ssh_key_ids = [data.noderings_ssh_key.laptop.id]
tags = ["bot"]
}
output "ip" {
value = noderings_virtual_machine.server.ipv4
}Set country and city to a location the plan list above shows for this plan, and the key name to an SSH key already in your account. Keep your API token in the environment, never in the file.
Connect the NodeRings MCP server to your assistant, then ask:
Create an Ubuntu 24.04 server with 1 vCPU and 1 GB RAM named discord-bot, billed hourly, using my SSH key. Show me the offer and price first.The NodeRings MCP server can search plans and create servers. It cannot run commands on the server, change firewall rules or restore backups, so do those steps over SSH and in the console.
Acceptable use is covered in section 6 of the Terms of Service. Read the Terms of Service
In our lab run a discord.js bot used 70.5 MiB at idle and the PM2 daemon used 53.5 MiB. A 1 GB plan holds a small bot comfortably. Music, big caches and sharding need more, so measure your own bot.
Both work. systemd has no extra dependency. PM2 is handy if you already use npm and want pm2 logs and pm2 monit. The Telegram page shows the systemd route.
No. Your server connects out to Discord. If you add a health check, keep it on the loopback address.
Yes. discord.py runs fine on the same plans. Use a virtual environment and a systemd service, as in the Telegram quickstart.
Pull your code over SSH or from CI, then run pm2 restart discord-bot. To skip the hand work, deploy from a GitHub Action over SSH.
Compare larger plans in the list, create a new server, copy your project and settings, and delete the old one. Hourly plans make that cheap to try.