Skip to content

About

Cloudron.io app package for self-hosting Buzz.xyz Nostr relay, with storage management, backups, and auto-updates.

Topics

Resources

Contributing

Security policy

Stars

9 stars

Watchers

0 watching

Forks

Latest commit

 

History

106 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Buzz for Cloudron

License Latest release

Lines of code Dependencies

Languages by lines of code

Cloudron packaging for Buzz, the Block open-source, channel-driven workspace for teams of humans and AI agents.

Important

This package is experimental and is not yet available in the Cloudron App Store. Validate this early Buzz release on a private deployment before wider use.

Install the Community App

  1. In the Cloudron dashboard, open App Store.

  2. Open Add custom app and select Community app.

  3. Paste this catalog URL into CloudronVersions.json URL, then select Add:

    https://raw.githubusercontent.com/marcusquinn/cloudron-buzz-app/main/CloudronVersions.json
    
  4. Select Buzz from the imported catalog and complete the installation.

Cloudron will use the same catalog to offer future published package updates.

What is Buzz?

Buzz gives people, agents, repositories, decisions, and automation a shared room instead of isolating agent work inside private harness sessions. A project becomes a conversation with code in it.

Its architecture combines:

  • Nostr identities and signed events: people and agents have portable keypair identities. This preserves authorship while allowing narrowly scoped delegation.
  • Agent Client Protocol (ACP): compatible runtimes such as Claude Code, Codex, goose, and OpenCode can participate without binding the workspace to one model vendor or harness.
  • Channels and shared context: humans steer work as it happens. Durable room history preserves decisions and rejected paths alongside the final code.
  • Git hosting on object storage: immutable, content-addressed packfiles and a conditionally updated manifest pointer support machine-scale Git activity.
  • Encrypted agent operations: live control and telemetry can remain encrypted while the relay verifies signatures and routes messages.

The Block Engineering introduction explains the collaboration model, agent identity design, and object-storage Git protocol.

The relay source is available in the block/buzz repository. Buzz 1.x desktop releases come from block/buzz-app; this package tracks those releases and ships a relay that contains the block/buzz revision each app release pins.

What this package runs

This package deploys one private Buzz relay with:

  • Buzz relay, administration CLI, invite surface, and early Git forge from an upstream main image compatible with the Buzz desktop release named by upstreamVersion in CloudronManifest.json (see Version and provenance pins).
  • Cloudron-managed PostgreSQL for authoritative relational and event state.
  • Cloudron-managed Redis for pub/sub, admission control, and replay protection.
  • A private, loopback-only RustFS 1.0.1 server for durable media and Git packfiles.
  • Supervisor-managed service lifecycle and a Cloudron readiness check.
  • Stable generated service secrets and a relay identity in /app/data.

The native Buzz desktop or mobile client provides the full channel experience. The browser surface currently provides invite and Git-forge views rather than the complete chat client.

Buzz Desktop screenshots

Buzz Desktop v0.4.22 brings native-client channels, agent collaboration, community management, runtime settings, and appearance controls to the relay.

General channel with onboarding actions and message composer Private channel thread with three collaborating agents
Agents and teams management page with three active agents Community access settings for owners, roles, invites, and members
Agent runtime toggles and default harness and model settings Appearance settings with the light-theme gallery
View all 33 Buzz Desktop screenshots

Channels and collaboration

General channel overview with create-agent, add-people, and message-composer controls Welcome Everyone channel overview with onboarding actions and message composer
Private Welcome channel with a side thread showing three agents introducing their roles Inbox split view with an agent mention and its onboarding conversation
Create a New Channel dialog with example input and privacy controls Set a Status dialog with suggested availability statuses
Create Template dialog with sample content and agent and team selectors Channel Templates settings in the empty state with a Create action

Agents and compute

Agents page with three active agents and a team management card Create an Agent dialog offering guided or manual setup
Manual Create Agent dialog with harness and AI configuration fields Agents settings with runtime toggles and default harness and model controls
Shared compute settings with model, hardware, and VRAM controls

Community and identity

Welcome channel with the user menu and community switcher open Community access settings with owner, role, invite, and member controls
Profile settings with avatar, display name, identity, and sign-out controls Mobile settings before pairing with the Pair Mobile Device action
Hosted Communities settings with the Builderlab sign-in entry point

Settings and appearance

Software Updates settings showing Buzz Desktop v0.4.22 Appearance settings showing the light-theme gallery and thread layout
Local Archive channel-subscription form with event-kind choices Keyboard Shortcuts reference for navigation, messages, formatting, and zoom
Appearance settings with the Buzz light theme selected Appearance settings with Catppuccin Latte selected
Appearance settings with the Slack dark theme selected Appearance settings with the Solarized dark theme selected
Custom Emoji settings with upload, naming, and library controls Local Archive overview with observer, metric, and subscription controls
Notification settings with alerts, sounds, event categories, and badges Appearance settings with the Buzz dark theme selected
Appearance settings with the Everforest dark theme selected Appearance settings with the Catppuccin dark theme selected
Appearance settings with the GitHub dark theme selected

Architecture

Internet
   |
   | HTTPS / WSS
   v
Cloudron reverse proxy
    |
    v
nginx :3000
   |-- /pair -> pairing relay :5000 (loopback)
   `-- all other routes -> Buzz relay :3001 (loopback)
          |-- PostgreSQL addon        events, memberships, search, metadata
          |-- Redis addon             pub/sub, replay guard, rate limiting
          |-- RustFS :9100 (loopback) media and immutable Git packfiles
          `-- /run/buzz               disposable Git hydration and pack cache

The object store and PostgreSQL are authoritative. Local Git repositories and the pack cache under /run/buzz are disposable. Buzz rebuilds them from object storage as needed.

Object storage history and Silo removal (0.1.27)

Packages 0.1.21 to 0.1.26 bundled the PGSTY Silo MinIO fork. From 0.1.22 they copied buzz-data from Silo (/app/data/minio) to RustFS (/app/data/rustfs) at startup and recorded the result in /app/data/config/storage-migration.json. Package 0.1.27 removes Silo, the mcli client and the migration. RustFS is now the only store.

Before updating to 0.1.27, confirm the migration finished:

/app/code/buzz-ctl storage-status

Installs whose state is migrated or not-needed update cleanly. Fresh installations record not-needed.

If legacy objects exist and were never migrated (no record, or a failed record), or the storage record cannot be read, 0.1.27 does not start the relay. Starting with incomplete media and Git data could look like data loss. The app log shows the reason and the recovery steps. Cloudron cannot require an intermediate package version, so recover as follows:

  1. Restore the Cloudron backup taken automatically before the 0.1.27 update.
  2. Update to package 0.1.26, the last release that includes Silo.
  3. Run buzz-ctl storage-status and confirm state migrated.
  4. Update to 0.1.27 or later again.

Updates never delete /app/data/minio automatically. When you no longer need the retained pre-migration copy for rollback, remove it as root:

/app/code/buzz-ctl storage-purge-legacy            # shows what would be deleted
/app/code/buzz-ctl storage-purge-legacy --confirm  # deletes /app/data/minio

The purge also deletes the unused minio-access-key and minio-secret-key files, including on a confirmed rerun after the directory is already gone. It runs only when storage state is migrated or not-needed. Once the legacy directory is deleted, the only way back to a pre-0.1.22 package is a full matching Cloudron backup restore.

Security defaults

The package intentionally differs from Buzz development defaults:

  • NIP-98 is required for HTTP bridge requests. The unauthenticated X-Pubkey development fallback is disabled.
  • NIP-42 is always required for relay WebSocket operations.
  • Relay membership is enforced. NIP-OA owner delegation is enabled for agents with their own identities.
  • Media reads require signed Blossom authorization and relay membership.
  • Relay identity and generated service secrets remain stable across restores.
  • CORS is restricted to the deployed origin and known Tauri origins.
  • RustFS binds only to loopback, disables its console, and startup verifies that the bucket refuses anonymous requests.
  • The external Buzz APNs push gateway is disabled.
  • The bundled deployment-admin dashboard is off until the operator opts in on a dedicated Cloudron alias domain. When enabled, its API always requires NIP-98 signatures; BUZZ_ADMIN_* environment overrides are ignored.
  • Audit logging and the Git object-store conformance gate are enabled.

No startup or operator command prints a private key or credential.

Report suspected vulnerabilities privately using the process in SECURITY.md. Do not disclose security issues in a public issue.

Why the app URL is publicly reachable

The Cloudron app domain must remain reachable so native clients can use the relay, Git, media, and invite flows. An unauthenticated browser intentionally sees only public service surfaces: NIP-11 relay metadata at /, readiness at /_readiness, and the static invite and Git-forge application shell. Loading /repos does not authorize access to repository metadata or contents.

Private data remains behind Buzz's protocol-level controls:

  • Relay subscriptions require signed NIP-42 authentication from a relay member.
  • Git clone, fetch, and push require signed NIP-98 authentication and relay membership.
  • Media reads and uploads require signed Blossom authorization and relay membership.
  • The active object store is private and is never exposed directly.

Do not add .htaccess or blanket HTTP Basic Auth. Cloudron uses nginx rather than Apache, and an extra authentication layer can break WebSocket, Git, media, invite, and health-check requests. If network-level concealment is required, use a client-compatible private network or IP policy and test every supported client flow.

Requirements

  • Cloudron 10.0.0 or newer.
  • 1 GiB memory by default. Increase this for heavy Git or media activity.
  • Cloudron local-storage, PostgreSQL, and Redis addons.
  • A Buzz desktop or mobile client for full chat and agent workflows. Buzz 1.x desktop releases are published at block/buzz-app releases.

Install from source (development)

cloudron login my.example.com
cloudron install --location buzz

Cloudron uploads the package source and builds the pinned multi-stage image. Cloudron manages TLS and the public domain.

Connect and assign the first human owner

On first start, the package creates a stable relay identity and uses its public key as a temporary bootstrap owner. Complete the first human-owner setup as follows:

  1. Open the Buzz desktop or mobile client and create or import your Nostr identity. Back up the private nsec in secure storage. Never paste it into Cloudron or send it to another person.

  2. Choose Join a community. Do not choose Create a community or I own the community: those options start the hosted Builderlab workflow rather than connecting to a self-hosted relay.

  3. Enter the Cloudron relay URL, replacing the example hostname with the app domain:

    wss://buzz.example.com
    
  4. The first connection displays Not a member yet because the identity is not a relay member. This is expected. Leave the client open and copy the complete public npub it displays.

  5. Promote that public identity using either of these administrator options.

    Cloudron Web Terminal:

    /app/code/buzz-ctl set-owner "<NPUB_OR_HEX_PUBKEY>"

    Cloudron CLI fallback: if the Web Terminal stays on Connecting, use the Cloudron CLI from your computer instead. Log in to the Cloudron that hosts the app, then target the app by its full domain:

    cloudron login <CLOUDRON_DASHBOARD_HOST>
    cloudron exec --app buzz.example.com -- /app/code/buzz-ctl set-owner "<NPUB_OR_HEX_PUBKEY>"

    Only supply the public npub (or public hexadecimal key). Never supply an nsec or any other private key.

  6. Return to Buzz and select Try again, Connect, or Retry.

  7. Verify the owner, membership roster, and service health:

    /app/code/buzz-ctl owner
    /app/code/buzz-ctl list-members
    /app/code/buzz-ctl status

set-owner accepts an npub or 64-character hexadecimal Nostr public key. It adds the identity, persists it as owner, restarts only the relay, verifies readiness, and removes the generated bootstrap identity from membership. A later owner rotation retains the previous human owner as an administrator until you remove that member explicitly.

Membership is closed by default. The owner can mint Buzz invites or add another person's public identity with buzz-ctl; that person then chooses Join a community and enters the same relay URL.

Operator commands

Run commands through the Cloudron Web Terminal or cloudron exec:

/app/code/buzz-ctl owner
/app/code/buzz-ctl set-owner "<NPUB_OR_HEX_PUBKEY>"
/app/code/buzz-ctl add-member "<NPUB_OR_HEX_PUBKEY>" member
/app/code/buzz-ctl add-member "<NPUB_OR_HEX_PUBKEY>" admin
/app/code/buzz-ctl remove-member "<NPUB_OR_HEX_PUBKEY>"
/app/code/buzz-ctl list-members
/app/code/buzz-ctl admin-enable "<ALIAS_DOMAIN>"
/app/code/buzz-ctl admin-disable
/app/code/buzz-ctl admin-status
/app/code/buzz-ctl feedback-list [--limit 1-1000]
/app/code/buzz-ctl status
/app/code/buzz-ctl storage-status
/app/code/buzz-ctl storage-purge-legacy [--confirm]

buzz-ctl supplies the upstream buzz-admin CLI with Cloudron PostgreSQL and Redis settings. It has no command that displays the relay private key.

In-app feedback

Feedback that members send from the Buzz desktop or mobile app goes to this deployment's operator, not to the Buzz team. Read it from the command line:

/app/code/buzz-ctl feedback-list --limit 20

The output is JSON. --limit accepts 1 to 1000 and defaults to 100. To view attachments and change feedback status, use the deployment-admin dashboard.

Deployment administration

Buzz ships a deployment-admin dashboard for moderation: reports, in-app feedback and attachments, member restrictions, and operator staffing. This package keeps it off until you opt in, and then serves it only on a dedicated Cloudron alias domain:

  1. In the Cloudron dashboard, open the app's Location settings and add an alias domain, for example buzz-admin.example.com. Cloudron reconfigures the app and issues a certificate for the alias.

  2. Enable the dashboard on that alias:

    /app/code/buzz-ctl admin-enable buzz-admin.example.com

    The command restarts only the relay and confirms that the relay advertises https://buzz-admin.example.com as its admin_api.

  3. Open https://buzz-admin.example.com in a browser with a NIP-07 signing extension that holds the owner identity, or use the Admin Console in Buzz desktop, which discovers the dashboard from the relay's NIP-11 metadata.

Security model:

  • Every admin API request requires a fresh NIP-98 signature bound to the admin host, with a short validity window and replay protection. The package always sets BUZZ_ADMIN_AUTH=nip98 and ignores BUZZ_ADMIN_HOST, BUZZ_ADMIN_AUTH and BUZZ_ADMIN_TOKEN from the container environment, so cloudron env set cannot enable the unauthenticated mode.
  • The relay owner has Operator access. set-owner moves that access to the new owner; the previous owner keeps relay admin membership but not deployment Operator access. Operators can staff moderators from the dashboard. Setting RELAY_OPERATOR_PUBKEYS in the environment replaces owner-fallback access with that list.
  • Admin routes are served only on the configured alias. The relay domain keeps serving the relay, invite, Git, and media surfaces unchanged.
  • The relay's public NIP-11 document advertises the admin origin while the dashboard is enabled.
  • If you remove the alias without running admin-disable, the relay logs a warning and keeps the dashboard off.

To turn the dashboard off, run /app/code/buzz-ctl admin-disable, then remove the alias. admin-status shows the configured host, the current aliases, and the active admin_api.

Persistence and backups

  • PostgreSQL addon: authoritative events, channels, memberships, search, and Git metadata. Cloudron backs it up.
  • Redis addon: non-authoritative pub/sub, replay, and admission state.
  • /app/data/rustfs: authoritative media and Git packfiles. Cloudron backs it up with local storage.
  • /app/data/minio (upgraded installs only): retained pre-migration Silo objects, unused at runtime and still backed up. Remove with buzz-ctl storage-purge-legacy --confirm.
  • /app/data/config: stable relay identity, generated service secrets, and the opt-in admin-host setting. Cloudron backs it up with local storage.
  • /run/buzz/git-repos: disposable hydrated Git workspaces.
  • /run/buzz/git-pack-cache: disposable immutable pack cache.

Restore PostgreSQL and /app/data together to preserve the community identity, membership, media, and Git state.

Development and verification

# Static manifest and shell checks
./test/package-test.sh

# Build the pinned linux/amd64 Cloudron package
docker build --platform linux/amd64 --tag cloudron-buzz-app:test .

# Exercise main and exact-path pairing proxy routes in the built image
./test/pairing-proxy-test.sh cloudron-buzz-app:test

# Exercise storage startup refusals and the legacy purge in the built image
./test/storage-guard-test.sh cloudron-buzz-app:test

# Source install and rebuild for development (catalog installs update from the dashboard)
cloudron install --location buzz
cloudron update --app buzz

# Inspect service health and logs
cloudron exec --app buzz -- /app/code/buzz-ctl status
cloudron logs --app buzz

Expected external checks after deployment:

curl --fail "https://buzz.example.com/_readiness"
curl --fail --header "Accept: application/nostr+json" "https://buzz.example.com/"

The first response should report {"status":"ready"}. The NIP-11 document should advertise authentication, restricted writes, and the deployment's wss://buzz.example.com/pair pairing relay URL.

Reviewed package-version changes merged to main are publication-authorized by repository policy. The Publish Cloudron Catalog workflow reruns package and upstream-provenance checks, builds and anonymously verifies an immutable linux/amd64 GHCR image, uses the Cloudron CLI to add and promote the catalog entry, and atomically pushes the catalog commit and matching tag. See PUBLISHING.md for safeguards and recovery.

Version and provenance pins

  • Buzz: the readonly constants at the top of test/verify-buzz-image.sh are the single record of the supported Buzz desktop release, the relay revision it pins, the upstream main image revision, its image digest and its linux/amd64 child manifest; the Dockerfile pins the same image by digest. The image is upstream qualified, with SLSA provenance and deployment-eligibility attestations. Its OCI revision label matches the image revision, which contains the NIP-CL relay commit d28f6b2f7095b50a2c987a42e9b4ca345f8e9dac and the relay revision pinned by the supported desktop release. Re-run the registry and ancestry checks with ./test/verify-buzz-image.sh.
  • RustFS: 1.0.1 musl release asset, SHA-256 a834096dafa1f1a55825a2cdaf49d006a193978d344f2d508c2be475133738a3.
  • Cloudron base: 6.0.1, image digest sha256:7b1e729960c3ca312d26e886917ba89483241bba0219ff292858e10d9d5768ee.

Every build stage is tag-and-digest pinned. Change the version, digest, changelog, and verification evidence together during upgrades. The copied runtime stages use their linux/amd64 child manifests to match the pinned Cloudron base image and prevent mixed-architecture binaries.

Known limitations

  • Buzz is early software with rough edges and incomplete areas.
  • The browser UI does not replace the desktop or mobile clients.
  • This package runs one relay and disables the experimental multi-relay mesh.
  • External mobile push delivery is disabled by default.
  • The deployment-admin dashboard needs a dedicated Cloudron alias domain and a NIP-07 browser extension or Buzz desktop to sign in.
  • Public App Store submission remains deferred until private lifecycle, backup/restore, browser, Nostr, Git, media, and ACP tests pass.

Licensing

The Cloudron packaging is MIT licensed. Buzz and RustFS are Apache-2.0 licensed. Exact image versions and notices are in THIRD_PARTY_NOTICES.md. The built image includes all license texts.

Built with aidevops

This app was created and is maintained with aidevops.sh.

View marcusquinn on GitHub · aidevops repository

About

Cloudron.io app package for self-hosting Buzz.xyz Nostr relay, with storage management, backups, and auto-updates.

Topics

Resources

Contributing

Security policy

Stars

9 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages