# What CMDOP counts

Usage counts help us understand whether an owner connects a machine, makes a useful first
call and returns later. This page explains the optional counting feature, not the separate
records that make CMDOP work.

## Is counting on?

Not yet. Counting is not switched on for CMDOP's hosted server; this page says what it will
count, so you can decide before it is. It depends on the server and on the choices for your
contour and machine. A server without usage-count export configured does not send these
counts to CMDOP, and the machine setting alone does not mean export is active.

When your server offers counting, look for **Usage counts** on the Security page of your
contour. It shows whether counting is on for your account. An absent control does not prove
that all other service or website records are disabled.

## What is included

When counting is enabled, the service uses the following information to measure usage.

| Information | Meaning |
|---|---|
| Contour | Your contour address, which can be linked to your account |
| Machine | A pseudonymous identifier, operating system, processor architecture, program version, first and last seen times, and an install campaign code if present |
| Client type | The kind of agent or owner client, connection interface, first and last observed call times and number of distinct access tokens observed, not the tokens themselves |
| Daily activity | UTC day, machine, client type, connection interface, risk class, agent or owner, successful, failed and refused call counts, connection-probe count and times of the first and last non-probe successful calls |
| Processing records | Batch receipt time, numbers of rows received, changed or dropped, and information needed to resume a transfer |
| Opt-out | The contour or pseudonymous machine identifier needed to remove the corresponding usage-count records |

For example, an enabled machine might have three successful read calls and one refused
write call on one day. The counts are grouped by risk class, not by individual tool name.
The machine identifier and contour relationship mean that these records are pseudonymous
or account-linked, not anonymous.

Counting starts on the day it is switched on: activity from before that day is not sent.
A repeat of the same daily report does not represent additional calls.

A connection probe is counted separately from a useful first call. Calls in risk classes
not supported by the counting feature are excluded. Internal and test contours can be
excluded from product-usage reports. Not every machine or call is represented.

## What is not in the usage-count export

The daily usage-count export does not include tool names, arguments or their fingerprints,
commands, file names, file contents, command output, machine names or keys, token values
or notes, screen contents or IP addresses.

This describes the optional usage-count export only. The normal connection, task and
[audit records](https://docs.cmdop.ai/concepts/audit-and-history.md) are separate. Website visit measurement,
account and billing information are also separate; see the
[Privacy Policy](https://cmdop.ai/legal/privacy).

## Turn counting off

For one machine, run this command on that machine:

```bash
cmdop config set metrics false
```

Apply the setting at the next start of the machine program. Use
`cmdop config show` to inspect its setting. You can also set
`CMDOP_NO_METRICS=1` or `DO_NOT_TRACK=1` in the program's environment.
See [machine.json](https://docs.cmdop.ai/reference/config/machine-json.md) and
[environment variables](https://docs.cmdop.ai/reference/config/environment.md).

When the server receives the disabled machine setting, it excludes the machine from
counting and requests deletion of that machine's usage-count records. A successful
subsequent export applies the deletion. Other machines in the same contour, and its
client-type summaries, are not all erased by disabling one machine.

To turn counting off for the whole contour, open **Usage counts** on its Security page,
if available, choose **Stop counting** and confirm. The next successful transfer requests
removal of the contour's machine, activity and client-type usage records. A record of
the disabled state can remain. **Count again** permits collection again. A restart,
disconnect or failed transfer is not proof that the removal was completed.

## Retention and access

The usage-count retention policy is 396 days for daily activity and owner-surface event
counts, and 90 days for processing receipts. Machine and client-type summary records
can remain until the relevant removal or account deletion. A minimal record of account
deletion can remain so later reports do not recreate deleted account records.

Authorized staff use these records to review product usage. Marketing reports use aggregate
counts rather than a list of individual machines or accounts. The existing reports do not
establish that every eligible contour sends data.

Turning off optional counting does not delete separate operational audit records or your
account. See the [Privacy Policy](https://cmdop.ai/legal/privacy) for the wider processing
and contact information. For a question about your records, write to privacy@cmdop.ai.

## Related

- [Machine settings](https://docs.cmdop.ai/reference/config/machine-json.md)
- [Environment variables](https://docs.cmdop.ai/reference/config/environment.md)
- [Command line](https://docs.cmdop.ai/reference/cli.md)
- [Audit and history](https://docs.cmdop.ai/concepts/audit-and-history.md)
