Running your own AI assistant on a VPS sounds complicated. It's not. If you can SSH into a server and copy-paste commands, you can have a personal AI running in under an hour — no cloud subscriptions, no data leaving your machine. Here's the full process, from picking a server to having an AI that checks your email and writes your blog posts.

What you'll build: A persistent AI agent (OpenClaw) running on your VPS, connected to Telegram, with a local language model (Ollama) as a fallback, and optional cloud models (Claude, GPT) for complex tasks. Your data stays on your server.

Step 1: Pick Your VPS

You don't need a beefy machine. For running OpenClaw with cloud models (Claude, GPT), a $5/month VPS is plenty — the heavy compute happens at the API provider. If you want to run local models via Ollama, you'll need more RAM:

For UK-based users, Hetzner offers the best price-to-performance. For North America, DigitalOcean or Vultr. Avoid AWS/GCP for personal projects — the pricing is opaque and overkill.

Step 2: Server Setup

Once you have your VPS, SSH in and run the basics:

Security matters here — your AI will have shell access. Don't skip the firewall and SSH hardening. See our VPS setup guide for the full security checklist.

Step 3: Install Node.js and OpenClaw

OpenClaw runs on Node.js. Install the LTS version:

Then run the initial setup: openclaw configure. This walks you through connecting your AI provider (Anthropic, OpenAI, or local Ollama), setting up your messaging channel, and configuring memory.

For a full walkthrough with Telegram integration, follow our step-by-step VPS install guide or the Telegram setup tutorial.

Step 4: Add a Local Model (Optional)

If you want a free, fully local fallback model — install Ollama:

Configure OpenClaw to use Ollama as a fallback: set agents.defaults.fallbackModel to ollama/llama3.2:3b in your config. Now your AI uses Claude for complex tasks and the free local model for simple checks. Full details in our OpenClaw + Ollama guide.

Step 5: Connect Your Channels

The whole point of a personal AI is that you can reach it from anywhere. OpenClaw supports:

Telegram is the easiest to set up and the most reliable. Start there.

Step 6: Set Up Proactive Features

This is where a self-hosted AI gets interesting. Through OpenClaw's heartbeat and cron systems, your AI can:

Configure these through HEARTBEAT.md and cron jobs. Your AI reads the instructions and executes them autonomously. If you use n8n for automation, OpenClaw can trigger n8n workflows via webhooks — combining the best of both.

What It Costs

Total: $5-35/month for a fully autonomous personal AI assistant. Compare that to hiring a VA at $500+/month.

Get your AI running today

Full setup guide, under an hour. We install it, configure it, and hand it off.

Install OpenClaw →

📖 Further Reading