Skip to content

About

Sign the Cursor CLI in from the desktop login on Windows.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Contributors Issues License

cursor-session-sync

Sign the Cursor CLI in from the desktop login on Windows.

Issues · Changelog · License

Table of Contents

Who this is for

People who use Cursor on Windows and want the CLI signed in as the same account as the desktop app. The desktop app can stay signed in after the CLI's saved session expires. This command bridges that gap.

It runs on Windows because that is where this desktop secret store lives.

Sign in

cursor-session-sync

The first line is the account email:

Signed in as you@example.com

The API key is not printed. Open a new terminal if the one you have was already open, so it sees the user environment variable CURSOR_API_KEY.

Check what is saved, still without printing the key:

cursor-session-sync status

You will see the CLI version, the boundary that covers it, the secret-store prefix, and the saved key's length and prefix class (for example crsr_).

Install

Build with DUB and LDC, then register the command:

dub build --build=release
cursor-session-sync install

Install copies the program into the utilities folder and registers the command with an OpenShell shim. It does not append an install folder to PATH. The shim dispatcher (ibex.exe) needs to already be in %USERPROFILE%\.local\bin.

third_party/prohelp must be a checkout of openshellorg/prohelp before dub build. CI checks that repository out into the same path.

Boundaries

A boundary is the CLI build where a rule starts. Later builds keep that rule until a build behaves differently. Versions compare by the date in the build name (YYYY.MM.DD), not by the commit hash.

policy.sdl records those boundaries. The first one starts at 2026.08.11-e8db854: the desktop worker secret is a personal API key, and CURSOR_API_KEY signs the CLI in.

When a newer build stores that secret differently, the command closes the old range and adds one suspended boundary. It does not add a row for every build. Exit 10 means stop. Commit policy.sdl if the command changed it. Do not invent a new way to recover the key.

cursor-session-sync --verify checks the desktop secret again when the covering boundary is still active and the prefix still matches.

What this does not do

This is not a chat client. It does not list chats, resume chats, or read transcripts. IDE chats and CLI chats are different stores.

Built with

Role Tools
Runtime D, tgc
Help prohelp

Changelog

CHANGELOG.adoc

License

MIT

Contact

dev-centr/cursor-session-sync

Back to top

About

Sign the Cursor CLI in from the desktop login on Windows.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages