codesesh
v0.5.0
Published
One place to see every AI coding session you've ever had. Unify Claude Code, Cursor, Kimi, Codex, and OpenCode sessions in a single, beautiful Web UI.
Downloads
1,203
Maintainers
Readme
CodeSesh
CodeSesh scans your local machine, finds every AI agent session (Claude Code, Cursor, Kimi, Codex, OpenCode), and surfaces them in a unified, beautiful Web UI.
Quick Start
npx codeseshYour browser will open at http://localhost:4321 with all your sessions ready to browse.
Features
- Unified Timeline — Browse sessions across all your AI agents in a single, searchable interface
- Full-Text Search — Search across session titles and conversation content with highlighted matches
- Dashboard & Activity Trends — See totals, daily activity, agent distribution, model usage, token trends, smart tags, bookmarks, and recent sessions
- Project-Aware Session Tree — Group sessions by repository or project identity across supported agents
- Smart Tags — Automatically label bugfix, refactoring, feature work, testing, docs, planning, git, build/deploy, and exploration sessions
- Bookmarks — Save important sessions and keep them visible from the dashboard
- Full Conversation Replay — Read every message, tool call, and reasoning step exactly as it happened
- File Change Tracking — Jump to files that were read, edited, created, deleted, or moved
- Keyboard Navigation — Move through views, focus search, and open shortcuts without leaving the keyboard
- Cost & Token Visibility — See token totals, cache tokens, recorded costs, and model-based cost estimates
- SQLite-Backed Cache & Search Index — Restore session lists quickly and reuse the same local store for search
- Zero Configuration — Just run it. CodeSesh auto-discovers everything on your filesystem
- 100% Local & Private — Your data stays on your machine. No accounts, no cloud sync, no cloud telemetry
- Live Refresh — Local session changes are picked up automatically while the server is running
Supported Agents
| Agent | Status | | ----------- | ------------ | | Claude Code | ✅ Supported | | Cursor | ✅ Supported | | Kimi | ✅ Supported | | Codex | ✅ Supported | | OpenCode | ✅ Supported |
Usage
# Start the web UI (default port 4321)
npx codesesh
# Choose a custom port
npx codesesh --port 8080
# Only show sessions active in the last 3 days
npx codesesh --days 3
# Jump directly to a session
npx codesesh --session claudecode://3b0e4ead-eba9-43e7-9fac-b30647e189f8
# Filter to sessions from current project
npx codesesh --cwd .
# Only show specific agent
npx codesesh --agent claudecode
# Output JSON instead of starting server
npx codesesh --json
# Show performance trace logs
npx codesesh --traceCLI Options
| Flag | Alias | Default | Description |
| ----------- | ----- | ------- | ----------------------------------------------------------- |
| --port | -p | 4321 | HTTP server port |
| --days | -d | 7 | Only include sessions active in the last N days (0 = all time) |
| --cwd | — | — | Filter to sessions from a project directory |
| --agent | -a | all | Filter to specific agent(s), comma-separated |
| --from | — | — | Sessions active after this date YYYY-MM-DD |
| --to | — | — | Sessions active before this date YYYY-MM-DD |
| --session | -s | — | Directly open a session (agent://session-id) |
| --json | -j | false | Output JSON and exit (no server) |
| --no-open | — | false | Don't auto-open the browser |
| --trace | — | false | Print performance trace logs |
| --cache | — | true | Use cached scan results when available |
| --clear-cache | — | false | Clear scan cache before starting |
Requirements
- Node.js 18+
Links
License
MIT
