AgentDrive
AgentDrive saves your Claude Code sessions so you can pick one up in another coding agent (Codex, Cursor, OpenCode or Antigravity), or bring a session from one of those back into Claude Code. Hit a usage limit in one agent and keep going in another, with the transcript, decisions and files carried over.
Install
/plugin install agentdrive --marketplace agentdrive-sh/agentdrive-mcp
On Claude Code older than 2.1.275, run /plugin marketplace add agentdrive-sh/agentdrive-mcp, then /plugin install agentdrive@agentdrive.
Commands
/agentdrive:loginsigns you in. It runs the AgentDrive CLI (npx -y @adrive/cli init --yes), which opens your browser once and shows a code to enter there./agentdrive:sessionslists this project's recent sessions from every connected agent./agentdrive:resumeloads a session's handoff brief so Claude can continue it.
What the plugin runs
- Hooks on
SessionStart,Stop,SessionEndandPreCompactrunadrive hook claude-code: the AgentDrive CLI if it is on yourPATH, otherwise the version pinned inhooks/hooks.jsonthroughnpx. - An MCP server,
@adrive/mcp-serverat the version pinned in.mcp.json, started withnpx. It gives Claude thedrive_*tools: list, resume, search, read, write and share sessions and files in your AgentDrive workspace.
Both packages are open source under Apache-2.0: agentdrive-sh/agentdrive-mcp and @adrive/cli.
What it sends, and where
Nothing leaves your machine until you sign in. Before that, the session-start hook only adds a short note offering to connect.
After you sign in, a notice shows what is on. On a new install sync is on, and then:
- On each hook event, a background
adrive syncuploads the current session's transcript, and files your agents wrote that git does not track, to your AgentDrive workspace atapp.agentdrive.sh(hosted on Cloudflare). - Recognized secret patterns are redacted on your device from synced transcripts and files before upload. Redaction is best-effort. A
.adriveignorefile excludes file paths from artifact sync; it does not remove text already pasted into a conversation. - Private Workspace encrypts the content the CLI syncs on your machine before
adrive syncuploads it.adrive pushalso honors that preference unless--plaintextis supplied;--encryptexplicitly enables encryption for a push. Ordinary direct REST/MCP writes and control metadata are outside this encryption setting. The local software key store is not an OS keychain: preserve bothkeychain.binandkeychain.bin.protectoron the original machine/user for decryption. - At session start, it fetches a short summary of this project's recent sessions and adds it to Claude's context, and connects installed agent tools it has not connected before by adding AgentDrive's hooks, MCP server, commands and skill to their config files.
Turn any of this off at any time with adrive privacy (sync of transcripts and files, session-start context, connecting new agent tools, and Private Workspace).
- Privacy policy: https://agentdrive.sh/legal/privacy
- Terms: https://agentdrive.sh/legal/terms
- Contact: privacy@agentdrive.sh