Requirements
What you need
- A Veerhost VPS (Ubuntu/Debian recommended)
- Root access (or a sudo user)
- A domain is optional (IP access works fine)
Optional (for AI integrations)
- OpenAI API key (optional)
- Anthropic API key (optional)
Installation Option 1: Install on a new VPS (recommended)
Connect to your VPS
Use SSH from your computer and connect to your VPS IP using the credentials from your Veerhost VPS details.
Create your environment file (.env)
Inside the project folder, create an environment file (commonly Important: Store your
.env) and add:Required:MOLTBOT_GATEWAY_TOKEN(generate a strong token and save it)
OPENAI_API_KEYANTHROPIC_API_KEY
MOLTBOT_GATEWAY_TOKEN securely. You’ll need it to access and pair the Moltbot web interface.Deploy Moltbot using Docker Compose
Create a Docker Compose configuration for Moltbot (using the official container image and recommended ports), then start the stack using Docker Compose.
Installation Option 2: Install on an existing VPS
Check if Docker is installed
If Docker is already installed, confirm Docker and Compose are available and working.
Configure environment variables
Add your required token and any optional API keys in your
.env file.Accessing Moltbot
Find your web interface port
Your Compose file defines the port for the web interface. Once running, access Moltbot using:http://YOUR-VPS-IP:PORT
Tip: If you’re using a firewall, ensure the web interface port is allowed (and allow 80/443 if you later put it behind a reverse proxy).
Post-installation setup
Add your Gateway Token
Open the Moltbot web interface and go to Overview.
- Paste your
MOLTBOT_GATEWAY_TOKEN - Click Connect
- You should see Connected when authentication succeeds
Connect messaging channels (example: WhatsApp)
Open the RAW configuration editor:Apply and update:
- Go to Settings → Config
- Open the RAW configuration editor
+1234567890):- Click Apply
- Click Update
- Go to Channels and select Show QR
- On your phone: WhatsApp → Settings → Linked devices → Link a device
- Scan the QR code
Managing your Moltbot instance
View logs
Use Docker to view container logs when troubleshooting startup issues, connection problems, or channel pairing failures.Update Moltbot
To upgrade Moltbot:- Pull the latest image
- Recreate/restart containers using Docker Compose
Security notes
Keep credentials private
- Do not share
MOLTBOT_GATEWAY_TOKEN - Never publish API keys (OpenAI/Anthropic)
- Avoid committing
.envfiles into Git repositories
Recommended hardening
- Use a firewall and only open required ports
- Use HTTPS via a reverse proxy if exposing Moltbot publicly
- Keep your VPS updated regularly

