Browse docs
Docs / Reference / Telemetry & Data Collection
View as Markdown

Telemetry & Data Collection

On this page

What Swarmfile measures, what leaves your machines, and what it deliberately does not collect. This page is for security reviews and procurement questionnaires; the network-level view of every connection is in Network Requirements.

Short version#

  • Client usage analytics are two first-party, hosted-only paths. The anonymous beacon (below) and, on the Music page, pseudonymous music events keyed to the HMAC of the member and repository. The Music events record only a stage and typed outcome (session start/stop, Live detection, handoff, merge, validator result), never a path, file name, Set name, track title or note. They are on by default and can be turned off with Share pseudonymous music usage in the Music page; SWARMFILE_FUNNEL_BEACON=0 covers only the anonymous beacon. No third-party analytics or crash-reporting SDKs ship in the desktop app or engine. A random per-install id (generated and stored locally; no machine id, account, org, repository, path or file name) is HMAC'd server-side for one install row, plus one clone_completed row after an anonymous public swarmfile:// clone. It goes to the hosted service only - never to a community or self-hosted hub - and SWARMFILE_FUNNEL_BEACON=0 disables it. No third-party analytics or crash-reporting SDKs ship in the desktop app or engine. The small operational reports the client sends during ordinary work (P2P bandwidth deltas, branch switches and metadata calls) are separate disclosures, listed below; they are counters, ids and the from/to branch names in a branch-switch report, not usage analytics.
  • No third-party analytics or crash-reporting SDKs ship in the desktop app or engine. There is no telemetry sent to an analytics service, ad network, or crash collector from the client. The website is separate: Google Analytics is scoped to the public marketing/docs pages, loads only after an explicit "Allow analytics" choice, and is not loaded before that choice or on public repository pages, Explore, the signed-in dashboard, or any app route - so no repository slug, file path, or dashboard URL is reported to it. The choice is stored in the browser; declining (or making no choice) leaves analytics off. After consent it records simple interaction events such as download-button clicks (which file, which page - no account id). On the /send drop surface it records two non-identifying funnel events (drop_created, drop_upload_completed) carrying only a file count and folder/referral booleans - no file names, paths, sizes or account id; the /d/:id receipt page has no analytics. (Navigating from a marketing page into any of those becomes a full page load, whose document has no analytics at all.) The Google Fonts stylesheet, by contrast, loads site-wide (the dashboard uses the same type stack); its requests necessarily carry the page URL but nothing else.
  • OpenTelemetry only exists in Swarmfile-operated diagnostic builds, and only if you point it somewhere. Shipped desktop installs don't emit traces. In a diagnostic build, an unset endpoint still defaults to a local OTLP collector at http://localhost:4318; set it explicitly if you want no export attempts at all.
  • File contents never leave unencrypted on a managed or end-to-end repository - the storage layer and peer transfers see ciphertext, with the documented exceptions on Security Architecture.
  • Usage metering counts bytes and seats, not contents. Billing dimensions are computed from byte counters and org membership. The optional agent-spend attribution (below) adds token counts and model names, never prompt, tool or file content.

Client-side diagnostics (opt-in)#

MechanismDefaultWhat it sendsWhere it goes
SWARMFILE_OTEL_ENDPOINThttp://localhost:4318 in Swarmfile-operated diagnostic builds; unset on shipped installs, which don't emit tracesTraces/spans for engine operations: operation names, timings, counts, error kinds, and internal identifiers (entry ids, content hashes). No file bytes. Diagnostic builds only: shipped desktop installs don't emit traces.The OTLP collector you configure
SWARMFILE_OTEL_SERVICE_NAMEswarmfile-engineService name on those spansSame collector
SWARMFILE_UPLOAD_TRACEOffPromotes upload-attempt logging (including the hub's refusal body) to warn in the local logLocal log file only
swarmfile-doctor / swarmfile doctorRuns when you askProbe results, hostnames, versions, and error text, written to a local JSON reportStays local until you attach it to a support request
RUST_LOGOff (info)More detailed local loggingLocal log file only

Normally the client also sends small operational reports to the hub - a P2P bandwidth delta roughly every 60 seconds, a branch-switch report when a machine changes branch, and the metadata calls that make up ordinary work. These carry counters, byte totals, ids, and (for a branch switch) the from/to branch names; never file content.

What the service collects#

Usage metering (billing and limits)#

The hub meters usage per org:

DimensionMeasuredBilled
StorageBytes stored per repository (from committed manifests and object sizes)Overage, then hard ceiling
EgressBytes served, counted per direction (cloud egress and P2P in/out are tracked separately)Not billed - unlimited on every plan; a separate platform-wide hourly ceiling can refuse further anonymous raw reads under extreme volume (it isn't plan- or org-specific and can't be raised). Anonymous release downloads additionally pass a one-time proof-of-work check and a per-client admission budget before bytes are served (counters, not content)
CollaboratorsExternal collaborators on private repositories above the per-seat allowance (public-repository guests are free and uncounted)Overage, then hard ceiling
SeatsMembers counted per org and reconciled to the subscriptionPer seat
Headless seatsMachine seats (repository-scoped keys) minted, by org and repositoryHard cap; additional seats raise it

Metering is counters and sizes - it never inspects file contents. Details, allowances, and ceilings are in Billing & Plans.

Agent spend attribution (opt-in)#

An owner/admin enables it in Settings → Usage → Agent spend. A member's engine then posts, at most every five minutes, per-session token counts (input/output/cached), the model name and the session, workspace and repository identifiers, plus the landed / in-review / exploration / unknown split derived from the default-branch history and merged-MR chains.

It never sends prompt text, tool arguments or results, transcript lines, file names or file contents, and a member sees only their own attribution.

swarmfile usage agents --local scans a transcript entirely on the machine and uploads nothing (it reads each line only for its id/model/timestamp/token counts and then discards it); the org ledger is the default. The only email is an optional weekly owner digest and an 80% daily-budget warning.

How the split works: Agent spend attribution.

Installer downloads and installs#

  • Anonymous downloads. Installer links on public pages (the download page, the welcome page, the get-started banner, and the Security page's doctor link) go through a hub redirect that records one event per fetch: which file, which page/button, and when. The event stores no token, org, user, or device identifier; the per-IP rate limiter keeps only a short-lived counter to bound abuse. Rows are deleted after 180 days.
  • Signed-in downloads. A download from the dashboard's Setup tab goes through a per-seat token and records which org and seat fetched which installer and when (also deleted after 180 days), so a download can be tied to the seat that made it.
  • First-launch install report. On first launch the Desktop App reports the machine id, OS, and app version, and refreshes a last-seen time on later launches, so the Setup tab can show which of your machines are connected. The server may link that report to a recent installer download from the same account; nothing is added to the installer itself.

These records never include file contents. Aggregate download counts are available to support for capacity planning.

Internal funnel instrumentation#

The service records a small, first-party pseudonymous set of adoption events so the team can see where developers stop: account created, repository created, public clone session started, first clone read, agent workspace created, reflected LFS push, manual CI run, music session/handoff/merge/check events, and typed plan refusals such as the Free-org limit or a private repository on Free.

Every identity is HMAC-SHA-256'd under a server-side secret before storage; the table contains no raw org or user id, email, IP address, path, file name, branch name or free-form detail. There is no third-party analytics or collector in this path, and it is not read by any customer-facing page.

Rows are pruned after 400 days and the only reader is an operator-only report.

The client also sends two first-party beacons to the hosted service:

  • One install event the first time a device boots (one row per install id, so later boots add nothing).
  • One clone_completed event after an anonymous public clone through the swarmfile:// helper (one row per install id per UTC day).

Both carry only the random install id the client generates and stores locally - never a machine id, account, org, repository, file name, path or branch name - and the server HMACs it before storage; the anonymous request also carries a stateless proof of work. A community or self-hosted hub never receives either beacon, and SWARMFILE_FUNNEL_BEACON=0 turns them off.

The client counts derived from these rows are self-asserted and inflatable (fresh cache directories mint new ids; offline or opted-out clients are absent), so they are not an audited install count.

These rows are global operational telemetry in the system database, the same global database that holds the org registry and billing records.

They are not part of the per-org repository data-residency pin: an EU-pinned org's blocks and repository metadata stay in its region, while its pseudonymous funnel rows remain in the global system table. The controller holds the HMAC key, so the keys are pseudonymous rather than irreversible; they are personal data and an operator can purge them by the known org/user id (see the funnel instrumentation operator runbook). An org deletion does not automatically recompute those keys; use the operator purge as part of an erasure request.

Public-page referrers#

Anonymous reads of a public repository page record where the reader came from - but only as an aggregate: one counter row per (repository, UTC day, referring host). The host is stored as a name (lowercased, www. dropped); an IP address is never stored as itself (it counts under ip), the hub's own pages count under internal, a missing referrer under direct, and anything unrecognizable under other. No paths, no query strings, no full URLs, no cookies, and no visitor identifier of any kind exist in the data, so no single visit can be reconstructed. Rows are deleted after 90 days. Only a repository's owners/admins can see the aggregate.

Activity and audit events#

The org Activity feed (and its CSV export) records user-visible metadata per event: occurredAt (the CSV column is occurred_at_iso), kind, actor (user id, display name, email), repository (id, name), entry (id, name), a summary, and a detail field. Examples are commits, merges, permission changes, quarantine decisions, and plan/policy changes. It does not record file contents, and it never records a file's bytes.

Retention applies to these rows - see Audit-event retention. The personal notification inbox and its email copies contain the same class of metadata (who, what, when), not content.

Notifications by email#

Email delivery uses Postmark as the transport provider. The message contains the same event metadata as the in-app notification (repository and entry names, actor names, a link), never file contents. Providers and hosts are listed in Network Requirements.

Third parties that can see what#

ProviderWhat it handlesWhat it can see
Cloudflare (Workers, R2, Pages)Hub, identity, storage hostsEncrypted blocks for encrypted private repositories; plaintext for Free-plan (public or private) and public repositories (by design); request metadata
PostmarkNotification and account email transportRecipient address and the email's metadata content
StripeBillingOrg/account details and payment method, never file content
iroh/N0 relay networkNAT traversal for P2P when direct connections failConnection metadata (endpoints, timings); relayed traffic is encrypted end-to-end between peers
Google (swarmfile.com website)Google Analytics on the marketing/docs pages after the visitor allows it; Google Fonts site-widePage views, the referring URL, and download-button click events (which file and which page); nothing from the app or your repositories

What is not collected#

  • No browsing history in the dashboard, no cursor tracking, no session recording.
  • No content indexing of your files by the service beyond what a preview/search feature needs (managed tier), and none at all on end-to-end repositories.
  • No telemetry from the Desktop App UI itself (the two client beacons above come from the engine/helper and carry only the random install id).
  • No automatic upload of logs or doctor reports - support only gets what you attach.

Verifying this on a machine#

  1. Confirm no OTLP traffic leaves the host: shipped desktop installs don't emit traces, so ports 4317/4318 stay silent even if the endpoint variable is set.
  2. Run swarmfile-doctor --json --report /tmp/report.json and inspect the file: it contains hostnames, versions, probe verdicts, and error strings.
  3. Inspect the cache directory's logs for what RUST_LOG/SWARMFILE_UPLOAD_TRACE would add.
  4. For an end-to-end repository, confirm the mount's blocks are ciphertext by reconstructing one as described in Storage Format.

Where to go next#

Something wrong or missing? Report a docs issue.