OpenClaw AI Setup Guide 2026: Run Your Own AI Assistant 24/7 on a VPS
How to install OpenClaw AI on a VPS and connect it to Discord in 2026. Step-by-step guide covering VPS setup, Discord bot creation, and going live in under 15 minutes.
OpenClaw is an open-source AI assistant that runs on your own server, connects to your Discord, and works 24/7 โ even when you're offline. It handles everything from answering questions and writing content to running shell commands and managing files, all from a simple Discord message.
Full setup takes under 15 minutes. Here's the complete walkthrough.
๐ Table of Contents
1. What Is OpenClaw?
OpenClaw is an open-source personal AI framework. Think of it as a bridge between a powerful AI model (Claude, GPT-4, etc.) and your own infrastructure. Instead of chatting with a generic AI through a browser, you get an AI that:
- Lives permanently on your server or VPS
- Responds directly in your Discord server or DMs
- Has access to your files, can run commands, search the web, take screenshots, and execute code
- Maintains memory across conversations so it learns your preferences over time
- Can be extended with "skills" โ pre-built modules for specific tasks
- Runs completely autonomously while you're offline
The key difference from just using Claude.ai in a browser: this runs on YOUR server, under YOUR control, with access to YOUR tools. The AI can actually do things โ not just talk about them.
2. Step 1 โ Get a VPS
To run OpenClaw 24/7 you need a VPS โ a cloud computer that stays on all the time. You SSH into it, install OpenClaw, and from that point it runs independently whether your personal computer is on or not.
โ Recommended VPS: Virtarix
I personally use Virtarix for my OpenClaw deployment. Windows VPS options, fast setup, reliable uptime. Exactly what you need for a 24/7 AI assistant โ no unnecessary bloat.
Plan I use: WIN VPS M โ 6 CPU cores ยท 16 GB RAM ยท 100 GB NVMe ยท Unlimited bandwidth ยท From $27.40/month. More than enough headroom for OpenClaw and anything else you run alongside it.
๐ก Windows vs Linux VPS
OpenClaw runs on both. A Windows VPS is a great choice if you're already comfortable with the Windows environment โ you connect via Remote Desktop (RDP) instead of SSH, and run commands in PowerShell. The OpenClaw installer has a dedicated Windows version so the setup process is just as smooth.
3. Step 2 โ Install OpenClaw
Once your VPS is running, connect via SSH and update the system first:
Remote Desktop Into Your VPS
Your VPS provider will email you the IP address, username, and password. On your local Windows machine, open Remote Desktop Connection (press Win+R, type mstsc, hit Enter), enter the VPS IP, and log in.
Once inside, right-click the Start menu and open Windows PowerShell (Admin).
Run the OpenClaw Installer
One PowerShell command handles everything โ Node.js detection, installation, and the onboarding wizard:
The installer will detect if Node.js 22+ is missing and install it automatically. Follow the onboarding prompts when they appear.
๐ก Already Have Node.js 22+?
You can install directly via npm instead:
npm install -g openclaw@latest
openclaw onboard --install-daemon
4. Step 3 โ Add Your AI API Key
OpenClaw needs an API key to power its AI responses. The easiest option in 2026 is Anthropic's Claude API. Get a key at console.anthropic.com โ Claude Sonnet 4 is the sweet spot for intelligence vs. cost.
The installer will prompt you for this during onboarding, or configure it after the fact:
You can also use OpenAI (GPT-4o) or other supported models โ OpenClaw supports multiple providers. Claude tends to give the most capable responses for the price, but either works well.
5. Step 4 โ Create a Discord Bot
You need to create a Discord application and bot to give OpenClaw access to your server. This is the most involved step but only takes 5 minutes:
- Go to discord.com/developers/applications
- Click New Application โ give it a name (whatever you want to call your AI assistant)
- Go to the Bot tab โ click Reset Token โ copy the token (save it securely)
- Scroll down and enable:
- Message Content Intent
- Server Members Intent
- Presence Intent
- Go to OAuth2 โ URL Generator
- Select scopes:
botandapplications.commands - Select permissions:
Send Messages,Read Message History,Embed Links,Attach Files,Use Slash Commands - Copy the generated URL, open it in your browser, and add the bot to your server
๐ก Finding Your Server ID
In Discord: User Settings โ Advanced โ Enable Developer Mode. Then right-click your server name in the sidebar and click Copy Server ID. You'll need this when connecting OpenClaw to Discord.
6. Step 5 โ Connect to Discord
Back in your VPS PowerShell window, add Discord as a channel. OpenClaw will walk you through the configuration:
You'll be prompted for your bot token, server (guild) ID, and which channels it should have access to. Once entered, it connects immediately.
7. Step 6 โ Start It Up and Verify
Start the background gateway service and run the health check:
Start the Gateway
openclaw status
openclaw doctor
If everything comes back green, head to your Discord server and send your bot a direct message. It should respond within seconds.
The gateway is installed as a system service by default, so it auto-restarts if your VPS reboots. Verify this is working:
That's it โ your AI assistant is now live 24/7. Message it from anywhere in the world and it responds.
8. What People Use It For
Once OpenClaw is running, the community has found a ton of ways to put it to work. Here are some of the most popular use cases:
- Personal assistant in Discord: Ask it to draft emails, summarize long articles, translate content, or answer questions โ all without leaving Discord
- Coding helper: Paste in a bug, describe what you're building, and it writes or fixes code directly. Can read and edit files on your server with no copy-pasting
- Content creation: "Write a YouTube description for this video", "generate 10 tweet ideas about X", "rewrite this paragraph to sound more casual" โ works instantly
- Server moderation support: Set it up in a Discord server to answer FAQ questions, welcome new members, and provide info on demand without needing a human online
- Research assistant: "Find the top 10 affiliate programs for [niche] and compare their commission rates" โ it searches the web and compiles a clean summary
- Automated reminders and monitoring: Set heartbeat checks to scan your inbox, flag important emails, remind you of upcoming deadlines, or alert you when a website goes down
- File and data management: Rename batches of files, parse CSVs, reformat data, generate reports โ all from a plain English instruction in chat
- Learning and study tool: Quiz yourself on any topic, get explanations at any depth, have it create flashcards or study guides from notes you paste in
The key difference from using ChatGPT in a browser: OpenClaw can actually do things on your server โ read and write files, run scripts, call APIs, send messages. It's not just answering questions. It's executing tasks.
๐ค Questions About the Setup?
Join the Discord community. I share my exact OpenClaw configuration, the skills and extensions I use, and can answer any setup questions you run into along the way.
Join the Community โ