[Guide][5 steps] Exporting chats & prompts from Cursor

  1. Go to workspaceStorage. (On Windows, cd %APPDATA%\Cursor\User\workspaceStorage)
  2. You will see a list of folders whose names are md5 hashes. Open each of them.
  3. datasette state.vscdb
  4. Visit “http://localhost:8001/state?” in a browser and enter this query:

SELECT
rowid,
[key],
value
FROM
ItemTable
WHERE
[key] IN (‘aiService.prompts’, ‘workbench.panel.aichat.view.aichat.chatdata’)

  1. Parse the json based on your use case.
7 Likes

Thank you so much for this workaround! Hopefully the Cursor team can make this into a “button” in the near future.

2 Likes

And on Mac? i cant find it

Edit: Found it!

/Users/YOUR_USERNAME/Library/Application Support/Cursor/User/workspaceStorage

1 Like

Anyone found the path for linux?

Edit: Found it!

/home/YOUR_USERNAME/.config/Cursor/User/workspaceStorage

1 Like

Is there a simple way to import to the db file on another computer/folder?