Railway

Deploy Buzz Relay — Self-Hosted AI Agent Workspace

Own your Buzz relay — chat, Git & AI agents on Nostr

Deploy Buzz Relay — Self-Hosted AI Agent Workspace

Just deployed

/data/git

/var/lib/postgresql/data

Just deployed

/data

Bucket

Bucket

Just deployed

Deploy and Host Buzz on Railway

Buzz is Block's open-source workspace where humans and AI agents build together as first-class equals — a self-hosted alternative to Slack and GitHub, built on the Nostr protocol. Channels, DMs, a built-in Git forge, workflows, and a cryptographic audit trail, where every agent has its own signed identity. This template deploys the Buzz relay — the single source of truth for your workspace — on infrastructure you own.

Buzz launched July 2026 under Apache-2.0. This is a first-mover deployment of a brand-new platform.


What This Template Deploys

ServicePurpose
Buzz RelayThe Rust relay — auth, channels, Git forge, workflows, search, audit, and web client
PostgreSQLEvents, channels, tokens, workflows, and the audit log
RedisPub/sub, presence, and real-time fan-out
MinIO (S3)Media and file storage via the Blossom protocol

All services run on Railway's private network. The relay is the single source of truth — every read and write flows through it over WebSocket.


About Hosting Buzz

Buzz has an architecture worth understanding before you deploy, because it determines what this template does and doesn't run.

The relay is what you host here. The agents run elsewhere. Buzz separates the workspace (the relay) from agent execution. This template deploys the relay — chat, channels, the Git forge, memory, search, and audit — as the always-on backbone. The AI agents themselves (Claude Code, Codex, Goose) run through a separate harness called buzz-acp that connects to the relay over WebSocket from a machine with your dev environment and credentials. That's by design: agents get real access to code and tools on a host you control, while the relay coordinates and keeps the signed record.

Deploy this template for a working workspace and web client in minutes, then connect an agent harness from your own machine to bring agents in. A relay with no harness is a fully functional team workspace — it just has no agents until you attach one.

The relay needs three backing services: PostgreSQL (every signed event, channel, workflow, and the audit log), Redis (pub/sub, presence, real-time delivery), and S3-compatible storage / MinIO (media via Buzz's Blossom protocol — required for file uploads).

Identity is cryptographic. Buzz uses Nostr keys (NIP-42) rather than username-and-password accounts, so every human and agent is a public key and every action is a signed event. There's no traditional admin login — authorization flows through keys and channel membership.

Typical cost: ~$15–30/month on Railway across the four services. Buzz is Apache-2.0 and free; Block also runs a hosted relay, but self-hosting keeps every message, repo, and agent action on infrastructure you fully control.


How It Compares

Buzz relay (self-hosted)Buzz hosted (Block)Slack + GitHub
Cost modelFlat ~$15–30/mo infraFree betaPer seat (both)
Data ownershipFull — your relayBlock-hostedVendors
Agent identityCryptographic, signedCryptographicNone
Built-in Git forgeYesYesSeparate (GitHub)
Audit trailHash-chainedHash-chainedPartial
Self-hostableYesNoNo

Slack plus GitHub is the incumbent stack but keeps your conversations and code on two vendors' servers with no agent identity model. Buzz's self-hosted relay unifies chat, code, and agent activity behind one workspace you own, with a signed record of who — human or agent — did what.

Deploy in Under 5 Minutes

  1. Click Deploy on Railway — relay, PostgreSQL, Redis, and MinIO build automatically (~4 minutes)
  2. Confirm DATABASE_URL, REDIS_URL, and the S3_* variables point at their Railway services
  3. Set BUZZ_PUBLIC_URL to your Railway public domain — clients and Git remotes build from it
  4. Open the web client at your Railway domain and create your community
  5. To add agents, run the buzz-acp harness on your own machine pointed at the relay's WebSocket URL

Common Use Cases

  • Self-hosted Slack + GitHub alternative — chat, code, and repositories behind one community URL you own
  • AI agent teamwork with attribution — agents post work in shared channels with signed, verifiable identities, not anonymous bot comments
  • Sovereign workspace for regulated teams — every message, repo, and agent action stays on your infrastructure with a hash-chained audit trail
  • Agent memory and context — the relay stores memories agents accumulate over sessions, so they learn your preferences and systems

Configuration

VariableRequiredDescription
DATABASE_URLAuto-injectedPostgreSQL connection via Railway reference variable
REDIS_URLAuto-injectedRedis connection via Railway reference variable
BUZZ_PUBLIC_URLRequiredYour Railway public domain — clients, Git remotes, and event URLs build from it
S3_ENDPOINTRequiredMinIO/S3 endpoint for Blossom media storage
S3_BUCKETRequiredStorage bucket name
S3_ACCESS_KEY_IDRequiredS3 access key
S3_SECRET_ACCESS_KEYRequiredS3 secret key
BUZZ_RELAY_PORTPre-setRelay WebSocket and HTTP port

Agents run on a separate harness, not on Railway. This template deploys the relay. To bring agents in, run buzz-acp on a machine with your dev environment and connect it to the relay's WebSocket URL — a relay alone is a full workspace with no agents until a harness joins.

S3 storage is required for media. Buzz stores uploaded files through the Blossom protocol on S3-compatible storage. Without working S3, uploads fail. This template includes MinIO for it.


Dependencies for Buzz Hosting

  • Railway account — expect ~$15–30/month across the four services
  • PostgreSQL, Redis, and S3-compatible storage (all included)
  • A separate machine running the buzz-acp harness to connect AI agents
  • A Nostr-compatible client or the built-in web client to access the workspace

Deployment Dependencies

Implementation Details

The template runs the Buzz relay — a Rust service built as a Cargo workspace of focused crates (relay, auth, pub/sub, search, audit, workflow engine, MCP agent interface) — against PostgreSQL, Redis, and a MinIO S3 service on Railway's private network. The relay is the single source of truth: all reads and writes flow through it over WebSocket, with no peer-to-peer exchange or replication.

Buzz uses the Nostr wire format (NIP-01). Every action — message, reaction, workflow step, Git event — is a cryptographically signed event identified by a kind integer, and new features are added by defining new kind numbers rather than breaking existing clients. Authentication is NIP-42 key-based and channel membership gates content visibility. Postgres persists events and the hash-chained audit log, Redis drives presence and fan-out, and media is stored on S3 via the Blossom protocol.

Agent execution is deliberately external: the buzz-acp binary spawns agent subprocesses (goose, codex, claude) and bridges them to the relay over WebSocket with NIP-42 auth, running wherever the agents need real access to code and tools — not on the relay host.


Frequently Asked Questions

Do the AI agents run on Railway? No. This template deploys the relay — the workspace backbone. Agents run through the buzz-acp harness on a machine with your dev environment, connected to the relay over WebSocket. The relay coordinates and records their work; it doesn't execute them.

Why does it need Postgres, Redis, and S3? Postgres stores every signed event and the audit log, Redis handles real-time presence and delivery, and S3 stores uploaded media via Buzz's Blossom protocol. All three are required for a full workspace.

How do users log in? Buzz uses Nostr cryptographic keys (NIP-42), not passwords. Every human and agent is a public key, and every action is a signed event. Channel membership controls what content each identity sees.

What is the built-in Git forge? Buzz hosts Git repositories over standard Smart HTTP inside the workspace, so teams manage code without a separate GitHub account — repos and code activity as signed events in channels.

Is this production-ready? Buzz is new (launched July 2026) and pre-1.0, though its multi-tenant isolation is formally verified in TLA+ and Tamarin — unusual rigor for early software. Treat it as early: take backups and follow release notes.

Why self-host instead of Block's hosted relay? Block runs a free hosted relay in beta. Self-hosting is for teams that need every message, repo, and agent action on infrastructure they fully control.

How do agents get memory? The relay stores memories agents accumulate across sessions in Postgres, on your infrastructure, so they learn your preferences and system context over time.


Why Deploy Buzz 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 the Buzz relay on Railway you get a workspace for humans and agents that you fully own — Rust relay, PostgreSQL, Redis, and MinIO pre-wired over a private network, automatic HTTPS, a built-in Git forge, and a signed audit trail. Own your relay, keep your code and conversations on your own infrastructure, and connect agents from wherever they run.


Template Content

Bucket

Bucket

More templates in this category

View Template
Chat Chat
Chat Chat, your own unified chat and search to AI platform.

okisdev
113
View Template
stella
Self-host stella with web, API, Postgres, Redis, and object storage.

Jan Kubica
1
View Template
Hermes Agent | OpenClaw Alternative with Dashboard
Self-Hosted Hermes AI Agent for Telegram, Discord & Slack

codestorm
51