---
title: "Deploy openclaw-v2"
description: "Self-host OpenClaw 2.0 Gateway and Control UI"
category: "AI/ML"
url: https://railway.com/deploy/openclaw-v2
---

# Deploy openclaw-v2

Self-host OpenClaw 2.0 Gateway and Control UI

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

Machine-readable deploy manifest (JSON, validated by TemplateCI): https://railway.com/deploy/openclaw-v2/manifest.json

- **Creator:** feliperosenek
- **Category:** AI/ML
- **Total deploys:** 2

## Template content

### openclaw-2 https://openclaw.ai/favicon.svg

- **Source:** https://github.com/feliperosenek/openclaw-2-railway
- **Health check:** /healthz
- **Public domain:** Yes

## Documentation

# Deploy and Host OpenClaw 2.0 on Railway

Deploy this repository as **OpenClaw 2.0** on Railway — the personal AI assistant that connects to WhatsApp, Telegram, Slack, Discord, and 20+ channels. OpenClaw 2.0 is the `v2026.8.1+` release line (guided setup, rebuilt Control UI, one trust boundary per gateway). This template pins the official Docker image so you stay on a current 2.0 build.

## About Hosting

This template runs the official [`openclaw/openclaw`](https://hub.docker.com/r/openclaw/openclaw) image (default tag **`2026.9.5`**) with Railway-ready defaults: gateway on port **8080**, state under `/data/.openclaw`, workspace under `/data/workspace`, and auth via `OPENCLAW_GATEWAY_TOKEN`.

After deploy, open `https:///` and paste the gateway token to access the Control UI. Configure your LLM provider and messaging channels from the browser — no SSH required for day-to-day use.

**Security:** the Gateway is exposed publicly. Read the [OpenClaw security docs](https://docs.openclaw.ai/gateway/security) and treat `OPENCLAW_GATEWAY_TOKEN` as an admin secret.

## Why Deploy

- **OpenClaw 2.0 ready** — pinned to a post-`v2026.8.1` release, not a stale 1.x / March pin
- **Official image** — thin Railway wrapper; upgrade by bumping `OPENCLAW_VERSION`
- **Persistent memory** — volume-backed config, SQLite auth stores, sessions, and workspace
- **Multi-channel** — Telegram, Discord, Slack, WhatsApp, and more via Control UI or `openclaw onboard`

## Common Use Cases

- Always-on personal AI assistant on Telegram / WhatsApp
- Team bot on Slack or Discord with persistent memory
- Self-hosted alternative to ChatGPT with your own API keys

## Dependencies for

This template provides the **OpenClaw Gateway + Control UI**. Your LLM provider API key and optional channel bot tokens are configured after deploy.

### Deployment Dependencies

- **OPENCLAW_GATEWAY_TOKEN** (required) — Shared secret for Gateway / Control UI. Use `${{secret(32)}}` in the template.
- **OPENCLAW_GATEWAY_PORT** — Must be `8080` and match Railway HTTP public networking.
- **Volume** — Mount at **`/data`** so index/config/sessions survive redeploys.
- **Public HTTP** — Enable Railway HTTP Proxy / domain on port **8080**.
- **Trusted proxy** — Template sets `gateway.trustedProxies` to `100.64.0.0/10` (Railway edge) and injects `RAILWAY_PUBLIC_DOMAIN` into Control UI `allowedOrigins`.

### Connecting

| Item | Value |
|------|-------|
| Control UI | `https:///` |
| Gateway token | `${{openclaw.OPENCLAW_GATEWAY_TOKEN}}` |
| State dir | `/data/.openclaw` |
| Workspace | `/data/workspace` |



## Similar templates

- [Chat Chat](https://railway.com/deploy/-WWW5r) — Chat Chat, your own unified chat and search to AI platform.
- [stella](https://railway.com/deploy/stella) — Self-host stella with web, API, Postgres, Redis, and object storage.
- [Hermes Agent | OpenClaw Alternative with Dashboard](https://railway.com/deploy/hermes-agent-or-openclaw-alternative-wit) — Self-Hosted Hermes AI Agent for Telegram, Discord & Slack

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