Back to Help & Guides
Hosting Guide

How to Host Anya Bot Node.js Client on Pterodactyl Panel

July 14, 2026 6 min read

If you want to host your own instance of the Anya Bot client, using a Pterodactyl panel is one of the most efficient methods. Pterodactyl provides sandboxed Docker containers to run Node.js applications securely. Here is a guide on setting it up.

Prerequisites

Before starting, ensure you have access to a Pterodactyl panel with Node.js support. You will also need your Discord Bot Token and MongoDB URI. These will be injected as environment variables in the panel.

Uploading Files & Installing Dependencies

1. Compress your bot folder (excluding `node_modules` and `.env`).

2. Open Pterodactyl, navigate to the File Manager, and upload the zip file.

3. Extract the contents to the root directory.

4. Ensure `package.json` specifies `"start": "node shard.js"` under scripts.

Configuring Variables and Port Allocation

In the Pterodactyl "Startup" settings, verify your startup command is correct. Ensure environment variables like `TOKEN`, `MONGO_URI`, and `PORT` are properly defined so Pterodactyl can pass them to the Docker container.

2 Views
0 Comments

Discussion (0)

No comments yet. Be the first to start the conversation!
Copied to clipboard!