# grepai stats

> CLI reference for grepai stats

## grepai stats

Show token savings achieved by using grepai

### Synopsis

Display a summary of token savings achieved by grepai compared to
a traditional grep-based workflow.

Every successful search and trace command records an entry locally in
.grepai/stats.json. This command aggregates those entries and shows
how many tokens (and optionally dollars) have been saved.

```
grepai stats [flags]
```

### Options

```
  -h, --help        help for stats
      --history     Show per-day history breakdown
  -j, --json        Output results in JSON format
  -l, --limit int   Max days shown with --history (default 30)
      --no-ui       Print plain text instead of interactive UI
```

### SEE ALSO

* [grepai](/grepai/commands/grepai/)	 - Semantic code search CLI

###### Auto generated by spf13/cobra on 30-Oct-2026
