How to install OpenClaw: Your personal AI assistant step by step
Complete guide to setting up your own AI agent with WhatsApp, email and web access.
Step-by-step Installation
First things first: you need a computer where it can run. You have two paths: Local or cloud.
Local would be an old PC, a Raspberry Pi, or anything you have around. You might have seen people buying Mac Minis — it makes sense because OpenClaw has integrations with the Apple ecosystem. But you don't need it to start.
The problem with local is that it has to be on to work, obviously. That's why I prefer the cloud. Any Linux VPS will work.
In this case, I'm going to use Hostinger. The cheapest machine (KVM1) is more than enough, and it's only $4.99 per month.
Hostinger Dashboard - Create VPS
Connecting via SSH
To connect, you need SSH — basically a remote terminal to control the server. If you already use Git with GitHub via SSH, you already have a key configured and don't need to do anything else.
If you're not sure, check in your terminal:
ls ~/.ssh/id_*.pubIf it shows a file (like id_ed25519.pub or id_rsa.pub), you already have an SSH key. If you don't have one, you can follow the official GitHub guide to create your SSH key.
You'll find the connection command in your VPS dashboard:
Hostinger Dashboard - SSH Command
Open the terminal on your machine, paste the command, and you're in.
Installing Node.js
The first thing you will need is Node. OpenClaw needs it to function.
node -vIf it returns a version number, perfect. If not, run these two commands:
curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash -
sudo apt-get install -y nodejsIf you prefer to use nvm to manage versions, that works too (that's what I use).
Installing OpenClaw
If we go to the OpenClaw page, we'll see there's only one command. It's the only thing needed to start:
OpenClaw Page - Installation Command
curl -fsSL https://openclaw.com/install.sh | bashThis installs everything. It downloads, configures dependencies, and launches an assistant to guide you step by step. It might take a while.
Once we have it, we launch the wizard:
openclaw onboardThe wizard asks you: which AI model, which messaging channel, API keys... All guided.
OpenClaw Onboard Wizard
Choosing the Brain
And here's where it gets interesting. Which brain do you use?
My recommendation for starting: OpenRouter
It's a model aggregator. You pay per use, you have access to Claude, GPT, Gemini, everything. And you can start almost for free with the credits they give you upon registration.
- 1Register at openrouter.ai
- 2Generate an API key
- 3Provide it to the wizard during onboarding
OpenRouter - Generate API Key
Using Claude Max
In my case, I have the Claude Max plan. If you have it and don't usually burn through your daily credits, I recommend it — better results, better personality. But it's not cheap anymore.
To use Claude Max, authentication goes with a Claude Code token:
claude setup-tokenIt generates an OAuth token that you paste during onboarding. It's now connected to your account.
Configuring WhatsApp
Now for the channel. WhatsApp is the one I use. But before connecting it, let's talk about something important: the number.
Get a separate number
Don't use your personal number. You want a dedicated number for the bot for several reasons:
- •If something goes wrong, you don't lose your main WhatsApp
- •You can have separate conversations
- •It's easier to manage and reset if needed
You have several options:
📱 Option 1: Prepaid SIM
🌐 Option 2: eSIM
If your phone supports eSIM, you can activate a virtual one without needing a physical SIM. Some options that work for WhatsApp:
- • Numero eSIM — virtual numbers with SMS
- • eSIM Plus — verification numbers
- • GoSimless — specific for WhatsApp Business
⭐ Option 3: WhatsApp BusinessRecomendada
The most practical if you already have an extra number. WhatsApp Business allows you to have two WhatsApp accounts on the same phone — your personal WhatsApp and Business with another number.
Install the WhatsApp Business app, set it up with your second number, and use it for the bot.
WhatsApp Business - Two accounts on one phone
Connecting the bot to WhatsApp
Once you have your number ready, connecting is very simple. During onboarding (or after), OpenClaw will show you a QR code in the terminal.
Terminal with WhatsApp QR code
The process is exactly the same as linking WhatsApp Web:
- 1Open WhatsApp (or WhatsApp Business) on your phone
- 2Go to Settings → Linked Devices
- 3Tap on Link a Device
- 4Scan the terminal QR code
WhatsApp - Link device
Boom, connected. You can now talk to your bot through WhatsApp.
openclaw again to generate a new one.Configuring the Browser
Then you can configure a browser that the bot controls. An isolated Chromium running on your server. It now has eyes to browse websites, take screenshots, fill out forms...
On Ubuntu:
apt install -y chromium-browserAnd in the config you set it to use the managed browser. That easy.
The Birth of the Bot
And here's the best part. When you finish everything, something called the hatch happens. Your bot "is born."
OpenClaw Hatch - Birth of the bot
The system creates a workspace and starts a bootstrap ritual. It asks you questions: who you are, what you do, how you want it to behave. You give it a name.
From there, OpenClaw writes its own identity files:
- SOUL.md — its personality
- USER.md — info about you
It's like giving it a soul. Mine is called Skynet.
First conversation with the bot on WhatsApp
Mensaje a tu bot
"Add my number to the allowlist so only I can talk to you"
If something fails
And if something has failed so far, important command:
openclaw doctorIt analyzes your installation, detects problems, tells you what to fix. If something doesn't work, always this first.
Configuring Email with Resend
It already has control of the machine, memory, and a way to communicate with you wherever you are. But this can be extended further.
One of the first things you'll want is for it to send emails. For this, I use Resend — an email sending service for developers that's ridiculously easy to configure.
1. Create a Resend account
First, create an account at resend.com.
They have a free plan with 100 emails per day — more than enough to start and probably forever for personal use.
Resend - Registration page
2. Generate API Key
Once inside, go to the API Keys section and generate a new one.
Resend Dashboard - API Keys section
Give it a descriptive name (for example "OpenClaw Bot") and create the key.
⚠️ Important
Resend - Copy API Key
3. Verify a domain
So that emails don't go to spam and you can send from a professional address, you need to verify a domain.
If you don't have a domain, don't worry — they're very cheap:
- 1Go to Namecheap (or your favorite registrar)
- 2Search for any name you like
- 3Domains like
.online,.xyzor.sitecost literally 98 cents the first year
Namecheap - Cheap domains
4. Configure DNS Records
Now comes the "technical" part (which isn't really). Resend will give you some DNS records that you need to add to your domain.
In Resend:
- Go to Domains → Add Domain
- Enter your domain (e.g.:
mybot.xyz) - It will show you a table with DNS records to copy
Resend - DNS Records to copy
In Namecheap (or your registrar):
- Go to Domain List → your domain → Advanced DNS
- Add each record Resend gave you (type, host, value)
- Save changes
Namecheap - Advanced DNS
Mensaje a tu bot
"Are these DNS records correct? [attach screenshot]"
Verification can take a few minutes (sometimes up to a few hours, but it's usually fast). Resend will notify you when it's ready.
Resend - Domain verified
5. Test sending
Once the domain is verified, you can test. Simply tell your bot:
Mensaje a tu bot
"Send me a test email to myemail@gmail.com"
Check that it arrives in your inbox (and not spam). If everything is good, you have email configured!
Test email received
What you have now
From here you now have a bot that:
- Talks via WhatsApp
- Sends emails
- Searches the web
- Writes and sends files
- Installs software
- Accesses repos
- Saves and uses credentials
Not bad. You can now forget about the terminal, the basics are done.
But you'll quickly realize that right now it's a bit dumb when it comes to using specific tools. And for that, we can take it further...
Want the second part?
Advanced skills, automations, and real-use cases to take your assistant to the next level.
