# --resume Flag

> It opens an old session so you can keep going.

**Field:** Artificial Intelligence  
**Category:** Claude Code  
**Also known as:** claude --resume, claude -r, --resume

## Think of it like

It is like you open a book at the page you marked. You do not start it again.

## Definition

--resume opens an old Claude Code session so you can keep going. Give it the session's name or ID to open that one. Give it nothing and you get a list to pick from. It looks in this project first, then in your other projects. If the session is still running in the background, it opens it here.

## Example

Lucy worked on a login bug yesterday. She named the session login-fix. Today she runs claude --resume login-fix and picks up where she left off.

## Example code

```bash
claude --resume auth-refactor
```

Open the session named auth-refactor.

## Why it matters

The chat and what Claude learned in it come back, so you do not explain the task again.

## Common mistake

Using --resume for the last session. claude --continue opens the newest one with no name or list needed.

## Three principles

- **Name or ID.** Opens that one.
- **Nothing.** Shows a list.
- **--continue.** The newest one.

## Related terms

- [Claude Code Session](https://learn.benibix.com/term/ai/claude-code-session)
- [/resume Command](https://learn.benibix.com/term/ai/resume-command)
- [--name Flag](https://learn.benibix.com/term/ai/name-flag)
- [--session-id Flag](https://learn.benibix.com/term/ai/session-id-flag)

## Taught in

- [Resume, Branch and Rename](https://learn.benibix.com/learn/ai-claude-code-commands/resume-branch-and-rename): Claude Code Commands, 4/17

![Set a name or ID when you start, then use it with --resume or --from-pr to come back.](https://learn.benibix.com/diagrams/flag-find-session.svg)

---

Source: https://learn.benibix.com/term/ai/resume-flag
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-16
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
