Node.js & Bun for Discord

Free discord.js bot hosting

Deploy discord.js v14, Sapphire, Discordx or Eris bots in an isolated Linux container with modern Node.js or Bun, automatic npm install, encrypted environment variables and a real-time browser console — free with no credit card, or $1/month for unattended 24/7 uptime.

Node 20+and Bun runtimes
256 MBfree container RAM
MySQLincluded free
$1/mo1 GB RAM 24/7 plan

Built for modern discord.js v14+ and TypeScript workflows

Discord.js bots rely on persistent WebSocket shards, slash command registration scripts and native npm packages. On HOKAS, your container runs full Node.js (or Bun for faster startup and lower memory footprint) with unrestricted outbound access to the Discord API and Gateway.

Compile TypeScript with tsx or tsc during startup, store DISCORD_TOKEN and CLIENT_ID safely in the Environment Variables panel, and stream stdout/stderr live in the browser console.

Everything a discord.js project needs in one panel

  • npm, pnpm, yarn and Bun package managers available directly in the browser terminal.
  • GitHub integration: push to main and redeploy your discord.js bot without manual zip uploads.
  • Built-in MySQL database + phpMyAdmin-style browser manager for economy, leveling and moderation bots (compatible with Prisma, Drizzle, Sequelize and mysql2).
  • Free subhub.tr HTTPS subdomain if your bot also serves an OAuth2 dashboard or Stripe/top.gg webhook.
  • Up to 3 free servers per account — run your production bot, test bot and web API side by side.

Quickstart: discord.js v14 bot on HOKAS

Upload package.json and index.js (or link your GitHub repo), add DISCORD_TOKEN under Environment Variables, and set the startup command below.

index.js (discord.js v14) Startup command: npm install --omit=dev && node index.js
const { Client, Events, GatewayIntentBits } = require('discord.js');

const client = new Client({
  intents: [GatewayIntentBits.Guilds, GatewayIntentBits.GuildMessages]
});

client.once(Events.ClientReady, (c) => {
  console.log(`Ready! Logged in as ${c.user.tag} across ${c.guilds.cache.size} guilds.`);
});

client.on(Events.InteractionCreate, async (interaction) => {
  if (!interaction.isChatInputCommand()) return;
  if (interaction.commandName === 'ping') {
    await interaction.reply(`Pong! Gateway latency: ${client.ws.ping}ms`);
  }
});

client.login(process.env.DISCORD_TOKEN);
Memory-optimized startup (256 MB Free Plan) Startup command: npm ci --omit=dev && node --max-old-space-size=200 index.js
{
  "name": "my-discord-bot",
  "version": "1.0.0",
  "main": "index.js",
  "scripts": {
    "start": "node --max-old-space-size=200 index.js"
  },
  "dependencies": {
    "discord.js": "^14.16.3"
  }
}

Choosing a HOKAS plan for your discord.js bot

Bot ProfileExpected RAMUptime RequirementRecommended Plan
Slash-command / utility bot (1–25 servers) 60 – 140 MB Development & casual use Free Plan ($0, 256 MB RAM)
24/7 community / moderation bot + MySQL 120 – 400 MB Always-on 24/7 Starter ($1/mo, 1 GB RAM, 1 vCPU)
Multi-guild bot with web dashboard / Prisma 350 – 900 MB Always-on 24/7 + DDoS Standard ($2/mo, 2 GB RAM, 2 vCPU)
Sharded bot / audio & canvas image rendering 1.2 – 3.5 GB High CPU & memory Plus ($3/mo) or Pro ($4/mo, 4 GB RAM)

Deploy a discord.js bot in four steps

  1. Sign up freeCreate your HOKAS account with no credit card required.
  2. Choose Node.js (or Bun)Create a free container or a $1/month 24/7 Starter server.
  3. Upload code or link GitHubAdd index.js and package.json, then set DISCORD_TOKEN in Environment Variables.
  4. Run & monitorSet your startup command to npm install && node index.js and press Start.

Plans and pricing

PlanvCPURAMDiskPrice
Free 0.3 256 MB 512 MB Free forever
Starter 1 1 GB 5 GB $1 /month
Standard 2 2 GB 8 GB $2 /month

Billed monthly or yearly. The yearly price is ten times the monthly price. Bandwidth is unmetered on every plan. See all plans

Frequently asked questions

Can I host a discord.js v14 bot for free?

Yes. The HOKAS Free Plan includes 0.3 vCPU, 256 MB RAM and 512 MB disk — plenty for a standard discord.js v14 bot. There are no ads; you extend the renewal timer via a quick human verification.

Does HOKAS support TypeScript and ESM for discord.js?

Yes. Modern Node.js 20+ and Bun runtimes support native ES modules ("type": "module"), tsx, ts-node and pre-built dist/ bundles.

How do I register slash commands on HOKAS?

Open the browser terminal in your server panel and run node deploy-commands.js once whenever you add or change slash command definitions.

Can I use Bun instead of Node.js to save RAM?

Yes. Selecting the Bun server type runs discord.js with lower baseline memory usage and near-instant package installs via bun install.

How do I keep my discord.js bot online 24/7 without manual renewals?

Upgrade to the Starter plan for $1/month (1 vCPU, 1 GB RAM, 5 GB disk) for uninterrupted 24/7 uptime.

Ready to deploy?

Create a free account, set up your server and have your project running in minutes. No credit card needed.

Developer resources & guides

More HOKAS hosting pages