How to disable telemetry for various open source tools and libraries

Hint

If you are using our opscomplete.com hosting we can set all environment variables mentioned below for your deployment on request.

If you're lucky DO_NOT_TRACK=1 opts you out Show archive.org snapshot of CLI telemetry - it's not widely adopted. When you're using any of the libraries below, I'd rather opt out explicitly:

Yarn

https://yarnpkg.com/advanced/telemetry Show archive.org snapshot (Since: Version 2.2 Show archive.org snapshot )

Disable for a project:

# .yarnrc.yml
---
enableTelemetry: false # Relevant from yarn v2.2

Disable on your machine:

yarn config set --home enableTelemetry 0

Next.js

https://nextjs.org/telemetry Show archive.org snapshot

export NEXT_TELEMETRY_DISABLED=1

Prisma

https://www.prisma.io/docs/orm/tools/prisma-cli#telemetry Show archive.org snapshot

export CHECKPOINT_DISABLE=1

Angular

https://angular.io/cli/analytics Show archive.org snapshot

Note: The default here is off, they are collecting data only after you opt into that.

ng analytics --global disable

Storybook

https://storybook.js.org/docs/configure/telemetry Show archive.org snapshot

npm run storybook -- --disable-telemetry
npm run storybook -- --disable-crash-reports

export STORYBOOK_DISABLE_TELEMETRY=1
export STORYBOOK_ENABLE_CRASH_REPORTS=0

Turborepo (turbo)

https://turbo.build/repo/docs/telemetry Show archive.org snapshot

turbo telemetry disable
export TURBO_TELEMETRY_DISABLED=1
export DO_NOT_TRACK=1

Nuxt

https://github.com/nuxt/telemetry Show archive.org snapshot

// nuxt.config
export default {
  telemetry: false
}
npx @nuxt/telemetry disable --global
export NUXT_TELEMETRY_DISABLED=1

Gatsby

https://www.gatsbyjs.com/docs/telemetry/ Show archive.org snapshot

gatsby telemetry --disable
export GATSBY_TELEMETRY_DISABLED=1

Astro

https://astro.build/telemetry/ Show archive.org snapshot

npx astro telemetry disable
export ASTRO_TELEMETRY_DISABLED=1

Sentry

https://docs.sentry.io/platforms/javascript/guides/nextjs/configuration/build/#telemetry Show archive.org snapshot

telemetry is currently an option of the NextJS build configuration (i.e. for the build step that uploads source maps to Sentry)

const sentryConfig: SentryBuildOptions = {
  // ...
  telemetry: false
}

Aider

https://aider.chat/docs/more/analytics.html Show archive.org snapshot

aider --analytics-disable

Zed

https://zed.dev/docs/telemetry Show archive.org snapshot

"telemetry": {
    "diagnostics": false,
    "metrics": false
},
Michael Leimstädtner