COSMO

Link once.
Build freely.

Generate your WhatsApp session, pick from 200+ plugins and deploy your bot in minutes.

Get startedDeploy guide
COSMO logo
0Total scans
200+Plugins
0Community added
7Deploy methods
01 / Start

How it works

1

Sign in

Log in with GitHub and fork the repo. Under a minute.

2

Link WhatsApp

Scan a QR or use a pair code. Session ID lands in your chat.

3

Deploy

Pick a platform below, paste your variables and go live.

02 / Session

Session generator

Pick a method. Keep your Session ID private, it works like a password.

03 / Library

200+ plugins

Official plugins plus everything the community adds. Once added a plugin stays, only the admin can remove it. The red badge means verified by COSMO.

200+ plugins0 added from the plugin site
Loading plugins...
04 / Deploy

Deploy your bot

Choose a platform and follow the steps. Get your Session ID first, you need it in step 4.

Render

Easiest option for most people. The free plan works, and UptimeRobot keeps it awake 24/7.

  1. Fork the Cosmo bot repo on GitHub and sign up at render.com.
  2. Click New, choose Web Service and connect your fork.
  3. Set Runtime to Node, Build Command npm install, Start Command npm start.
  4. Open Environment and add the config variables below. SESSION_ID is required.
  5. Click Create Web Service. When the log says connected, the bot is live.
  6. Copy your Render URL from the top of the dashboard, for example https://your-app.onrender.com, and set it as the PING variable.
24/7

Keep it alive with UptimeRobot

Render free services go to sleep after about 15 minutes without traffic. A free UptimeRobot monitor visits your URL every 5 minutes, so the bot never sleeps.

  1. Sign up free at uptimerobot.com and open the Dashboard.
  2. Click + New monitor (or Add New Monitor).
  3. Set Monitor Type to HTTP(s) and give it a friendly name like Cosmo Bot.
  4. Paste your Render URL as the URL.
    https://your-app.onrender.com
  5. Set the Monitoring Interval to 5 minutes and click Create Monitor.
  6. Wait a minute until the status shows Up. Your bot now stays online 24/7.

Heroku

Classic one-click style deploy with config vars.

  1. Fork the repo and create an app at dashboard.heroku.com.
  2. Open Deploy, connect GitHub and select your fork.
  3. Go to Settings, then Reveal Config Vars, and add the variables below.
  4. Press Deploy Branch, then in Resources switch the worker or web dyno on.

Koyeb

Fast deploys straight from GitHub.

  1. Fork the repo and sign in at koyeb.com.
  2. Click Create Service, pick GitHub and select your fork.
  3. Choose the Buildpack builder, run command npm start.
  4. Add the variables below under Environment variables.
  5. Select the free instance and press Deploy.

Railway

Simple dashboard with live logs.

  1. Fork the repo and sign in at railway.app.
  2. Click New Project, then Deploy from GitHub repo.
  3. Open the Variables tab and add the config variables below.
  4. Railway builds automatically. Watch Deployments for the logs.

Panel

For hosting panels such as Pterodactyl or bot hosting panels.

  1. Create a Node.js server in your panel and upload the repo files, or clone it from the console.
  2. Open the Startup tab and set the start command to npm start.
  3. Add the config variables below in Startup or in a .env file.
  4. Press Start and watch the console.

VPS

Full control on any Linux server. Keep it running with PM2.

  1. Connect with SSH and install Node.js 18 or newer and git.
  2. Clone your fork and install packages.
    git clone https://github.com/YOUR-USER/Cosmo.git
    cd Cosmo
    npm install
  3. Create a .env file and add the config variables below.
  4. Start it with PM2 so it survives restarts.
    npm i -g pm2
    pm2 start npm --name cosmo -- start
    pm2 save && pm2 startup

Ubuntu

Fresh Ubuntu 22.04 or 24.04 setup, copy and paste.

  1. Update the system and install the basics.
    sudo apt update && sudo apt upgrade -y
    sudo apt install -y git ffmpeg curl
  2. Install Node.js 20.
    curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash -
    sudo apt install -y nodejs
  3. Clone the repo, install and add your .env file.
    git clone https://github.com/YOUR-USER/Cosmo.git
    cd Cosmo && npm install
    nano .env
  4. Run it in the background.
    sudo npm i -g pm2
    pm2 start npm --name cosmo -- start
    pm2 save && pm2 startup
05 / Config

Config variables

Copy the whole file in one tap and paste it into your platform's environment screen.

.env
SESSION_ID=COSMO~...
MODE=public
PREFIX=.
RENDER_API_KEY=key
LANG=english
MENU_DATA=BotName,OwnerName,https://image-link
PING=Cosmo
Never share your SESSION_ID or post it in public repos. Anyone with it can use your WhatsApp account.