Telemetry

Agent Relay collects anonymous usage data to help us improve the product. This page explains what we collect, why, and how to opt out.

Opt out anytime

Telemetry is on by default but can be disabled instantly:

agent-relay telemetry disable

Or set the environment variable:

export AGENT_RELAY_TELEMETRY_DISABLED=1

Agent Relay also honors the DO_NOT_TRACK convention for opting out across compatible tools:

export DO_NOT_TRACK=1

To re-enable:

agent-relay telemetry enable

Check your current status:

agent-relay telemetry

What we collect

Every event includes these common properties:

PropertyExamplePurpose
agent_relay_version3.2.22Know which versions are in use
osdarwinPlatform-specific bug triage
archarm64Binary distribution decisions
node_version20.11.0Runtime compatibility

These events are collected:

EventWhenExtra properties
broker_startBroker process startsNone
broker_stopBroker shuts downUptime, agent count
agent_spawnAn agent is createdCLI type, spawn source, has task, is shadow
agent_releaseAn agent is stoppedCLI type, reason, lifetime, source
agent_crashAn agent exits unexpectedlyCLI type, lifetime, exit code
message_sendA relay message is sentIs broadcast, has thread
cli_command_runA CLI command is executedCommand name

What we do not collect

  • Source code, file paths, or repository content
  • Message text, task descriptions, or prompts
  • API keys, tokens, or credentials
  • Agent names or workspace names
  • IP addresses (geo-IP is coarsened to country level by PostHog)
  • Any personally identifiable information

How it works

  • A random anonymous ID is generated from your machine ID on first run. It cannot be traced back to you.
  • Events are sent to PostHog (our analytics provider) over HTTPS.
  • Preferences are stored locally at ~/.agent-relay/telemetry.json.
  • The telemetry module is designed to be infallible — if anything fails, it silently no-ops. Telemetry never affects CLI functionality.

Why we collect telemetry

Agent Relay is a developer tool. Telemetry helps us understand which CLI providers are popular, how long agent sessions last, where crashes happen, and which commands are used. This data directly informs what we build and fix next.

Source code

The telemetry implementation is fully open source. You can inspect exactly what is collected: packages/telemetry