Discord bot hosting: where to run your bot 24/7
A Discord bot only answers while its program runs somewhere. You can host it free with renewals and tight limits, on your laptop while it is awake, or for about $1–5 a month on a bot host, a VPS or a cloud platform. Here is what each option gives you, checked 22 November 2026.
Try it on your own project
Choose AI Claude CodeCodexGoogle AntigravityCursorVS CodeAnother AI
Claude Code can add BitHut by itself. Paste this into it:
Add the BitHut MCP server for me: run “claude mcp add --transport http bithut https://api.bithut.app/mcp”.
Then restart Claude Code, type /mcp, pick bithut and sign in: sign in to BitHut in your browser and press Allow.
Ask it: “Show my BitHut projects.” If it answers, you are connected.
Or run the command yourself
Run this command in a terminal.
claude mcp add --transport http bithut https://api.bithut.app/mcp
Start Claude Code, type /mcp, pick bithut and sign in. Sign in to BitHut in your browser and press Allow.
Already added BitHut in Claude, and you sign in to Claude Code with the same Claude account? Then BitHut is already in Claude Code.
Codex can connect BitHut by itself. Paste this into it:
Connect the BitHut MCP server for me: run “codex mcp add bithut --url https://api.bithut.app/mcp”, then “codex mcp login bithut”. The address must be exactly https://api.bithut.app/mcp: if a backslash got into it when pasting, remove it before adding.
A page opens in your browser: sign in to BitHut and press Allow.
Ask it: “Show my BitHut projects.” If it answers, you are connected.
Or run the commands yourself
Run these two commands.
codex mcp add bithut --url https://api.bithut.app/mcp codex mcp login bithut
The second one opens a page in your browser. Sign in to BitHut and press Allow.
Antigravity can add BitHut by itself. Paste this into its agent:
Add the BitHut MCP server for me: in ~/.gemini/config/mcp_config.json, under “mcpServers”, add "bithut": {"serverUrl": "https://api.bithut.app/mcp"}.
When Antigravity asks, sign in to BitHut and press Allow.
Ask it: “Show my BitHut projects.” If it answers, you are connected.
Or add it yourself
In the Antigravity editor, click … at the top of the agent panel, then MCP Servers, Manage MCP Servers, View raw config.
Under “mcpServers”, add this line and save the file.
"bithut": {"serverUrl": "https://api.bithut.app/mcp"}
When Antigravity asks, sign in to BitHut and press Allow.
Cursor can add BitHut by itself. Paste this into its chat:
Add the BitHut MCP server to Cursor for me: in ~/.cursor/mcp.json, under “mcpServers”, add "bithut": {"url": "https://api.bithut.app/mcp"}.
Then open Cursor Settings, find BitHut among the MCP servers, sign in and press Allow.
Ask it: “Show my BitHut projects.” If it answers, you are connected.
Or add it yourself
In ~/.cursor/mcp.json, under “mcpServers”, add this line and save the file.
"bithut": {"url": "https://api.bithut.app/mcp"}
Open Cursor Settings, find BitHut among the MCP servers, sign in and press Allow.
Open the Command Palette (Ctrl+Shift+P, on a Mac ⇧⌘P) and run “MCP: Add Server”.
Choose HTTP, paste this address and name the server bithut.
https://api.bithut.app/mcp
When VS Code asks, sign in to BitHut and press Allow.
Ask it: “Show my BitHut projects.” If it answers, you are connected.
Find where your AI app adds MCP servers. It may be called MCP servers, connectors or tools.
Add a remote (HTTP) server with this address.
https://api.bithut.app/mcp
If it asks how to sign in, choose OAuth. Sign in to BitHut and press Allow.
Ask it: “Show my BitHut projects.” If it answers, you are connected.
Can’t find the setting? Ask your AI: “How do I add a remote MCP server here?”
Copy the prompt into it: Put my Discord bot on BitHut
The short answer
To host a Discord bot, run its program on a computer that never sleeps and keep it connected to Discord. Free hosts exist, but the ones we checked ask you to renew every day or every few days and give the bot a few hundred megabytes of memory. Paid hosting starts at $1 a month on a bot host and $4–5 a month on a VPS or a cloud platform. For a bot that has to answer at 3 a.m. without you checking on it, budget a few dollars a month.
Options and prices, checked 22 November 2026
| Price | Memory | Catch | |
|---|---|---|---|
| fps.ms free | $0 | 128 MB | renew every day, or the bot goes offline |
| bot-hosting.net free | $0 | 256 MB | renew every 4 days |
| SparkedHost Basic | $1/month | 512 MB | one bot per plan |
| Your laptop | nothing extra | what the laptop has | stops when it sleeps or restarts |
| DigitalOcean Droplet | $4/month | 512 MiB | a bare server you set up and update yourself |
| Railway Hobby | $5/month, includes $5 of usage | pay for what you use | the bill follows what the bot uses |
| Render | paid for bots | depends on instance | free instances don’t cover background workers |
| BitHut Start | $5/month | 1 GB for the whole account | no free plan |
Prices are the providers’ own, before tax. BitHut’s 1 GB is shared by all the projects on your account, not given per bot.
What a Discord bot needs
- To run all the time. A classic bot keeps a live connection to Discord. Discord’s docs say “Gateway connections are persistent WebSockets”, and the app must keep sending a heartbeat (Discord Gateway). When the program stops, the bot shows offline and ignores commands.
- A token kept secret. The token is the bot’s password. Discord calls it “highly sensitive” and tells you never to share it or put it in version control (Discord quick start). If it leaks, press Reset Token on the Bot page of the Developer Portal and give the new token to your host.
- A restart after a crash. Bots crash: a bad message, a library error, a network blip. Someone has to start the program again, ideally the host, within seconds.
- One copy at a time. Two copies with the same token both react, so a command can run twice.
- Somewhere to keep data, if the bot remembers anything: levels, warnings, settings. A file database like SQLite needs a disk that survives restarts.
There is a second kind of bot. One that only uses slash commands and buttons can skip the live connection: Discord sends each interaction to a web address you give it, the Interactions Endpoint URL (Discord quick start). That bot is a small web service, not an always-on program. It still needs a public address that answers at any hour.
Free Discord bot hosting: what you get
Free bot hosts are real and fine for a bot you are trying out with friends. The limits, from their own pages:
- fps.ms: 128 MB of memory, 25% of a CPU core, 250 MB of storage. “Free, renew every day.” If you miss it, the bot goes offline; the files stay for 28 days, then the server is removed.
- bot-hosting.net: 256 MB of memory, 25% of a CPU core, 512 MB of storage, one bot. You renew it from the panel every 4 days. Paid plans start at €1.99 a month.
The catches repeat: you have to come back and renew on time, memory is tight for bots that use AI or images, and neither promises the bot stays up. Cloud platforms have free tiers too, with their own limits. Railway’s Free plan gives $1 of usage a month, and its services sleep after 5 to 10 minutes without outbound traffic (Railway). Render’s free instances cover web services, and “other service types don’t support Free instances”, so a background worker, the usual kind of bot, is paid (Render).
So “free Discord bot hosting 24/7” usually means free with a chore: renew on time and the bot keeps running.
Your laptop
Running the bot on your own computer costs nothing and is the fastest way to try changes. It stops when the laptop sleeps, loses Wi-Fi or restarts for an update, and a program you started by hand does not come back by itself. Good for building the bot, not for a server where people expect an answer. More in BitHut or your laptop.
A VPS
A virtual server is a whole computer in a data center. DigitalOcean’s smallest Droplet is $4 a month for 512 MiB of memory, 1 vCPU and 10 GiB of disk. It is cheap and has no renewals. In exchange you install the language, copy the code, set up a service that restarts the bot after a crash, install system updates and make backups. If you are happy in a terminal, it is a good price for what you get. If not, see BitHut or a VPS.
Bot hosts and cloud platforms
- Bot hosts such as SparkedHost give you a panel like a game server: upload files, press start. SparkedHost’s Basic plan is $1 a month for 512 MB and 0.5 vCPU, one bot; backups cost extra. The cheapest paid option we found.
- Railway builds the bot from your code and runs it. Hobby is $5 a month with $5 of usage included; above that you pay by the second, about $10 per GB of memory a month. A light bot may fit in the included usage, a heavy one costs more.
- Render runs bots as background workers on paid instances; its free tier is for web services.
How to choose
- Trying a bot with friends: a free host, and a reminder to renew.
- Lowest price, and you are fine with a terminal: a $4–5 VPS.
- Lowest price, no terminal, one bot: a $1 bot host.
- Several projects and no surprise bills: a fixed plan per account, such as BitHut.
- You want the bill to follow use exactly: Railway.
Whatever you pick, ask four things: does it restart the bot by itself, where is the token kept, is there a disk that survives restarts, and who makes backups.
Discord bot hosting on BitHut
BitHut runs projects your AI builds, bots included. You tell your AI “Put my Discord bot on BitHut”, and it deploys the bot for you.
- Runs all the time. When something breaks, you get a message and a task your AI can use to fix it.
- Exactly one copy. BitHut stops the old copy before the new one starts.
- The token is stored apart from the code.
- Any language, no Dockerfile. A persistent disk, so SQLite works; Postgres if you need it.
- Logs, daily backups, roll back to an earlier version, and pause the bot when you don’t need it.
- One price for the account. Start is $5 a month for 1 GB of memory, 5 GB of disk and 1 core, shared by as many projects as fit. The bill never grows on its own: at 90% you are told, and a new project that doesn’t fit is not started. Plus is $12 for 3 GB. See pricing.
BitHut has no free plan, and there is no ready Discord template yet. Your AI deploys your own bot as an always-on project: always-on templates. For Telegram there is a ready one: Telegram bot hosting.
Moving a bot from your laptop
- In the bot’s folder, tell your AI “Move this bot to BitHut”.
- Your AI sends the token from
.envstraight to BitHut as a secret, not through the chat. - It deploys the code with the project paused, then uploads the bot’s data file if there is one.
- Stop the bot on your laptop, so two copies don’t answer at once.
- Resume the project. The bot comes online and no longer needs your laptop.
Step by step: moving from your laptop.
Read next
Put it online today
Tell your AI “put it on BitHut”, then open the address it gives you.