---
title: "Deploy Clawdbot"
description: "Self-hosted AI agent gateway with web UI. Any LLM provider."
category: "AI/ML"
url: https://railway.com/deploy/clawdbot-1
---

# Deploy Clawdbot

Self-hosted AI agent gateway with web UI. Any LLM provider.

**[Deploy Clawdbot on Railway](https://railway.com/template/clawdbot-1)**

- **Creator:** NA's Projects
- **Category:** AI/ML
- **Total deploys:** 72

## Template content

### clawdbot-railway https://clawd.bot/favicon.svg

- **Source:** namanxajmera/clawdbot-railway
- **Public domain:** Yes

## Documentation

# Deploy and Host Clawdbot on Railway

Clawdbot is a self-hosted AI agent gateway that connects any LLM provider — Anthropic, OpenAI, MiniMax, and more — to a unified web dashboard. It includes chat, agent management, persistent memory, a file workspace, and support for messaging channels like Telegram, Discord, WhatsApp, and Slack.

## About Hosting Clawdbot

Clawdbot runs as a Node.js gateway inside a Docker container. This template deploys it with a persistent volume so your config, agent memories, and workspace files survive redeployments. A minimal gateway config is baked into the Docker image and automatically seeded to the volume on first boot. After deploy, you configure your API keys and model provider entirely through the web-based Control UI — no SSH, no manual JSON editing, no environment variable juggling. The gateway supports hot-reloading, so config changes apply without downtime.

## Setup After Deploy

1. **Open the Control UI** — go to your Railway-generated domain URL
2. **Connect with your token** — on the Gateway Access page, enter the `CLAWDBOT_GATEWAY_TOKEN` from your Railway Variables tab and click Connect
3. **Set your API key** — in the Control UI, go to Config and add your Anthropic API key
4. **Set your workspace** — in Config, set the agent workspace to `/data/clawd` so files persist on the volume
5. **Start chatting** — go to the Chat tab and send a message

All configuration is done through the Control UI. The default model is Claude Opus 4.5 — no extra setup needed.

## Common Use Cases

- Run a personal AI assistant accessible from any browser or messaging app
- Host a multi-model gateway that routes between Claude, GPT, MiniMax, or any LLM provider
- Deploy a persistent AI agent with its own workspace, memory, and file storage
- Connect AI to Telegram, Discord, WhatsApp, or Slack from a single gateway

## Dependencies for Clawdbot Hosting

- An API key from at least one LLM provider (e.g. Anthropic, OpenAI, MiniMax)
- A Railway account with a volume for persistent storage

### Deployment Dependencies

- [Clawdbot Documentation](https://docs.clawd.bot)
- [Clawdbot GitHub](https://github.com/clawdbot/clawdbot)
- [Clawdbot Website](https://clawd.bot)

### Implementation Details

The Dockerfile uses an inline ENTRYPOINT to seed config on first boot:

- A default gateway config is baked into the image at build time
- On container start, the ENTRYPOINT checks if a config file exists on the volume
- If not, it copies the baked default to the volume, then starts the gateway
- Subsequent deploys reuse the existing volume config, preserving all your settings

The `CLAWDBOT_STATE_DIR` environment variable points the gateway to the volume-backed directory. The `CLAWDBOT_GATEWAY_TOKEN` secures access to the Control UI.

## Why Deploy Clawdbot 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 Clawdbot 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

- [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/clawdbot-1
