Guide
Keep Claude Code files across sessions
Connect agentdrive to Claude Code as an MCP server. Your agent saves notes and reports with save_file. A later session lists them with list_files and reads them with read_file, on any machine.
Get your free drive
Sign in at useagentdrive.com/signin. Your first drive is created for you: 500 MB, 25 MB per file.
Get a free driveAdd agentdrive to Claude Code
Run this in your terminal.
claude mcp add --transport http agentdrive https://useagentdrive.com/mcp
Authorize once
A running Claude Code session does not load a new server. Start a new session in the same folder, approve agentdrive if asked (the default choice declines it), run /mcp, choose agentdrive, then Authenticate. Click Allow access in the browser.
Save at the end of a session
Ask your agent to write down what the next session needs.
Save a handoff.md to agentdrive: what we did, what is left, and the open questions.
Read it back in the next session
Start the next session with this line. It works in another folder or on another machine.
List my agentdrive files, read handoff.md and continue from there.
What this is, and what it is not
agentdrive stores files. It does not load them into a session on its own: your agent reads them when you ask.
To make it a habit, add one line to your CLAUDE.md. Read handoff.md from agentdrive at the start, save it at the end.
Files in the project folder stay on one machine. Files in the drive follow your account.
Questions
- Does Claude Code remember files between sessions?
- Not by itself. A new session starts without the last one. With agentdrive connected, your agent reads back any file it saved before.
- Does it work across machines?
- Yes. The drive belongs to your account. Add agentdrive to Claude Code on the other machine and authorize once.
- How large can a file be?
- 25 MB per file on the free drive, 1 GB on the Drive plan. Whole-file text reads stop at 400 KB; larger files read in chunks.
- Can a human open the files?
- Yes. get_file_link returns a browser link for any file. Markdown renders as a page.