--- import Docs from "~/layouts/Docs.astro"; import { Code } from "astro:components"; ---

This page describes the client source in{" "} packages/core/src/telemetry.ts and the CLI entry point. It is not a statement about any hosted endpoint.

Default: off

Telemetry stays off until you opt in with{" "} stack telemetry enable, which saves the choice to{" "} ~/.ashlr/stack/config.json. The CLI does not prompt for it. Core also exports a first-run prompt that defaults to N{" "} and records "disabled" when there is no terminal, but the CLI does not call it in this source.

Opting in is not enough to send anything. The source has no default endpoint: an event is posted only when STACK_TELEMETRY_ENDPOINT{" "} or a saved endpoint in the config file names one. Without either, the emit call returns without sending.

STACK_TELEMETRY=0 turns it off for that process whatever the saved choice is. STACK_TELEMETRY=1 does not opt you in.

What's collected

When you have opted in and an endpoint is set, each CLI run posts one event with these fields, with a one-second timeout and errors ignored:

Field Value
type Always "command" from the CLI. The core API also accepts "error".
command The first command-line argument, usually the subcommand ("add", "scan"). If the first argument is a flag such as --version, that string is sent. Later arguments are not sent.
exitCode The process exit code. 0 = success.
durationMs Milliseconds from CLI start until the command finished.
installId A random UUID stored in ~/.ashlr/stack/config.json. It links events from the same installation.
runId A fresh random UUID per process. Not stored.
stackVersion A constant in the telemetry module. It is not read from the installed package, so it may not match stack --version.
platform The Node/Bun process.platform value, such as darwin, linux or win32.

What's never collected

The fixed payload has no field for:

Any endpoint you configure also sees network metadata such as your IP address. Stack's source does not control what that server logs or keeps; check its policy before you set an endpoint.

How to opt out

> ~/.zshrc`} lang="bash" theme="github-dark-dimmed" />

Check or change the saved choice from the CLI. Bare{" "} stack telemetry runs status:

Opting out sends nothing, not even an opt-out event.

CI environments

CI behaves like any other environment: telemetry is off unless that machine's config file records an opt-in, and nothing is sent without an endpoint. Set STACK_TELEMETRY=0 to rule it out regardless of the config. The update check, a separate request to the npm registry, is skipped when CI is 1 or true, or when STACK_NO_UPDATE_CHECK=1 is set.

For the field list, opt-out options and recorded retention targets, see the Privacy Policy.