docs/cursor.md
Cursor is primarily web-backed. Usage is fetched via browser cookies or a stored WebKit session, with Cursor.app local auth as a final fallback.
Cached cookie header (preferred)
com.steipete.codexbar.cache (account cookie.cursor).Browser cookie import
cursor.com, cursor.sh.WorkosCursorSessionToken__Secure-next-auth.session-tokennext-auth.session-tokenStored session cookies (fallback)
WebKitTeardown to avoid Intel WebKit crashes.~/Library/Application Support/CodexBar/cursor-session.json.Cursor.app local auth (last fallback)
~/Library/Application Support/Cursor/User/globalStorage/state.vscdb.Manual option:
Cookie: header from a cursor.com request.GET https://cursor.com/api/usage-summary
GET https://cursor.com/api/auth/me
GET https://cursor.com/api/usage?user=ID
~/Library/Cookies/Cookies.binarycookies~/Library/Application Support/Google/Chrome/*/Cookies~/Library/Application Support/Firefox/Profiles/*/cookies.sqliteWhen Settings → Advanced → Track provider local storage is enabled, CodexBar measures:
~/Library/Application Support/Cursor~/Library/Application Support/Caches/cursor-updater~/.cursor~/Library/Caches/Cursor~/Library/Caches/com.todesktop.230313mzl4w4u92~/Library/Caches/com.todesktop.230313mzl4w4u92.ShipIt~/Library/Caches/cursor-compile-cache~/Library/HTTPStorages/com.todesktop.230313mzl4w4u92The storage detail lists measured paths and their sizes. CodexBar does not delete Cursor data.
Sources/CodexBarCore/Providers/Cursor/CursorStatusProbe.swiftSources/CodexBar/CursorLoginRunner.swift (login flow)