[FEATURE] Resume Any Claude Session in the CLI

Status Fixed / completed
Maintainer reply None cached
Activity 8 comments · opened Apr 6, 2026 · closed May 18, 2026

Preflight Checklist

  • [x] I have searched existing requests and this feature hasn't been requested yet
  • [x] This is a single feature request (not multiple features)

Problem Statement

The CLI is an island. Sessions that start there stay there, and sessions that start anywhere else (mobile, web, another machine) can't come into it. If I sketch out an approach on my phone, there's no way to pull that context into a CLI session when I sit down to implement it without copy-pasting or re-explaining everything from scratch.

This feels inconsistent given that mobile and web sessions already persist server-side against my account. The storage half of the problem is largely solved for those clients. The CLI seems as if it is just not participating in that ecosystem yet.

The /desktop command gets close by routing CLI sessions to the cloud, but requires the Desktop app as a mandatory intermediary. For terminal-first developers and those on platforms where the Desktop app is not officially supported (Linux, headless servers, CI/CD), that path is unavailable or undesirable.

Proposed Solution

Store CLI sessions server-side when authenticated via claude auth login, and allow any session (regardless of which client started it) to be loaded as read-only context into a new local CLI session:

# List sessions across all clients
claude --list-sessions

# Resume any session by ID (CLI, mobile, web, or another machine)
claude --resume <session-id>

The previous transcript loads as read-only context. Everything after that executes locally on the current machine, initiated by the user. The security profile is identical to any other CLI session: no tunnel, no inbound connection, no persistent execution channel. The only thing that travels over the network is text.

This also covers the inverse: CLI sessions stored server-side would appear in the claude.ai web and mobile interfaces alongside regular chats, making any session resumable from any client in either direction.

Session flow today vs what this proposes

| Client | To account | From account |
|---|---|---|
| Mobile app | works today | works today |
| Web interface | works today | works today |
| Desktop app | works today (via /desktop) | works today (via /desktop) |
| CLI | requested | requested |

Alternative Solutions

The following existing solutions were considered but don't fully cover this use case:

_Remote Control_
Requires the source machine to be on, awake, and the terminal open. It's useful for live hand-offs but can't resume a session that has already ended, and it opens an execution channel that feels like more exposure than simply reading prior context warrants.

_Dispatch_
Routes tasks from mobile through the Desktop app for local execution. It requires adopting the Desktop app as a dependency, which doesn't fit a terminal-first workflow, and involves remote execution rather than simply loading prior context.

_--resume with a local session ID_
Only resolves against the local filesystem, so it's limited to the same machine.

Priority

Medium - Would be very helpful

Feature Category

CLI commands and flags

Use Case Example

I'm commuting and use the mobile app to think through an architectural approach with Claude. I ask questions, sketch out options, and arrive at a plan. When I get to my desk I open the CLI in my project directory and want to continue from that conversation directly, with Claude already knowing the context, without pasting anything or re-explaining the decision.

Alternatively: I'm mid-session in the CLI, close my laptop, and pick up my phone. I just want to re-read what we were working on to think it through. Right now that's not possible without having set up Remote Control in advance.

Additional Context

There's a decent amount of interest in this problem space, which I hope strengthens the case for tackling it. The issues below each approach it from a slightly different angle. However, this proposal tries to find the narrowest path that covers the widest set of clients, specifically the combination of mobile and web as session sources for CLI resumption, without requiring the Desktop app or an execution-capable relay.

Several related issues have been marked stale or closed. This proposal takes a narrower approach in the hope that a smaller, more clearly scoped ask is easier to prioritize

Open

  • #24145 — bidirectional real-time sync between CLI and Web
  • #41945 — session history not accessible across VS Code, web, and mobile
  • #17682 — cross-environment conversation history sync
  • #18645 — cross-machine portability via session export and import (status unconfirmed at time of writing)

Stale

  • #31992 — CLI-to-CLI cross-machine session resume (closest overlap)
  • #15962 — bi-directional context sync between Desktop and Terminal
  • #28791 — sync conversation history between CLI and Desktop

Closed

  • #10793 — conversation continuity across Desktop, Web, and Code

Thank you for the consideration!

Jake

View original on GitHub ↗

8 Comments

matkatmusic · 4 months ago

100% needed!

Phalanxyz · 4 months ago

@matkatmusic - Hopefully it finds the right eyes! 🤞

mustafaatatuzun · 4 months ago

yes definitly needed.
Ability to list and resume previous CLI sessions from the web/agent interface

jodli · 4 months ago

This feature would be really nice to have.

I've create a small dashboard to see my recent terminal sessions (and copy the command to resume them), but it's not synchronized across different devices (which would be hard anyway as the terminal sessions are bound to the absolute path on disk) but even having a read-only inspection of the session history in the desktop app would be a +1 for me.

NeoAcar · 4 months ago

Hey, great write-up this matches exactly what I ran into.

While waiting for native support, I built claude-handoff to cover the cross-machine case via git: [https://github.com/NeoAcar/claude-handoff](url)

It packages the full session bundle (transcript, subagent logs, memory files) into .claude-shared/, scrubs secrets and rewrites absolute paths, then reconstructs everything under the teammate's ~/.claude/projects/ on import. claude --resume then shows the shared session with its original title and full history intact.

Doesn't solve the mobile → CLI direction you're describing (that needs server-side storage on Anthropic's end), but it covers CLI → CLI and team handoffs today without needing the Desktop app.

npm i -g @neoacar/claude-handoff if it's useful.

Phalanxyz · 4 months ago
but even having a read-only inspection of the session history in the desktop app would be a +1 for me

Totally agree @jodli

Doesn't solve the mobile → CLI direction you're describing (that needs server-side storage on Anthropic's end), but it covers CLI → CLI and team handoffs today without needing the Desktop app

Super cool workaround @NeoAcar

Appreciate you both chiming in with some alternative ideas you have been working on 🙏

Phalanxyz · 3 months ago

After digging into the security implications of my original feature request a bit further and analyzing popular attack vectors targeting dev workflows lately I have decided to close this issue. To expand on my reasoning a bit further:

Providing broader read access to local server state, projects, and session context would significantly increase the blast radius in the case of a compromise. Attack vectors involving token theft, remote shell execution, malicious dependencies, VSCode workspace trust/task.json abuse, and session dumping make strict separation between projects, shells, and chat context an important security boundary.

This recent reporting is a good example of why dev environment isolation matters:
https://thehackernews.com/2026/01/north-korea-linked-hackers-target.html

github-actions[bot] · 1 month ago

This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.