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.
Opting out
Section titled “Opting out”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.tomland immediately purges any unsent local queue. - Standard environment variable:
DO_NOT_TRACK=1(per donottrack.sh; takes precedence over all other telemetry settings). offrigenvironment variable:OFFRIG_TELEMETRY=0orOFFRIG_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 previewto 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-idto 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.devmakes zero third-party telemetry requests.
Automatic opt-out & consent precedence
Section titled “Automatic opt-out & consent precedence”Telemetry is evaluated fail-closed in strict order:
- Source builds & dev builds are always off:
cargo install offrig, localcargo buildbinaries (InstallOrigin::CargoTarget), forks, andoffrig doctor --offlinedo not include release ingest keys or transmit events. DO_NOT_TRACKhard veto: any non-empty value except0,false,no, oroffdisables both usage analytics and error reporting and cannot be overridden byOFFRIG_TELEMETRY=1.- Explicit env opt-out / invalid values:
OFFRIG_NO_TELEMETRY=1orOFFRIG_TELEMETRY=0disables telemetry; unrecognized values fail closed silently on normal commands and warn inoffrig telemetry statusandoffrig doctor. - Explicit env opt-in:
OFFRIG_TELEMETRY=1overridesCI, dev builds, and config (neverDO_NOT_TRACKor missing keys). - CI environments are automatically off:
CI,GITHUB_ACTIONS,GITLAB_CI,BUILDKITE,CIRCLECI,TRAVIS,JENKINS_URL,TF_BUILD, andCODEBUILD_BUILD_IDdisable telemetry automatically. - User-global config only (
ADR-0005):[telemetry]is strictly forbidden in checked-inoffrig.tomlandoffrig.local.tomlso repositories cannot enable telemetry on your behalf. - First-run interactive notice & grace period: on the first eligible interactive TTY command,
offrigprints a 2-line notice tostderr, recordsnotice_shown_at_unix, and sends zero events for that invocation. Non-TTY non-CI invocations (such asoffrig mcp,--json, or Shims) follow the default opt-out preference and defer the one-time notice to your first interactive TTY run.
What the CLI collects
Section titled “What the CLI collects”Anonymous usage analytics (PostHog)
Section titled “Anonymous usage analytics (PostHog)”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 |
Crash & internal error reporting (Sentry)
Section titled “Crash & internal error reporting (Sentry)”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, andemailare 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.
What offrig.dev collects
Section titled “What offrig.dev collects”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) andinstall_command_copied(method+location). - Sentry (
@sentry/browser): uncaught JavaScript errors only (PII collection disabled viadataCollection— no user info, cookies, HTTP headers/bodies, or query parameters — no tracing or session replay, and query strings and hashes stripped inbeforeSend).