4.0 KiB
| summary | read_when | |||
|---|---|---|---|---|
| Moltbot on Tencent Cloud Lighthouse |
|
Moltbot on Tencent Cloud Lighthouse
Goal
Run a persistent Moltbot Gateway on Tencent Cloud Lighthouse.
Tencent Cloud Lighthouse is a lightweight VPS product, ideal for small applications and personal projects:
- Simple pricing with bundled bandwidth
- Quick deployment with pre-configured images
- Good global connectivity
Prerequisites
- Tencent Cloud account (signup)
- ~10 minutes
1) Create a Lighthouse Instance
Go to the Lighthouse purchase page, select the following configuration, or click Quick Link to get started directly.
Configuration:
- App creation method: App Template > AI Agent > Moltbot
- Region: Prefer overseas regions such as Silicon Valley, Virginia, Singapore, etc.
- Plan:
- Plan type: Razor Speed Type (recommended), Starter Type, or General Type
- Plan specs: 2 vCPUs, 2GB RAM or above
- Server name, login method: Configure as needed
Click Buy Now. Once created, note the public IP address.
2) Connect to the Server
Go to the Lighthouse Console to view your newly purchased Moltbot instance. Click the Login button to open the Web login tool (OrcaTerm). Select ubuntu as the login user, choose Passwordless Login, and click Login.
3) Initialize Moltbot
Moltbot is pre-installed in the app image. After logging in, run the following command to initialize:
moltbot onboard
Follow the prompts to complete the initialization.
4) Verify
# Check version
moltbot --version
# Check daemon status
systemctl --user status moltbot-gateway
# Test local response
curl http://localhost:18789
5) Configure Firewall (Security Group)
- Go to Lighthouse Console → Select your instance → Firewall
- Configure rules:
- Allow: TCP 22 (SSH)
- Allow: TCP 18789 (Gateway) - if external access is needed
Access the Control UI
Access via public IP:
http://YOUR_PUBLIC_IP:18789/
If the Gateway is bound to LAN or public, you can access it directly via browser.
Security Recommendations
Recommended Measures
- Credential permissions:
chmod 700 ~/.moltbot - Security audit:
moltbot security audit - System updates: Regularly run
sudo apt update && sudo apt upgrade - Use token auth:
moltbot config set gateway.auth.mode token
Verify Security Status
# View listening ports
sudo ss -tlnp
# Check gateway status
moltbot gateway status
Troubleshooting
Cannot connect via SSH
Check security group rules:
- Ensure port 22 is open for your IP
- Verify the public IP address is correct
- Check if the instance is running
Gateway won't start
moltbot gateway status
moltbot doctor --non-interactive
journalctl --user -u moltbot-gateway -n 50
Can't reach Control UI
# Check if gateway is listening
curl http://localhost:18789
# Restart if needed
systemctl --user restart moltbot-gateway
Bandwidth limits
Tencent Cloud Lighthouse has bundled bandwidth. If you hit limits:
- Upgrade to a higher tier
- Monitor bandwidth usage in the console
Persistence
All state lives in:
~/.moltbot/— config, credentials, session data~/clawd/— workspace (SOUL.md, memory, artifacts)
Back up periodically:
tar -czvf moltbot-backup.tar.gz ~/.moltbot ~/clawd
See Also
- Gateway remote access — other remote access patterns
- Gateway configuration — all config options
- Hetzner guide — Docker-based alternative