Skip to main content
Downloads an agent’s persisted Claude Code session file so you can resume the conversation locally with claude --resume. By default this downloads the session as last persisted — written when the agent’s VM went to sleep, or on the periodic keep-alive backup. Pass --fresh to ask the running agent to upload a snapshot of its current session first, so the download is up to date even mid-run.

Synopsis

On a VM, the slug is optional — omitting it downloads the current agent’s own session.

Arguments

Examples

Download the last-persisted session

Download a fresh snapshot from a running agent

Errors