https://youtu.be/GKcF6INCsKs?si=A3HtTkFZj1j9k96v🚀
РАЗВЕРТЫВАНИЕ OPENCLAW ЗА 5 МИНУТИнструкция к видео-туториалу.
1️⃣ ПОДГОТОВКА• Новый Ubuntu сервер (root по SSH).
• Токен бота от
@BotFather.
• Не вставляй значения в
<...> с угловыми скобками, только чистый текст.
2️⃣ УСТАНОВКА (ОДНИМ БЛОКОМ)———————————————————————
sudo bash <<'SCRIPT'
set -euo pipefail
export DEBIAN_FRONTEND=noninteractive
apt-get update -y
apt-get install -y ca-certificates curl gnupg jq openssl
curl -fsSL https://deb.nodesource.com/setup_22.x | bash -
apt-get install -y nodejs
npm i -g openclaw@2026.2.14
install -d -m 700 /root/.openclaw
read -rp "Telegram bot token: " TG_TOKEN < /dev/tty
read -rsp "Gateway password (Enter = auto): " GW_PASS < /dev/tty; echo
[ -n "$GW_PASS" ] || GW_PASS="$(openssl rand -base64 24 | tr -d '
')"
jq -n --arg tg "$TG_TOKEN" --arg gp "$GW_PASS" '
{
"gateway": {
"mode": "local",
"bind": "lan",
"port": 18789,
"auth": { "mode": "password", "password": $gp },
"controlUi": { "enabled": true, "basePath": "/openclaw", "allowInsecureAuth": true }
},
"channels": {
"telegram": {
"enabled": true,
"botToken": $tg,
"dmPolicy": "pairing",
"groupPolicy": "allowlist",
"streamMode": "partial",
"historyLimit": 12,
"accounts": {
"main": { "name": "MainBot", "enabled": true, "dmPolicy": "pairing", "groupPolicy": "allowlist", "streamMode": "partial", "botToken": $tg }
}
}
},
"agents": { "list": [{"id": "main"}], "defaults": { "skipBootstrap": true } }
}' > /root/.openclaw/openclaw.json
chmod 600 /root/.openclaw/openclaw.json
cat > /etc/systemd/system/openclaw-gateway.service <<'UNIT'
[Unit]
Description=OpenClaw Gateway
After=network-online.target
Wants=network-online.target
[Service]
Type=simple
User=root
Environment=OPENCLAW_CONFIG_PATH=/root/.openclaw/openclaw.json
ExecStart=/usr/bin/env openclaw gateway run --allow-unconfigured --ws-log compact
Restart=always
RestartSec=2
[Install]
WantedBy=multi-user.target
UNIT
systemctl daemon-reload
systemctl enable --now openclaw-gateway.service
IP="$(curl -4fsS ifconfig.me || hostname -I | awk '{print $1}')"
echo -e "
UI: http://$IP:18789/openclaw/"
echo "Gateway password: $GW_PASS"
SCRIPT
———————————————————————
3️⃣ ПОДКЛЮЧЕНИЕ GOOGLE AI———————————————————————
openclaw plugins enable google-antigravity-auth
systemctl restart openclaw-gateway.service
openclaw models auth login --provider google-antigravity --set-default
openclaw models set google-antigravity/gemini-3-flash
———————————————————————
4️⃣ PAIRING TELEGRAM• Напиши
/start своему боту в Telegram.
• Затем:
———————————————————————
openclaw pairing list telegram
• Возьми код из колонки
Code и одобри:
openclaw pairing approve telegram КОД_ОТСЮДА
———————————————————————
5️⃣ ПРОВЕРКА (ДЛЯ ВИДЕО)———————————————————————
systemctl status openclaw-gateway.service --no-pager -l
curl -sS http://127.0.0.1:18789/health
openclaw logs --follow
———————————————————————
• • •
Отправь боту привет.Если отвечает — всё готово!