Railway

Deploy clawdguard-railway-template

GUI-first, Shodan-proof Clawdbot template for Railway

Deploy clawdguard-railway-template

Just deployed

/var/lib/postgresql/data

clawdguard-railway-template

DLhugly/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

  1. Running a personal WhatsApp AI assistant with Claude, GPT, or local models
  2. Building customer support automation that handles inquiries 24/7
  3. Creating scheduled reminders, notifications, and workflow automations via WhatsApp

Dependencies for clawdguard-railway-template Hosting

  1. Node.js 22+ runtime (included in template)
  2. Persistent volume mounted at /data for WhatsApp session persistence

Deployment Dependencies

  1. Clawdbot - The WhatsApp AI agent framework
  2. 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 to loopback for 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-railway-template

DLhugly/clawdguard-railway-template

More templates in this category

View Template
Foundry Virtual Tabletop
A Self-Hosted & Modern Roleplaying Platform

Lucas
View Template
(v1) Simple Medusa Backend
Deploy an ecommerce backend and admin using Medusa

Shahed Nasser
View Template
peppermint
Docker-compose port for peppermint.sh

HamiltonAI