> ## Documentation Index
> Fetch the complete documentation index at: https://docs.chainloop.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# CLI Telemetry

By default, the Chainloop CLI sends telemetry data to chainloop.dev.
This helps us enhance Chainloop by gaining insights into its usage.

Telemetry is optional and can be turned off at any time. If you can keep telemetry enabled, we appreciate it! This will assist us in better understanding Chainloop's usage and improving your experience.

## What data is collected?

The following information is included in telemetry:

* Chainloop CLI version
* System information (OS, ARCH)
* CI/CD environment (if detected)
* Platform hashed URL
* Command run
* Anonymous device ID
* Internal User ID and organization ID (if logged in)

## Can Chainloop telemetry be deactivated?

Chainloop implements the Console [Do Not Track (DNT) standard](https://consoledonottrack.com). As a result, you can deactivate the telemetry by setting the environment variable DO\_NOT\_TRACK=1 before running the Chainloop CLI.

## What do we use to collect telemetry data?

We use [PostHog](https://posthog.com/). PostHog is an open-source product analytics platform that allows us to collect and analyze telemetry data.
Versions prior to v1.108.6 of the OSS CLI version, and prior to v1.108.0 of the Enterprise edition, send telemetry data to `https://crb.chainloop.dev`. From v1.108.6 onward for OSS, and from v1.108.0 onward for enterprise, the endpoint changed to `https://t.chainloop.dev`.

The endpoint is set when the CLI is built and cannot be changed at runtime. If you filter outbound
traffic, allow both hosts for as long as older CLI versions are still in use in your environment.

We did it in such a way that anyone can set up their own PostHog instance and use it to collect telemetry. To do so
compile Chainloop CLI from its source code and set up the following linker flags to the Golang compiler:

```sh theme={"dark"}
-X github.com/chainloop-dev/chainloop/app/cli/cmd.posthogAPIKey=$POSTHOG_API_KEY
-X github.com/chainloop-dev/chainloop/app/cli/cmd.posthogEndpoint=$POSTHOG_ENDPOINT
```
