Skip to content

Stash sends anonymous usage analytics to show which versions, operating systems, harnesses, and source kinds are in use. Use this page to inspect the setting or turn it off.

Usage analytics is separate from the metrics of a mount. Metrics stay at mounts/NAME/metrics/metrics.jsonl in the data root. Outside AgentCore Runtime, that root is $STASH_DATA_ROOT when set, or $HOME/.stash by default. Metrics go to a collector only with [telemetry.export]. See Observe and measure.

The daemon sends a start ping and periodic heartbeat pings. A ping identifies the Stash version, operating system, Runtime type, attached harnesses, and the count of each source kind.

A ping never contains a name, path, URL, host, ARN, AWS Region, account, ID, query, tool name, or content. It sends no count of searches or tool calls.

The stash usage-analytics reference owns the exact payload, cadence, opt-out rules, and command output.

Terminal window
stash usage-analytics status

The command reads the state file. It sends nothing to the daemon or analytics endpoint.

Terminal window
stash usage-analytics disable

To turn it on again:

Terminal window
stash usage-analytics enable

Set DO_NOT_TRACK before stash create or stash daemon start when you want a new data root to start with analytics off:

Terminal window
export DO_NOT_TRACK=1

CI has the same effect. Analytics stays off until you run enable without either variable.

On AgentCore Runtime, each session has its own data root. Set DO_NOT_TRACK in the environment that runs create --session-id, or run disable after that command creates the session root.

The daemon stores the setting in usage-analytics/state.json below the same data root. Each Runtime session has its own root. Use the command to read or change the file; do not edit it by hand.