How to Install OpenClaw on a VPS in 10 Minutes (2026)

TL;DR: Install Node.js 22+, clone OpenClaw, run npx openclaw init, configure your first channel, and you're done. Total time: under 10 minutes for a basic setup with Telegram.

Prerequisites

Before you start, you need:

  • A VPS running Ubuntu 22.04 or Debian 12 (minimum 1 vCPU, 2GB RAM)
  • SSH access to your VPS
  • A Telegram bot token from @BotFather

Step 1: Connect to Your VPS

class="language-bash">ssh root@your-vps-ip

Step 2: Install Node.js

OpenClaw requires Node.js 22 or later. Install it from NodeSource:

class="language-bash">curl -fsSL https://deb.nodesource.com/setup_22.x | bash -
apt install -y nodejs
node -v

Verify the version — you should see v22.x.x or higher.

Step 3: Create a User

Running services as root is bad practice. Create a dedicated user:

class="language-bash">adduser openclaw
usermod -aG sudo openclaw
su - openclaw

Step 4: Install OpenClaw

class="language-bash">npx openclaw init
cd openclaw
npm install

This downloads the latest OpenClaw release and installs dependencies. It takes about 2 minutes on a standard VPS.

Step 5: Configure Your First Channel (Telegram)

Open the config file:

class="language-bash">nano openclaw.yaml

Find the channels section and add your Telegram bot token:

class="language-yaml">channels:
 telegram:
 enabled: true
 botToken: "YOUR_BOT_TOKEN"

Get your bot token from @BotFather on Telegram. Create a new bot, copy the token, paste it in.

Step 6: Configure Your LLM Provider

Add your preferred LLM provider in the providers section:

class="language-yaml">providers:
 openai:
 apiKey: "YOUR_OPENAI_KEY"
 model: gpt-4o-mini

OpenClaw supports OpenAI, Anthropic, Google, Mistral, OpenRouter, Ollama (local), and 15+ other providers.

Step 7: Start OpenClaw

class="language-bash">npx openclaw start

You should see output like:

[2026-05-04 12:00:00] INFO: Starting OpenClaw v2026.4.24
[2026-05-04 12:00:01] INFO: Telegram channel connected
[2026-05-04 12:00:01] INFO: Agent is ready

Open Telegram, message your bot, and you're talking to your own AI agent.

What's Next?

  • Connect additional channels (Discord, Signal, WhatsApp)
  • Configure memory backends (LanceDB, SQLite, wiki)
  • Add search plugins (Brave, Tavily, Perplexity)
  • Write custom skills for your specific use cases

See the OpenClaw Plugin Directory → for a full list of everything you can enable.

That's it. You now have a self-hosted AI agent running on your own infrastructure. Total time from start to first message: under 10 minutes.

← Back to all posts