Skip to content
Back to home

StatsAI docs

Privacy model

What StatsAI reads locally, what stays on your devices, and what syncs to the private dashboard.

Last updated: October 8, 2026

Design principle

StatsAI is built around local-first private sync. The CLI reads local provider logs on your machine, normalizes them locally, and sends usage rollups to the hosted dashboard. Full prompts, model responses, and raw logs never leave your machine. Anything closer to your work, such as project details, session titles, or task previews, syncs only if you turn it on.

The open-source collector is auditable: you can inspect what it reads, how it normalizes events, and what it strips before HTTP sync. For field-level detail, see the sync contract. The Privacy Policy covers everything the hosted service stores, including sign-in data.

Stays on your machine

CategoryExamples
Conversation contentFull prompts, model responses, full tool transcripts
Local evidenceRaw JSONL log lines, raw events, parse line numbers, source record IDs
Git detailsCommit hashes
Collector internalsRaw source records, parser provenance, unmatched debug artifacts
Private notesSubscription notes and other user-entered commentary

Synced on every sync

CategoryExamples
Usage rollupsDaily tokens, requests, models, estimated cost, latency, time to first token, throughput, cache statistics, message counts, active time
SourcesProvider, source kind, and a hashed path
Provider accountsThe account's email address and user ID at the provider, in plain text, plus display labels. Used to merge the same account across devices and show which account was used
Subscriptions and quotasPlan names and prices you entered, active date ranges, quota and reset-cycle data (without private notes)
Code changesLines changed per day

Hashes are SHA-256 identifiers. They let the server deduplicate records without storing the original text, but they are pseudonymous identifiers, not encryption: anyone who knows the original value can compute the same hash.

Synced only if you turn it on

Each flag is saved for the device and applies to future syncs. The matching --exclude-* flag turns it off again.

FlagWhat it adds
--include-projectsProject names, the repository owner/repo label, branch names, the project's local folder path, and hashes of the path, git remote, and branch. Recent CLI versions shorten your home folder to ~; older versions send the full absolute path, which can include your computer username
--include-sessionsImplies --include-projects. Per-session rollups, each with a title taken from your AI tool or from your first prompt (up to 256 characters)
--include-tasksInvite-only. Implies --include-projects. Task titles, short prompt previews (up to about 220 characters), todo excerpts, and issue keys
--include-activityNames and call counts of tools, MCP servers, MCP tools, plugins, and skills. Shell commands are reduced to a fixed list of command names, never the full command line

Estimated cost figures are API-equivalent calculations for analytics. They are not invoices and should not be treated as definitive billing records from AI providers.

Verify before you sync

Quick summary of the next outbound batch:

Shell
statsai sync --dry-run

Full JSON payload written locally:

Shell
statsai sync --sink file --output ./statsai-sync-batch.json

Confirm device access and compare local vs remote state:

Shell
statsai sync --sink http --verify

All three commands run on your machine. Use them before enabling automatic sync from a new device or after changing source configuration.

Public pages

Your dashboard is private. Public profiles and projects are off until you publish them. Once published:

  • A profile shows your handle, display name, bio, chosen picture, usage totals, exact daily token counts for the last 90 days, streaks, providers, top model, and monthly totals. Totals cover all your synced usage, not only published projects.
  • A project shows its name, summary, repository owner/repo label, usage statistics, and model breakdown.
  • Published profiles and projects are listed on the public leaderboard and in the sitemap, so search engines can index them. Share-card images can cover your full history.

Unpublishing removes the page from StatsAI right away, but search engines or people who saved a copy may keep it.

For hosted-service legal terms, see the Privacy Policy and Terms of Service.