# How to list and resume Claude Code sessions

> How to list past Claude Code sessions, resume one with --resume or --continue, find where they are stored, and see every live session in one list.

Canonical: https://herdbell.com/blog/claude-code-list-sessions
Author: Herdbell team
Published: 2026-11-25
Last updated: 2026-11-25

Claude Code keeps every chat as a session, so you can come back to it later. There is no single "list" command, but a few built-in ways show your past sessions and reopen one. This page covers them, as of November 2026. Options change between versions, so check `claude --help` if something looks different.

## The quick answer

| You want to | Run |
|---|---|
| Pick from a list of past sessions | `claude --resume` (or `claude -r`) |
| Reopen the last session in this folder | `claude --continue` (or `claude -c`) |
| Reopen a session you know the id of | `claude --resume <session-id>` |
| Switch sessions while Claude Code is open | Type `/resume` |

The list shows the sessions for the folder you are in, with when each one was last used and how it started, so run it from your project folder.

## Where Claude Code stores sessions

Each session is a `.jsonl` file under `~/.claude/projects/`, in a folder named after your project's path. Every line is one message or tool call. You can list them yourself:

- `ls -t ~/.claude/projects/*/` shows session files, newest first.
- Each file name is the session id you can pass to `claude --resume`.
- Deleting a file removes that session from the list. Keep a copy first if you might need it.

## Codex works much the same way

OpenAI Codex keeps its sessions under `~/.codex/sessions`. Run `codex resume` to pick one from a list, or `codex resume --last` for the most recent. See [Codex notifications](https://herdbell.com/blog/codex-notifications-when-task-finishes) for more on running Codex day to day.

## Listing the sessions that are running now

The commands above show past sessions. They do not tell you which of your open sessions is working, which is waiting for you, and which has finished. That matters once you run several at once.

- Herdbell shows **every live chat in one menu bar list**, grouped by agent and project, with its status.
- When one needs you, **your pointer glows** and you can allow a command or reply from a card at your cursor.
- It covers **Claude Code, Codex, Cursor and Antigravity** together, and everything stays on your Mac.

See [how to run multiple Claude Code sessions](https://herdbell.com/blog/run-multiple-claude-code-sessions) and [Claude Code session manager for Mac](https://herdbell.com/blog/claude-code-session-manager).

## Common questions

### How do I list all Claude Code sessions?
Run `claude --resume` in your project folder to pick from a list, or type `/resume` inside Claude Code. The files themselves are in `~/.claude/projects/`.

### What is the difference between --continue and --resume?
`--continue` reopens the most recent session in the current folder straight away. `--resume` shows a list so you can choose which one to reopen.

### Can I see sessions from other projects?
The list is for the folder you run it from. Change to that project's folder, or look in `~/.claude/projects/`, where each project has its own folder.

### How do I see which Claude Code session needs me right now?
Claude Code shows it only in its own window. Herdbell lists all live sessions in the Mac menu bar and tells you the moment one is waiting.

## Related
- [Herdbell: pricing](https://herdbell.com/#pricing)
- [All posts](https://herdbell.com/blog)
- [A Claude Code session manager for Mac: manage multiple AI coding agents in one place](https://herdbell.com/blog/claude-code-session-manager)
- [How to run multiple Claude Code sessions at once and keep track of them](https://herdbell.com/blog/run-multiple-claude-code-sessions)
- [How to continue a Claude Code session in Codex or Cursor](https://herdbell.com/blog/continue-claude-code-session-in-another-agent)
- [Claude Code hooks, explained: what they are and what you can build](https://herdbell.com/blog/claude-code-hooks-explained)
