OpenClaw Bot installieren: Schritt-für-Schritt Guide 2026
Meta Description: OpenClaw Bot installieren: Vollständiger Guide mit Voraussetzungen, Installation, Konfiguration und Telegram-Integration. In 30 Minuten einsatzbereit. (152 Zeichen)Sie wollen einen KI-Chatbot für Ihr Business – ohne monatliche Kosten und mit voller Kontrolle? OpenClaw macht es möglich.
In diesem Guide zeige ich Ihnen, wie Sie OpenClaw in unter 30 Minuten installieren und mit Telegram verbinden.
Für wen ist dieser Artikel? Unternehmer, Marketing-Teams und Entwickler, die einen eigenen KI-Chatbot hosten wollen.TL;DR: OpenClaw Installation in 5 Schritten
| Schritt | Zeit | Was | |---------|------|-----| | 1 | 5 Min | Voraussetzungen prüfen | | 2 | 5 Min | OpenClaw installieren | | 3 | 10 Min | Konfigurieren | | 4 | 5 Min | Telegram-Bot erstellen | | 5 | 5 Min | Verbinden & testen |
Gesamt: 30 MinutenWas ist OpenClaw?
OpenClaw ist ein Open-Source KI-Chatbot-Framework für:Vorteile:
Use Cases:
Voraussetzungen
Hardware
| Option | Empfehlung | Kosten | |--------|------------|--------| | VPS (Cloud) | Hetzner CPX21 (3 vCPU, 4GB RAM) | 6€/Monat | | Eigener Server | Raspberry Pi 4 (4GB) oder Mini-PC | einmalig 80-200€ | | Lokal (Test) | Laptop/Desktop | 0€ |
Minimum: 2 vCPU, 2GB RAM, 20GB SSDSoftware
| Was | Version | Check |
|-----|---------|-------|
| Node.js | v18+ | node --version |
| npm | v9+ | npm --version |
| Git | aktuell | git --version |
| Linux | Ubuntu 20.04+ oder Debian 11+ | cat /etc/os-release |
API-Keys
| Service | Kosten | Wofür | |---------|--------|-------| | OpenAI API | ~0.002€/1K tokens | GPT-4 Antwort-Generierung | | Telegram Bot Token | Kostenlos | Bot-Erstellung via @BotFather | | Anthropic API (optional) | ~0.003€/1K tokens | Claude als Alternative |
Schritt 1: Server vorbereiten
1.1 Server updaten
sudo apt update && sudo apt upgrade -y
1.2 Node.js installieren
curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash -
sudo apt install -y nodejs
node --version # Sollte v20.x.x zeigen
npm --version # Sollte 10.x.x zeigen
1.3 Git installieren
sudo apt install -y git
1.4 User erstellen (optional, aber empfohlen)
sudo useradd -m -s /bin/bash openclaw
sudo usermod -aG sudo openclaw
sudo su - openclaw
Schritt 2: OpenClaw installieren
2.1 Repository klonen
cd ~
git clone https://github.com/openclaw/openclaw.git
cd openclaw
2.2 Dependencies installieren
npm install
2.3 OpenClaw bauen
npm run build
ls -la dist/
Schritt 3: OpenClaw konfigurieren
3.1 Konfigurationsdatei erstellen
mkdir -p ~/.openclaw
nano ~/.openclaw/config.json
3.2 Basis-Konfiguration
{
"agent": {
"name": "Mein Business Bot",
"model": "openrouter/openai/gpt-4o-mini"
},
"llm": {
"provider": "openrouter",
"apiKey": "IHR_OPENROUTER_API_KEY"
},
"channels": {
"telegram": {
"enabled": true,
"token": "IHR_TELEGRAM_BOT_TOKEN"
}
},
"skills": []
}
Werte ersetzen:
IHR_OPENROUTER_API_KEY → Von https://openrouter.ai/keysIHR_TELEGRAM_BOT_TOKEN → Siehe Schritt 43.3 Alternative: OpenAI direkt
{
"agent": {
"name": "Mein Business Bot",
"model": "openai/gpt-4o-mini"
},
"llm": {
"provider": "openai",
"apiKey": "IHR_OPENAI_API_KEY"
},
"channels": {
"telegram": {
"enabled": true,
"token": "IHR_TELEGRAM_BOT_TOKEN"
}
}
}
Schritt 4: Telegram-Bot erstellen
4.1 BotFather öffnen
4.2 Neuen Bot erstellen
Sie: /newbot
BotFather: Alright, a new bot. How are we going to call it?
Sie: Mein Business Bot
BotFather: Good. Now let's choose a username for your bot.
Sie: mein_business_bot
BotFather: Done! Congratulations on your new bot...
Wichtig: Username muss auf _bot enden!
4.3 Token kopieren
BotFather antwortet mit:
Use this token to access the HTTP API:
1234567890:ABCdefGHIjklMNOpqrsTUVwxyz
Keep your token secure...
Token kopieren und in config.json einfügen!
Schritt 5: OpenClaw starten
5.1 Erster Start (Test)
cd ~/openclaw
npm start
Erwartete Ausgabe:
[INFO] OpenClaw Gateway starting...
[INFO] Agent: Mein Business Bot
[INFO] Model: openai/gpt-4o-mini
[INFO] Telegram channel enabled
[INFO] Connected to Telegram as @mein_business_bot
[INFO] Gateway ready. Waiting for messages...
5.2 Testen
@mein_business_bot)Schritt 6: Als Service einrichten (Produktion)
6.1 systemd Service erstellen
sudo nano /etc/systemd/system/openclaw.service
6.2 Service-Konfiguration
[Unit]
Description=OpenClaw Gateway
After=network.target
[Service]
Type=simple
User=openclaw
WorkingDirectory=/home/openclaw/openclaw
ExecStart=/usr/bin/npm start
Restart=on-failure
RestartSec=10
[Install]
WantedBy=multi-user.target
6.3 Service aktivieren
sudo systemctl daemon-reload
sudo systemctl enable openclaw
sudo systemctl start openclaw
sudo systemctl status openclaw
Erwartete Ausgabe:
● openclaw.service - OpenClaw Gateway
Loaded: loaded (/etc/systemd/system/openclaw.service; enabled)
Active: active (running) since Fri 2026-03-06 08:00:00 UTC; 5s ago
Main PID: 12345 (npm)
Tasks: 15
Memory: 120M
CGroup: /system.slice/openclaw.service
└─12345 npm start
6.4 Logs prüfen
sudo journalctl -u openclaw -f
sudo journalctl -u openclaw -n 100
OpenClaw Befehle
Gateway steuern
| Befehl | Beschreibung |
|--------|-------------|
| npm start | Gateway starten |
| npm run stop | Gateway stoppen |
| npm run restart | Gateway neustarten |
| npm run status | Status anzeigen |
systemd (wenn als Service)
| Befehl | Beschreibung |
|--------|-------------|
| sudo systemctl start openclaw | Starten |
| sudo systemctl stop openclaw | Stoppen |
| sudo systemctl restart openclaw | Neustarten |
| sudo systemctl status openclaw | Status |
| sudo journalctl -u openclaw -f | Logs live |
Skills hinzufügen (Optional)
OpenClaw wird durch Skills erweiterbar. Beispiele:
Installation eines Skills
cd ~/openclaw
npx openclaw skills add
npx openclaw skills add weather
In config.json aktivieren
{
"skills": ["weather", "web-search", "email"]
}
Verfügbare Skills
| Skill | Was er macht | |-------|-------------| | weather | Aktuelle Wetterdaten abrufen | | web-search | Im Internet suchen (Brave API) | | email | E-Mails senden/empfangen | | calendar | Google Calendar Integration | | youtube | YouTube Video-Metadaten | | wordpress | WordPress Posts erstellen |
Mehr Skills: https://clawhub.comTroubleshooting
Problem: "Cannot find module"
cd ~/openclaw
rm -rf node_modules
npm install
Problem: "Telegram connection failed"
Ursache: Falscher Token oder Bot gesperrt. Lösung:/mybots → API Token)Problem: "API key invalid"
Ursache: Falscher oder abgelaufener OpenAI/Anthropic API-Key. Lösung:Problem: Bot antwortet nicht
Diagnose:
sudo journalctl -u openclaw -n 50
Häufige Ursachen:
Kosten-Übersicht
Einmalige Kosten
| Position | Kosten | |----------|--------| | VPS Setup | 0€ (selbst gemacht) | | Domain (optional) | 1-5€/Monat | | SSL-Zertifikat | 0€ (Let's Encrypt) |
Laufende Kosten
| Position | Kosten/Monat | |----------|--------------| | VPS (Hetzner CPX21) | 6€ | | OpenAI API (1000 Nachrichten) | ~2-5€ | | Telegram Bot | 0€ | | Gesamt | 8-11€/Monat |
Vergleich: SaaS Chatbot-Tools kosten 50-300€/Monat!Sicherheitstipps
1. API-Keys schützen
chmod 600 ~/.openclaw/config.json
2. Firewall einrichten
sudo ufw allow ssh
sudo ufw allow http
sudo ufw allow https
sudo ufw enable
3. Regelmäßige Updates
sudo apt update && sudo apt upgrade -y
cd ~/openclaw
git pull
npm install
npm run build
sudo systemctl restart openclaw
4. Backups
cp ~/.openclaw/config.json ~/.openclaw/config.json.backup
crontab -e
0 2 cp /home/openclaw/.openclaw/config.json /home/openclaw/.openclaw/config.json.$(date +\%Y\%m\%d)
Nächste Schritte
1. Bot personalisieren
config.json)