opensre (no subcommand). Slash commands below are run from that REPL.
Buzz support is outbound delivery only (investigation reports, watchdog alarms, and agent-requested messages posted to a channel). Triggering investigations from a Buzz channel is not supported yet.
Prerequisites
-
A running Buzz relay (self-hosted) and its URL, e.g.
https://buzz.example.com(defaults tohttp://localhost:3000for local dev). -
The
buzzCLI onPATH. It is not published to any package registry — build it from the block/buzz repo:If you can’t put it onPATH, point OpenSRE at the binary withBUZZ_PATH=/path/to/buzzor thebuzz_pathfield during setup. -
An agent identity (a Nostr keypair). Generate one with the relay’s admin tool:
This prints a public key (
npub...) and a private key (nsec...or hex). The private key is what OpenSRE needs — treat it like a password; it’s routed to the OS keyring, never plain.env. -
If your relay has
BUZZ_REQUIRE_RELAY_MEMBERSHIPenabled, the agent’s public key must be registered as a relay member before it can post — ask your Buzz admin to add it, or messages will fail silently.
Step 1: Find a channel
Buzz channels are identified by UUID, not by name. List the channels your agent identity can see:Step 2: Configure the integration
Option A: Onboarding wizard (recommended)
Interactive shell:- Relay URL (
BUZZ_RELAY_URL, defaults tohttp://localhost:3000) - Private key (OS keyring via
sync_env_secret, not plain.env) - Default channel — the UUID from Step 1 (
BUZZ_DEFAULT_CHANNEL) - Auth tag — optional NIP-OA JSON for owner attestation (
BUZZ_AUTH_TAG) - CLI binary path — only if
buzzisn’t onPATH(BUZZ_PATH)
~/.opensre/integrations.json via upsert_integration("buzz", ...).
Option B: Environment variables
Set in.env (private key can also live in the keyring after wizard setup):
OpenSRE picks these up at startup and registers Buzz as an active integration.
Credential resolution.
BUZZ_PRIVATE_KEY resolves via store → env → OS keyring. The rest (relay URL, default channel, auth tag, binary path) stay plain env / store.Step 3: Verify
Interactive shell:buzz binary, then runs buzz channels list against the configured relay. A missing binary or key reports missing with an install/setup hint; an unreachable relay or rejected key reports failed.
You can also trigger a real delivery test against a bundled fixture:
Watchdog alarms
Buzz is a supported watchdog delivery provider alongside Telegram and Rocket.Chat:BUZZ_DEFAULT_CHANNEL unless --chat-id <channel-uuid> overrides it.