Skip to content

Telemetry & Privacy

Official offrig release binaries (installed via install.sh, Homebrew, or offrig update) and offrig.dev collect minimal, anonymous product analytics (PostHog) and crash/internal-error reports (Sentry) to measure Provider usage and catch regressions early.

Note: CLI telemetry (offrig telemetry) is separate from local Run resource telemetry (offrig --json / offrig --report-file), which stays 100% local to your terminal and files.

You can disable CLI telemetry at any time using any of these options:

  • Command: offrig telemetry disable (or --usage-only / --errors-only). This updates ~/.config/offrig/config.toml and immediately purges any unsent local queue.
  • Standard environment variable: DO_NOT_TRACK=1 (per donottrack.sh; takes precedence over all other telemetry settings).
  • offrig environment variable: OFFRIG_TELEMETRY=0 or OFFRIG_NO_TELEMETRY=1.
  • User-global config (~/.config/offrig/config.toml):
[telemetry]
enabled = false
# Or disable one channel only:
# enabled = true
# usage = false
# errors = true
  • Inspect before sending: run offrig telemetry preview to print the exact scrubbed PostHog and Sentry JSON payloads for your machine (makes zero network requests and writes nothing to disk).
  • Rotate your anonymous ID: run offrig telemetry reset-id to generate a fresh random UUIDv4 and clear any queued events.
  • Website (offrig.dev): enable Global Privacy Control (GPC) or Do Not Track (DNT) in your browser; when set, offrig.dev makes zero third-party telemetry requests.

Telemetry is evaluated fail-closed in strict order:

  1. Source builds & dev builds are always off: cargo install offrig, local cargo build binaries (InstallOrigin::CargoTarget), forks, and offrig doctor --offline do not include release ingest keys or transmit events.
  2. DO_NOT_TRACK hard veto: any non-empty value except 0, false, no, or off disables both usage analytics and error reporting and cannot be overridden by OFFRIG_TELEMETRY=1.
  3. Explicit env opt-out / invalid values: OFFRIG_NO_TELEMETRY=1 or OFFRIG_TELEMETRY=0 disables telemetry; unrecognized values fail closed silently on normal commands and warn in offrig telemetry status and offrig doctor.
  4. Explicit env opt-in: OFFRIG_TELEMETRY=1 overrides CI, dev builds, and config (never DO_NOT_TRACK or missing keys).
  5. CI environments are automatically off: CI, GITHUB_ACTIONS, GITLAB_CI, BUILDKITE, CIRCLECI, TRAVIS, JENKINS_URL, TF_BUILD, and CODEBUILD_BUILD_ID disable telemetry automatically.
  6. User-global config only (ADR-0005): [telemetry] is strictly forbidden in checked-in offrig.toml and offrig.local.toml so repositories cannot enable telemetry on your behalf.
  7. First-run interactive notice & grace period: on the first eligible interactive TTY command, offrig prints a 2-line notice to stderr, records notice_shown_at_unix, and sends zero events for that invocation. Non-TTY non-CI invocations (such as offrig mcp, --json, or Shims) follow the default opt-out preference and defer the one-time notice to your first interactive TTY run.

Events use a closed 4-event catalog serialized from typed structs (no free-form maps). Every event sets $process_person_profile: false and $geoip_disable: true, and our PostHog project discards client IP addresses at ingest.

Common properties on every event: cli_version, os (macos/linux/other), arch (aarch64/x86_64/other), install_origin, is_tty, and a persistent random UUIDv4 distinct_id stored in $XDG_STATE_HOME/offrig/telemetry.json (~/.local/state/offrig/telemetry.json).

Event Fields
cli_command_completed Static dot-delimited command (e.g. run, snap.build, doctor), provider_kind, execution_mode (daemon/no_daemon/fallback_busy), json_mode, isolated, ro, duration_ms, exit_category, error_code, oom_killed
mcp_tool_completed Closed tool_name (offrig_*), provider_kind, duration_ms, is_error, error_code, read_only_server
mcp_session_completed duration_ms, tool_calls_total, tool_calls_error, read_only_server, protocol_version
shim_decision shim_mode (auto/always/off), decision (local_slotted/local_unslotted/local_passthrough/remote_always/remote_spillover/fallback_local), spillover_reason, provider_kind, duration_ms, exit_category

Sentry receives only unhandled panics, unexpected wire-protocol framing/internal Worker errors, unexpected ProviderError::Other failures, and internal invariant bugs.

Excluded by design: CLI usage errors, configuration errors, credential/authentication failures, Write-back conflicts (exit 124), signals (SIGINT/SIGTERM), local I/O errors, network/timeout errors, image build failures, and remote command exit codes.

Every error or panic message is scrubbed before it is written to the local spool ($XDG_CACHE_HOME/offrig/telemetry-queue.jsonl):

  • Runtime resolved secrets (raw and Base64) are redacted.
  • Auth headers (Bearer, Basic, Authorization:), token=/api_key=/password=/secret= assignments, and known API key prefixes (sk_, phc_, ghp_, github_pat_, dtn_, e2b_, eyJ, etc.) are redacted.
  • URLs (https://, ssh://, git@host:path), email/SSH addresses, IPv4/IPv6 literals, $HOME, and local file paths are replaced with <url>, <addr>, <ip>, and <path>.
  • Release binaries remap build paths to /src/... and /cargo/... via --remap-path-prefix.
  • server_name, ip_address, username, and email are omitted from Sentry payloads, and our Sentry projects drop client IP addresses server-side.

Why offrigd inside Sandboxes never phones home

Section titled “Why offrigd inside Sandboxes never phones home”

The offrigd Worker binary running inside remote Sandboxes has zero HTTP or telemetry dependencies and never initiates outbound telemetry requests. Sandboxes may run air-gapped and have no access to your local consent preferences. Unexpected Worker errors return over the existing yamux stream, and unhandled offrigd panics write one bounded marker line to stderr that your local offrig CLI parses and scrubs locally under your workstation consent settings.

On production https://offrig.dev only (disabled on localhost and PR previews, and completely skipped before loading any SDK when browser GPC or DNT is enabled):

  • PostHog (posthog-js/dist/module.no-external): cookieless (persistence: "memory"), person_profiles: "never", no autocapture, no session replay, no surveys, no remote CDN script loading. Emits only sanitized $pageview (origin + pathname, query and hash stripped) and install_command_copied (method + location).
  • Sentry (@sentry/browser): uncaught JavaScript errors only (PII collection disabled via dataCollection — no user info, cookies, HTTP headers/bodies, or query parameters — no tracing or session replay, and query strings and hashes stripped in beforeSend).