Telemetry
AoE can send anonymous, opt-in usage telemetry so maintainers can answer basic product questions: how many installs are active, how many sessions people keep open, which agents, models, and platforms matter, TUI versus web. It is off by default, carries no PII and no content, and honors DO_NOT_TRACK.
What is sent
Only aggregate counts, never a stream of actions. The wire format is the closed schema in src/telemetry/events.rs. Three event kinds:
process_startwhen the TUI oraoe serveboots: surface, aoe version, OS, CPU arch, and the version-health fields below.cli_usagefromaoe <subcommand>runs: surface, version, OS, arch, and a count map of allowlisted subcommand names ({add: 5, list: 2}). It is accumulated on disk and flushed as one POST per install per day, with no argument, flag, or path attached.usage_snapshotfromaoe serve, on start, shutdown, and about every four hours: session counts by status and how many use a sandbox, the structured view, or yolo mode; peak concurrency; pinned, snoozed, and archived counts; how many sessions sit in the trash (counted only here, and excluded from the other counts); a per-substrate census (local,worktree,workspace,sandbox,scratch); per-agent and per-model-family counts; how many sessions were created since the last snapshot; which opt-in and accessory settings are on; the active value of layout and ordering preferences (the sidebar sort and grouping, which the TUI and dashboard share; row tag, sidebar position, narrow layout), each from a closed vocabulary; which surfaces were opened, the TUI included; how many times each accessory feature was used since the last snapshot (each sort and grouping choice, triage toggles, optional panes and views, and similar), keyed by the closed registry insrc/telemetry/feature_use.rs; coarse structured-view interaction counts (approvals resolved and their allow/deny mix, agent switches, plan-mode use, queued prompts); foraoe serve, coarse auth (token/passphrase/none) and exposure (tunnel/tailscale/local) enums; and a plugin census by source, naming only builtin and featured plugins.
Suggested sessions. The snapshot also carries a funnel of suggest_* counts from the feature_use registry (tip shown, dismissed or clicked; setup opened, finished or postponed; start, start with changes, start in a project, start another; dismiss, restore, stop a kind; preset edit or reset; mapping added; which surface opened the list; and start failures by class: sandbox, trust, hooks, other). suggest_start_in is a subset of suggest_start. suggest_fail_trust is counted only for terminal prompts that could not be delivered. Adoption is three flags (suggestions_on, suggestions_homepage, suggestions_sidebar) and two bucketed counts: enabled sources (0, 1, 2-3, 4+) and open suggestions (0, 1-5, 6-20, 21-100, 100+). suggestion_kind_uses counts starts per kind, keyed provider/kind for builtin and featured plugins and other for the rest, capped at 32 keys.
Model names map to a coarse family vocabulary (claude, openai, gemini, …), anything unrecognized becomes other and an absent model unset, so the raw model string never leaves your machine. A custom agent command is reported as custom. In practice this is a handful of sub-1 KB requests per active install per day.
Version health. process_start and usage_snapshot carry data_schema_version (a small integer), update_status (unknown, current, patch_behind, minor_behind, major_behind), and update_releases_behind (unknown, current, one_behind, several_behind). None is a version string, and both update fields come from the local update-check cache, so they trigger no network call.
What is never sent
Prompts, suggestion titles, repository names or issue and PR numbers, file or project paths, session titles, branch names, group paths, custom command lines, raw model strings, hostnames, usernames, or anything derived from them. Deployment signals carry only the coarse enums above, never a tunnel name, hostname, token, or passphrase.
The install id exists only to count distinct installs: a random UUID generated locally on opt-in, never derived from hostname, username, MAC, or filesystem. It lives in an owner-only <app_dir>/telemetry.json, deliberately outside config.toml since people paste that into bug reports. Opting out deletes the file, every opt-in starts a fresh id, and aoe telemetry reset-id rotates it, which makes the install count as a new one. Usage counts gathered while telemetry is off, or before an opt-in or reset-id, are discarded, never sent under the new id.
Controlling it
- CLI:
aoe telemetry status | enable | disable | reset-id - TUI: Settings, System, Telemetry
- Web: Settings, Telemetry, or the one-time consent prompt on first load
New users see a telemetry pane in the first-run walkthrough; anyone who finished that walkthrough before telemetry existed gets a one-time opt-in popup.
Setting DO_NOT_TRACK to 1, true, or yes suppresses telemetry absolutely: nothing is sent and no install id is generated, whatever the config says. Every surface shows that suppressed state.
Backend
Opted-in events go to https://telemetry.agent-of-empires.com/v1/ingest, which re-sanitizes every field before folding it into aggregate counts. AOE_TELEMETRY_ENDPOINT overrides the target, so you can point it at a local sink and see exactly what is sent. Sends are best-effort with a ~2s timeout and no offline buffering; failures are swallowed and never block the tool. The TUI and the web dashboard never post usage directly: they report it to the Daemon, which owns consent and the install id and sends every usage_snapshot. The TUI’s process_start and the CLI’s cli_usage read the id but never create one.