
Deploy ZeroClaw
Autonomous AI assistant in Rust with web dashboard, memory and webhook
Just deployed
/zeroclaw-data
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
- Enter
LLM_API_KEYwhen you deploy. This is the only prompt. - Open the service's public URL. Log in as
adminwith the password in theDASHBOARD_PASSWORDvariable (service, Variables tab). - Chat with the assistant in the dashboard, or call the webhook:
curl -u admin:YOUR-DASHBOARD-PASSWORD -H 'Content-Type: application/json' \
-d '{"message":"Hello"}' https://YOUR-DOMAIN/webhook
- To use another provider, change
LLM_BASE_URLandLLM_MODEL, for examplehttps://openrouter.ai/api/v1withopenai/gpt-4.1-mini, orhttps://api.groq.com/openai/v1withllama-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.
Template Content
LLM_API_KEY
API key for your OpenAI-compatible LLM provider (OpenAI: platform.openai.com/api-keys; or OpenRouter, Groq...).

