---
title: "Deploy openclaw"
description: "openclaw simple to deploy and host"
category: "Other"
url: https://railway.com/deploy/openclaw-6
---

# Deploy openclaw

openclaw simple to deploy and host

**[Deploy openclaw on Railway](https://railway.com/template/openclaw-6)**

- **Category:** Other

## Template content

### openclaw-railway

- **Source:** matlee0409/openclaw-railway
- **Start command:** `node src/sever.js`
- **Health check:** /api/status
- **Public domain:** Yes

## Documentation

# Deploy and Host OpenClaw on Railway

OpenClaw is an open-source, self-hosted personal AI agent that connects powerful
AI models like Claude, GPT, and Gemini to your messaging apps and local tools.
It runs as a persistent gateway, executing tasks, managing files, automating
workflows, and maintaining memory — all on infrastructure you control.

## About Hosting OpenClaw

Hosting OpenClaw involves running a long-lived Node.js gateway process that stays
online 24/7 to handle incoming messages and execute tasks autonomously. This
template wraps the OpenClaw gateway with a browser-based setup wizard, so you
can configure your AI provider, messaging channels, and credentials without
needing SSH or CLI access. A Railway Volume is required to persist your
configuration, agent memory, and workspace across redeploys. Once live, the
gateway is accessible via your Railway-assigned domain, with the setup wizard
at `/setup` and the Control UI at `/openclaw`.

## Common Use Cases

- **Personal AI Assistant** — Chat with Claude or GPT via Telegram, Discord, or
  the web UI to automate daily tasks, answer questions, and execute commands
  on your behalf around the clock.
- **Automated Workflow Scheduling** — Use OpenClaw's HEARTBEAT feature to
  schedule recurring tasks such as web scraping, file processing, API calls,
  and notifications without writing any code.
- **DevOps & Infrastructure Monitoring** — Leverage the built-in terminal and
  gateway to monitor server logs, trigger health checks, and respond to
  infrastructure events through a familiar chat interface.

## Dependencies for OpenClaw Hosting

- **LLM API Key** — An API key from Anthropic (Claude), OpenAI (GPT), Google
  (Gemini), or any OpenRouter-compatible provider to power the agent's
  reasoning and responses.
- **Railway Volume mounted at `/data`** — Persistent storage for OpenClaw's
  config, credentials, agent memory, and workspace files. Without this,
  all state is lost on redeploy.

### Deployment Dependencies

- [OpenClaw GitHub Repository](https://github.com/openclaw/openclaw) — Source
  code and full documentation for the OpenClaw agent framework.
- [Anthropic API Keys](https://console.anthropic.com) — Recommended LLM
  provider (Claude models).
- [OpenAI API Keys](https://platform.openai.com/api-keys) — Alternative LLM
  provider (GPT models).
- [Railway Volumes Guide](https://docs.railway.com/guides/volumes) — Required
  for persisting OpenClaw state across redeploys.
- [Railway Variables Guide](https://docs.railway.com/guides/variables) — For
  setting `SETUP_PASSWORD`, your API key, and other config securely.
- [Telegram BotFather](https://t.me/botfather) — Create a Telegram bot token
  if you want to interact with OpenClaw via Telegram.
- [Discord Developer Portal](https://discord.com/developers/applications) —
  Create a Discord bot if you want to interact via Discord.

### Implementation Details

The template runs a Node.js wrapper on Railway's injected `$PORT` (default
`8080`) that reverse-proxies HTTP and WebSocket traffic to the internal OpenClaw
gateway on `127.0.0.1:18789`:

## Why Deploy openclaw 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 openclaw 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.

## Similar templates

- [Rocky Linux](https://railway.com/deploy/rocky-linux) — Hosted Rocky Linux 9 workspace with SSH and persistent storage. 🚀
- [Foundry Virtual Tabletop](https://railway.com/deploy/X5tR6G) — A Self-Hosted & Modern Roleplaying Platform
- [Letta Code Remote](https://railway.com/deploy/letta-code-remote) — Run a Letta Code agent 24/7. No inbound ports, just deploy.

Open this page in a browser: https://railway.com/deploy/openclaw-6
