Local devtools UI for AI coding sessions. Claude Code first.
→ Product Walkthrough / 产品说明 — what you are seeing in the demo, feature by feature
Alpha — Tested on Claude Code 2.x. Attribution requires the local proxy.
session-devtools is a local web dashboard that reads your Claude Code session files (~/.claude/projects/**/*.jsonl) and gives you visibility into what happened — token usage, tool calls, sub-agents, context size, and more.
No data leaves your machine.
Run without installing:
npx session-devtools
Or install globally:
npm install -g session-devtools
session-devtools
Open http://localhost:3000 in your browser.
| Feature | Description |
|---|---|
| Session list | All Claude Code sessions with token usage, tool calls, sub-agents |
| Session detail | Turn-by-turn timeline, LLM call breakdown, context attribution |
| Search | Filter sessions by ID, name, working directory, or first message |
| Proxy capture | Local MITM proxy to capture exact request bodies for attribution |
Context attribution shows exactly which prior messages contributed to the context window of each LLM call. It requires capturing the actual request body via a local proxy.
To enable:
~/.claude/settings.jsonWithout the proxy, session list and turn timeline still work fully. Attribution shows a placeholder.
| Variable | Default | Description |
|---|---|---|
API_DASHBOARD_DIR |
~/.api-dashboard |
Directory for the local SQLite database |
PORT |
3000 |
Port the server listens on |
Session JSONL files are read from ~/.claude/projects/**/*.jsonl automatically.
git clone https://github.com/tony-shi/session-devtools
cd session-devtools
npm install
npm run dev # server + client with hot reload