
Deploy RailClaw
One-click OpenClaw deployment ā persistent, containerized, just add keys.
railclaw
Just deployed
/root/.openclaw
Deploy and Host RailClaw on Railway š
RailClaw is a secure, containerized, one-click deploy of OpenClaw on Railway ā a pre-configured gateway with Control UI, token auth, channel health monitoring and persistent storage. No manual config files, no CLI setup, just deploy and connect.
About Hosting RailClaw š¦
Hosting RailClaw requires a persistent process that stays online to maintain connections to messaging channels and handle incoming requests.
The gateway needs API keys for your chosen LLM provider (Anthropic, OpenAI) and a secure gateway auth token.
Railway handles the container lifecycle, health checks, and automatic restarts ā so the gateway stays available without manual intervention.
Configuration is injected via environment variables at deploy time, with no files to manage.
Common Use Cases
š Run a personal AI assistant on Telegram with allowlist-based access control
š Deploy a customer-facing conversational agent backed by Claude or GPT models
š Host a multi-channel gateway that bridges AI models to messaging platforms like Telegram, WhatsApp, Discord, and Slack
Dependencies for RailClaw Hosting
š An Anthropic API key to power the agent's conversational model (required)
š A gateway auth token ā any random string to secure API access (required)
š An OpenAI API key for GPT models as a fallback provider (optional)
š A Brave API key to enable the web_search tool (optional)
š A custom model identifier, e.g. anthropic/claude-sonnet-4-6 (optional)
Deployment Dependencies
ā https://github.com/looselyorganized/railclaw
ā https://docs.openclaw.ai
ā https://github.com/openclaw/openclaw
ā https://ghcr.io/openclaw/openclaw
ā Healthcheck path: /health
ā Volume mount: /root/.openclaw
Implementation Details
This template deploys a minimal gateway with the Control UI enabled.
To add channels (Telegram, WhatsApp, Discord, Slack), configure agents, or manage cron jobs after deployment, use the Control UI.
Accessing the Control UI š»
The gateway logs a tokenized dashboard URL on startup. To find it:
- Open your service in the Railway dashboard
- Click the Deployments tab
- Select the active deployment
- Look for the Dashboard: line in the logs
The URL follows this pattern:
https://{your-railway-domain}/#token={your-OPENCLAW_GATEWAY_TOKEN}
The #token= fragment auto-fills authentication in the browser ā just click and connect. The token is never sent to the server (URL fragments stay client-side).
From the Control UI you can:
ā Chat with the agent directly
ā Configure channels ā Telegram, WhatsApp, Discord, Slack, and more
ā Manage agents, sessions, and cron jobs
ā Edit gateway config live
Security š
This template sets dangerouslyDisableDeviceAuth: true in the gateway config.
Don't worry, you're still secured.
This is required because OpenClaw's default device pairing flow requires CLI access to approve new browsers (OpenClaw devices approve), which isn't possible inside a Railway container.
With this flag disabled, token auth is the sole protection for the Control UI.
Your OPENCLAW_GATEWAY_TOKEN is effectively your admin password ā treat it accordingly:
ā Use a strong, random token (64+ hex characters recommended) ā Don't share the tokenized dashboard URL publicly ā Rotate the token by updating the env var and redeploying
How It Works š¤
This template pulls the latest tag of the official OpenClaw Docker image (ghcr.io/openclaw/openclaw:latest), so every Railway deployment builds against the most current stable release.
The gateway runs as a single containerized service with built-in health checks, automatic restart on failure, and all configuration injected via environment variables ā no sidecar services, no manual config files.
A persistent volume at /root/.openclaw preserves config, conversation history, and agent state across redeploys.
Why Deploy RailClaw 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 RailClaw 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
railclaw
looselyorganized/railclawANTHROPIC_API_KEY
Powers the agent's conversational model (Claude). Get one at console.anthropic.com
OPENCLAW_GATEWAY_TOKEN
Random string to secure gateway API access.
