# ed code-stats identity

> ed code-stats identity in the Edith ed command line reference. ed code-stats

- Canonical URL: https://getedith.pro/docs/cli/code-stats/identity
- Updated: 2026-12-02

[`ed code-stats`](https://getedith.pro/docs/cli/code-stats)

[The `ed` command line](https://getedith.pro/docs/cli)

```bash
ed code-stats identity list [--json]
ed code-stats identity add <value> [--json]
ed code-stats identity remove <value> [--json]
```

Identities decide which commits are yours. A value with an `@` is an author email and matches exactly, ignoring case. Any other value is a fragment that matches when it appears in the author name or email. When the list is empty, the next refresh fills it with the login and verified emails of every account signed in to `gh`. An account added to `gh` later is merged in on the next refresh after it appears.

`ed code-stats identity list` prints the identities, emails first; `ls` is an alias and `list` is the default. `ed code-stats identity add` adds one and reports `changed: false` when it was already there. `ed code-stats identity remove` (also `rm`) removes one, and exits 3 when it is not listed. Changing identities makes the next refresh recount every repository.

## Get Edith

Edith is a native Mac app for macOS 14 or later on Apple silicon with 100+ extensions, the `ed` command line and an MCP server. $35 once for one Mac, plus $7 for each additional Mac, with no subscription and a 30-day refund.

- [Buy Edith](https://getedith.pro/pricing): $35 once for one Mac, plus $7 for each additional Mac
- [Download Edith](https://getedith.pro/download): the installer, or Homebrew
