Usage analytics
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.
What is sent
Section titled “What is sent”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.
Check the setting
Section titled “Check the setting”stash usage-analytics statusThe command reads the state file. It sends nothing to the daemon or analytics endpoint.
Turn it off
Section titled “Turn it off”stash usage-analytics disableTo turn it on again:
stash usage-analytics enableSet DO_NOT_TRACK before stash create or stash daemon start when you want
a new data root to start with analytics off:
export DO_NOT_TRACK=1CI 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.
Where the setting lives
Section titled “Where the setting lives”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.