Discord bot hosting FAQ

Get help with setup, hosting, billing and keeping your bot online.

31 answers · Updated

Getting started

5 answers

How do I host a Discord bot for free?

Upload your bot's code to a free Discord bot host and set your token as an environment variable. discordbothost's free plan runs one bot in its own 256 MB container with no idle sleep; you renew it once every 7 days. Guide

What's the best free Discord bot hosting?

It depends on what you'll trade. discordbothost gives 256 MB with a weekly renewal. bot-hosting.net gives 256 MB with renewal every 4 days and hourly backups. Botkeep and Daki list 512 MB. fps.ms gives 128 MB with a daily renewal. Comparison

What's the best Discord bot hosting overall?

For most bots, a dedicated bot host with a flat price and no sleep. discordbothost is the cheapest always-on option we found at $0.99/month for 512 MB. Comparison of 10 hosts

What's the cheapest paid Discord bot hosting?

For 512 MB: discordbothost Starter at $0.99/month, then Sparked Host at $1.00 (no backups by default). For 128 MB: fps.ms at €0.59. Real prices

Do I need a credit card for free hosting?

Not on discordbothost's free plan. Sign in with Discord, Google, GitHub or email and verify your email address.

Staying online

6 answers

How do I keep my bot online 24/7?

Run it on an always-on host that doesn't sleep idle apps and restarts crashes. Guide

Why does my bot go offline when I turn off my PC?

The bot is a program running on your PC. Move it to a host. How to move

Why does my bot go offline after a few minutes on a free platform?

Some platforms sleep idle apps: Render's free web services after 15 minutes without traffic, and Heroku Eco web dynos after 30 minutes. All causes

Do I need UptimeRobot to keep my bot awake?

Only on platforms that sleep. discordbothost never puts a quiet bot to sleep.

What happens if my bot crashes on discordbothost?

Bots restart automatically after a crash. Repeated crashes pause restarts; check the console before starting again. Paid plans also post a crash alert to a Discord channel.

What happens if I forget to renew a free bot on discordbothost?

It's suspended at expiry, and its files are kept for 7 more days. discordbothost reminds you 48 and 24 hours before. Paid plans don't need renewing.

Resources

4 answers

How much RAM does a Discord bot need?

A small discord.js or discord.py bot often fits in 256 MB. JDA and larger bots usually need 512 MB–1 GB, and large or sharded bots more. Guide

Is 256 MB enough?

For a small Node or Python bot in a few servers, usually yes. Watch the memory graph and move up when the peak gets close to the limit.

Which languages does discordbothost support?

JavaScript, Python, Java, Go, Rust, and more. Differences

Does discordbothost include a database?

Pro includes 1 database and Plus includes 2. Free and Starter don't include one.

Deploying

3 answers

Can I deploy my bot from GitHub?

Yes. Free and paid plans redeploy public repositories on every push. Paid plans also support private repositories. Guide

Where do I put my bot token?

In an environment variable on your host, never in your code or repo.

How do I upload files without GitHub?

Use the web file manager, a zip upload or SFTP.

Errors

5 answers

What does "TokenInvalid" or close code 4004 mean?

The token is wrong or was reset. Copy a fresh one from the Developer Portal into your environment variable. Fixes

What does "Disallowed intent(s)" (4014) mean?

Your code requests a privileged intent that isn't switched on for your app. Enable it under Bot → Privileged Gateway Intents.

Why is message.content empty?

Message Content is a privileged intent. Enable it, or use slash commands.

When do I need sharding?

At 2,500 servers. Discord refuses unsharded connections beyond that with close code 4011. Sharding explained

Why is my bot getting rate limited?

It's going over per-route limits or the 50 requests/second global limit. Or its IP was restricted after 10,000 invalid requests in 10 minutes, which can happen on shared IPs. Rate limits explained

Choosing

2 answers

What's a good alternative to Replit, Heroku or Railway for a bot?

A dedicated Discord bot host costs less for a single bot and doesn't sleep. discordbothost runs one from $0.99/month, or free at 256 MB. Platform comparison

What's a good bot-hosting.net alternative?

discordbothost: the same 256 MB free RAM with a 7-day renewal instead of 4, and paid plans from $0.99 instead of $2.29. Alternatives

Accounts and billing

6 answers

How does free hosting renew?

Free bots run for 7 days at a time. Renew opens when the bot goes offline. Renewing starts it again. Your files and variables are kept until the deletion date shown on your bot page, then deleted.

How do I pay or cancel?

Paid plans use Stripe Checkout. Manage your subscription and card in the customer portal from your account. Cancellation takes effect at the end of the paid period. Prices are in USD and don't include tax. Where sales tax or VAT applies, it's added at checkout.

Where can I check resource limits and prices?

The pricing page lists the current plans, memory, disk, CPU, databases, backups, ports, and monthly and yearly prices. RAM is an allocated limit.

Can I move an existing bot?

Yes, if it fits a supported runtime and the plan limits. Upload source and dependencies, set secret variables privately, move persistent data, and stop the old copy before testing the new one.

How do I cancel a paid plan?

Open Billing and use Manage in Stripe to cancel. Your bot runs until the paid period ends, and cancellation stops future charges.

Can you promise uninterrupted uptime?

No. Maintenance, network failures, Discord disconnects, and code errors can interrupt a bot. Keep a recovery copy of your source and persistent data.