A terminal user interface (TUI) for browsing and resuming Claude Code sessions.
- 📁 Browse Claude Code sessions with a clean TUI
- ⚡ Fast and lightweight - parses sessions on demand
- 📋 Copy resume commands to clipboard with one keystroke
- 🕐 Relative timestamps (e.g., "2 hours ago")
- 📍 Auto-detect current project directory
- 💻 Cross-platform support (macOS, Linux, Windows)
Download the latest release for your platform from the Releases page.
# For Apple Silicon (M1/M2/M3)
curl -L https://github.com/davidpp/claude-session-browser/releases/latest/download/claude-session-browser-darwin-arm64.tar.gz | tar xz
sudo mv claude-session-browser-darwin-arm64 /usr/local/bin/claude-session-browser
# For Intel Macs
curl -L https://github.com/davidpp/claude-session-browser/releases/latest/download/claude-session-browser-darwin-amd64.tar.gz | tar xz
sudo mv claude-session-browser-darwin-amd64 /usr/local/bin/claude-session-browser# For AMD64
curl -L https://github.com/davidpp/claude-session-browser/releases/latest/download/claude-session-browser-linux-amd64.tar.gz | tar xz
sudo mv claude-session-browser-linux-amd64 /usr/local/bin/claude-session-browser
# For ARM64
curl -L https://github.com/davidpp/claude-session-browser/releases/latest/download/claude-session-browser-linux-arm64.tar.gz | tar xz
sudo mv claude-session-browser-linux-arm64 /usr/local/bin/claude-session-browserDownload the appropriate .zip file from the Releases page:
claude-session-browser-windows-amd64.zipfor 64-bit systemsclaude-session-browser-windows-arm64.zipfor ARM64 systems
Extract and add to your PATH.
If you have Go 1.24+ installed:
go install github.com/davidpp/claude-session-browser@latestgit clone https://github.com/davidpp/claude-session-browser
cd claude-session-browser
go build -o claude-session-browserSimply run the command from anywhere:
claude-session-browserThe app will automatically find your Claude sessions in ~/.claude/projects/. If you're in a directory with an active Claude project, it will open that project directly.
↑↓orj/k- Navigate through sessionsEnter- Copy resume command to clipboard/- Search sessions (full-text search in all messages)Esc- Exit search moder- Refresh session listq- QuitCtrl+C- Force quit
The search feature performs full-text search across all messages in all sessions:
Search Modes:
- Normal Mode: Default view with all sessions
- Search Input Mode: Typing your search query (bright purple border)
- Search Results Mode: Navigating filtered results (dimmed border)
How to use:
- Press
/to enter search mode - Type your search query - results update in real-time
- Press
TaborEnterto navigate the filtered results - Use
↑↓orj/kto move through matching sessions - Press
/again to modify your search - Press
Escto clear search and return to all sessions
Features:
- Shows match count
[n]next to each session - View match previews in the details pane with context
- Search bar shows different states (focused/unfocused)
- Persistent search results until explicitly cleared
- Requires
ripgrep(rg) to be installed for best performance
# Show help
claude-session-browser --help
# Use a custom Claude directory
claude-session-browser --claude-dir ~/my-claude-projects- The app reads JSONL session files from your Claude projects directory
- Sessions are displayed with relative timestamps and truncated IDs
- Select a session to see details including summary and full JSON data
- Press Enter to copy the resume command to your clipboard
- Paste the command in your terminal to resume the session
- Go 1.24 or higher
- Make (optional, for using Makefile)
# Development build
go build
# Production build with optimizations
go build -ldflags="-s -w" -o claude-session-browser
# Run tests
go test ./...claude-session-browser/
├── main.go # Entry point
├── internal/
│ ├── model/ # Data models
│ ├── parser/ # JSONL parser
│ ├── ui/ # TUI components
│ └── clipboard/ # Clipboard manager
Contributions are welcome! Please feel free to submit a Pull Request.
MIT License - see LICENSE file for details.
Built with:
- Bubble Tea - TUI framework
- Lip Gloss - Style definitions
- atotto/clipboard - Cross-platform clipboard support