
Deploy RailClaw
One-click OpenClaw gateway ā persistent, containerized, just add API keys.
openclaw-railway-template
Just deployed
/root/.openclaw
Deploy and Host RailClaw on Railway š
RailClaw is an open-source AI agent gateway that connects language models to messaging channels like Telegram. It provides a single multiplexed endpoint for WebSocket and HTTP traffic, built-in auth, a control UI, and channel health monitoring out of the box.
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), a bot token for each messaging channel, 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
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) š A Telegram bot token (from https://t.me/BotFather) if using the Telegram channel (required) š Telegram user IDs for the DM allowlist (required) š An OpenAI API key for GPT models as a fallback provider (optional) š A Brave API key to enable the web_search tool (optional)
Deployment Dependencies
ā 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 with Telegram pre-configured as the default channel. To add new channels, services, or agents after deployment, use the OpenClaw Control UI at:
The Control UI is enabled by default and accessible via your Railway-assigned public domain. From there you can manage channels, configure agents, and monitor gateway health ā no redeployment required.
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
openclaw-railway-template
looselyorganized/openclaw-railway-templateANTHROPIC_API_KEY
Powers the agent's conversational model (Claude)
TELEGRAM_BOT_TOKEN
Bot token from @BotFather on Telegram enabling TG conversations.
TELEGRAM_ALLOW_FROM
Comma-separated Telegram user IDs allowed to message the bot
OPENCLAW_GATEWAY_TOKEN
Random string to secure gateway API access
