Shabash
Blog · Claude Code guides

Cursor chat history: where it's stored, why it disappears, and how to export it

Where Cursor keeps your chat and agent history on Mac, Windows and Linux, the common reasons it vanishes, and safe ways to export and back it up.

By Robin Mehta · September 25, 2026

Cursor keeps your chats in local databases, not in files you can read directly. That's why history sometimes seems to vanish, and why backing it up takes a little care. Current as of September 2026.

Where it's stored

OSFolder
macOS~/Library/Application Support/Cursor/User/
Linux~/.config/Cursor/User/
Windows%APPDATA%\Cursor\User\

Inside, two kinds of SQLite database named state.vscdb matter:

This layout comes from community documentation of how Cursor stores chats (cursaves), not from Cursor, so it can change between versions.

Why history disappears

The folder moved. Each workspace gets an ID derived from its path. Move or rename the project folder, and Cursor treats it as a new workspace with no chats. Moving the folder back usually brings them back.

A bug emptied the content. Some versions left the chat list intact while the message content was gone, showing "Loading Chat" forever. Forum threads describe it happening after an update in 2.2.9, and after deleting the global state.vscdb.

You're on a different machine. Chats are stored where the Cursor window runs, even for remote workspaces, so they don't follow you to another computer.

Back it up before you need it

The simplest insurance is a copy of the whole user folder while Cursor is closed:

# macOS, with Cursor quit
cp -R "$HOME/Library/Application Support/Cursor/User" "$HOME/cursor-backup-$(date +%F)"

Don't edit the databases in place. If you want to look inside, copy state.vscdb somewhere else first and open the copy with sqlite3.

Exporting

If you also use Claude Code, its history is plain files and easier to keep: see where Claude Code stores sessions. Shabash organizes Claude Code sessions into threads of work today; other agents are on the roadmap.

Questions

Where is Cursor chat history stored?

In SQLite databases named state.vscdb under Cursor's user folder: ~/Library/Application Support/Cursor/User/ on macOS, ~/.config/Cursor/User/ on Linux, and %APPDATA%\Cursor\User\ on Windows.

Why did my Cursor chat history disappear?

Most often because the project folder moved or was renamed, which gives it a new workspace ID. Some versions also had bugs that emptied chat content while keeping the list.

How do I export Cursor chats?

On Teams and Enterprise plans, the Share icon in a chat creates shareable transcripts. For local Markdown copies of every chat, tools like SpecStory save them into your project.

Does Cursor sync chat history between computers?

No. Chats are stored on the machine running the Cursor window, even for remote workspaces.