---
title: "Deploy Spacebot"
description: "Openclaw alternative for teams, communities, and multi-user environments."
category: "AI/ML"
url: https://railway.com/deploy/spacebot-1
---

# Deploy Spacebot

Openclaw alternative for teams, communities, and multi-user environments.

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

- **Creator:** Tom
- **Category:** AI/ML
- **Total deploys:** 5

## Template content

### Spacebot https://raw.githubusercontent.com/spacedriveapp/spacebot/main/.github/Ball.png

- **Image:** ghcr.io/spacedriveapp/spacebot@sha256:ccd9411f72def62b192e44aed23446b94e6e4774d55d7100a94de1531029f6ed
- **Public domain:** Yes

## Documentation

# Deploy and Host Spacebot on Railway

<p align="center">
  <img height="120" width="120" alt="Spacebot" src="https://raw.githubusercontent.com/spacedriveapp/spacebot/main/.github/Ball.png">
</p>

<h1 align="center">Spacebot</h1>

<p align="center">
  <strong>An AI agent for teams, communities, and multi-user environments.</strong><br>
  Thinks, executes, and responds — concurrently, not sequentially.<br>
  Never blocks. Never forgets.
</p>

<p align="center">
  <a href="https://spacebot.sh"><strong>spacebot.sh</strong></a> •
  <a href="#how-it-works">How It Works</a> •
  <a href="#architecture">Architecture</a> •
  <a href="#quick-start">Quick Start</a> •
  <a href="#tech-stack">Tech Stack</a> •
  <a href="https://docs.spacebot.sh">Docs</a>
</p>

&gt; **One-click deploy with [spacebot.sh](https://spacebot.sh)** — connect your Discord, Slack, Telegram, or Twitch, configure your agent, and go. No self-hosting required.

<p align="center">
  <img alt="Spacebot UI" src="https://raw.githubusercontent.com/spacedriveapp/spacebot/refs/heads/main/.github/spacebot-ui.jpg">
</p>

Spacebot is an AI agent designed for teams and communities, built in Rust with a unique concurrent architecture. Unlike single-session agents, it uses specialized processes—Channels for conversation, Branches for thinking, and Workers for tasks—to handle multiple users simultaneously across Discord, Slack, Telegram, and Twitch without blocking.

## About Hosting Spacebot

Spacebot deploys as a single Rust binary with zero external dependencies. It uses embedded SQLite, LanceDB, and redb for persistence, requiring only a volume mount for data storage. Configuration is handled via TOML files and environment variables for LLM API keys (Anthropic, OpenAI, OpenRouter, etc.) and messaging platform tokens. Railway's persistent volume support makes it ideal for hosting Spacebot's databases and memory graph.

## Common Use Cases

- **Community Management:** Deploy an AI moderator and helper in busy Discord servers or Slack workspaces that can handle 50+ concurrent conversations while maintaining context per user
- **Developer Operations:** Run coding agents that spawn persistent workers for complex refactors using OpenCode integration, while answering quick questions from team members simultaneously  
- **Automated Research &amp; Monitoring:** Schedule cron jobs with natural language ("check inbox every 30 minutes") that execute research tasks and report back to specific channels

## Dependencies for Spacebot Hosting

- LLM API Key (Anthropic, OpenAI, OpenRouter, or other supported provider)
- Messaging Platform Credentials (Discord bot token, Slack app credentials, Telegram bot token, or Twitch IRC credentials)

### Deployment Dependencies

- [Spacebot GitHub Repository](https://github.com/spacedriveapp/spacebot)
- [Spacebot Quick Start Guide](https://github.com/spacedriveapp/spacebot/blob/main/docs/quickstart.md)
- [Railway Persistent Volumes Documentation](https://docs.railway.app/guides/volumes)

### Implementation Details

Spacebot requires a persistent volume mounted at `/data` (or your configured data directory) to maintain SQLite conversations, LanceDB vector embeddings, and memory graphs across deployments. The binary exposes health check endpoints and Prometheus metrics on a configurable port. Environment variables should include `OPENROUTER_API_KEY`, `ANTHROPIC_API_KEY`, or provider-specific keys, plus platform tokens like `DISCORD_BOT_TOKEN`.

## Why Deploy Spacebot 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 Spacebot 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/spacebot-1
