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

**URL:** <https://forum.cursor.com/t/how-to-migrate-cursor-ai-chats-from-old-machine-to-a-new-machine-same-codebase/128724>\
**Category:** Guides\
**Created:** [August 12, 2025, 10:17am UTC](https://forum.cursor.com/t/how-to-migrate-cursor-ai-chats-from-old-machine-to-a-new-machine-same-codebase/128724 "2025-08-12T10:17:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![AdhamKazi](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/adhamkazi/32/76145_2.png) [@AdhamKazi](https://forum.cursor.com/u/AdhamKazi)\
**Post date:** [August 12, 2025, 10:17am UTC](https://forum.cursor.com/t/how-to-migrate-cursor-ai-chats-from-old-machine-to-a-new-machine-same-codebase/128724/1 "2025-08-12T10:17:27Z")

</div>

# 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.:

**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.

---

<div class="post-metadata">

**Author:** ![aebp](https://avatars.discourse-cdn.com/v4/letter/a/f19dbf/32.png) [@aebp](https://forum.cursor.com/u/aebp)\
**Post date:** [March 5, 2026, 8:19pm UTC](https://forum.cursor.com/t/how-to-migrate-cursor-ai-chats-from-old-machine-to-a-new-machine-same-codebase/128724/2 "2026-03-05T20:19:37Z")

</div>

Thanks, trying to just copy over the .cursor and Roaming/Cursor just got me a corrupted error. This worked 🙂

---

<div class="post-metadata">

**Author:** ![oshokin](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/oshokin/32/122582_2.png) [@oshokin](https://forum.cursor.com/u/oshokin)\
**Post date:** [October 2, 2026, 8:05pm UTC](https://forum.cursor.com/t/how-to-migrate-cursor-ai-chats-from-old-machine-to-a-new-machine-same-codebase/128724/3 "2026-10-02T20:05:45Z")

</div>

> [@Cursor Chat Transit: move chats between workspaces and computers](https://forum.cursor.com/t/cursor-chat-transit-move-chats-between-workspaces-and-computers/173632):
>
> I wanted to move my Cursor chats to another workspace and keep working in them. I started with a fork of Cursor Chat Transfer and spent the past week reworking it after running into problems with imports and large exports. The result is Cursor Chat Transit: You select a source workspace, export the chats you want to a ZIP, then import it into the destination workspace. For another computer, copy the archive over first. After importing, quit and reopen Cursor to load the added chats. I’ve te…
