Deploy Clawdbot on Tencent Cloud Lighthouse in Minutes – Step‑by‑Step Guide
This tutorial walks you through deploying the AI‑powered Clawdbot agent on Tencent Cloud Lighthouse, covering server creation, SSH access, one‑click template installation, interactive onboarding configuration, model and Discord integration, gateway startup, pairing, and verification to achieve a continuously running personal AI assistant.
Clawdbot is an AI agent that runs in the user’s own environment and interacts via familiar chat apps. Deploying it on a cloud server avoids the high cost and security risks of running it on a personal machine.
1. Create a Lighthouse instance
Choose an overseas region (e.g., Singapore or Tokyo) and a lightweight OS image that includes the Clawdbot application template.
Recommended size: 2 vCPU, 2 GB RAM, 1‑month billing.
Record the public IP address and login password.
2. Log in to the server
ssh ubuntu@YOUR_PUBLIC_IPConfirm the SSH connection prompt by typing yes and then enter the password.
3. Install Clawdbot
clawdbot onboardThe installer launches an interactive TUI. Follow the recommended selections:
Risk acknowledgement – select Yes .
Onboarding mode – choose QuickStart .
Model/Auth provider – pick a supported provider (e.g., Moonshot AI, Google Gemini, or Qwen) and enter the API key.
Communication channel – select Discord (Bot API) and follow the steps to create a Discord application, enable Bot and Message Content Intent , then copy the bot token.
Skills – select No for now.
Hooks – enable only session‑memory to keep conversation context.
Hatch mode – choose Hatch in TUI for terminal‑only operation.
4. Start the gateway
clawdbot gateway --port 18789 --verboseThe gateway runs on port 18789 and prints a pairing code.
5. Pair with Discord
In Discord, start a private chat with the bot, copy the pairing code shown, then run:
clawdbot pairing approve discord <pairing_code>After approval, restart the gateway:
clawdbot gateway --port 18789 --verbose6. Verify deployment
If the gateway logs display Wake up, my friend! and the bot replies in Discord, the deployment succeeded.
7. First interaction
You are Clawbot. Your main responsibility is to help me with research, writing, and analysis tasks.Send the prompt in Discord and confirm the bot returns a sensible answer.
8. Security recommendations
Run Clawdbot only on isolated cloud or VPS instances, not on personal computers.
Do not grant the agent access to banking, wallet, or other critical accounts.
Treat the agent as an automation sandbox and limit its permissions.
Following these steps gives you a continuously running AI assistant that you can control via Discord while keeping your local environment safe.
Tencent Cloud Developer
Official Tencent Cloud community account that brings together developers, shares practical tech insights, and fosters an influential tech exchange community.
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.
