Skip to content

feat: anonymous opt-out usage telemetry#112

Merged
a-essawy merged 5 commits into
mainfrom
claude/posthog-anonymous-telemetry
Jul 20, 2026
Merged

feat: anonymous opt-out usage telemetry#112
a-essawy merged 5 commits into
mainfrom
claude/posthog-anonymous-telemetry

Conversation

@a-essawy

Copy link
Copy Markdown
Contributor

Summary

Anonymous, opt-out usage telemetry so we can see which commands matter and make the CLI better.

  • One cli_command event per run: command name, success, duration, CLI version, OS. Nothing else.
  • Never sends file names, arguments, URLs, credentials, or account identity. Identifier is a random per-machine id (cli_anon_*), not tied to any account. Events are anonymous ($process_person_profile: false).
  • rb telemetry on|off|status; env off switches DO_NOT_TRACK=1 / RENDOBAR_TELEMETRY=0; auto-off in CI.
  • Respectful one-time first-run notice; README "Telemetry" section documents exactly what is and isn't collected.
  • First-party: posts through the e.rendobar.com proxy. Public write-only token injected at build via RB_POSTHOG_KEY (empty = disabled).

Verification

Full suite green (174 tests), typecheck clean. Verified end-to-end against a local capture server: anonymous cli_command posted to /i/v0/e/, and DO_NOT_TRACK=1 / rb telemetry off send zero requests.

To activate on the next release (repo owner)

Because the token is baked in at build time, add a repository variable RB_POSTHOG_KEY (Settings, Actions, Variables) and add to the "Generate version file" step in .github/workflows/cli-binaries.yml:

        env:
          RB_POSTHOG_KEY: ${{ vars.RB_POSTHOG_KEY }}

(Left out of this PR because the automation token lacks workflow scope.)


Generated by Claude Code

@a-essawy
a-essawy merged commit a119dd0 into main Jul 20, 2026
2 checks passed
@a-essawy
a-essawy deleted the claude/posthog-anonymous-telemetry branch July 20, 2026 06:39
@a-essawy a-essawy mentioned this pull request Jul 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant