What Tach collects
Exactly what Tach stores about usage, people, computers and sign-in, and what it never stores. Prompts, responses and tool content are never collected.
Built from commit f569b4a on Nov 14, 2026
Tach records how much AI tools were used, by whom, on which computer, with which model. It never records what anyone asked or what came back.
Never collected
Tach never stores, logs or echoes:
- prompts or any message text
- model responses
- tool arguments or tool results
- raw request or response bodies from a tool
The canonical and native usage formats refuse unknown fields. Do not put content in identifier fields. OpenTelemetry exports are read for named counts only, and the rest of each record is dropped. The computer agent instead projects closed metadata from qualified local Claude Code, Codex CLI, Pi and OMP files before network transmission. It never enables their native exporters or generates their settings. Cowork organization export remains separate and requires effective metadata-only privacy policy before export.
One usage record
A usage record describes finalized resource consumption reported by a tool. The canonical agent_usage.v1 event allows the fields below. Native adapters map their metadata into the same usage ledger.
| Field | Required | What it is |
|---|---|---|
| Event ID | yes | A UUID the tool assigns. Tach uses it to ignore duplicates. |
| Event time | yes | When the request happened, as the tool reported it. |
| Source | yes | The tool, such as claude_code, codex or pi. |
| Provider | yes | The model provider, such as anthropic. |
| Model | yes | The model name the tool reported. |
| Session ID | yes | The tool’s session identifier, up to 256 characters. It is an ID, not a transcript. |
| Token counts | yes | Six counts, described below. |
| Machine ID | no | The computer’s UUID, when the tool reports one truthfully. Tach never invents one. |
| Machine label | no | A name for the computer, up to 128 characters. Only stored with a machine ID. |
| Tool version, agent ID, agent name, call kind | no | Short identifiers, up to 256 characters each. |
| Reported cost | no | A cost in US dollars, when the tool reports one. |
Tach adds:
- The person. Taken from the key that sent the record, never from the record itself. An organization key attributes each record to the active person whose email the tool claims. When that email is not a known active person, the record goes to the key’s owner and is flagged as a mismatch.
- The receipt time. When Tach received the record, kept beside the event time.
Token counts
| Count | Meaning |
|---|---|
| Uncached input | Input tokens processed without the prompt cache. |
| Output | Generated tokens, including reasoning. |
| Cache read | Input tokens read from the prompt cache. |
| Cache write | Input tokens written to the prompt cache. |
| Cache write 1h | Input tokens written to the one-hour cache. |
| Reasoning | Reasoning tokens. These are part of output, not extra. |
Each count is a whole number up to 100,000,000 per record. Reasoning cannot exceed output.
Records that are not usage
OpenTelemetry exports carry many records that are not a finished model request. Tach does not store them. It keeps only a daily count per tool and record type, so Health can show what was dropped.
For selected skipped records, Tach keeps bounded diagnostic samples: the tool, event type, service, whether a timestamp exists and up to 32 attribute names. Event names, services and attribute names use fixed vocabularies, with unknown names replaced by a generic marker. Samples hold no attribute values or content. Maintenance prunes samples older than seven days.
People
For each person: email, name if given, role (administrator or member), billing plan, whether the account is active, who invited them and when, when they first opened Cowork setup, and when they last signed in.
Keys and sign-in
- The database stores only SHA-256 key hashes. A new key is shown once. The installer also saves the first administrator’s initial raw keys in
/etc/tach/first-admin-keys.json. Protect that file and any saved managed-settings file. - Sign-in codes and links are stored only as hashes and expire after 10 minutes.
- Sessions are stored only as hashes and last eight hours.
- Enrollment tokens for batches of computers are stored only as hashes.
Server logs
The server logs a fixed class for each problem, never request content. For example:
tach: ingest_refused route=/v1/events class=dependency
tach: sign-in mail failed class=mail_timeout
Where it is stored
The usage ledger is one SQLite database per organization on your server. SQLite can also create journal files beside the database. The server keeps its verified backups, each with a receipt of its checks, in backups beside the database. The self-host package keeps configuration, resolved mail credentials and initial keys in protected host files.
Tach also stores event receipts, batch identities, body digests and acknowledgements for delivery. A digest is not a copy of the request body. Enrollment retains computer and credential metadata needed to authorize collection.
Your mail relay receives sign-in and invitation email. If you configure Azure backups, the host copies each verified database backup to your chosen storage account. The HTTPS proxy obtains public certificates when you choose ACME. Protect backups as you protect the live database.