How to Host a Discord Bot for Free
A Discord bot needs a running Node.js or Python process, its application token and enough memory for its dependencies. You can test a small bot on consolex1’s free plan, which includes 256 MB RAM and 512 MB storage.
1. Create and test the bot locally
Create an application and bot in the Discord Developer Portal, invite it to a test server with only the permissions it needs, and confirm that it starts on your own machine. Do not share or commit the bot token.
2. Prepare the project files
Include the source code and dependency manifest (such as package.json or requirements.txt). Ensure the application reads its token from an environment variable instead of a hard-coded value.
3. Create a hosting instance
Join the consolex1 Discord server, complete verification, then run /account register and /server create in the commands channel. Open the created instance in the Pterodactyl panel. The free plan is limited to 256 MB RAM and 512 MB storage, so keep dependencies and logs small.
4. Upload, configure and start
Upload files using SFTP or the panel file manager, set the secret token in the instance environment, install dependencies and configure the correct startup command. Check the live console for startup errors.
5. Verify and maintain the bot
Confirm the bot is online and responds in your test server. Free hosting does not include automated backups, so keep a separate copy of source code and any important data.