GitHub's CLI tool now collects user data by default, raising questions about consent and compliance with global privacy regulations like GDPR and CCPA.
GitHub's command-line interface (CLI) has quietly implemented client-side telemetry collection, enabled by default for all users, sparking significant privacy concerns within the developer community. The change, introduced in version 2.91.0, represents a notable shift in how GitHub interacts with its users and raises important questions about data consent and regulatory compliance.
What Happened
Without a prominent announcement, GitHub began collecting pseudonymous telemetry data from CLI users. The change was only documented through updates to GitHub's CLI documentation and release notes. GitHub claims the data collection aims to understand feature usage and improve the CLI, particularly as "agentic adoption" of the tool grows.
"As agentic adoption of GitHub CLI grows, our team needs visibility into how features are being used in practice," reads GitHub's new telemetry page. "We use this data to prioritize our work and evaluate whether features are meeting real user needs."
According to GitHub, the collected data includes an agent field, architecture, device ID, operating system, flags, command name, invocation ID, and other metadata. However, the company admits that "actual telemetry payloads may differ considerably" from the sample provided.
Legal Implications
This telemetry collection raises serious questions under data protection regulations like the EU's General Data Protection Regulation (GDPR) and California's Consumer Privacy Act (CCPA). These regulations typically require explicit consent before collecting personal data, and default opt-in mechanisms often fail to meet this standard.
Under GDPR, organizations must obtain clear affirmative consent before processing personal data, with the right to withdraw that consent easily. The fact that GitHub enabled telemetry by default without explicit consent could be viewed as non-compliant with these principles.
Similarly, CCPA gives California residents the right to opt-out of the sale of their personal information. While GitHub claims not to "sell" this data, the collection and processing without explicit opt-in could still violate the spirit of these regulations.
Impact on Users and Companies
For individual developers, this telemetry collection represents an unexpected sharing of usage patterns with a major tech company. The data, while described as "pseudonymous," could potentially be combined with other data points to create detailed profiles of developers' work habits and preferences.
For organizations, especially those in regulated industries, this default telemetry collection creates compliance risks. Companies may need to implement policies prohibiting CLI telemetry or face potential violations of their own data governance policies.
The inclusion of "agentic workflows" in GitHub's explanation is particularly noteworthy. As AI agents become more prevalent in software development, the line between human and machine-generated commands blurs, raising questions about what constitutes informed consent in automated environments.
What Users Can Do
GitHub has provided opt-out mechanisms, though they require manual intervention:
- Environment variables: Users can set
GH_TELEMETRY=falseorDO_NOT_TRACK=truein their environment - CLI configuration: The command
gh config set telemetry disabledwill disable telemetry in the CLI configuration

Broader Privacy Concerns
This incident reflects a broader trend in the tech industry of implementing data collection features with default opt-in settings. While companies argue that such telemetry helps improve products, privacy advocates counter that users should have control over their data by default.
GitHub's status as an open-source project adds another layer to this discussion. While the CLI is open source, making the telemetry implementation technically reviewable, most users lack the expertise or time to audit the codebase for data collection practices.
The situation also highlights the growing tension between user privacy and corporate interests in the AI era. As GitHub explicitly mentions AI agents as a reason for telemetry collection, we can expect more such privacy-related challenges as AI becomes more integrated into development workflows.
Recommendations for Developers
- Review and configure telemetry settings in your GitHub CLI
- Consider the privacy implications of using CLI tools that collect usage data
- Stay informed about changes to terms of service and privacy policies
- Support open-source projects that prioritize user privacy and transparency
GitHub's telemetry collection serves as a reminder that even developer tools, which might seem innocuous, can have significant privacy implications. As we increasingly rely on cloud-based development platforms, understanding what data is collected and how it's used becomes essential for maintaining control over our digital lives.
For more information about GitHub's telemetry implementation, developers can review the code directly in the GitHub CLI repository. The official telemetry documentation provides additional details about the collected data and opt-out procedures.

Comments
Please log in or register to join the discussion