Discord bot hosting in 2026: the options compared
A Discord bot keeps a gateway WebSocket open to Discord, so it needs a process that never stops and no public address. On Livops it runs as a worker for 19 credits a month (19,000 so'm). Here is how a VPS, Railway, Render, Fly.io, PythonAnywhere and Oracle's free tier compare.
By Livops team, the people who build and run LivopsUpdated
A Discord bot is a program that holds a connection to Discord open for as long as it is online. Anything that keeps a process running will host one; what differs is what a month costs, how you pay, where the server is, and how much of the machine you look after yourself. This page lists what a Discord bot needs in production, compares the usual places to run one with each provider’s own numbers, and ends with the exact livops.json for running it on Livops.
What does a Discord bot need in production?
A connection that stays open, and no public address
A bot built on discord.py, discord.js or Pycord connects to Discord’s Gateway, and Gateway connections are persistent WebSockets that need ongoing heartbeats and reconnects[1]. The bot dials out, so it needs no domain, no port and no certificate — but anything that puts idle processes to sleep takes the bot offline.
The one exception is an app that only answers slash commands and buttons. It can receive interactions at an Interactions Endpoint URL instead of over the Gateway; the two methods are mutually exclusive, and an HTTP endpoint must send its first response within 3 seconds[2]. That app is a small web server, not a background process, and is hosted like one.
The token kept out of the code
The bot token is the bot. Keep it in an environment variable, not in the repository. A wrong token does not retry its way to success: Discord closes the connection with code 4004, “Authentication failed”, and marks it as not to be reconnected[3].
Intents switched on in two places
Three Gateway intents are privileged — GUILD_PRESENCES, GUILD_MEMBERS and MESSAGE_CONTENT — and must be enabled in the app’s settings in the Developer Portal before the bot asks for them[1]. Ask for one that is not enabled and Discord closes the connection with 4014[1], which discord.py reports as PrivilegedIntentsRequired. What it means and how to fix it: PrivilegedIntentsRequired.
Restarts, but not a restart loop
Something has to start the bot again when it crashes, and you need to be told why. A loop that restarts it every second is worse than none: a bot may send at most 1000 IDENTIFY calls in 24 hours, and on hitting that limit Discord ends all of the app’s sessions and resets its token[1].
Sharding, once the bot is large
Each shard handles at most 2,500 servers, and an app in 2,500 or more servers must shard[1]. Below that, one process with one connection is all you need.
Somewhere to keep data
Levels, settings and warnings have to survive a restart: a disk that is kept, or a database.
The options at a glance
| Option | What it is | Smallest paid always-on process | What you still maintain |
|---|---|---|---|
| Livops | A platform; servers in Uzbekistan | A worker: 19 credits (19,000 so’m) a month | Your code |
| A VPS in Uzbekistan | A virtual machine with root | 82,000 so’m a month: 1 vCPU, 2 GB, 30 GB HDD (SmartCloud)[4] | The system, updates, a process manager, deploys |
| Railway | A platform billed by usage | Hobby plan: $5 a month, including the same amount of usage[5] | Your code |
| Render | A platform with background workers | $7 a month: 0.5 CPU, 512 MB[7] | Your code |
| Fly.io | Virtual machines billed by the second | $2.19 a month: shared-cpu-1x, 256 MB[11] | Your code |
| PythonAnywhere | Python hosting with always-on tasks | Developer plan: $10 a month, one always-on task[12] | Your code |
| Oracle Cloud Always Free | Free virtual machines within fixed limits | Free: 2 AMD VMs with 1 GB each, or Arm with 2 OCPUs and 12 GB in total[14] | Everything a VPS needs, and keeping the VM from being reclaimed |
Other providers’ prices are from each provider’s own page, read on 20 November 2026; the dates are in Sources below. Livops prices are the ones the cabinet bills today.
Each option
Livops
A Discord bot runs as a worker: an always-on background process with no public URL. Connect a GitHub repository or upload a folder, put the token in Variables, and every git push ships a new version. Payment is in so’m through Payme or Click, Uzbekistan’s payment services, with no card. The servers are in Uzbekistan, which matters less for a Discord bot than for a website — the bot talks to Discord, not to your users — so the reasons to pick Livops here are the payment, the price in so’m, and running the bot in one project with its database. You do not get root; if you need system software of your own, a VPS is the better fit.
A VPS
The most control for the money: root, any software, as many bots as fit on the machine. The cheapest 2 GB machine at SmartCloud is 82,000 so’m a month[4]. Everything between the machine and a running bot is yours: the operating system and its updates, a systemd unit or pm2 that restarts the bot, and the deploy.
Railway
The Hobby plan is $5 a month and includes that much usage; services on Hobby and above are always-on; it is paid by credit card[5]. Its Free plan is unusual for a bot: services sleep after 5 to 10 minutes without outbound traffic, and Railway says a bot holding a WebSocket keeps itself awake[5] — so a small Discord bot can run on the Free plan, within $1 of usage a month and 0.5 GB of memory[5]. Regions are California, Virginia, Amsterdam and Singapore[6].
Render
A background worker runs continuously and receives no incoming traffic[8] — a Discord bot fits it exactly. The smallest paid size is $7 a month for 0.5 CPU and 512 MB[7]. Background workers cannot use free instances[9]. Regions are Oregon, Ohio, Virginia, Frankfurt and Singapore[10].
Fly.io
The smallest machine, shared-cpu-1x with 256 MB, is $2.19 for 30 days of continuous running, billed by the second[11] — the lowest dollar price in this table. There is no free tier, but a personal organization whose monthly bill comes to less than $5 has it waived[11], so one small bot can cost nothing in practice. A credit card is needed once the trial ends[11].
PythonAnywhere
Always-on tasks are the way to run a long-lived process there, they are restarted automatically if they crash, and they work only on paid accounts[13]. The Developer plan is $10 a month with one always-on task[12]. The free Beginner account has no always-on tasks and reaches only specific sites over HTTP(S)[12], so a Gateway bot does not run on it.
Oracle Cloud Always Free
Every tenancy gets two AMD VMs with 1/8 of an OCPU and 1 GB each, and Arm (A1) capacity equal to 2 OCPUs and 12 GB of memory, created in the home region[14]. It is a free VPS, with all of a VPS’s upkeep, plus two catches. Creation can fail with “out of host capacity” when the free shapes are taken in your region[14]. And Oracle may reclaim an Always Free instance it deems idle: over 7 days, 95th-percentile CPU below 20%, network below 20%, and on A1 memory below 20%[14]. A quiet Discord bot looks exactly like that.
VPS or platform: what do you maintain?
On a VPS — paid, or Oracle’s free one — you are the operations team: the operating system, its updates, the service that restarts the bot, and noticing when the disk fills. On a platform — Livops, Railway, Render, Fly.io, PythonAnywhere — you hand over code and the platform keeps it running; you give up root in return. If you run many bots and enjoy servers, one VPS is the cheaper path. If you have one bot and would rather work on its commands, use a platform.
Where can you run a Discord bot for free?
- Livops has no free tier for bots, workers or apps. On an account that has not paid yet, the first paid app runs for 15 minutes on a zero balance, once, so you can watch it come online; static sites are free.
- Railway has a Free plan with $1 of usage a month, up to 1 vCPU and 0.5 GB per service; a WebSocket keeps a service awake; a trial gives $5 of credit for 30 days with no card[5].
- Fly.io has no free tier, but waives a personal organization’s bill under $5 a month; a trial gives $1 of credit for 7 days[11].
- Oracle Cloud Always Free gives the VMs above at no cost, with the idle-reclamation rule[14].
- Render gives free instances only to web services, Postgres and Key Value, not to background workers[9].
- PythonAnywhere’s free account has no always-on tasks[12].
Discord bot hosting on Livops
-
Put
livops.jsonin the repository root before you create the project. Livops detects Telegram bots by their library, not Discord bots, and a project’s type is taken from the file only when the project is created; after that it is changed in the project’s settings. For discord.py or Pycord:{ "kind": "worker", "start": ".venv/bin/python bot.py" }For discord.js,
"start": "node index.js", or whatever starts your bot. Do not use"kind": "bot": on Livops that is the Telegram bot type, with Telegram’s settings. -
In the cabinet, create a project from the GitHub repository, or upload the folder or a
.zip. -
Under Variables, add the token under the name your code reads, for example
DISCORD_TOKEN, and mark it as a secret: its value is never shown again, and the assistant sees only the name. -
Deploy. The build log shows the install and the start; once it starts, the bot comes online in Discord.
What happens after that:
- Every
git pushto the connected branch starts a new deploy. If the build fails, the running version keeps running. - Logs. The project’s Logs page shows what the bot prints. Over MCP,
get_logsreturns up to 5000 lines of the running service’s log, and a log drain can post them elsewhere. - Restarts. Changed a variable? New values take effect on the next deploy; to apply them now, restart the service.
- Data. Files written to
/app/data(theDATA_DIRvariable) are kept across restarts and deploys;/tmpis wiped. For anything you would hate to lose, add a PostgreSQL database: itsDATABASE_URLis written into the worker’s variables by itself. - The clock is UTC. For a daily message in Tashkent time, add
TZ=Asia/Tashkentunder Variables, or name the zone in your scheduler.
A worker costs what a bot costs: 19 credits a month (19,000 so’m). The type and the memory tier are what you pay for, and a bigger tier costs more; current prices are always in the cabinet. One credit is 1,000 so’m, and bought credits never expire. See Pricing for plans, which give more credits than they cost, and Cron and workers for the worker type.
Questions
Does a Discord bot need a public URL?
Not if it uses the gateway, which is how discord.py, discord.js and Pycord bots normally run: the bot opens the connection to Discord, so nothing has to reach it. Only an app that takes slash commands at an Interactions Endpoint URL needs a public HTTPS address, and then it is a web app rather than a background process.
Which Livops type is a Discord bot?
A worker: an always-on background process with no public URL. The bot type on Livops is the Telegram bot, with Telegram-specific settings, so a Discord bot should say kind worker in livops.json before the project is created.
Where do I put the bot token?
Under Variables, marked as a secret, with the name your code reads, for example DISCORD_TOKEN. A secret's value is never shown again, not even to the assistant. New values take effect on the next deploy or after a restart.
Do I need sharding?
Not until the bot is in 2,500 servers. Discord allows at most 2,500 servers per shard and requires sharding above that; below it, one process with one connection is enough.
How much does a Discord bot cost on Livops?
A worker costs what a Telegram bot costs: 19 credits a month, which is 19,000 so'm at 1,000 so'm a credit. There is no free trial; on an account that has not paid yet, the first paid app runs for 15 minutes on a zero balance, once.
Do I need a card?
No. Credits are bought in so'm through Payme or Click, Uzbekistan's payment services, and no card has to be linked.
Who wrote this comparison?
The Livops team. Every price and limit of another provider on this page links to that provider's own page, with the day we read it.
Sources
- Discord — Gateway (docs.discord.com). Checked .
- Discord — Receiving and responding to interactions (docs.discord.com). Checked .
- Discord — Opcodes and status codes (docs.discord.com). Checked .
- SmartCloud — VDS plans (smartcloud.uz). Checked .
- Railway — Pricing (railway.com). Checked .
- Railway — Deployment regions (docs.railway.com). Checked .
- Render — Pricing (render.com). Checked .
- Render — Background workers (render.com). Checked .
- Render — Deploy for free (render.com). Checked .
- Render — Regions (render.com). Checked .
- Fly.io — Pricing (docs.fly.io). Checked .
- PythonAnywhere — Pricing (pythonanywhere.com). Checked .
- PythonAnywhere — Always-on tasks (help.pythonanywhere.com). Checked .
- Oracle Cloud — Always Free resources (docs.oracle.com). Checked .
Put your project online today
Connect GitHub or drop a folder. No card is asked for.
Start with your botRelated
- PrivilegedIntentsRequired / Used disallowed intents — how to fix itYour Discord bot asked for a privileged intent — Server Members, Presence or Message Content — that is not switched on for its application. Discord closes the connection with code 4014 and does not let it reconnect. Turn the intent on under Bot → Privileged Gateway Intents in the Developer Portal, or stop asking for it in code, and the bot connects.
- Run a cron job in the cloud: the options comparedA cron job is a script that starts on a schedule, does its work and exits. GitHub Actions runs one free on a public repository, but no more often than every 5 minutes and sometimes late; Render bills per second; on Livops a cron service runs every minute if you like, in UTC, for a flat 19 credits a month (19,000 so'm). Here is how they all compare.
- Telegram bot hosting in 2026: the options comparedA Telegram bot needs a process that never stops, or a public HTTPS address for a webhook. On Livops it runs from a GitHub push for 19 credits a month (19,000 so'm). Here is how a VPS, Railway, Render, Fly.io and Vercel compare.
- Docker hosting: how to deploy a Docker container or a DockerfileTo host a container you need a host that builds or pulls the image, starts its CMD, sends traffic to the port it listens on and stops it with SIGTERM. On Livops a Dockerfile at the root of the repository is built on Livops's servers and runs for 39 credits a month (39,000 so'm); a public image from Docker Hub, GHCR or Quay runs without a build. Here is what a container needs, and how a VPS, Render, Railway, Fly.io, DigitalOcean and Heroku compare.
- Livops vs Railway: which one to deploy on in 2026Pick Railway if your users are in the US, Europe or Southeast Asia, you pay by card, and you want usage-based billing with high-availability databases. Pick Livops if your users are in Uzbekistan and you want to pay through Payme or Click, with no card, at a fixed 19 credits a month for a bot or 39 for an app.
- Livops vs Render: which one to deploy on in 2026Pick Render if your users are in the US, Europe or Singapore, you pay by card, and you want free web services to start with, autoscaling and larger managed Postgres. Pick Livops if your users are in Uzbekistan and you want to pay through Payme or Click, with no card, at 19 credits a month for a bot or 39 for an app.
- Livops vs Fly.io: which one to deploy on in 2026Pick Fly.io if you want the lowest dollar price for a small always-on machine, 17 regions to place it in, and you pay by card. Pick Livops if your users are in Uzbekistan and you want to pay through Payme or Click, with no card, with a free 500 MB database and no machines to size.