Installation
Requirements
Section titled “Requirements”- Python 3.10 or newer
- An existing
~/.claude/directory from having used Claude Code. Adapters for more coding agents are on the way.
Install from PyPI
Section titled “Install from PyPI”pip install stackunderflowOr with pipx if you prefer isolated CLI installs:
pipx install stackunderflowLaunch the dashboard
Section titled “Launch the dashboard”stackunderflow initThis:
- Ingests every session under
~/.claude/projects/into a local SQLite store at~/.stackunderflow/store.db. - Starts a FastAPI server at
http://127.0.0.1:8081(or the next free port). - Opens the dashboard in your default browser.
Use Ctrl+C to stop.
Common first-run commands
Section titled “Common first-run commands”stackunderflow status # one-liner: today and this monthstackunderflow today # today's usage per projectstackunderflow month # this month's usage per projectstackunderflow report -p 7days # custom date-ranged reportstackunderflow --help # everything elseIf port 8081 is taken, configure a different one:
stackunderflow cfg set port 8099stackunderflow initWhere things live
Section titled “Where things live”| Path | Purpose |
|---|---|
~/.stackunderflow/store.db | SQLite session store (can be several GB once populated) |
~/.stackunderflow/config.json | Your persistent settings (port, filters, etc.) |
~/.stackunderflow/cache/pricing.json | Cached model pricing from LiteLLM |
~/.claude/ | Read-only source data — StackUnderflow never writes here |
To start over from scratch, delete ~/.stackunderflow/store.db and run stackunderflow reindex.
Upgrade
Section titled “Upgrade”pip install --upgrade stackunderflowThe ingest pipeline is incremental, so re-running stackunderflow init after an upgrade only processes new or changed session files.
Install from source
Section titled “Install from source”See the Development guide for source setup, which additionally requires Node 18+ to build the React dashboard.