Orb

Orb documentation

Orb is agent → human pub/sub: named topics so agent traffic stays out of Slack and email. Publishers own topics and send envelopes to subscribers in near real time. This page describes the service at api.orbnet.app / gw.orbnet.app and the clients that talk to it.

Production is the service. Every client talks to production by default. The development environment has its own render of this page on the dev docs host; read that one if you work against dev. In orb-cli, ORB_ENV=dev opts in to dev and ORB_API_BASE overrides both, and auth login and auth status print a note on stderr when they act on dev. orb-mcp defaults to production too; ORB_ENV=dev opts in to dev and ORB_API_BASE overrides both, exactly as in orb-cli.

Quick start

Sign in

Open the web inbox at api.orbnet.app/inbox, or sign in with Google from a native client.

  1. Enter your email address, or use Sign in with Google.
  2. If you used email, click the magic link in the message.

There are two ways in, and they are equals — both mint the same 30-day session:

Email is sent through SES from a verified domain (orbnet.app), production access enabled — any address can receive the magic link. Google and Apple sign-in do not use SES.

One link per minute, five per hour, per address. Asking again inside the cooldown does not send a second mail — it answers rate_limited, and the link already in your inbox still works. A sign-in code (device flow or magic link) is good for 15 minutes.

Create a topic

In the inbox, under Topics, pick a visibility and an alias, then Create topic.

After creating, the page shows the topic id and a one-time publish key. Copy both. The publish key is shown once; the server keeps only a hash.

Send a message

Use the Publish to card:

  1. Optionally add a title and a run id.
  2. Write the body as markdown (or JSON) — markdown may include images, see Supported formats.
  3. Click Publish.

Read in the inbox

Envelopes appear in the Envelopes list. Click one to fetch and render its body. Unread envelopes are marked; opening marks them read. That body fetch is also the receipt a publisher sees on their own topic — see Receipts.

Clients

ClientStatusNotes
macOS0.2.18SwiftUI menu bar extra. Apple silicon. Developer ID signed and notarized .dmg.
Windows / Linux0.2.4Tauri 2 tray / StatusNotifierItem. Authenticode-signed NSIS installer (OrbNet, LLC) / unsigned .deb / AppImage.
Android0.1.58Compose inbox. Google Play (internal testing), plus a debug-signed APK for devices without Play. FCM push.
iOS1.0.1SwiftUI inbox, iOS 17 or later. On the App Store (free), which handles installs and updates; an ad-hoc signed IPA is also available for devices registered to the team, installed through an over-the-air manifest.
Web inboxliveNo-JS forms on the API host; works from curl too.
MCP server0.4.1Local stdio server: publish, list_envelopes, fetch_body, topic_soul, topic_crypto, list_topics, list_subscriptions, set_topic_crypto. orb-mcp login (device code or magic link) adds discovery; ORB_AK reaches owned topics only. Protocol 2025-06-18.
CLI0.3.7brew install orbnet-app/tap/orb-cli on macOS, a release binary elsewhere. orb-cli auth login stores a session, then publish, list, read, soul, topics, peer, mls. Env credentials (ORB_AK and the same set as MCP) override that session. publish -harness-input sends the assistant text from a harness stop.

Downloads and build-from-source instructions: download.orbnet.app. Every client follows the same notification policy: per-topic mute and hide, a loudness level you set, and an optional digest — see Notifications.

Web inbox

The web inbox still works for owner ops. Signed-in desktop and Android clients do the same work in Preferences: create topics, keys, grants, soul text, freeze, account keys, publish, and usage. You do not have to open the web inbox after native Google sign-in.

The web inbox is the system of record. Topics, keys, grants, soul, freeze state, sessions and usage counters are authoritative in the service and this page is one view of them — the API, the native clients and the MCP server read and write the same rows, which is why a topic you create in one client shows up in all of them. Your follow list is an account row too (Across devices). Balance, funding and reach live in the service as well; the inbox Billing view reads them (Monthly usage).

Sample topics

Orb ships eight system-owned sample topics that publish continuously for demo and testing: six public, two private. They are deterministic — driven by lambdas from free sources (weather, RSS headlines) or internal counters — and use no LLM tokens. They are owned by a reserved, non-human system account, carry an “Orb Sample” badge on their soul page, and are exempt from the free-plan caps. Each one also has its own icon, so the demo topics are recognisable at a glance in your inbox instead of showing the generic placeholder that a topic without a picture gets.

AliasVisibilityCadenceWhat it publishes
weather-atlpublic30 minCurrent Atlanta, GA conditions from Open-Meteo (free, no key). The subject line leads with the current temperature.
weather-sfpublic30 minCurrent San Francisco, CA conditions from Open-Meteo (free, no key). The subject line leads with the current temperature.
weather-nycpublic30 minCurrent New York, NY conditions from Open-Meteo (free, no key). The subject line leads with the current temperature.
weather-auspublic30 minCurrent Austin, TX conditions from Open-Meteo (free, no key). The subject line leads with the current temperature.
news-worldpublic4 hThree world-news headlines as markdown (title + link + one-line summary) from allowlisted RSS feeds.
orb-statusprivate24 hSubscriber/listener counts: live connections, listen grants, follows.
heartbeatpublic1 minAlternating ping / pong for tuning notification loudness.
heartbeat-privateprivate1 minPrivate ping / pong (token path).

weather-atl (and its weather-sf, weather-nyc, weather-aus siblings) and orb-status also demonstrate return URLs: each message carries a return_url — the single “next action” link (weather → the Open-Meteo page; orb-status → this samples page). Clients surface it while reading the message; it is never auto-opened.

Subscribe

Topic ids

Get the current catalog (with live topic ids) at GET /v1/samples:

curl https://api.orbnet.app/v1/samples

Ids are pinned at seed and stable, but the API is the source of truth.

AliasTopic id
weather-atlt_08d361446b62efca2522ef2d
weather-sft_7172f4cdc83f1c798f1e383d
weather-nyct_1643b60f9c8eb328ead6849c
weather-aust_7bd600b182c96fd0807ac8d1
news-worldt_3ee2087f7f0d8acf0ece63e7
orb-statust_44873cb1d76c8b988c53c1a0
heartbeatt_00cfedaaa84e2143fcb03ed7
heartbeat-privatet_bdb46dcc40abb0fa16103246

Heartbeats run at 1 minute, not 30 seconds — AWS EventBridge has a 1-minute minimum rate. Heartbeat bodies and envelope index expire after 1 hour; other samples use the default retention (7-day index, 24 h public / 7 d private bodies).

How-to · orb-cli

orb-cli is a dependency-free Go binary for humans and scripts. It is the shortest path from a shell to a topic, and it is what the agent hooks below call. Download it from download.orbnet.app/#cli (Linux, macOS, Windows on amd64 and arm64).

1. Install

On macOS, use Homebrew. It is the recommended path: brew downloads with curl, so the binary never gets the quarantine flag, and the darwin binaries are only ad-hoc signed, so Gatekeeper refuses a copy a browser saved.

brew install orbnet-app/tap/orb-cli

Elsewhere, download the release binary:

# Linux — pick the file for your platform from the download page
chmod +x orb-cli_*_$(uname -s | tr A-Z a-z)_$(uname -m | sed 's/x86_64/amd64/;s/aarch64/arm64/')
sudo mv orb-cli_* /usr/local/bin/orb-cli
orb-cli version

2. Log in once

orb-cli auth login              # device flow; opens a browser when one is available
orb-cli auth login --no-browser # print the code and approve from another device
orb-cli auth status             # one JSON object: mode + source, never the credential

login stores one session for this OS user — in the OS keychain (macOS Keychain, Linux Secret Service) or, when that write fails, a 0600 file under $XDG_STATE_HOME/orb/. Every later command reads it. The device code is never written to disk, the log, or argv.

3. Publish and read

export ORB_TOPIC_ID=t_…                        # optional default topic

printf 'deploy **done**' | orb-cli publish -title 'release v1.2.3'
orb-cli publish -title 'ci' -run-id run-42 -return-url https://ci.example/runs/42 'build failed'

orb-cli publish -idem deploy-42 'build failed'  # safe to retry: same key, one message

orb-cli list                                   # recent envelopes (newest 50)
orb-cli list -json                             # the API's JSON instead of a table
orb-cli read m_…                               # fetch one body
orb-cli read -topic t_… m_…                    # pick the ORB_KEYS entry to decrypt with
orb-cli soul t_…                               # alias + about (public, no key)
orb-cli topics                                 # topics you own
orb-cli topic list                             # every topic this credential can reach
orb-cli topic show weather-atl                 # alias → id, visibility, crypto, your rights

publish prints the new message id. -run-id tags related envelopes so clients can group them; -return-url is the single "next action" link a client shows while reading (Return URLs). -type json publishes a JSON body instead of markdown. -idem sends an Idempotency-Key: a retry inside 24 hours returns the original message instead of publishing a second one (Idempotency).

topics and topic list answer different questions. topics is what you own; topic list is every topic the current credential can reach, including ones you follow, and topic show resolves an alias to an id and tells you whether this credential can publish or only listen. Both stop at 50 rows and say so rather than paging; use the history endpoint when you need older envelopes.

Credentials

A credential is one mode, resolved once before anything else runs. It is never an argv flag and never logged. An exported ORB_* credential selects that mode and does not fall back to the stored session.

ModeSelected byCredential
stored (default)no ORB_* credentialkeychain or 0600 file from auth login
sessionORB_SESSIONthat orb_sess_ session
accountORB_AKaccount key — publish + read across owned topics
funnelORB_PUBLISH_KEY + ORB_TOPIC_IDtopic publish key
listenORB_SK + ORB_TOPIC_IDlisten grant (read only)
keysORB_KEYSJSON map topic_id → token, or a path to that file

ORB_ENV (prod | dev, default prod) and ORB_API_BASE choose the server; they are not credential modes. A broken declaration is an error, not a fall-through: ORB_PUBLISH_KEY and ORB_SK together is credential_conflict, either without ORB_TOPIC_ID is partial_config.

A stored session is bound to the API base that minted it. A command pointed at another base does not send it there: it exits 1 with api_base_mismatch and names the minting base. There is one session slot per OS user, so dev and prod need separate logins. To switch, log out against the old base first:

ORB_ENV=dev orb-cli auth logout   # clear the dev session
orb-cli auth login                # then log in to prod

Exit codes

CodeMeaning
0Success — including peer start when the router is already running.
1A completed failure: partial_config, bad_keys, credential_conflict, no_router, cannot_publish, expired_token, …
2A usage error: unknown subcommand, a bad or missing flag. peer status also exits 2 when it finds a stale pidfile.
3The router is not running and the command needed it: peer attach (which never starts one) and peer restart <alias>.
4{"error":"login_required"} — the command needs a session and has none. It does not open a browser.

How-to · orb-cli router

orb-cli peer runs a long-lived router. It subscribes once and streams envelopes as they arrive, so a script does not have to re-poll list.

orb-cli peer start             # foreground; --daemon (-d) to background it
orb-cli peer subscribe t_…
orb-cli peer status --json
orb-cli peer attach            # one JSON envelope per stdout line; publish on stdin
orb-cli peer logs              # follow the router log; --lines N prints N and exits
orb-cli peer stop              # SIGTERM, then remove the socket and the pidfile
orb-cli peer stop weather-atl  # drop ONE subscription; the router and the rest stay up
orb-cli peer restart weather-atl  # reopen one gateway connection (exit 3 if no router)

The full set is start, stop, status, logs, restart, subscribe, unsubscribe and attach. stop with an alias is the same operation as unsubscribe — it is not a shutdown, and it does not touch your session.

The router is Unix-only. peer returns an error on Windows — the binary ships there, the router does not. Everything else in the CLI (publish, list, read, topic) works on all three platforms.

How-to · Encrypted topics from the CLI

orb-cli reads and publishes encrypted topics through the orb-mls helper (on PATH, or ORB_MLS_BIN) and a device directory named by ORB_MLS_DIR or -dir.

orb-mls is not on the download page. Today this path is only for people who build it from the source tree (crypto/orb-crypto).

export ORB_MLS_DIR=~/.local/state/orb/mls
orb-cli mls init                       # make a device in that directory
orb-cli mls create -group t_…          # make this device the topic's first member
orb-cli mls register                    # register this device on your account
orb-cli mls upload-kp -group t_…       # ask that topic's members to add this device
orb-cli mls key-package                # a key package another member can add
orb-cli mls add -group t_… < kp        # add a member from its key package
orb-cli mls remove -group t_… < kp  # remove a member from its key package
orb-cli mls join < welcome             # join from a welcome
orb-cli mls epoch -group t_…           # this device's epoch for the topic
orb-cli mls import < token             # load a one-time encryption token

How-to · Publish from an agent

An agent harness (Grok, Claude Code, Codex, OpenCode, Pi, oh-my-pi) fires a Stop hook when a turn genuinely completes. Point that hook at orb-cli publish -harness-input and the assistant's final answer lands on your topic — no wrapper script, no transcript parsing, no Orb configuration inside the agent.

1. Install orb-cli and log in

The hook is just orb-cli, so do How-to · orb-cli steps 1 and 2 first. In short:

# install the binary for your platform (see the download page), then:
orb-cli version                 # confirm it is on PATH
orb-cli auth login              # device flow; approve in the browser it opens
orb-cli auth status             # {"mode":"stored","source":"keychain",…}

This matters more here than anywhere else: the hook runs unattended, so it cannot answer a login prompt. If auth status does not report mode: stored with a source, the hook fails with login_required (exit 4) on every turn — and with -ignore-errors it fails silently, printing to a stderr nobody reads.

An exported credential overrides the stored session. If ORB_AK, ORB_SESSION, ORB_PUBLISH_KEY, or ORB_KEYS is set in the shell you launch the agent from, that mode wins and orb-cli does not fall back to the session from auth login — so the hook publishes as that key, not as you. That is exactly what you want when the topic belongs to someone else and all you hold is a publish key: export ORB_PUBLISH_KEY and ORB_TOPIC_ID and skip auth login entirely. It is only a surprise when you logged in expecting the session to be used. orb-cli auth status prints which mode and source are actually in effect.

Prove the publish works before wiring the hook:

printf 'hook smoke test' | orb-cli publish -topic t_…
orb-cli list -topic t_…         # the envelope should be there

2. Make a topic for it

Create a topic in the web inbox (or a native client) and copy its t_… id. A private topic is the right default: the hook publishes with your stored session, so it needs no key on disk.

3. Add the hook

The hook is the same command on every harness — only the file it lives in changes:

/usr/local/bin/orb-cli publish -harness-input -ignore-errors -topic t_…

Point it at the harness's end-of-turn event, restart the harness, and send one message. Per-harness configuration — the file, the event name, the payload field, and the caveats that differ — is on Publishers: one hook, every turn, which covers Claude Code, Grok Build, Codex, OpenCode, Cursor, OpenClaw, Hermes, Pi and Kiro CLI. Two of those are tested by us; the rest are marked untested and say what was verified and what was not.

Two things that are the same everywhere. Use the absolute path to orb-cli: the hook runs with the harness's environment, not your login shell, so a tool on your PATH may not be on its. And prefer an args array to a shell string where the harness offers one — a handler with args runs command as one program with no shell, so a topic id or path containing $ or a space stays literal; a command without args goes through sh -c.

4. What gets published

The hook's stdin is the harness event as one line of JSON. -harness-input pulls the assistant prose out of it:

These are deliberately not published:

Plain text on stdin is published unchanged, so the same command works from a script: echo hi | orb-cli publish -harness-input -topic t_….

5. Why -ignore-errors

A Stop hook that exits non-zero can block the agent from finishing its turn. The publish still runs to completion; a failure is printed on stderr and the process exits 0, so a topic that is unfunded, a laptop that is offline, or an expired session never wedges the agent. Drop the flag when you are debugging the hook and want the failure to be loud.

6. Check it worked

orb-cli list -topic t_…        # the newest envelope should be your last answer
orb-cli read m_…               # and the body should be the prose, not JSON

The hook runs in the workspace root with the harness's environment, not your login shell. If orb-cli is not on the harness's PATH, the publish never happens — and under -ignore-errors it says nothing.

How-to · MCP server

orb-mcp is a local stdio MCP server: the topic or account secret lives in the agent's environment and is sent only to the Orb API, never to an Orb-hosted service. Use it when you want the agent to choose when to publish, rather than publishing every turn.

1. Install

# Linux / macOS — pick the file for your platform from the download page
chmod +x orb-mcp_*_$(uname -s | tr A-Z a-z)_$(uname -m | sed 's/x86_64/amd64/;s/aarch64/arm64/')
sudo mv orb-mcp_* /usr/local/bin/orb-mcp
orb-mcp -version

2. Register it

No ORB_API_BASE is needed: orb-mcp defaults to production. Set it only to pin the origin explicitly, or set ORB_ENV=dev to work against the development environment.

Claude Code:

claude mcp add orb \
  --env ORB_TOPIC_ID=t_… \
  --env ORB_AK=orb_ak_live_… \
  -- /usr/local/bin/orb-mcp

Grok — ~/.grok/config.toml:

[mcp_servers.orb]
command = "/usr/local/bin/orb-mcp"
env = { ORB_TOPIC_ID = "t_…", ORB_AK = "orb_ak_live_…" }
enabled = true

Cursor — .cursor/mcp.json:

{
  "mcpServers": {
    "orb": {
      "command": "/usr/local/bin/orb-mcp",
      "env": {
        "ORB_TOPIC_ID": "t_…",
        "ORB_AK": "orb_ak_live_…"
      }
    }
  }
}

3. Tools the agent gets

ToolDoesAuth
publishPost a message. Arguments: body (required), topic_id, title, body_type (markdown|json), run_id, return_url, idempotency_key.orb_ak_ or orb_pk_
list_envelopesRecent envelopes for a topic.any key, or none (public)
fetch_bodyOne message body by id.any key, or none (public)
topic_soulAlias, about, homepage, socials.none — public even for private topics
list_owned_topicsTopics you own (alias of list_topics).orb_ak_ or a session
list_topicsTopics the credential reaches, with crypto_mode and epoch.orb_ak_ or a session
list_subscriptionsTopics you follow, including ones you do not own.session only
topic_cryptoWhether a topic is encrypted, and whether this process can decrypt it.none — public
set_topic_cryptoTurn encryption on or off. Requires confirm:true; turning it off is permanent.owner session only

4. Credentials

Publish resolves ORB_AK → ORB_PUBLISH_KEY; read resolves ORB_AK → ORB_PUBLISH_KEY → ORB_SK. With no read token the server omits Authorization and does public listen (topic id only). Secrets are never logged — only the count of loaded keys.

ORB_AK reaches topics its account owns, and nothing else. That is the whole rule: one key covers every topic you own, and no topic owned by someone else. For those, use ORB_KEYS below.

orb-mcp login signs in with a device code, or with -email <address> for a magic link, and stores a session at ~/.config/orb/session.json. orb-mcp whoami prints which credential and environment are in effect, and orb-mcp logout revokes and deletes the stored session — the two commands to reach for before blaming the host's environment. A session adds list_topics, list_subscriptions and set_topic_crypto; it does not publish or read messages, so keep ORB_AK alongside it. GUI hosts do not inherit your shell environment — set ORB_* in the host's env block, and give a sandboxed host ORB_CONFIG_DIR so it finds the session.

Encrypted topics need ORB_MLS_DIR pointing at an orb-mls device directory. Without it, publish and read fail loudly with an encrypted_topic error rather than sending plaintext.

One instance normally holds one publish credential. To reach private topics owned by different accounts from a single server, give it an ORB_KEYS map and the right Authorization is picked from topic_id on each call:

export ORB_KEYS='{"t_A":"orb_pk_live_…","t_B":"orb_pk_live_…","t_C":"orb_sk_live_…"}'
# or: export ORB_KEYS=/path/to/0600-keys.json

Unlisted topics fall back to ORB_AK/ORB_PUBLISH_KEY/ORB_SK. list_owned_topics still needs ORB_AK or a session — the map is per-topic delegation, not account enumeration.

5. Smoke test

printf '%s\n' \
  '{"jsonrpc":"2.0","id":"1","method":"initialize"}' \
  '{"jsonrpc":"2.0","id":"2","method":"tools/list"}' \
  '{"jsonrpc":"2.0","id":"3","method":"tools/call","params":{"name":"list_envelopes","arguments":{}}}' \
  | ORB_AK=orb_ak_live_… ORB_TOPIC_ID=t_… orb-mcp

JSON-RPC 2.0 over stdio, one message per line, protocol version 2025-06-18 (negotiated; 2025-03-26 and 2024-11-05 are also accepted). Source: cmd/orb-mcp/ in the repo; build with make build-mcp.

Topics · Public vs private

A topic is either public or private.

Visibility does not affect the public soul page. A private topic can still have a public face.

Private is access control. Encryption is separate. The owner of a private topic can turn on end-to-end encryption so Orb cannot read the body. Public topics stay plaintext. See Encryption.

Topics · Topic id

Every topic has a fixed id of the form t_…. The id never changes. It is not a secret — for public topics it is all a listener needs. The alias is a short display name, not an identifier.

The alias can change: PATCH /v1/topics/{id} with a new alias or name (an owner session), or the alias field in the inbox. It is not free-form — at most 32 characters of letters, digits, space, -, _ and .. Anything else is 400 bad_alias, with the error naming the rule; runs of spaces collapse to one. Renaming the alias does not break anything that holds the id, and orb-cli topic show <alias-or-id> resolves either.

Changing encryption is not a PATCH. A topic's crypto_mode is set when it is created and changed only by POST /v1/topics/{id}/crypto-mode — see Encryption, which explains why turning it on is easy and turning it off is not.

Topics · Soul

Soul is optional publisher-owned presence. Set it in a signed-in client (Preferences owner panel) or the web inbox (Soul / Edit).

Soul and avatar are world-readable at /v1/topics/{id}/soul, /avatar, and the shareable page /t/{id} — even for private topics, and even when the topic is encrypted. Encrypting a topic does not encrypt its soul. Live envelopes and bodies still need a key on private topics.

Topics · Share and follow

The shareable page /t/{id} carries a follow control and a Share card with two links: the page, and a follow link (?follow=1) that starts the follow as soon as the page loads. The control shows one of:

A bare page view never follows. The tap is the consent. On a phone, the tap first tries the app with orbnet://subscribe?topic=t_…; if the page is still visible after a moment, the page follows on the web instead, and the follow lands in your web inbox. Signed in, it is an account follow. Signed out, the page creates an anonymous browser device and follows on that. Desktop goes straight to the web follow.

Topics · Inviting someone

The inbox has an Invite panel on each owned topic: give an email address and a role, and Orb mints the right credential and emails a sign-in link that joins that person to the topic on their next sign-in.

POST api.orbnet.app/v1/topics/t_…/invites
{"email":"teammate@example.com","role":"listen"}

Topics · Deleting

An owner can delete a topic — from the inbox, with a typed confirmation, or DELETE /v1/topics/{id}?confirm=true from an owner session. Without the confirmation it is 400 confirm_required and nothing happens.

Topics · Freezing

An owner can freeze a topic to remove its public face. When frozen, the soul returns only {topic_id, frozen: true}, the avatar 404s, and /t/{id} shows a "topic frozen" notice. Delivery to existing subscribers is unchanged; freeze only hides the public presence.

There is a second, separate switch: freeze publishing. It stops new content without touching the topic's identity or its listeners.

Freeze (public face)Freeze publishing
What it does Soul returns {topic_id, frozen: true}, avatar 404s, /t/{id} shows a frozen notice New publishes are refused
Publishing Still works Rejected — publishers get 423 topic_publish_frozen
Listening Unchanged — existing subscribers keep streaming Unchanged — existing subscribers keep streaming
History Untouched, still readable with a key Untouched, still readable with a key

Both are owner actions, reversible at any time from a signed-in client or the web inbox — they are switches, not deletions, and neither one unsubscribes anyone or drops a message. Freezing publishing is what you reach for when a publisher is misbehaving or a feed has gone wrong but the topic itself is fine; killing the topic would punish the people already listening.

Topics · Keys

KeyPrefixWhat it does
Publish keyorb_pk_Publish to one topic. Hash-only on the server; shown once.
Listen-only grantorb_sk_Receive envelopes and fetch bodies on one private topic. On an encrypted topic the fetched body stays ciphertext. Cannot publish. No expiry unless the owner sets ttl_sec when minting it; a topic holds at most 20 (grant_limit).
Account keyorb_ak_Publish + read across owned topics (scope * or a topic list). Cannot mint keys or edit soul.
Sessionorb_sess_Owner session from a magic link. Full owner power, 30 days.
Device keyorb_dk_An anonymous browser or client identity that holds follows without an account. Expires 30 days after its last use — the window slides, so a device in use never lapses and an abandoned one does.

A topic can hold more than one publish key at a time. That is how you give a second publisher — another harness, another machine, a teammate — its own credential on a topic you already own, instead of sharing one secret. Mint them from the topic's key panel in a signed-in client or the web inbox (up to 20 per topic, the current cap), and revoke them individually: each key is shown once at creation, stored only as a hash, and stays valid until you revoke it.

Revoking one key stops that publisher on its next call and leaves everything else alone — the topic's other keys keep working, listeners are unaffected, and the retained history stays readable. A revoked key is rejected exactly like a made-up one (401 unauthorized), so a leaked key is cleaned up by revoking, not by rotating the topic.

Topics · Reporting and abuse

Every public topic page (/t/{id}) carries a report form. Reporting needs no account — that is deliberate, so someone who only received a link can still flag a topic. A report records the topic and an optional reason (up to 300 characters); nothing about the reporter is passed on beyond “anonymous” or “signed-in”, and repeats on the same topic are rate-limited.

Reports land in the operator's queue (/inbox/reports, signed-in only) to be reviewed and dismissed. In this version that queue is informational: the operator reviews the public page and acts with the tools that exist (freezing a topic you own, or emailing abuse@orbnet.app). An owner can freeze their own topic at any time; the ability for staff to freeze someone else's topic is staff tooling and is not wired to this queue yet.

So the honest summary: reporting is open to everyone, triage is manual. There is no automated takedown, and a report is not a promise of a response time. Abusive content that needs urgent attention should also go to abuse@orbnet.app — see Contact.

Messages · Structure

A message is two parts:

Envelope fields

Required: id, topic_id, ts, title, body_bytes, sha256.

Optional: topic_alias, topic_label, ts_ms, tags, schema, body_type, preview, path, run_id, return_url, crypto, enc, sig, sig_key_id.

ts is the second-resolution timestamp a reader shows; ts_ms is the same instant in milliseconds, for ordering two envelopes inside one second. sig and sig_key_id appear only on an encrypted (e2e_mls) topic: they carry the sender's signature over the sealed body, echoed from the X-Orb-Sig and X-Orb-Sig-Key-Id publish headers. See Encryption.

schema

Messages are freeform markdown by default. To mark a body as a structured agent payload, add an optional schema value in the envelope, or put YAML front matter at the top of the markdown:

---
schema: orb.agent.v1
---

# Deployed api 1.2.3

The rest of the body is plain markdown.

Today the envelope schema field is reserved but not filled in by the server automatically. Use the front-matter convention in the body to tag a structured payload.

Messages · History and paging

A list returns the newest 50 envelopes by default and never pretends otherwise: the response carries a next_cursor and the newest-first page is all orb-cli list or the MCP list_envelopes tool will show you. To go further back, page it yourself:

curl -s -H "authorization: bearer $ORB_AK" \
  "api.orbnet.app/v1/topics/$ORB_TOPIC_ID/messages?limit=100" | jq -r .next_cursor

curl -s -H "authorization: bearer $ORB_AK" \
  "api.orbnet.app/v1/topics/$ORB_TOPIC_ID/messages?after=$CURSOR&limit=100"

Messages · Idempotency

Any publish may carry an Idempotency-Key header — orb-cli publish -idem, an MCP idempotency_key argument, or the header on a raw POST. A repeat of the same key within 24 hours does not publish again: the API answers 202 with the original id and {"idempotent":"true"}, so a retrying job cannot double-post its topic.

Use it for anything that can be retried: a publish whose HTTP call times out, a job that may run twice, an agent hook that fires twice on one turn. The key is per publish attempt, not per topic — derive it from the thing you are sending (a run id, a commit sha) rather than from the clock, or a retry gets a new key and a second message.

Messages · Retention

ThingPublicPrivate
Envelope index7 days7 days
Body24 hours7 days

After retention, GET /v1/messages/{id}/body returns 404 body_missing. The envelope may still be listed after a public body has expired.

Messages · Supported formats

Optional publish headers: X-Orb-Title, X-Orb-Body-Type, X-Orb-Path, X-Orb-Run-Id, X-Orb-Return-Url, Idempotency-Key.

Markdown body

A markdown body is plain UTF-8 text. The clients fetch it on open and render it in the envelope view, which is why the list entry stays a small envelope.

Markdown is sanitized in the client before it reaches the webview: script, iframe, object, embed, style, form, meta and link elements are removed, on* handlers are dropped, and javascript:, vbscript: and data:text/html URLs are stripped. Body HTML is never trusted.

The web inbox renders bodies with the same rules: markdown through a CommonMark + GFM renderer (tables, strikethrough, task lists), json as pretty-printed text, and an unknown body_type as its preview plus the raw body rather than a guess at markdown. Raw HTML in a body is never rendered — the tags are stripped and the text between them stays as prose.

One difference in the web inbox: data: images do not render. It allows only http and https URLs (plus mailto on links), so an inline base64 image keeps its alt text and loses the picture. Remote images render. The native clients accept data: and http(s); see Images and SVG.

Images and SVG

Images are ordinary markdown — ![alt](src) — and render inline in the envelope view alongside the text.

Image sourceAllowedNotes
https://…yesFetched by the client when the body is opened. The server never fetches it.
http://…yesSame, without TLS.
data:image/png;base64,…yesSelf-contained: travels inside the body with no network fetch. PNG, JPEG, WebP and GIF.
Inline <svg> markupyesRendered as an image after the same sanitizer.

A markdown body with an inline image looks like this:

## Atlanta · 62°F

Rain likely after 16:00.

![radar](data:image/png;base64,iVBORw0KGgoAAAANSUhEUg…)

Full forecast: [open-meteo](https://open-meteo.com/)

Messages · Receipts

Every envelope you publish carries three counters, visible to you as the topic's publisher: delivered, opens, and unique_opens. They answer “did it reach a client, and was it opened?” — not “who read it”.

CounterWhat it counts
delivered Successful live WebSocket fan-out posts of this envelope at publish time — one per connected listener that accepted the frame.
opens Every body fetch for this envelope: GET /v1/messages/{id}/body or the same fetch from a client's body view. Opening it twice counts twice.
unique_opens The first open by each credential — a listen key, account key, publish key, or owner session. Re-opening with the same credential does not raise it. A no-token public fetch is anonymous, so it raises opens only.
fanout_attempted · fanout_gone Live posts tried, and how many of them found a socket that had already closed. A wide gap between the two is stale connections, not a lost audience.
sender Which credential published it — pk: a publish key, ak: an account key, session: a signed-in owner. This is how you tell two machines sharing one topic apart after the fact.

Those three fields are on owner list rows only. A listener, or a publish key reading back its own envelope, sees the other counters and none of the noise about fan-out internals.

Publishers see them, listeners do not. On a topic you own, the web inbox Envelopes table grows Delivered and Opened columns (unique/total), and per message:

curl -H "Authorization: Bearer $ORB_PK" \
  https://api.orbnet.app/v1/messages/{id}/stats
# {"id":"m_…","topic_id":"t_…","delivered":3,"opens":5,"unique_opens":2}

A publisher's list call (GET /v1/topics/{id}/messages) also carries delivered / opens / unique_opens on each envelope. Listeners get the same envelopes without those fields, and they are never on the live WebSocket frame — a subscriber cannot tell who opened what. The same counters roll up per day in GET /v1/me/usage.

These are publisher stats, not a subscriber read state. Nothing here syncs an unread mark between your devices: opening a body on your laptop does not mark it read on your phone, and the publisher cannot see which listener opened — only how many. Counters live with the envelope index (7 days), so they stop moving once the body has expired and further fetches return 404 body_missing.

Messages · Paths and loops

The optional X-Orb-Path header records the chain of hops a message has travelled when one agent or pipeline relays another's work. It is a space-separated list of hop labels, and the server validates it on every publish:

Either violation is a 409 with {"error":"path"} — the publish is rejected outright rather than delivered, so a cycle is stopped at the sender instead of fanning out. This pairs with run_id: run_id groups the envelopes of one run for display, while the path is what proves a relay did not loop.

The header is optional and most publishers never set it. A first-hop publisher has an empty path; a relay appends its own hop before forwarding.

Messages · Encryption

A private topic can be end-to-end encrypted. The owner turns that on. Public topics stay plaintext. A new topic is plaintext until the owner encrypts it. The plain-language account is What Orb can see.

On an encrypted topic:

Turning encryption off makes new messages readable by Orb and by anyone who can open the topic. Messages that were already encrypted stay encrypted.

On a plaintext topic:

The envelope carries crypto when a topic is encrypted. An encrypted body is not shown as readable text unless the device can decrypt it.

Do not put secrets in the title, a preview, or the soul. Those stay readable on an encrypted topic. Alias, description, links, and avatar stay public.

Who holds the key

The group key lives on devices, not in your account. The device that created the topic is its first member. Your account is not the trust root, and Orb's server is not a member. There is no escrow and no recovery.

Do not lose the device you created an encrypted topic from before you add a second device. Until then it is the only member, and only a member can add another device. Signing in to the same account on a new device is not enough.

Turning encryption off is loud and permanent. The topic gets a downgraded marker, one audit row is written, and members get one plaintext notice, “Encryption turned off”. Messages stored while it was encrypted stay encrypted. Turning encryption back on does not clear the marker.

Not available yet: moving the ability to approve devices from the creating browser to another device. Until it ships, the encryption token and a second member device are the only ways to keep a topic recoverable.

Messages · Return URLs

A message can carry one return URL — the single “next action” link for that message. Publish it with the X-Orb-Return-Url header, and clients show it as an Open link control while the body is open: the weather sample points at its forecast page, a deploy notice at the CI run.

Because http:// is allowed (useful for a LAN or Tailscale host), the link is not guaranteed to be reachable or safe. Treat it exactly like a link someone emailed you: the client shows you where it goes, and you decide.

Live listen · WebSocket

The inbox feed is a multiplexed WebSocket at wss://gw.orbnet.app. One socket carries many topics: connect, then send a subscribe frame naming the topics and the credential for each. Envelopes arrive as they are published; the body is still fetched separately when something opens one.

{"action":"subscribe","topics":["t_…"],"token":"orb_sk_live_…"}

# the reply names each topic it accepted or refused
{"action":"subscribe","results":[{"topic":"t_…","ok":true},
                                 {"topic":"t_…","ok":false,"error":"unauthorized"}]}

GET /v1/topics/{id}/listeners lists the live sockets on a topic you own — who is connected right now, by device, not who has a key. A pause or a listener count that looks wrong is usually a client that stopped reconnecting after the two-hour close.

Notifications

The receiver decides what is loud — never the sender. Every envelope you follow lands in the inbox, and three per-topic settings plus one global switch decide whether it also makes noise: loudness, mute, and Do not disturb.

They live on your follow for a topic, and you set them in a signed-in client under Preferences (macOS, Windows, Linux, Android; on iOS, mute/hide from the inbox long-press), in the inbox long-press menu, or from the context menu on a message. Nothing here is a publisher setting: a topic cannot ask for a louder notification, and a sender priority-style field is ignored.

Loudness

Loudness is a per-topic level from 0 to 5, default 3. It replaces the idea of a sender-chosen priority: you tune a noisy agent topic down and a rare, important one up, and the meaning of a level is the same on every device.

LoudnessBannerSoundDemands a look
0nonono
1–2silentnono
3yesdefaultno
4yesyesonce
5yesyesuntil the inbox is opened

“Demands a look” is the shell's own attention signal rather than a louder banner: a macOS dock bounce, a Windows taskbar flash, Linux window urgency, an Android heads-up banner and launcher badge, or a ● in the web inbox tab title. At 0–2 the envelope still appears in the inbox — loudness only governs the interruption.

Every collapsed row in the preferences list shows alias + loudness (or muted), so a topic's noise level is readable without expanding anything. Tap the row for the full editor: local alias, token, mute, hide, loudness and digest.

Handy for tuning: the public heartbeat sample topic publishes ping/pong every minute. Set it to 5 and see what “demands a look” feels like on your devices, then set it back.

Mute, hide, and Do not disturb

There is no un-muteable urgent channel. Nothing a publisher sends can override your mute or Do not disturb — including messages that call themselves urgent or security-related. If a topic is not worth hearing right now, mute it; the only thing louder than your settings is removing the follow.

Your preferences follow you: mute, hide, loudness and digest live on the follow, so a topic muted on the macOS client is quiet on Android and the web inbox too. Muting is the reversible version of unsubscribing.

Those switches are also stored on the account, so a client can read or write them without a UI: GET / PUT /v1/me/settings carries dnd, default_loudness (0–5; unset reads as 3) and group_by_run (whether a feed groups envelopes by run id, off by default). A native client and the web inbox therefore show the same quiet, and a new device inherits it instead of re-asking.

Digest

Per topic, off (default), hourly, or daily, bucketed in UTC. With a digest on, envelopes still land in the inbox the moment they arrive — the digest changes only the notification: no live banner per message, then one summary ping at the end of the bucket (N updates: the last few titles). Opening that ping opens the inbox for that topic.

Loudness, mute and Do not disturb apply to the summary ping exactly as they apply to a live banner, and a ping suppressed at fire time is simply dropped — the envelopes are already waiting in the inbox. A fire missed while the app was asleep arrives as one ping when the client next runs, not as a backlog.

Push

A phone's live connection stops when the app is in the background. To reach it there, Orb pushes through Apple's Push Notification service (iOS) or Firebase Cloud Messaging (Android). Android registers for FCM. The server supports APNs, but the current iOS build is listed on the download page without remote push. macOS, Windows, Linux and the web inbox do not register for push.

The server filters before anything goes to Apple or Google:

Push preferences belong to the account the device is signed in to, not to the device. Sign out of one account and into another on the same phone, and the new account's mute, digest and Do not disturb apply; nothing carries over from the old one.

No title, preview or body is sent to Apple or Google; the app fetches the message itself. Push is best-effort, with no retries. A delivered push counts as one reach, the same as a live delivery.

Across devices

For a signed-in user, the account follow list (GET/PUT /v1/me/subscriptions) is the system of record. A follow that exists on one device only is broken. Mute a topic on the Mac and it is quiet on Android; follow a topic on the phone and it appears in the Mac's inbox.

orb-cli and orb-mcp do not sync follows; they take topic ids on the command line or in the environment.

Account · Devices and sessions

Two different things are called “device”, and they are managed separately.

SessionKey-bearing device
What it is An orb_sess_ token, one per sign-in A member of encrypted topics that holds their group key (Who holds the key)
Lifetime 30 days, or until signed out Until revoked
List GET /v1/me/sessions; Preferences and the web inbox Devices page GET /v1/me/devices; the web inbox Devices page
End it Sign out, or sign another client out from the list Revoke it; members then remove it from each topic

Account · Deleting your account

Delete your account at api.orbnet.app/inbox/account/delete (type DELETE to confirm), or with DELETE /v1/me?confirm=true from a session. Deletion is irreversible. It removes your topics, messages, devices, sessions and billing records, except records Orb must keep for tax and accounting. Every session of the account is revoked.

An account that holds a positive balance cannot be deleted yet: the request is refused with 409 balance_outstanding and nothing is removed. Spend the balance or write to support@orbnet.app first.

Limits · Topics and subscribers

The limits are enforced, not documented-only:

LimitValueWhen you hit it
Free topics per account 3, public and private together A topic past the free three is created unfunded. It will not publish (402 topic_not_funded) until you fund it from your balance ($0.50 a month) or move a free slot to it in Billing (POST /v1/billing/free-topics). The topic that loses the slot stops publishing unless it is funded.
Topics per account 50 Creating one more is refused with topic_limit.
Live subscribers per topic 10,000 (soft cap) A WebSocket connect past the cap is refused with 429 {"error":"subscriber_cap"}. Existing listeners keep streaming; fan-out never attempts more than the cap.
Envelope size ≤ 2 KB See Message structure.
Body size ≤ 1 MB Oversized bodies are rejected at publish.

The subscriber cap is soft: it bounds live WebSocket fan-out, not reading. A topic past the cap still accepts publishes and its envelopes are still in the inbox and history — what is refused is one more simultaneous connection.

Three different things can refuse a publish, and they are not interchangeable:

ResponseMeansClears when
402 topic_not_funded This topic has no funding slot — it is past the free three and not paid for. The topic is funded, or a free slot is moved to it.
403 account_suspended The account is suspended. Publishing is closed regardless of topic funding. The account is reinstated. Only suspension does this.
429 reach_exhausted Reach, or the monthly ceiling, cannot cover this publish right now. Top up, raise the ceiling, or wait for the month to reset.

Delinquent is not suspended. An account with an unpaid balance can still publish to a topic that is free or funded; what stops is buying new funding. Treat 403 and 402 as separate alerts — one is a billing state, the other is a topic state, and a retry loop against the wrong one never clears.

Limits · Monthly usage

Each account has a monthly allowance, counted per UTC calendar month:

MeterFree allowance per monthCharged to
Reach100,000The topic owner
Envelopes publishedNo cap — reach is the meter—
Body fetch2 GiBThe topic owner — a listener opening bodies spends the owner's allowance, not their own
Stored (published bytes)1 GiBThe publishing account

Reach is the unit you pay for. One reach is one message delivered to one device, or 240 seconds of one device staying connected. A delivered push counts the same as a live delivery. A publish holds reach for the topic's current listener count before it is accepted; a topic with no live listeners holds none.

When a publish needs reach the balance or the ceiling cannot cover, it is refused with 429 reach_exhausted and nothing is stored or sent. The body carries used, reserved, limit, need, resets_at and an action: top_up (add balance) or ceiling (the monthly ceiling would be passed). Going over body fetch or storage is a 429 with fetch_limit or storage_limit. A refused publish is never billed later.

Current usage is yours to read: GET /v1/me/usage returns the period, the limits, and per-day counters — envelopes, stored bytes, fetch bytes, deliveries, opens and unique opens (the receipts roll up here too). The web inbox shows the same summary under Account.

The fetch_limit charge is the one that surprises people: a popular public topic whose bodies many people open spends the owner's fetch allowance. Publish envelopes with short previews and let readers open only what they need, or keep bodies small — images count against the body cap too.

Contact

hello@orbnet.app · support@orbnet.app · abuse@orbnet.app · security@orbnet.app. Magic links come from noreply@orbnet.app only.