Deploy clawdguard-railway-template
GUI-first, Shodan-proof Clawdbot template for Railway
ClawdGuard Database
Just deployed
/var/lib/postgresql/data
clawdguard-railway-template
Just deployed
Deploy and Host clawdguard-railway-template on Railway
Clawd Guard is a security-hardened deployment template for Clawdbot, the WhatsApp AI agent. It binds to loopback by default, making your instance invisible to Shodan and port scanners while maintaining full functionality through a secure control plane.
About Hosting clawdguard-railway-template
Deploying Clawdbot typically exposes port 18789 to the public internet, making instances discoverable via Shodan (923+ exposed instances at last count). Clawd Guard solves this by binding the gateway to localhost only, with a minimal health endpoint for Railway's orchestration. The template includes automatic security defaults, persistent storage paths for WhatsApp session data, and an optional connection to the Clawd Guard dashboard for QR pairing and monitoring without terminal access.
Common Use Cases
- Running a personal WhatsApp AI assistant with Claude, GPT, or local models
- Building customer support automation that handles inquiries 24/7
- Creating scheduled reminders, notifications, and workflow automations via WhatsApp
Dependencies for clawdguard-railway-template Hosting
- Node.js 22+ runtime (included in template)
- Persistent volume mounted at
/datafor WhatsApp session persistence
Deployment Dependencies
- Clawdbot - The WhatsApp AI agent framework
- Clawd Guard Dashboard (optional) - GUI for QR pairing and monitoring
Implementation Details
The template uses a two-process architecture for security:
// health-server.js - Public endpoint (0.0.0.0:$PORT)
// Only responds to /health for Railway orchestration
server.listen(PORT, '0.0.0.0');
// clawdbot gateway - Private (127.0.0.1:18789)
// Unreachable from outside the container
exec clawdbot gateway --bind loopback --port 18789
Environment variables:
CLAWD_GUARD_TOKEN- Links instance to your Clawd Guard dashboard (optional)CLAWD_GUARD_URL- Control plane endpoint (optional)CLAWDBOT_BIND- Network binding, defaults toloopbackfor security
Why Deploy clawdguard-railway-template on Railway?
Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.
By deploying clawdguard-railway-template on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.
Template Content
ClawdGuard Database
ghcr.io/railwayapp-templates/postgres-ssl:17clawdguard-railway-template
DLhugly/clawdguard-railway-templateCLAWD_GUARD_TOKEN
Payment token (required - from purchase)
CLAWD_GUARD_PASSWORD
Dashboard password (required)