Answer: To resume a Claude Code SDK session across hosts, either pass a session store adapter so transcripts are mirrored to your own backend, or move the session file by persisting `~/.claude/projects//.jsonl` from the first run and restoring it under `~/.claude/projects/` on the new host before calling `resume`. Status: Confirmed Entry: tool/claude-code/agents-and-automation/resume-across-hosts Revision: 1 Digest: sha256:bec70cdb15006301 (changes whenever the content changes) Timeline: Created: 2026-11-13T12:07:11Z Last changed: 2026-11-13T12:07:11Z Last verified: 2026-11-20T12:17:17Z Next check: 2026-11-21T12:17:17Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of session store option | sessionStore | [1] | 2026-11-20 session file path | ~/.claude/projects//.jsonl | [1] | 2026-11-20 restore location | ~/.claude/projects/ | [1] | 2026-11-20 prior version behavior | v2.1.223 | [1] | 2026-11-20 Sources: [1] Anthropic. "Work with sessions". https://code.claude.com/docs/en/agent-sdk/sessions.md Role: primary. Accessed: 2026-11-20T12:17:17Z Quote: "Attach a [`sessionStore` / `session_store` adapter]" (Supports: session store option) Quote: "Persist `~/.claude/projects//.jsonl` from the first run" (Supports: session file path) Quote: "restore it inside any directory under `~/.claude/projects/` on the new host before calling `resume`" (Supports: restore location) Quote: "Before v2.1.223, the lookup was scoped to the current project directory and its git worktrees" (Supports: prior version behavior) Published: 2026-11-20T02:52:44Z Snapshot SHA-256: 456f033eff0db40bef3d41724e8ee7260cd156256727d73859c4ee108c7e35d8 (captured 2026-11-13T03:02:57Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. On this check the text of [1] was unchanged since 2026-11-13T12:07:11Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T12:17:17Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:17:17Z Last attempt: 2026-11-20T12:17:17Z Notes and limitations: Extracted automatically from a single official source (section "Resume across hosts"). Related: https://latestn.com/tool/claude-code/agents-and-automation/resume-session-by-id How do I resume a Claude Code SDK session by its session ID? https://latestn.com/tool/claude-code/agents-and-automation/resume-session-from-store How do I resume a Claude Code Agent SDK session from an external session store? https://latestn.com/tool/claude-code/agents-and-automation/rewind-files-to-previous-state How do I rewind files to a previous state in Claude Code using rewindFiles()? https://latestn.com/tool/claude-code/agents-and-automation/query-vs-claudesdkclient When should I use query() versus ClaudeSDKClient in the Claude Code Python Agent SDK? https://latestn.com/tool/claude-code/agents-and-automation/reload-plugins-running-session How do I reload or add plugins to a running Claude Code SDK session? https://latestn.com/tool/claude-code/agents-and-automation/restrict-subagent-tools How do I restrict which tools a Claude Code subagent can use? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T12:07:11Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/claude-code/agents-and-automation/resume-across-hosts/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/claude-code/agents-and-automation/resume-across-hosts POST: https://latestn.com/dispute/tool/claude-code/agents-and-automation/resume-across-hosts with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/claude-code/agents-and-automation/resume-across-hosts?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I resume a Claude Code SDK session across different hosts? Revision 1, last verified 2026-11-20T12:17:17Z. https://latestn.com/tool/claude-code/agents-and-automation/resume-across-hosts (accessed 2026-11-21T10:07:18Z). @misc{LatestN_tool_claude_code_agents_and_automation_resume_across_hosts_r1, title = {How do I resume a Claude Code SDK session across different hosts?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/claude-code/agents-and-automation/resume-across-hosts}}, note = {Revision 1; digest sha256:bec70cdb15006301; last verified 2026-11-20T12:17:17Z; accessed 2026-11-21T10:07:18Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/claude-code/agents-and-automation/resume-across-hosts