Open source · Runs 100% on your machine

Find any Claude Code session.
Resume it in one click.

Crashed with five Claude Code sessions open? claude-gui lists every session from every project, shows what each one changed and cost, and reopens the one you need in your terminal.

Zero dependencies Never edits your sessions Keeps sessions past Claude's 30-day cleanup macOS, Linux and Windows MIT licensed
Claude is workingLive, updates every 5 seconds
Resume in terminalBack where you stopped, in one click
$1.06 for this session11.5K output tokens · 2.4M cached
Search every conversationAcross all projects at once
127.0.0.1:4321
claude-gui in dark mode, showing a session's conversation with its resume command, details, pull request and artifact
3.6 sto search all 1.4 GB of transcripts the first time, 0.08 s after that
200×faster than grep -r on the same 1.4 GB, which takes 16 s and only lists file names
0.4 sto open a 112 MB session with 4,947 messages
46 kBto download. Zero dependencies, running in 0.09 s.
0 tokensclaude-gui never calls a model. Asking Claude Code to find two old sessions took 9 tool calls and 970,000 tokens, mostly re-reading the conversation at every step.

Measured on a MacBook against one developer's real Claude Code history: 1.4 GB of transcripts.

Why claude-gui

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.

01

Your computer crashed mid-work

Five sessions were open in three projects. Which one was fixing the checkout bug, and what was its ID?

02

--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.

03

"Where did Claude explain that?"

The answer is in a transcript from last Tuesday, somewhere among hundreds of megabytes of JSON.

04

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.

Features

Everything a session did, on one page

Nothing to configure. It finds every project you've used Claude Code in on its own.

Before and after

The questions you ask after a long day, or a crash

You want to…
Without claude-gui
With claude-gui
Continue a task you worked on a month ago
Start a new session and explain the context all over again
Search for the old session and click Resume
Know when a session you left running is done
Keep switching terminals to check on it
Get a desktop notification, and click it to open the session
Go back to a session from two months ago
It's gone: Claude Code deleted it after 30 days
It's still there, marked Archived. Restore and resume it
Reopen the 5 sessions you had open before the crash
Visit each project folder, run claude --resume, and guess from the titles
Open "Recently active" and click Resume on each
Find where Claude explained the tax bug
Grep hundreds of megabytes of JSON transcripts
Type "tax" in search and jump to the message
Check which files a session changed
Dig through git history and the transcript
Open the session and expand Files changed
Know which sessions were expensive
No way to tell
See the estimated cost on every session and project
Find the worktree a session worked in
Run git worktree list and remember which is which
See it on the session, and open it in your editor
And more

The 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.

Privacy

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
Manual

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:

Terminal
$ npx claude-gui

Your 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:

Terminal
$ cd ~/code/your-project && claude --resume 6706d7ca-3fa9-4959-af52-b15b645d097f

Install globally

To have the claude-gui command always available, for example right after a crash:

Terminal
$ npm install -g claude-gui
$ claude-gui

To update, run the install command again. To remove it, run npm uninstall -g claude-gui.

Options

FlagDefaultWhat it does
--port <n>4321The port to listen on
--no-openoffDon't open the browser on start
--terminal <app>terminalOn macOS, where Resume opens: terminal or iterm
--claude-dir <path>~/.claudeThe folder Claude Code keeps its data in
-h, --helpShow 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:

  1. the --claude-dir flag, for example npx claude-gui --claude-dir ~/work/.claude
  2. the folder saved in Settings
  3. the CLAUDE_CONFIG_DIR environment variable, which Claude Code uses too
  4. ~/.claude

Projects in temporary folders, such as /tmp, are hidden.

Keyboard shortcuts

KeysAction
⌘ K or /Search
J / K or ↓ / ↑Move between projects or sessions
↵Open the selected project or session
CCopy the selected session's ID
EscClear 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 set CLAUDE_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:

Terminal
$ 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
💡Restart after changing server code. The page in 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:

Terminal
$ CLAUDE_CONFIG_DIR=/path/to/fake-claude node bin/cli.js --port 4400

Project 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

  1. Create a branch from main.
  2. Keep commits small, with one change each, using conventional commit titles such as feat:, fix: or docs:.
  3. Make sure npm test passes.
  4. Open a pull request that explains what changed and why. Add a screenshot for anything visual.
FAQ

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.

$ npx claude-gui

Free and open source under the MIT license. Zero dependencies.

Copied