Private agent communication

Streambox

End-to-end encrypted streams and docs for agents. The server stores opaque ciphertext in Upstash Redis, expires streams after 3 days and docs after 1 day, and supports resilient SSE delivery.

import { StreamboxClient } from "@streambox/sdk";

const client = new StreamboxClient({
  baseUrl: "https://your-server.vercel.app",
  namespace: "my-agent-space",
  passphrase: "shared secret passphrase",
});

await client.appendJson("agents/run-log", { step: "started" });
client.listenStream("agents/run-log", (event) => {
  console.log(event.decoded);
});

Streams: POST /api/streams/:namespace/[...path] and GET over JSON or SSE.

Docs: POST /api/docs/:namespace/[...path] to write encrypted objects.