Skip to content
Unsnag

Telemetry

Unsnag records its own use, Telemetry, so it can be improved: which commands and screens people used and how they ended. It is about Unsnag, never about your Target CLI. It is on by default, and the CLI and the website say so once instead of asking first. Everything goes to one PostHog project, run by Pimlico on PostHog's US cloud.

The CLI

The first command you run in a terminal prints this to stderr, once, and sends nothing:

unsnag sends usage telemetry (the command, version, OS, how long it took, how it ended; never your Scenarios, code or option values). Turn it off: unsnag telemetry disable, or DO_NOT_TRACK=1 · https://unsnag.com/docs/telemetry

It goes to stderr, so --json output on stdout stays one JSON document.

From then on, every command sends one event, command_run, when it ends, however it ended. The event is written to a file in Unsnag's configuration folder and sent by a separate background Unsnag, so no command waits for the network, and a failure to send is never shown and never changes how a command ends. It goes to Unsnag's own API (POST /v1/telemetry), which forwards it to PostHog; the binary holds no PostHog key.

What an event holds

FieldWhat it is
commandThe command, such as run or scenarios.verify; only Unsnag's own command names
versionUnsnag's version
os, os_release, archThe operating system, its release and the processor architecture
is_ttyWhether it ran in a terminal
ciThe CI it ran in (github_actions, gitlab, circleci, buildkite, jenkins, travis, vercel, or ci for another), or false
agentThe coding agent that ran it (claude_code, cursor, codex, gemini_cli, aider, opencode, vscode_agent), or human
duration_msHow long it took
exit_codeIts exit code
error_codeIts error code, such as no_benchmark, when it failed; never the error's message
scenarios, agents, runs, runs_passedFor unsnag run: how many Scenarios, Agents and Runs it planned, and how many Runs passed. For unsnag draft: how many drafts it wrote
harnesses, modelsFor run and draft: the Agent harnesses (claude-code, codex, opencode) and model ids (such as anthropic/claude-haiku-5.5) used

Each event also carries a random install id, made on your machine the first time, and the time it happened.

What is never sent

Your Target CLI's name, its output or its help; a Scenario, its id, goal, Checks or Reference Solution; a Run's trace, a Report or a Finding; any path or file name; any option you passed or its value; a secret, a key or a token's value; Unsnag's output; an error's message.

Turning it off

Any one of these turns it off, checked in this order:

SwitchWhere it applies
UNSNAG_TELEMETRY_DISABLED=1 (or true)wherever the variable is set
DO_NOT_TRACK=1 (or true)wherever the variable is set, for every tool that reads it
unsnag telemetry disablethis machine (the user's configuration folder), until unsnag telemetry enable

unsnag telemetry status says whether it is on and which of them decided it (--json gives enabled and source). unsnag telemetry disable sends one last event, telemetry_disabled, saying it was turned off, then nothing more. Off, Unsnag writes nothing and sends nothing.

unsnag telemetry status
unsnag telemetry disable
unsnag telemetry enable

In CI

A CI run is never in a terminal, so there is no notice and its events are sent from the first command, marked with the CI vendor. Nothing in CI names a person: each Unsnag process makes a fresh install id and stores none, and no token is sent with its events, UNSNAG_TOKEN included. Set UNSNAG_TELEMETRY_DISABLED=1 or DO_NOT_TRACK=1 in the job to turn it off there.

After unsnag login

Before you log in, an event is tied only to the install id. Once this machine has a login (unsnag login, or UNSNAG_TOKEN outside CI), the token goes with the events and Unsnag's API decides from it who you are: your user in the App, with your Organization as a group (with a Project's CI token in UNSNAG_TOKEN on your own machine, only the Organization). The first send after a login links the install id to you once, so that what this machine sent before joins you. unsnag logout starts a new install id, so what comes after is not tied to you.

The Runner

A Runner, which runs a Report or drafting job for the App, turns the CLI's Telemetry off: a hosted Report is not a person using the CLI. The App's own records below cover it.

The website and the App

The website (unsnag.com) and the App record page views, clicks and session replays with PostHog. After you sign in they are tied to your App user, with your Organization as a group. A bar on the first page you open says so and links here.

Replays never record passwords or sign-in codes, secret values, API keys or tokens, or card details (Stripe's payment form is never recorded); sign-in codes are cut from page addresses before they are sent. Everything else on a screen, names and email addresses included, can be seen in a replay. PostHog's script is bundled into Unsnag's own, so every page still runs only scripts from unsnag.com.

The API

Unsnag's API records the milestones of using Unsnag, under your App user and your Organization, whatever the CLI's setting, because they describe use of Unsnag's own service: signing up, an Organization or a Project created, a source connected, drafting started and finished, Scenarios kept, a Report started and finished, and a top-up paid. It also records each call the CLI makes to it with a login or token: the route, how it ended, how long it took and the CLI's version.

The API forwards nothing to PostHog where it has no PostHog key: in local development and in Unsnag's own tests, whose CLI also runs with UNSNAG_TELEMETRY_DISABLED=1.