ClawdBot is your personal AI assistant that runs 24/7 on a cheap server. Message it on Telegram or WhatsApp, and Claude responds—with full context about who you are and what you're working on. This guide walks you through the complete setup, from spinning up a server to teaching your bot about yourself.
What You'll Need
- Hetzner account — ~€4-5/month for a VPS
- Claude subscription (Pro/Max) or an Anthropic API key
- Telegram account — for the bot interface
- Terminal app — Mac: Terminal / Windows: use WSL2
Part 1: Create Your Server
1.1 Set Up Hetzner VPS
- Go to hetzner.com/cloud
- Create account (requires credit card + ID verification)
- Click "Add Server"
- Choose:
- Location: Nearest to you
- Image: Ubuntu 24.04
- Type: CX22 (4GB RAM) — ~€4/month
- SSH Key: Add your public key (see below)
- Click "Create & Buy Now"
- Copy the IP address
1.2 Get Your SSH Key (Mac)
cat ~/.ssh/id_rsa.pubIf no key exists:
ssh-keygen -t ed25519 -C "your-email@example.com"
cat ~/.ssh/id_ed25519.pubPaste the output into Hetzner when creating the server.
Part 2: Connect & Secure Your Server
2.1 Connect via SSH
ssh root@YOUR-SERVER-IP2.2 Update the System
apt update && apt upgrade -y2.3 Create a Non-Root User
adduser YOUR-USERNAMESet a password and press Enter through the prompts.
usermod -aG sudo YOUR-USERNAME2.4 Enable SSH for New User
mkdir -p /home/YOUR-USERNAME/.ssh
cp ~/.ssh/authorized_keys /home/YOUR-USERNAME/.ssh/
chown -R YOUR-USERNAME:YOUR-USERNAME /home/YOUR-USERNAME/.ssh
chmod 700 /home/YOUR-USERNAME/.ssh
chmod 600 /home/YOUR-USERNAME/.ssh/authorized_keys2.5 Switch to New User
su - YOUR-USERNAMEPart 3: Install Dependencies
3.1 Install Node.js 22+
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bashClose and reopen terminal, or run:
source ~/.bashrcThen:
nvm install 22
node --version3.2 Enable pnpm
corepack enable pnpmPart 4: Install ClawdBot
Option A: Quick Install (Recommended)
curl -fsSL https://clawd.bot/install.sh | bashOption B: Manual Install
npm install -g clawdbot@latestVerify Installation
clawdbot --versionPart 5: Run the Onboarding Wizard
clawdbot onboard --install-daemonWizard Choices:
- Gateway: Local
- Runtime: Node (required for WhatsApp/Telegram)
- Auth: Choose your method (see Part 6)
- Messaging: Telegram (recommended for beginners)
- Install daemon: Yes
Part 6: Set Up Claude Max Authentication
6.1 On Your Mac (not VPS)
Install Claude CLI:
npm install -g @anthropic-ai/claude-codeGenerate token:
claude setup-tokenIf already authenticated:
claude setup-token --forceCopy the token displayed.
6.2 On Your VPS
clawdbot models auth add- Choose: anthropic
- Method: paste token
- Paste your token
6.3 Restart
clawdbot daemon restartPart 7: Set Up Telegram Bot
7.1 Create Bot with BotFather
- Open Telegram
- Search for @BotFather
- Send
/newbot - Give it a name (e.g., "My AI Assistant")
- Give it a username (must end in
bot) - Copy the token
7.2 Add Token to ClawdBot
clawdbot configure --section telegramPaste your bot token when prompted.
clawdbot daemon restartPart 8: Approve Yourself (Pairing)
8.1 Message Your Bot
Open Telegram, find your bot, send "Hello!"
(It won't respond yet—this is a security feature)
8.2 Approve the Pairing
clawdbot pairing list telegramCopy the code shown, then:
clawdbot pairing approve telegram CODE8.3 Test It!
Send another message—your bot should respond!
Part 9: Access the Dashboard
9.1 On Your Mac — Start SSH Tunnel
ssh -N -L 18789:127.0.0.1:18789 YOUR-USERNAME@YOUR-SERVER-IP(Leave this running—it looks like it hangs, that's normal)
9.2 Open Dashboard
In your browser (use incognito if you have issues):
http://localhost:18789/?token=YOUR-GATEWAY-TOKENThe token was shown during onboarding. If you lost it:
cat ~/.clawdbot/clawdbot.json | grep tokenPart 10: Teach Your Bot About You
Ask your bot in Telegram:
"I want you to interview me so you can be more useful. Ask me questions about my work, life, preferences, routines, goals—whatever you need to know to be a great assistant. Go one question at a time."
After the interview:
"Now save everything you've learned about me to your USER.md file"
Check what it knows:
"What do you currently know about me?"
Part 11: Optional Enhancements
Enable Web Search
Get a free API key from brave.com/search/api, then:
clawdbot configure --section webOr just tell your bot:
"Set up Brave web search with this API key: YOUR-KEY"
Set Up Morning Briefings
Ask your bot:
"Set up a daily cron job at 7am that sends me a morning briefing with today's weather in YOUR-CITY, my top priorities, and the latest AI news."
Add ElevenLabs for Audio
clawdbot configure --section elevenlabsAdd WhatsApp
clawdbot channels loginScan the QR code with WhatsApp → Settings → Linked Devices.
Useful Commands Reference
clawdbot health # Check everything's working
clawdbot status # Quick status overview
clawdbot daemon status # Check if daemon is running
clawdbot daemon restart # Restart the bot
clawdbot daemon stop # Stop the bot
clawdbot logs --follow # Watch live logs
clawdbot pairing list telegram # See pending approvals
clawdbot channels login # Link WhatsApp (QR scan)
clawdbot doctor # Diagnose issues
clawdbot configure --section web # Set up web search
clawdbot models auth add # Add/change AI authenticationTroubleshooting
"Address already in use" (SSH tunnel)
Kill what's using the port:
lsof -ti:18789 | xargs kill -9If it keeps respawning:
launchctl unload ~/Library/LaunchAgents/com.clawdbot.gateway.plist"unauthorized" in dashboard
Use the full URL with token, or try incognito mode.
"No API key found"
Run:
clawdbot models auth addBot not responding in Telegram
- Check it's running:
clawdbot daemon status - Check health:
clawdbot health - Make sure you approved pairing
- Check logs:
clawdbot logs --tail 50
Need to check what user you're logged in as
whoamiNeed to check you're on the VPS (not local)
hostname- Ask your bot to run commands for you—no need to SSH in for most things
- Give your bot API keys directly—it can configure itself
- Use voice notes—great for brain dumps on the go
- Ask for suggestions: "What automations would you suggest based on what you know about me?"