Chrome browser history tool
npm install @cli4ai/history> Official @cli4ai package • https://cli4ai.com • Install cli4ai: npm i -g cli4ai
Read your local Chrome browsing history (SQLite) — no browser automation required.
``bash`
npm i -g cli4ai
cli4ai add -g history
Optional environment overrides:
- CHROME_DATA_PATH: Chrome data directory (auto-detected if unset)CHROME_PROFILE
- : profile directory (auto-detected if unset)
Example:
`bash`
CHROME_PROFILE="Profile 1" cli4ai run history recent 7
`bash`
cli4ai run history recent [days] # Recent visits (default: 7 days)
cli4ai run history top [days] [limit] # Most visited (default: 30 days, 20 results)
cli4ai run history search
cli4ai run history domains [days] # Top domains (default: 30 days)
cli4ai run history today # Today's visits
`bash``
cli4ai run history recent 1
cli4ai run history top 7 10
cli4ai run history search github
cli4ai run history domains 7