---
title: "Deploy ZeroClaw"
description: "Autonomous AI assistant in Rust with web dashboard, memory and webhook"
category: "AI/ML"
url: https://railway.com/deploy/zeroclaw
---

# Deploy ZeroClaw

Autonomous AI assistant in Rust with web dashboard, memory and webhook

**[Deploy ZeroClaw on Railway](https://railway.com/template/zeroclaw)**

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

- **Creator:** Agaz Self-Host
- **Category:** AI/ML

## Template content

### ZeroClaw https://raw.githubusercontent.com/zeroclaw-labs/zeroclaw/v0.9.0/web/public/logo.png

- **Source:** https://github.com/aalfath/zeroclaw-railway-template
- **Health check:** /health
- **Public domain:** Yes

## Documentation

# Deploy and Host ZeroClaw on Railway

ZeroClaw is an open-source (Apache-2.0) autonomous AI personal-assistant runtime written in Rust. One small binary runs an agent with memory, tools, scheduled jobs and chat channels, plus a web dashboard and an HTTP/WebSocket gateway. You bring an API key for any OpenAI-compatible model. This template deploys ZeroClaw v0.9.0.

## About Hosting ZeroClaw

ZeroClaw runs as one long-lived daemon that keeps its config, memory database and workspace on disk. This template builds the official `ghcr.io/zeroclaw-labs/zeroclaw` Debian image (pinned by version and digest) from a small wrapper repository. The gateway listens only inside the container; a Caddy front on Railway's port asks for a generated dashboard password, so nobody can spend your API key through an open URL. All state lives on a Railway volume and survives redeploys. Your LLM key, base URL and model come from Railway variables at every start. It idles at about 30 MB of RAM.

## Common Use Cases

* A private, always-on AI assistant you chat with from the browser dashboard
* An agent behind a webhook that other tools, scripts or automations can call
* Connecting the assistant to chat channels (Telegram, Discord, Slack and others) from the dashboard

## Dependencies for ZeroClaw Hosting

* An API key for an OpenAI-compatible LLM provider (OpenAI, OpenRouter, Groq, DeepSeek, Together and others)
* A Railway volume for config, memory and workspace (included)

### Deployment Dependencies

* ZeroClaw: https://github.com/zeroclaw-labs/zeroclaw (release v0.9.0)
* Official image: https://github.com/zeroclaw-labs/zeroclaw/pkgs/container/zeroclaw (`v0.9.0-debian`, pinned by digest)
* OpenAI API keys: https://platform.openai.com/api-keys (or OpenRouter: https://openrouter.ai/keys)
* Template source: https://github.com/aalfath/zeroclaw-railway-template

### Implementation Details

**Services**

| Service | What it does |
|---|---|
| `ZeroClaw` (public) | The ZeroClaw daemon (gateway, dashboard, agent, scheduler, channels) on loopback, behind a Caddy password front on Railway's port. Health check `/health` (no password). Volume at `/zeroclaw-data` holds the config, memory and workspace. |

**After deploying**

1. Enter `LLM_API_KEY` when you deploy. This is the only prompt.
2. Open the service's public URL. Log in as `admin` with the password in the `DASHBOARD_PASSWORD` variable (service, Variables tab).
3. Chat with the assistant in the dashboard, or call the webhook:

```bash
curl -u admin:YOUR-DASHBOARD-PASSWORD -H 'Content-Type: application/json' \
  -d '{"message":"Hello"}' https://YOUR-DOMAIN/webhook
```

4. To use another provider, change `LLM_BASE_URL` and `LLM_MODEL`, for example `https://openrouter.ai/api/v1` with `openai/gpt-4.1-mini`, or `https://api.groq.com/openai/v1` with `llama-3.3-70b-versatile`. Other settings (channels, tools, schedules) are edited in the dashboard; restart the service after saving config.

**Variables**

| Variable | Default | What it is |
|---|---|---|
| `LLM_API_KEY` | you enter it | API key for your OpenAI-compatible LLM provider. |
| `LLM_BASE_URL` | `https://api.openai.com/v1` | Base URL of the OpenAI-compatible API. |
| `LLM_MODEL` | `gpt-4.1-mini` | Model name sent to that API. |
| `DASHBOARD_USERNAME` | `admin` | Login name for the dashboard, API and webhook. |
| `DASHBOARD_PASSWORD` | generated (24 characters) | Password for the dashboard, API and webhook. The service refuses to start without one. |
| `PORT` | `8080` | Port of the password front that Railway routes to. |

**Resources.** Tested with 0.5 GB RAM and 1 vCPU: ZeroClaw and Caddy together used about 30 MB. If either process stops unexpectedly the container exits non-zero and Railway restarts it.

**Updates.** Railway shows an update notice when this template's repository pins a new ZeroClaw version. Read the repository's `CHANGELOG.md` first, then apply it; your config and memory stay on the volume.

**Left out.** Docker-based sandboxed shell execution (needs Docker-in-Docker, which Railway does not offer) and local models such as Ollama (no GPU on Railway). The agent runs in the `supervised` risk profile with only low-risk tools auto-approved.

## Why Deploy ZeroClaw 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 ZeroClaw 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.
- [Weaviate](https://railway.com/deploy/weaviate-1) — Vector database with hybrid search and an API key-protected API
- [Möbius Personal AI OS](https://railway.com/deploy/mobius-v01-personal-ai-os) — Self-hosted AI agent that builds and runs apps for you, with memory.

Open this page in a browser: https://railway.com/deploy/zeroclaw
