> ## Documentation Index
> Fetch the complete documentation index at: https://docs.dari.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# People & Keys

> List routed activity by attributed person and API key from the CLI.

Find user IDs before filtering or comparing people:

```bash theme={null}
dari activity filter-options \
  --from 2026-07-01T00:00:00Z \
  --to 2026-07-08T00:00:00Z |
  jq '.users[] | {id, name, email}'
```

Then list activity attributed to people and API keys:

```bash theme={null}
dari activity people \
  --from 2026-07-01T00:00:00Z \
  --to 2026-07-08T00:00:00Z
```

Each identity includes its conversation, message, token, spend, key, and latest-activity data.

## Search And Scope

Search identities or limit the report to people or keys:

```bash theme={null}
dari activity people \
  --from 2026-07-01T00:00:00Z \
  --to 2026-07-08T00:00:00Z \
  --scope keys \
  --search production
```

`--scope` accepts `all`, `people`, or `keys`.

## Sort And Paginate

```bash theme={null}
dari activity people \
  --from 2026-07-01T00:00:00Z \
  --to 2026-07-08T00:00:00Z \
  --sort-by spend \
  --sort-direction desc \
  --limit 25 \
  --offset 0
```

Sort fields are `identity`, `keys`, `conversations`, `messages`, `tokens`, `spend`, and `last_active`.

## Compare People Over Time

Compare attributed users with a time series:

```bash theme={null}
dari activity people series \
  --from 2026-07-01T00:00:00Z \
  --to 2026-07-08T00:00:00Z \
  --comparison-user-id usr_123 \
  --comparison-user-id usr_456
```

Use `--bucket-seconds` to change the bucket size.

Requests without usable person or API-key attribution still contribute to model totals, but appear as unattributed activity here.
