grep -r on the same 1.4 GB, which takes 16 s and only lists file namesMeasured on a MacBook against one developer's real Claude Code history: 1.4 GB of transcripts.
Claude Code remembers everything. Finding it is the hard part.
Every session is saved on your disk as a raw transcript file. Useful, until you need to find one.
Your computer crashed mid-work
Five sessions were open in three projects. Which one was fixing the checkout bug, and what was its ID?
--resume shows titles, not answers
The built-in picker lists session titles for the folder you're in. It doesn't show what a session changed, which PR it opened, or what it cost.
"Where did Claude explain that?"
The answer is in a transcript from last Tuesday, somewhere among hundreds of megabytes of JSON.
No idea what a session did
Which files did it change? Which PR did it open? Did it make a worktree? How much did it cost?
claude-gui answers all four. It reads the transcripts already on your disk and turns them into a dashboard you can search, browse and resume from.
Everything a session did, on one page
Nothing to configure. It finds every project you've used Claude Code in on its own.
The questions you ask after a long day, or a crash
claude --resume, and guess from the titlesgit worktree list and remember which is whichThe details that matter after the fact
Same context, weeks later
Resume an old session and Claude remembers everything you worked out together.
Pull requests
Every PR a session opened, linked straight to GitHub.
Git worktrees
Worktrees a session created or entered, and whether they're still on disk.
Artifacts
Pages Claude published to claude.ai, marked as created, updated or opened.
Skills
Which skills ran, and whether you typed them or Claude loaded them.
MCP servers
Every MCP server a session called, like Linear, Sentry or GitHub.
Pinned boxes
Pin the details you check most so they're at the top of every session.
Settings and shortcuts
Set your Claude folder, editor and port once. Search, move and open without the mouse.
Your sessions never leave your machine
Your transcripts hold everything you and Claude wrote: code, secrets in logs, customer data. claude-gui treats them that way.
- Never changes or deletes the files Claude Code saved
- Keeps its copies of your sessions compressed and readable only by you
- Listens on 127.0.0.1 only, so other computers can't reach it
- Rejects requests from other websites, even ones open in your browser
- Makes no network calls and has no telemetry or accounts, so nothing leaves your machine
- Zero dependencies, so there's no third-party code to audit
Install, run and contribute
Up and running in under a minute. All you need is Node.js.
Quick start
You need Node.js 18.3 or newer and at least one Claude Code session on this machine. Then run:
$ npx claude-guiYour browser opens at http://127.0.0.1:4321. Pick a project, open a session, and click Resume in terminal to continue it, or Open in editor to look at its code. Choose your editor with the gear icon in the top bar. You can also copy the resume command and run it yourself:
$ cd ~/code/your-project && claude --resume 6706d7ca-3fa9-4959-af52-b15b645d097fInstall globally
To have the claude-gui command always available, for example right after a crash:
$ npm install -g claude-gui $ claude-gui
To update, run the install command again. To remove it, run npm uninstall -g claude-gui.
Options
| Flag | Default | What it does |
|---|---|---|
--port <n> | 4321 | The port to listen on |
--no-open | off | Don't open the browser on start |
--terminal <app> | terminal | On macOS, where Resume opens: terminal or iterm |
--claude-dir <path> | ~/.claude | The folder Claude Code keeps its data in |
-h, --help | Show usage |
Using a different Claude folder
claude-gui reads the projects folder inside your Claude folder, which is ~/.claude unless you moved it. To read another one, click the gear icon in the top bar, enter the folder in Settings and save. The dashboard switches right away, and the choice is remembered in ~/.config/claude-gui/config.json.
You can also set it when starting the dashboard. If more than one is set, the first one wins:
- the
--claude-dirflag, for examplenpx claude-gui --claude-dir ~/work/.claude - the folder saved in Settings
- the
CLAUDE_CONFIG_DIRenvironment variable, which Claude Code uses too ~/.claude
Projects in temporary folders, such as /tmp, are hidden.
Keyboard shortcuts
| Keys | Action |
|---|---|
| ⌘ K or / | Search |
| J / K or ↓ / ↑ | Move between projects or sessions |
| ↵ | Open the selected project or session |
| C | Copy the selected session's ID |
| Esc | Clear the search, or go back to the session list |
About cost estimates
Costs are what a session's tokens would cost at Anthropic's API list prices, including cache reads and writes. If you use Claude Code on a subscription plan, you're billed differently, so treat the number as a measure of how heavy a session was. Subagent work isn't included yet. Models without a known price show token counts only.
Troubleshooting
- "Port 4321 is in use." Another copy is already running. Open
http://127.0.0.1:4321, or start this one with--port 4400. - The page is blank after an update. The server still has the old version loaded. Stop it with Ctrl C and start it again.
- A project is missing. Check that Claude Code saved sessions in
~/.claude/projects, or setCLAUDE_CONFIG_DIR. Sessions in temporary folders are hidden on purpose. - Resume doesn't open a window on Linux. It uses
x-terminal-emulator. Copy the resume command and paste it into your terminal instead.
Contributing
Contributions are welcome. There's nothing to install, since claude-gui has no dependencies:
$ git clone https://github.com/hbakouane/claude-gui.git $ cd claude-gui $ npm test # run the test suite $ node bin/cli.js --port 4400 # run your local copy
public/index.html is read on every request, so a reload is enough for it. Anything in src/ needs a restart.Need screenshots or a demo without showing your own sessions? Point the dashboard at a folder of fake transcripts:
$ CLAUDE_CONFIG_DIR=/path/to/fake-claude node bin/cli.js --port 4400Project structure
bin/cli.js Command line: flags, starts the server, opens the browser src/server.js Local HTTP server and JSON API src/sessions.js Reads session transcripts: titles, PRs, worktrees, files, search src/pricing.js Model prices and token cost estimates src/resume.js Opens a terminal window that resumes a session public/index.html The whole web app: one file, no build step test/ Tests, using Node's built-in test runner
Principles
- Zero dependencies. Node's standard library only, and no build step for the page.
- Local and read-only. Never write to session files, never call the network.
- Every change is tested. Add or update a test in
test/for each behavior you change, including edge cases and failures. - Forgiving parsing. Transcripts can be half-written after a crash, or come from older Claude Code versions. Skip what you can't read; never fail the whole page.
Pull requests
- Create a branch from
main. - Keep commits small, with one change each, using conventional commit titles such as
feat:,fix:ordocs:. - Make sure
npm testpasses. - Open a pull request that explains what changed and why. Add a screenshot for anything visual.
Questions
Does claude-gui send my code or conversations anywhere?
No. It reads files on your disk and serves them to your own browser on 127.0.0.1. It makes no network calls, and it rejects requests from other websites.
Can it change or delete my sessions?
No. It never changes or deletes them, and it acts only when you click Resume or Open in editor. The one time it writes in Claude Code's folder is Restore and resume, which puts back a session Claude Code deleted, and never over one that's still there.
Does Claude Code delete my old sessions?
Yes. By default, Claude Code deletes a session once it has gone 30 days without use (its cleanupPeriodDays setting). claude-gui keeps a compressed copy of every session in ~/.local/share/claude-gui/archive, readable only by you, so you can still read, search and resume them. In Settings you can keep copies forever (the default), keep them for a number of days, or turn this off.
Is the cost what I actually paid?
Only if you pay for the API by the token. On a subscription plan, the number is what the same tokens would cost at API list prices. That's still a good way to see which sessions were heavy.
Does it work on Windows and Linux?
Yes. Browsing, search and every detail work everywhere Node.js 18.3+ runs. One-click resume opens the terminal you choose: Terminal, iTerm2, Ghostty, WezTerm, kitty or Alacritty on macOS; your default terminal, GNOME Terminal, Konsole, Ghostty, WezTerm, kitty or Alacritty on Linux; Command Prompt or Windows Terminal on Windows.
How is it different from claude --resume?
Use claude --resume when you know the folder and the session. claude-gui is for when you don't: it shows every project at once, searches what was said, and shows what each session changed before you reopen it.
Does it use any tokens?
No. claude-gui reads the transcripts on your disk and never calls a model, so browsing, searching and reading sessions costs nothing. Asking Claude Code to find old sessions for you does: in one real test, finding two sessions took 9 tool calls and about 970,000 tokens. Each session page also shows its own input, output and cache tokens, so you can see which sessions are heavy.
Is it fast with a lot of history?
On a real 1.4 GB history with 256 sessions, a project with 92 sessions opens in 3 ms. The first search over everything takes about 3.6 s, and later searches take under 0.1 s. Once it has searched everything and opened the largest session, it uses about 310 MB of memory.
Is this made by Anthropic?
No. claude-gui is an independent open-source project. It isn't affiliated with or endorsed by Anthropic.
Never lose a session again
Run one command and your whole Claude Code history is searchable. It stays on your machine.
Free and open source under the MIT license. Zero dependencies.








