[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.
8 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?

I’ve made a cursor chat browser for both chat and composer messages (using cursor :).
check it out below. It has already helped me a lot. You can download the logs as md, pdf or html.

Feel free to contribute with improvements and provide feedback. Not tested it on other environments than WSL2 on windows.