How to Migrate Cursor AI Chats from Old Machine to a New Machine (Same Codebase)

How to Migrate Cursor AI Chats from Old Machine to a New Machine (Same Codebase)

1. Keep the Same Path Structure
Make sure your project path on the new machine matches exactly with the old machine.

Example:
PS C:\Users\User Name\Xyz-Project\React_FE\react-fe\react-fe>
This path must be identical on both machines.

2. Open the Project in Cursor on the New Machine

  • Open Cursor AI and load your project from the exact same path.
  • Cursor will automatically create a hash-named folder inside:
    C:\Users\User Name\AppData\Roaming\Cursor\User\workspaceStorage\

Example:
C:\Users\User Name\AppData\Roaming\Cursor\User\workspaceStorage\fd84c037829daf424ecf3593ffdcb629

3. Identify the Correct Folder on the Old Machine

  • Go to the same workspaceStorage path on your old machine.

  • Look for the hash-named folder that contains a file called workspace.json.

  • Open workspace.json and check if it matches your project’s path, e.g.:

    PS C:\Users\User Name\Your-Project\React_FE\react-fe\react-fe>

    If it matches, you’ve found the right folder.

4. Copy Chat Data from Old to New Machine

  • Copy all the files from that hash-named folder (on the old machine).
  • Paste them into the hash-named folder created on your new machine for the same project.
  • Overwrite existing files if asked.

5. Done — Chat History Restored

  • Open Cursor AI on the new machine.
  • You should see your full chat history for that project.

Important Notes:

  • This works when your codebase is identical and you’re simply moving machines.
  • The hash folder name will be different for each project, but workspace.json tells you which is which.
  • Always open the project first on the new machine so Cursor generates the folder before pasting files.