AgentDrive

v1.4.1
sh.agentdrive/agentdrive Checked 38 minutes ago Published 10 days ago

Sync coding-agent sessions and resume them in any other agent: Claude Code, Codex, Cursor, more.

Values you need

VariableWhat it is
AGENTDRIVE_API_KEYoptional secret AgentDrive API key. Optional after `npx @adrive/cli auth login`.
AGENTDRIVE_AGENT_PLATFORMoptional Harness id recorded as provenance, e.g. claude-code or codex.

npm (npx) verified

Requires Node.js 18+

Run in a terminal
claude mcp add agentdrive -- npx -y --package=@adrive/mcp-server@1.4.1 adrive-mcp
Add to claude_desktop_config.json
{
  "mcpServers": {
    "agentdrive": {
      "args": [
        "-y",
        "--package=@adrive/mcp-server@1.4.1",
        "adrive-mcp"
      ],
      "command": "npx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "agentdrive": {
      "args": [
        "-y",
        "--package=@adrive/mcp-server@1.4.1",
        "adrive-mcp"
      ],
      "command": "npx"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "agentdrive": {
      "args": [
        "-y",
        "--package=@adrive/mcp-server@1.4.1",
        "adrive-mcp"
      ],
      "command": "npx",
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.agentdrive]
command = "npx"
args = ["-y", "--package=@adrive/mcp-server@1.4.1", "adrive-mcp"]

Remote (hosted)

Run in a terminal
claude mcp add --transport http agentdrive https://mcp.agentdrive.sh/mcp --header 'Authorization: <Authorization>'
Add to Settings → Connectors → Add custom connector (or claude_desktop_config.json via mcp-remote)
{
  "mcpServers": {
    "agentdrive": {
      "args": [
        "-y",
        "mcp-remote",
        "https://mcp.agentdrive.sh/mcp",
        "--header",
        "Authorization: <Authorization>"
      ],
      "command": "npx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "agentdrive": {
      "headers": {
        "Authorization": "<Authorization>"
      },
      "url": "https://mcp.agentdrive.sh/mcp"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "agentdrive": {
      "headers": {
        "Authorization": "<Authorization>"
      },
      "type": "http",
      "url": "https://mcp.agentdrive.sh/mcp"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.agentdrive]
command = "npx"
args = ["-y", "mcp-remote", "https://mcp.agentdrive.sh/mcp", "--header", "Authorization: <Authorization>"]

For AI agents

  1. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  2. Restart or reload the client so it starts the server.
  3. Verify: the server should expose these tools: drive_connect, drive_sessions, drive_resume.
  4. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json