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

# history

> Inspect local kagi-cli command history and query stats.

# `kagi history`

Inspect local opt-in history entries written by commands such as `search` and `watch`.

History is stored as JSON Lines under `~/.cache/kagi-cli/history.jsonl`, or under `KAGI_CACHE_DIR` when that environment variable is set.

## Synopsis

```bash theme={null}
kagi history list [--limit <COUNT>]
kagi history stats
```

## Examples

```bash theme={null}
kagi history list --limit 10
kagi history stats
```
