---
title: "Deploy Clawdbot AI"
description: "Deploy your own [ClawdBot AI] gateway on Railway with persistent storage."
category: "Automation"
url: https://railway.com/deploy/clawdbot-ai
---

# Deploy Clawdbot AI

Deploy your own [ClawdBot AI] gateway on Railway with persistent storage.

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

- **Creator:** iCue
- **Category:** Automation

## Template content

### Clawdbot AI https://i.postimg.cc/9FKZpGDH/clawdbotai-removebg-preview.png

- **Source:** icueth/clawdbot-ai-railway
- **Public domain:** Yes

## Documentation

# Deploy and Host Clawdbot AI on Railway

ClawdBot AI is a powerful, flexible AI gateway and agent system designed to bridge various LLMs (Claude, GPT, Gemini, DeepSeek) with multiple chat platforms like Telegram, Discord, and Slack. It provides a unified interface for managing AI-driven interactions, session persistence, and custom agent logic with built-in memory capabilities.

[![Deploy on Railway](https://railway.com/button.svg)](https://railway.com/template/clawdbot-railway-template)

## About Hosting Clawdbot AI

Deploying ClawdBot AI involves setting up a containerized environment capable of running the Go-based gateway service. For a production-ready setup, the service requires a persistent storage volume to maintain state (sessions, memory, and configurations) across restarts. By hosting on Railway, the process is streamlined through a Docker-based deployment that automatically configures public networking and volume mounting. You will need to provide environment variables for your chosen AI providers (API keys) and messenger bots (tokens). Once initialized, the service offers a web-based wizard for final configuration and real-time management.

## Common Use Cases

- **Personal AI Assistant**: Automate tasks and get instant answers across Telegram and Discord.
- **Unified AI Gateway**: Centralize multiple AI models (OpenAI, Anthropic, Groq) under one persistent infrastructure.
- **Enterprise Middleware**: Bridge corporate Slack channels with customized AI agents for automated research or support.

## Dependencies for Clawdbot AI Hosting

- **API Keys**: Access keys for AI models (e.g., Anthropic, OpenAI, or Google Generative AI).
- **Persistent Volume**: A storage unit mounted at `/data` to preserve agent state and session data.
- **Bot Tokens**: Integration tokens from platforms like Telegram (@BotFather) or Discord Developer Portal.

### Deployment Dependencies

- [Railway Developer Platform](https://railway.com)
- [Anthropic Console](https://console.anthropic.com/)
- [OpenAI Dashboard](https://platform.openai.com/)
- [Telegram BotFather](https://t.me/botfather)

### Implementation Details

The gateway runs on port `8080` by default and utilizes a `/data` mount point for state persistence. Configuration is managed via environment variables to ensure secrets like API keys remain secure.

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

---

## 🚀 Easy Setup

1. **Deploy**: Click the button above or connect your fork to Railway.
2. **Setup ENV**: Fill in the required environment variables (see below).
3. **Volume**: Make sure a volume is mounted at `/data` (Auto-configured in `railway.json`).
4. **Access**: Once deployed, visit `https://YOUR-URL/setup` and use your `SETUP_PASSWORD`.

## Environment Variables

### System Config (Required)

- `SETUP_PASSWORD`: Admin password for the web wizard.
- `PORT`: Fixed to `8080` (Must match Railway Public Networking).
- `CLAWDBOT_STATE_DIR`: `/data/.clawdbot` (Persistence).
- `CLAWDBOT_WORKSPACE_DIR`: `/data/workspace` (Agent storage).

### AI Provider Keys

- `ANTHROPIC_API_KEY`: API key for Claude 3.5 Sonnet / Claude 3 Opus.
- `OPENAI_API_KEY`: API key for GPT-4o / GPT-4o-mini.
- `DEEPSEEK_API_KEY`: API key for DeepSeek V3 / R1.
- `GOOGLE_GENERATIVE_AI_API_KEY`: Gemini 2.0 / 1.5 API key.
- `GROQ_API_KEY`: Llama 3 / Mixtral API key via Groq.

### Chat Integration

- `TELEGRAM_BOT_TOKEN`: Token from @BotFather.
- `DISCORD_BOT_TOKEN`: Token from Discord Developer Portal.
- `SLACK_BOT_TOKEN`: Slack Bot User OAuth Token.
- `WHATSAPP_LINK_CODE`: Pairing code for WhatsApp.

## Persistence

Everything is stored in the Railway Volume mounted at `/data`. This includes your login sessions, agent configurations, and memory.


## Similar templates

- [N8N Main + Worker](https://railway.com/deploy/n8n-main-worker) — Deploy and Host N8N with Inactive worker.
- [Evolution API with n8n](https://railway.com/deploy/evolution-api-with-n8n) — Automate WhatsApp workflows with Evolution API, n8n, and Postgres.
- [Postgres Backup](https://railway.com/deploy/postgres-s3-backups) — Cron-based PostgreSQL backup to bucket storage

Open this page in a browser: https://railway.com/deploy/clawdbot-ai
