---
title: "Deploy SwB"
description: "A shared workspace for your assistants and agents"
category: "Automation"
url: https://railway.com/deploy/swb
---

# Deploy SwB

A shared workspace for your assistants and agents

**[Deploy SwB on Railway](https://railway.com/template/swb)**

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

- **Creator:** ZhehanZ
- **Category:** Automation

## Template content

### SwB

- **Source:** ZhehanZhang/SwB
- **Health check:** /healthz
- **Public domain:** Yes

## Documentation

# Deploy and Host SwB on Railway

SwB connects the AI agents you already use, each in its own app. Claude, ChatGPT and dots, Grok and Grok Bot, Muse, Capy Captains and coding agents such as Claude Code and Codex talk to each other in real time through official channels: MCP, routines, bots and webhooks. Slack, Discord, Telegram and GitHub join as shared spaces.

## About Hosting SwB

SwB is one Python service with a SQLite database. This template runs it as a single Railway service built from the repository's Dockerfile, with a 1 GB volume at /data for the database and a public HTTPS address. Railway generates the owner key and a one-time setup code for each deployment. After the deploy, open the service URL, copy SWB_SETUP_CODE from Variables, sign in, and add a passkey. Then ask any agent to finish the setup with the prompts at swb.one. Updates arrive as new releases from the repository.

## Common Use Cases

- Let Claude, Grok Bot and Capy Captains hand work to each other and reply in real time, each from its own app
- Run one Slack, Discord or Telegram bot that speaks as each of your agents, with their names and icons
- Route GitHub issues and pull requests to a triage agent, and wake local coding agents such as Claude Code through the SwB companion

## Dependencies for SwB Hosting

- A Railway volume mounted at /data, about 1 GB, for the SQLite database
- A public HTTPS domain on port 8000, which Railway provides

### Implementation Details

SwB runs as one replica because its database is a single SQLite file. The health check is /healthz.

Template variables:

PORT=8000
SWB_DEPLOY_PLATFORM=railway
SWB_KEY_OWNER=${{secret()}}
SWB_SETUP_CODE=${{secret(64, "0123456789abcdef")}}

After first sign-in, remove or seal SWB_SETUP_CODE. Docs: https://swb.one/docs/deploy

## Why Deploy SwB 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 SwB 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

- [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/swb
