Railway

Deploy Spacebot

An AI agent for teams, communities, and multi-user environments.

Deploy Spacebot

Just deployed

/data

See the difference between Full and Slim versions here

An AI agent for teams, communities, and multi-user environments.
Thinks, executes, and responds — concurrently, not sequentially.
Never blocks. Never forgets.

spacebot.shDocs

Spacebot UI

Spacebot is an AI agent built for teams, communities, and multi-user environments. Unlike single-threaded agents, it thinks, executes, and responds concurrently — handling dozens of simultaneous conversations across Discord, Slack, Telegram, and more without ever blocking.

About Hosting Spacebot

Hosting Spacebot involves running a Rust-based binary that coordinates multiple specialized processes: a session manager, memory system, worker pool, and messaging adapters. Connect your chosen platforms (Discord, Slack, Telegram, Twitch, Webchat, or webhook) and optionally set up persistent memory storage. A single deployment can run multiple agents with distinct identities and permission sets, making it well-suited for communities or engineering teams that need a reliable, always-on AI presence without managing complex infrastructure themselves.

Common Use Cases

  • Community bots — Drop Spacebot into a Discord server and let fifty members interact with it simultaneously across channels and threads, with per-member memory and real background task execution
  • Team assistants — Connect to Slack so engineers can run long coding sessions in one channel while teammates get quick answers in another, all without waiting on each other
  • Scheduled automation — Use built-in cron job support to run recurring research, reporting, or file operations in the background across any connected platform

Dependencies for Spacebot Hosting

  • API credentials for your chosen messaging platform(s) — Discord bot token, Slack app credentials, Telegram bot token, etc.
  • (Optional) A persistent volume or external database for long-term memory storage
  • (Optional) A headless Chrome instance if using the browser worker backend

Deployment Dependencies

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.


The Problem

Most AI agent frameworks run everything in a single session. One LLM thread handles conversation, thinking, tool execution, memory retrieval, and context compaction — all in one loop. When it's doing work, it can't talk to you. When it's compacting, it goes dark. When it retrieves memories, raw results pollute the context with noise.

OpenClaw does have subagents, but handles them poorly and there's no enforcement to their use. The session is the bottleneck for everything.

Spacebot splits the monolith into specialized processes that only do one thing, and delegate everything else.


Built for Teams and Communities

Most AI agents are built for one person in one conversation. Spacebot is built for many people working together — a Discord community with hundreds of active members, a Slack workspace with teams running parallel workstreams, a Telegram group coordinating across time zones.

This is why the architecture exists. A single-threaded agent breaks the moment two people talk at once. Spacebot's delegation model means it can think about User A's question, execute a task for User B, and respond to User C's small talk — all at the same time, without any of them waiting on each other.

For communities — drop Spacebot into a Discord server. It handles concurrent conversations across channels and threads, remembers context about every member, and does real work (code, research, file operations) without going dark. Fifty people can interact with it simultaneously.

For fast-moving channels — when messages are flying in, Spacebot doesn't try to respond to every single one. A message coalescing system detects rapid-fire bursts, batches them into a single turn, and lets the LLM read the room — it picks the most interesting thing to engage with, or stays quiet if there's nothing to add. Configurable debounce timing, automatic DM bypass, and the LLM always knows which messages arrived together.

For teams — connect it to Slack. Each channel gets a dedicated conversation with shared memory. Spacebot can run long coding sessions for one engineer while answering quick questions from another. Workers handle the heavy lifting in the background while the channel stays responsive.

For multi-agent setups — run multiple agents on one instance. A community bot with a friendly personality on Discord, a no-nonsense dev assistant on Slack, and a research agent handling background tasks. Each with its own identity, memory, and security permissions. One binary, one deploy.


Documentation

DocDescription
Quick StartSetup, config, first run
Config ReferenceFull config.toml reference
AgentsMulti-agent setup and isolation
MemoryMemory system design
ToolsAll available LLM tools
CompactionContext window management
CortexMemory bulletin and system observation
Cron JobsScheduled recurring tasks
RoutingModel routing and fallback chains
MessagingAdapter architecture (Discord, Slack, Telegram, Twitch, Webchat, webhook)
Discord SetupDiscord bot setup guide
BrowserHeadless Chrome for workers
OpenCodeOpenCode as a worker backend
PhilosophyWhy Rust

License

FSL-1.1-ALv2 — Functional Source License, converting to Apache 2.0 after two years. See LICENSE for details.


Template Content

More templates in this category

View Template
Foundry Virtual Tabletop
A Self-Hosted & Modern Roleplaying Platform

Lucas
View Template
(v1) Simple Medusa Backend
Deploy an ecommerce backend and admin using Medusa

Shahed Nasser
View Template
peppermint
Docker-compose port for peppermint.sh

HamiltonAI