A Discord bot is only online while its program is running somewhere. If you start it on your own PC, it goes offline as soon as you shut down or restart your computer, or if your internet connection drops briefly. To keep your bot available around the clock, you need a computer that never goes to sleep.
There are four ways to do this: free cloud services, a computer at home (such as a Raspberry Pi), a VPS, or specialized Discord bot hosting. This guide explains what each option can really do, where its limitations are, and which one is right for your bot.
Many older tutorials recommend platforms that no longer exist in the same form. Before you invest time, it’s worth checking the current situation:
- Heroku: Free dynos were discontinued in November 2022. Bots can now only run there on a paid plan.
- Glitch: Glitch discontinued project hosting in July 2025. Bots can no longer be run there.
- Replit: The “Always On” feature was removed in early 2024. Bots that run continuously now require a paid deployment (Reserved VM).
- Render: The free plan is intended for web services. These are put to sleep after 15 minutes without incoming requests. A bot that needs to stay connected to Discord at all times isn’t suited to this model, and artificially keeping it awake violates the terms of service.
- Free cloud servers: Some major cloud providers offer small, free or time-limited virtual servers. You’ll usually need to provide a payment method, have Linux skills, and take care of security and updates yourself. The terms change frequently.
A free option or your own PC is perfectly fine for initial testing. Once other servers use your bot, availability matters: a bot that regularly goes offline can quickly lose its users’ trust.
A Raspberry Pi uses little power and works well for small bots. The downsides: your bot depends on your home network and power supply. If your router goes down or your IP address changes, the bot goes offline. You’ll also need to set up operating system updates, backups, and automatic restarts after crashes yourself.
A VPS gives you full control: you install Node.js, Python, or another runtime environment yourself, upload your code, and use a process manager such as pm2 or a systemd service to make sure the bot restarts automatically after a crash or reboot. This is worthwhile if you want to run multiple services on one server or already have Linux experience. However, you’ll have to secure the server, install updates, and troubleshoot issues yourself.
With Discord bot hosting, the provider takes care of the server, so you only need to manage your bot. With ZAP-Hosting, you choose the runtime environment in the dashboard (for example, Node.js, Python, Java, Bun, Rust, or Go), select the startup file, enter your bot token, and start it. Upload your code through the file manager or connect a Git repository that syncs each time the bot starts. Alternatively, install a ready-made bot from the Marketplace. If your bot needs a database, you can add MariaDB.
The guide Set up a Discord bot walks you through the setup step by step. You can order your own Discord bot server directly from the shop.
| Free options | Raspberry Pi | VPS | Discord bot hosting | |
|---|---|---|---|---|
| Cost | Free, with limitations | One-time hardware cost, electricity | Monthly | Monthly |
| Always online | Usually not | Depends on your home network | Yes | Yes |
| Setup effort | Low to moderate | High | High | Low |
| Maintenance | Handled by the provider, but with limits | Entirely your responsibility | Entirely your responsibility | Handled by the provider |
| Best for | Tests and prototypes | Tinkerers with an interest in technology | Experienced users, multiple services | Bots that need to run reliably |
- You’re testing your first bot: Start it locally on your PC. Find guides for programming a Discord bot with JavaScript and programming a Discord bot with Python.
- You want to learn how a server works: A Raspberry Pi or a VPS will teach you the most.
- You want your bot to run reliably around the clock without having to manage the server: Choose specialized Discord bot hosting.
You can also find free Discord tools for embeds, timestamps, and permissions right in your browser.
Free options are enough for testing, but they’re rarely a reliable solution for a bot that needs to run continuously. A Raspberry Pi or VPS gives you full control, but requires time for setup and maintenance. With Discord bot hosting, your bot runs around the clock, so you can focus on its features.