Limited time offer: Get .COM at ₦10000 Use NGNEWCOM
India English
Kenya English
United Kingdom English
South Africa English
Nigeria English
United States English
United States Español
Indonesia English
Bangladesh English
Egypt العربية
Tanzania English
Ethiopia English
Uganda English
Congo - Kinshasa English
Ghana English
Côte d’Ivoire English
Zambia English
Cameroon English
Rwanda English
Germany Deutsch
France Français
Spain Català
Spain Español
Italy Italiano
Russia Русский
Japan English
Brazil Português
Brazil Português
Mexico Español
Philippines English
Pakistan English
Türkiye Türkçe
Vietnam English
Thailand English
South Korea English
Australia English
China 中文
Canada English
Canada Français
Somalia English
Netherlands Nederlands

How to Install and Configure OpenClaw on Debian

Buy domains, business emails, hosting, VPS and more: Get Started

Cheapest Domains in Nigeria

Get your .com.ng domain now for just ₦5,500.00

.COM.NG for ₦5,500.00 | .COM for ₦10,000.00

Debian is one of the cleanest Linux bases you can run OpenClaw on.

Thank you for reading this post, don't forget to subscribe!

It’s lean, battle-tested, and available on nearly every VPS provider worth using, and because it’s the upstream parent of Ubuntu, most Linux documentation applies directly.

There’s no OS-level friction with OpenClaw on Debian, as long as Node.js is installed correctly.

If you don’t have a VPS yet, Truehost’s OpenClaw Hosting plans come pre-configured and ready in under a minute. But if you want full control of every layer, that is, Node, Nginx, systemd, and the works, this guide walks you through the entire manual Debian path.

Before installing OpenClaw, make sure your server and accounts are ready.

You’ll need:

  • A Debian server with at least 2 GB RAM, 2 vCPU cores, and 10 GB of available storage.
  • Root or sudo SSH access so you can install software and configure system services.
  • An API key from a supported AI model provider such as Anthropic, OpenAI, or Google.
  • Node.js 22.19+, 23.11+, or 24+. If Node.js isn’t installed or the version is unsupported, the OpenClaw installer will take care of it automatically.
  • A domain name and SSL certificate if you plan to make OpenClaw accessible over the internet. This allows you to serve the Gateway securely over HTTPS in a production environment.

If you’re comparing plans, our Truehost OpenClaw Starter gives you 1 vCPU, 2 GB RAM, 50 GB NVMe, and 4 TB bandwidth, enough to run OpenClaw comfortably for a single business or team.

Steps to Install and Configure OpenClaw on Debian

Step 1: Install Node.js on Debian

Before installing OpenClaw, you need a supported version of Node.js on your Debian server. This is because Debian’s official repository doesn’t keep up with the Node.js release cycle.

If you run apt install nodejs directly, Debian may install an older Node.js version that doesn’t meet OpenClaw’s requirements. Instead, install Node.js through NodeSource so you can use a current supported release.

OpenClaw on Debian

Start by updating your package list:

sudo apt update

Then install the packages needed to add the NodeSource repository:

sudo apt install -y ca-certificates curl gnupg

Add the Node.js 24 repository:

curl -fsSL https://deb.nodesource.com/setup_24.x | sudo bash -

Now install Node.js:

sudo apt install -y nodejs

Check the installed version:

node --version

You should see a version in the supported Node.js range, such as v24.x.x. You can also check npm while you’re here:

npm --version

Once Node.js is installed correctly, you’re ready to install OpenClaw.

Step 2: Install OpenClaw on Debian

OpenClaw provides an installation script that handles the main installation process for you. It detects your operating system, checks for Node.js, installs OpenClaw, and starts the onboarding process.

OpenClaw on Debian: Install

Run:

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

After the installation finishes, start the OpenClaw onboarding process:

openclaw onboard --install-daemon

The onboarding process takes you through the important initial settings. You’ll be asked to select your model provider, enter the relevant API key, and configure the OpenClaw Gateway.

Depending on your setup, you may also configure channels and other options during onboarding.

Once you’ve completed the prompts, verify that OpenClaw was installed correctly:

openclaw --version

Then run the diagnostic check:

openclaw doctor

Finally, check the Gateway:

openclaw gateway status

The Gateway normally listens on port 18789. If the status command shows that the Gateway is running and listening, the core installation is working.

You can also open the OpenClaw dashboard with:

openclaw dashboard

This gives you access to the Control UI, where you can interact with your OpenClaw instance and continue configuring it.

Step 3: Configure OpenClaw on Debian for Production

Getting OpenClaw running is only the beginning. If the server will run continuously and handle real workloads, you’ll want to configure the service, protect the gateway, and put HTTPS in front of it.

There’s an important detail to address first.

When you run:

openclaw onboard --install-daemon

OpenClaw installs a user-level systemd service at:

~/.config/systemd/user/openclaw.service

A user-level service is useful for development and testing, but it isn’t the right setup for a production VPS that needs to run continuously.

User services normally start when the associated user session starts and can stop when that session ends. You can use loginctl enable-linger to allow a user service to continue running without an active login session, but for a dedicated production VPS, a system-level service under:

/etc/systemd/system/

is the cleaner approach.

For production, distinguish between the two:

  • User-level systemd service: suitable for development, testing, or personal environments.
  • System-level systemd service: suitable for a production VPS that needs OpenClaw running continuously.

You should also keep your API credentials out of publicly accessible configuration files. Store sensitive environment variables securely and load them through the service configuration rather than placing keys directly in commands or application code.

Next, put Nginx in front of the OpenClaw Gateway. Nginx acts as the reverse proxy, allowing you to expose your domain over HTTPS while keeping the gateway itself bound to its internal port.

OpenClaw on Debian: Nginx

Install Nginx

sudo apt install -y nginx

Create a server configuration for your domain, then configure it to proxy requests to the OpenClaw Gateway on localhost:18789.

Once Nginx is working, add an SSL certificate using Certbot and Let’s Encrypt:

sudo apt install -y certbot python3-certbot-nginx

Then request a certificate for your domain:

sudo certbot --nginx -d yourdomain.com

With HTTPS in place, tighten the server firewall. Allow the ports you really need, such as SSH and HTTPS, while keeping port 18789 inaccessible from the public internet.

For example:

sudo ufw allow ssh
sudo ufw allow 443/tcp
sudo ufw deny 18789/tcp
sudo ufw enable

If you’re using HTTP for the initial Nginx setup or certificate issuance, you can also allow port 80:

sudo ufw allow 80/tcp

Finally, configure log rotation so OpenClaw’s logs don’t keep growing until they consume your available disk space. Debian’s logrotate utility can automatically compress older logs and remove them after a defined retention period.

At this point, you have the pieces needed for a production deployment: a persistent service, secure environment variables, Nginx, HTTPS, firewall protection, and log rotation.

Step 4: Connect a Channel (WhatsApp or Telegram)

With the core OpenClaw setup ready, you can connect the channel where you want your agent to interact with people.

Telegram is usually the quickest option to get started. You’ll need to create a bot through Telegram’s @BotFather and obtain the bot token.

Add that information to your OpenClaw channel configuration, and your agent can start receiving and responding to Telegram messages.

WhatsApp requires a WhatsApp Business API connection. Once the connection is configured, OpenClaw can receive customer messages and automate responses through the channel.

You don’t need to repeat the entire onboarding process every time you want to change your channels. Run:

openclaw configure

This lets you return to the configuration and add or modify channels and other settings from the terminal.

OpenClaw on Debian FAQs

Can I install OpenClaw on Debian 10?

What if OpenClaw is not found after installation?

Which AI provider works best with OpenClaw on a Nigerian VPS?

The Easier Path: Truehost OpenClaw VPS Hosting

Manual installation gives you control over every part of the deployment, but you don’t have to handle the Node.js installation, Nginx configuration, systemd setup, and server hardening yourself.

At Truehost, our OpenClaw Hosting plans come with a pre-configured Debian/Ubuntu environment and OpenClaw already installed. That gives you a shorter path from ordering a VPS to working on your automation.

Our Nigerian plans are available in three configurations:

PlanvCPURAMStorageBandwidthMonthly Billed Triennially
Starter12 GB50 GB NVMe4 TBNGN 10,500
Pro24 GB100 GB NVMe6 TBNGN 22,750
Business48 GB200 GB NVMe8 TBNGN 56,000

You get Naira billing, Nigerian support, root SSH access, and no hidden currency conversion fees.

If you want to manage the server yourself, you still have the access to do so. If you’d rather skip the initial setup and get straight to building your OpenClaw automation, the pre-configured option removes much of the infrastructure work.

Teresa Mutua
Author

Teresa Mutua

SEO Content Specialist

I am an SEO content specialist at Truehost with over 5 years of experience in technical writing, SEO, web content, cPanel, WHM, and WHMCS.

View All Posts