FlexoHost Logo
FlexoHost Logo
Back to guides
VPS4 min readNov 8, 2026

How to Install OpenClaw on a VPS (Formerly Clawdbot and Moltbot)

Install OpenClaw on an Ubuntu VPS, run onboarding, keep the gateway running 24/7 and open the dashboard safely. Server size and commands.

FlexoHost Team

Technical guides & hosting tips

On this page
How to Install OpenClaw on a VPS (Formerly Clawdbot and Moltbot)

OpenClaw (earlier called Clawdbot, then Moltbot) is an open-source AI agent that connects a model from OpenAI, Anthropic, Google or a local model to chat apps like WhatsApp, Telegram, Slack and Signal. Running it on a VPS keeps your assistant online 24/7.

Disclosure: FlexoHost wrote this guide and sells VPS plans. The steps work on any Ubuntu VPS. Our OpenClaw hosting includes setup if you prefer not to do it yourself.

What you need

Item Recommendation
VPS Ubuntu 22.04 or 24.04, 2 GB RAM to start, 4 GB for browser automation or several channels
AI model An API key from your model provider
Chat app A Telegram bot token, or your WhatsApp account to pair
Time About 15 minutes

Choose a BDIX VPS for a bot that talks to people in Bangladesh, or a USA VPS if it mostly calls international AI APIs and websites.

Step 1: connect and create a normal user

Running OpenClaw as a normal user is safer than root:

ssh root@YOUR_SERVER_IP
apt update && apt upgrade -y
adduser claw
usermod -aG sudo claw
su - claw

Step 2: install OpenClaw

The official installer adds the openclaw command and installs Node.js if needed:

curl -fsSL https://openclaw.ai/install.sh | bash

If you already use Node.js 24 or newer, you can install with npm instead:

npm install -g openclaw@latest

Check the install:

openclaw --version

Step 3: run onboarding and install the background service

openclaw onboard --install-daemon

The wizard asks for your model provider and API key, names your assistant and offers to connect a chat channel. You can skip channels now and add them later. The --install-daemon option installs the gateway as a service so it starts on its own; on Linux this is a systemd user service.

So the service keeps running after you log out, enable lingering for your user:

sudo loginctl enable-linger $USER

Check that it is running:

openclaw gateway status
systemctl --user status openclaw-gateway

Step 4: connect Telegram or WhatsApp

  • Telegram: create a bot with @BotFather (/newbot), copy the token and add it when onboarding asks, or later as the OpenClaw Telegram channel docs describe.
  • WhatsApp: pair your account when onboarding offers it.

For any channel others can reach, use pairing or an allow-list instead of leaving it open to everyone.

Step 5: open the dashboard safely

The dashboard listens on 127.0.0.1:18789 on the server. Do not open that port to the internet. From your own computer, create an SSH tunnel:

ssh -L 18789:127.0.0.1:18789 claw@YOUR_SERVER_IP

Then open http://127.0.0.1:18789/ in your browser.

Step 6: logs and updates

openclaw logs --follow          # watch what the assistant is doing
npm install -g openclaw@latest  # update an npm install

If you used the installer script, running it again also updates OpenClaw.

Prefer not to do it yourself?

FlexoHost's OpenClaw hosting is a VPS with OpenClaw installed by our team, on BDIX (Dhaka) or USA servers, paid in taka with bKash. You can also run n8n on the same VPS if it has enough memory.

Sources: OpenClaw installation documentation (docs.openclaw.ai) and its install script.

সাধারণ জিজ্ঞাসা (FAQ)

Is OpenClaw the same as Clawdbot or Moltbot?

Yes. The project was first called Clawdbot, then Moltbot, and is now OpenClaw.

How much RAM does OpenClaw need on a VPS?

OpenClaw does not publish a fixed minimum. With a hosted AI model, 2 GB is enough to start; 4 GB is a safer choice for browser automation, several channels or long memory.

Which Node.js version does OpenClaw need?

A current Node.js 24 or newer. The official installer script installs a suitable Node version if it is missing.

Should I open port 18789 to the internet?

No. Keep the dashboard on the server and reach it through an SSH tunnel, as shown in this guide.

Can FlexoHost install OpenClaw for me?

Yes. With FlexoHost's OpenClaw hosting, our team sets it up on your VPS, and you keep full root access.

কোনটা নেবেন বুঝতে পারছেন না?

৫টা প্রশ্নের উত্তর দিন, ১ মিনিটে আপনার সাইটের জন্য সঠিক প্ল্যান আর দাম দেখুন।

প্ল্যান খুঁজুন

Need fast hosting for your website?

NVMe SSD, LiteSpeed, free SSL and 24/7 support, with servers in Bangladesh (BDIX) and abroad.

Related guides

Need Help? We Are Here To Help You

Please feel free to consult with one of our experts, who will thoroughly evaluate your specific requirements and provide a tailored proposal that perfectly aligns with your company's unique needs and realities.