A complete walkthrough for setting up your personal AI assistant on a VPS
⏱ 15–20 minutes • 💰 ~€5/month • 📊 Beginner-friendly
Clawdbot is a personal AI assistant that runs on your own server and talks to you through Telegram, WhatsApp, or other messaging apps. Unlike ChatGPT or Claude's web interface, it's always on, remembers everything, and can proactively reach out to you.
This guide is written specifically for Mac users starting from scratch—no Hetzner account, no SSH keys, nothing. You'll be chatting with your bot in about 20 minutes.
📋 Before you start, have ready:
- ✓ Your Mac (any recent macOS version works)
- ✓ A credit/debit card for Hetzner (~€5/month)
- ✓ A Telegram account (or WhatsApp—we'll use Telegram in this guide)
- ✓ An Anthropic API key or Claude Pro subscription
Part 1: Set Up SSH Keys on Your Mac
SSH keys let you securely connect to your server without passwords. We'll create them first.
Step 1: Open Terminal
Press ⌘ + Space, type "Terminal", and press Enter. You'll see a window with a command prompt.
Step 2: Generate your SSH key
Copy and paste this command (replace with your actual email):
ssh-keygen -t ed25519 -C "[email protected]"When it asks where to save the key, just press Enter to use the default location.
When it asks for a passphrase, you can either:
- Press Enter twice for no passphrase (easier)
- Type a passphrase for extra security (you'll need to enter it each time you connect)
Step 3: Copy your public key
Run this command to display your public key:
cat ~/.ssh/id_ed25519.pubYou'll see a long string starting with ssh-ed25519. Select it all and copy it (⌘ + C). Keep Terminal open—you'll need it later.
Part 2: Create Your Hetzner Server
Step 4: Create a Hetzner account
Visit hetzner.com/cloud and click Get started. You'll need to verify your email and add payment details.
Step 5: Create a new project
Once logged into Cloud Console, click + New Project. Name it something like clawdbot or my-ai-assistant.
Step 6: Add your SSH key to Hetzner
Before creating the server, let's add your SSH key:
- In the left sidebar, click Security → SSH Keys
- Click Add SSH Key
- Paste your public key (the one you copied in Step 3)
- Name it something like "My Mac"
- Click Add SSH Key
Step 7: Create your server
Go back to your project and click the big + Create Server button.
Step 8: Configure server settings
- Location: Germany (cost-optimized tier is cheapest)
- Image: Ubuntu 24.04
- Type: Shared vCPU → CX33 (4 vCPU, 8GB RAM) — €5.49/mo
- SSH Keys: Make sure your key is selected (should be checked automatically)
- IPv4: Keep it ON
Step 9: Launch the server
Name your server clawdbot, then click Create & Buy Now. Wait about 30 seconds for it to spin up.
Once ready, you'll see an IPv4 address (looks like 123.45.67.89). Copy this—you'll need it in the next step.
Part 3: Connect to Your Server
Step 10: Go back to Terminal
Switch back to your Terminal app (still open from earlier). If you closed it, press ⌘ + Space, type "Terminal", and press Enter.
Step 11: Connect via SSH
Type this command, replacing YOURSERVERIP with the IP address you copied:
ssh root@YOUR_SERVER_IPFor example: ssh [email protected]
When it asks "Are you sure you want to continue connecting?", type yes and press Enter.
✓ You're in! Your Terminal prompt should now say something like root@clawdbot:~#. You're now controlling your remote server from your Mac.
Part 4: Install Clawdbot
Now we'll install everything Clawdbot needs. Just copy and paste these commands one at a time.
Step 12: Update Ubuntu
apt update && apt upgrade -yThis updates all the system packages. It'll take 1-2 minutes. You'll see lots of text scroll by—that's normal.
Step 13: Install Node.js
Clawdbot runs on Node.js. Install version 22 with these commands:
curl -fsSL https://deb.nodesource.com/setup_22.x | bash -
apt install -y nodejsVerify it worked by checking the version:
node -vShould show something like v22.x.x
Step 14: Install Clawdbot
npm install -g clawdbot@latestThis installs Clawdbot globally on your server. Takes about 30 seconds.
Part 5: Set Up Telegram Bot
Before running the Clawdbot wizard, let's get your Telegram bot credentials ready.
Step 15: Create a Telegram bot
On your phone or desktop Telegram app:
- Search for @BotFather and start a chat
- Send the command: /newbot
- Give it a display name (e.g., "My Assistant")
- Give it a username ending in "bot" (e.g., mynameassistantbot)
- BotFather will send you a long token starting with numbers. Copy this entire token.
Keep this token safe! Treat it like a password. Anyone with this token can control your bot.
Step 16: Get your Telegram user ID
Still in Telegram, search for @userinfobot and send it any message. It will reply with your numeric user ID. Copy this number (it's usually 9-10 digits).
Part 6: Get Your Anthropic API Key
Step 17: Create an Anthropic API key
- Go to console.anthropic.com
- Sign in or create an account
- Click on API Keys in the left menu
- Click Create Key
- Give it a name like "Clawdbot"
- Copy the key (starts with sk-ant-...)
💡 Using Claude Pro instead? If you have a Claude Pro or Max subscription, you can use that instead of paying for API usage. You'll need to install Claude Code CLI on your Mac first, then run claude setup-token to get a personal token.
Part 7: Run the Setup Wizard
Now let's configure everything. Make sure you have ready:
- ✓ Your Telegram bot token
- ✓ Your Telegram user ID
- ✓ Your Anthropic API key (or Claude token)
Step 18: Start the onboarding wizard
Back in your Terminal (still connected to your server), run:
clawdbot onboard --install-daemonThis interactive wizard will walk you through everything.
Step 19: Follow the prompts
The wizard will ask you several questions. Here's what to enter:
- Anthropic authentication: Choose "API Key" and paste your key
- Channel type: Choose "Telegram"
- Bot token: Paste your Telegram bot token
- Allowed users: Enter your Telegram user ID
- Install daemon? Say yes (keeps bot running 24/7)
For other questions, the defaults are usually fine—just press Enter.
Step 20: Verify it's running
clawdbot statusShould show the gateway as "running" with a green checkmark.
Part 8: Test Your Bot!
Step 21: Send your first message
Open Telegram, find your bot (search for the username you created), and send it a message like "Hello!"
Your bot should respond within a few seconds. 🎉
Not working?
- Run clawdbot logs --follow on your server to see what's happening
- Make sure you started a chat with your bot (click "Start" if you see that button)
- Double-check your user ID is in the allowed list
Managing Your Bot from Your Mac
Connecting to your server anytime
To SSH back into your server from your Mac's Terminal:
ssh root@YOUR_SERVER_IPReplace YOURSERVERIP with your server's IP address (you can find it in your Hetzner Cloud Console).
Common commands to run on the server
Server Management:
- clawdbot status — Check if everything is working
- clawdbot logs --follow — View live logs (Ctrl + C to exit)
- clawdbot gateway restart — Restart the bot
- clawdbot health — Run health checks
Chat Commands (send in Telegram):
- /new — Start a fresh conversation
- /model — Switch AI models
- /compact — Compress long conversations
- stop — Cancel a running task
Troubleshooting
Can't connect via SSH?
If you see "Permission denied" or it asks for a password:
ssh -i ~/.ssh/id_ed25519 root@YOUR_SERVER_IPThis explicitly tells SSH which key to use.
Bot not responding?
SSH into your server and check the status:
clawdbot status --all
clawdbot logs --followPress Ctrl + C to stop viewing logs.
Want to start over?
clawdbot reset
clawdbot onboard --install-daemonForgot your server IP?
Log into console.hetzner.cloud, click your project, and you'll see your server's IP address listed.
What's Next
Customize your bot's personality
SSH into your server and edit these files:
nano ~/clawd/SOUL.md # Bot's personality and instructions
nano ~/clawd/USER.md # Your personal info for contextPress Ctrl + X, then Y, then Enter to save and exit.
Learn more
- Browse skills and integrations at clawdhub.com
- Join the community on Discord
- Read the full docs at docs.clawdbot.ai
Pro tip for Mac users
Create an SSH alias to connect faster. On your Mac, edit your SSH config:
nano ~/.ssh/configAdd this (replace with your server IP):
Host clawdbot
HostName YOUR_SERVER_IP
User root
IdentityFile ~/.ssh/id_ed25519Now you can just type ssh clawdbot to connect!
