Summary of "ClawdBot Full Tutorial for Beginners: SECURE Setup Guide"

High-level concept

OpenClaw / Claudebot is an open-source orchestration layer — a “message queue” / orchestration system — that calls external LLMs (OpenAI, Anthropic, etc.). It is not the LLM itself; it coordinates models, tools, channels, and agents. Because it routes data to LLM providers, you must secure infrastructure, inputs, outputs, and credentials.


Primary security principles


Recommended hosting and tools


Step-by-step (condensed)

  1. Provision VPS

    • Choose a VPS (e.g., Hostinger KVM2, Debian 13). Do not run on your daily-use device.
    • Configure root password (generate a strong random password).
  2. SSH into VPS

    • Connect: ssh root@<VPS_IP>, accept host key, paste password (typing is hidden).
    • Optionally use the VPS provider terminal for password reset, reboots, etc.
  3. Install and configure Tailscale

    • Install: bash curl -fsSL https://tailscale.com/install.sh | sh

    • Enable SSH support: bash tailscale up --ssh

    • Authenticate via the Tailscale browser link and install the Tailscale client on your admin devices (Windows/Mac/phone).

    • Confirm server Tailscale IP (100.x.x.x range).
  4. Harden SSH and create non-root admin

    • Edit /etc/ssh/sshd_config:
      • Set ListenAddress to the Tailscale IP so SSH only listens on the private network.
      • PermitRootLogin no
      • PasswordAuthentication no (if using keys) or otherwise ensure strong settings.
    • Restart SSH: bash systemctl restart ssh

    • Add a non-root user: bash adduser <username> usermod -aG sudo <username>

    • Test that root SSH from the public internet is refused and SSH via Tailscale with the new user works.

  5. Host-level firewall (hoster dashboard)

    • Block public incoming traffic by default.
    • Allow UDP port 41641 (Tailscale).
    • Only open ports 80/443 if you intend to host public web services.
  6. Install OpenClaw / Claudebot

    • Use the OpenClaw one-liner to install npm & OpenClaw (or follow manual instructions).
    • Choose manual config, local gateway, token authentication, and keep wide exposure off.
    • Example gateway default port: 18789.
  7. Model configuration (two recommended approaches)

    • Prefer using your provider subscription (saves cost; avoids raw API charges):
      • OpenAI: use ChatGPT subscription (Codex via ChatGPT Pro recommended for cost/limits).
      • Anthropic: use your Claude subscription (use claude code -> claude setup token to produce a token).
    • If using API keys, create dedicated API keys and set spending limits / quotas.
  8. Connect channels (example: Telegram)

    • Use BotFather in Telegram to create a bot (name must end with “bot”), copy the bot token.
    • In OpenClaw config, paste the Telegram bot token and configure pairing policy (pairing is recommended).
    • Pair your Telegram account to the bot using the provided pairing command and code.
  9. Gateway UI access and gateway token

    • Use SSH local port forwarding to map the gateway port to your local machine: bash ssh -N -L 18789:127.0.0.1:18789 <user>@<TAILSCALE_IP>

    • Open http://localhost:18789 in your browser.

    • Retrieve the gateway token from the bot (via Telegram command) and add ?token=<gateway_token> to the UI URL or paste it into the UI login.
    • Use the web UI to view channels, instances, cron jobs, enable skills, etc.
  10. Add skills and additional nodes - OpenClaw has built-in skills (coding, GitHub, monitoring, etc.). Enable only skills you trust; many require additional installs (brew, npm) and API tokens. - Sandbox skills: use separate accounts and credentials for each integration. - Skills that require administrative changes will need sudo on the server — requiring a password prevents the bot from self-elevating.

  11. Port forwarding for additional local services - To access bot-run services (e.g., FastAPI on port 500), create additional SSH port forwards: bash ssh -N -L 5000:127.0.0.1:5000 <user>@<TAILSCALE_IP>


Operational and safety notes


Useful commands / templates


Recommendations & cautions (summary)


Speaker and sources

Category ?

Technology


Share this summary


Is the summary off?

If you think the summary is inaccurate, you can reprocess it with the latest model.

Video