Skip to content

Commit 428e4e3

Browse files
committed
Add telemetry/tracking opt-outs for mise-installed CLIs
gh, Wrangler, gcloud, EAS CLI and Apify CLI ship anonymous usage telemetry not reached by the existing DO_NOT_TRACK/DISABLE_TELEMETRY vars. Homebrew analytics (HOMEBREW_NO_ANALYTICS) was also unset - only bottle-attestation verification was configured for it. Add HF_HUB_DISABLE_TELEMETRY explicitly too (docling/markitdown/rembg pull Hugging Face Hub) even though DO_NOT_TRACK is documented as its equivalent, matching the existing belt-and-braces pattern used for hyperframes. Codex CLI's anonymous usage/health metrics have no env var, only the `analytics` config.toml key, so disable it there instead. Checked and left alone: pnpm, npm, bun, aws, hcloud have no telemetry to disable. Amp has no CLI/env opt-out (web settings only). opencode's telemetry opt-out is an unresolved upstream issue (anomalyco/opencode#5554) with no reliable full mitigation yet.
1 parent 5d8c902 commit 428e4e3

2 files changed

Lines changed: 30 additions & 0 deletions

File tree

‎.codex/config.toml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ model_auto_compact_token_limit = 233000
1212
personality = "pragmatic"
1313
web_search = "live"
1414
plan_mode_reasoning_effort = "high"
15+
# Anonymous usage/health metrics to OpenAI, on by default; applies to CLI, the
16+
# ChatGPT desktop app and the IDE extension alike.
17+
analytics = false
1518

1619
# Defaults made explicit — sandbox is read-only (upgrades to workspace-write
1720
# after trust prompt), network blocked, approval based on trust decision

‎.zshrc‎

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,12 +172,39 @@ export HYPERFRAMES_NO_TELEMETRY=1
172172
# The full skill set is vendored + diff-reviewed in ~/.config/skills/vendor.
173173
export HYPERFRAMES_SKIP_SKILLS=1
174174

175+
# GitHub CLI (gh): telemetry shipped default-on from v2.91.0 (2026-04-22).
176+
# DO_NOT_TRACK is honoured too, but the tool-specific var is documented and
177+
# survives if that generic check ever gets dropped.
178+
export GH_TELEMETRY=false
179+
180+
# Cloudflare Wrangler: anonymous usage pings to sparrow.cloudflare.com, on by
181+
# default; not covered by DO_NOT_TRACK.
182+
export WRANGLER_SEND_METRICS=false
183+
184+
# Google Cloud SDK (gcloud): usage-statistics reporting, off by default until
185+
# opted in at install, but the property survives a fresh gcloud install/reset.
186+
export CLOUDSDK_CORE_DISABLE_USAGE_REPORTING=true
187+
188+
# Expo/EAS CLI: anonymous usage analytics, not covered by DO_NOT_TRACK.
189+
export EXPO_NO_TELEMETRY=1
190+
191+
# Apify CLI: usage telemetry, not covered by DO_NOT_TRACK.
192+
export APIFY_CLI_DISABLE_TELEMETRY=1
193+
194+
# Hugging Face Hub (pulled in by docling/markitdown/rembg for model downloads):
195+
# DO_NOT_TRACK is documented as equivalent, but the explicit var survives if
196+
# that check is ever dropped.
197+
export HF_HUB_DISABLE_TELEMETRY=1
198+
175199
# micro editor true colour support
176200
export MICRO_TRUECOLOR=1
177201

178202
# Homebrew supply chain: verify bottle provenance via Sigstore/GitHub attestations
179203
[[ "$OSTYPE" == "darwin"* ]] && export HOMEBREW_VERIFY_ATTESTATIONS=1
180204

205+
# Homebrew analytics: anonymous InfluxDB usage events, on by default.
206+
[[ "$OSTYPE" == "darwin"* ]] && export HOMEBREW_NO_ANALYTICS=1
207+
181208
# uv supply chain: abort sync if a locked dependency matches an OSV MAL-* malware
182209
# advisory. Runs before download, incl. `uv sync --frozen` - the one path
183210
# exclude-newer (resolution-only) leaves unguarded. Preview feature; UV_MALWARE_CHECK=0

0 commit comments

Comments
 (0)