| summary | read_when | |||
|---|---|---|---|---|
Cursor provider data sources: browser cookies or stored session; usage + billing via cursor.com APIs. |
|
Cursor is web-only. Usage is fetched via browser cookies or a stored WebKit session.
-
Cached cookie header (preferred)
- Stored after successful browser import.
- Keychain cache:
com.steipete.codexbar.cache(accountcookie.cursor).
-
Browser cookie import
- Cookie order from provider metadata (default: Safari → Chrome → Firefox).
- Domain filters:
cursor.com,cursor.sh. - Cookie names required (any one counts):
WorkosCursorSessionToken__Secure-next-auth.session-tokennext-auth.session-token
-
Stored session cookies (fallback)
- Captured by the "Add Account" WebKit login flow.
- Login teardown uses
WebKitTeardownto avoid Intel WebKit crashes. - Stored at:
~/Library/Application Support/CodexBar/cursor-session.json.
Manual option:
- Preferences → Providers → Cursor → Cookie source → Manual.
- Paste the
Cookie:header from a cursor.com request.
GET https://cursor.com/api/usage-summary- Plan usage (included), on-demand usage, billing cycle window.
GET https://cursor.com/api/auth/me- User email + name.
GET https://cursor.com/api/usage?user=ID- Legacy request-based plan usage (request counts + limits).
- Safari:
~/Library/Cookies/Cookies.binarycookies - Chrome/Chromium forks:
~/Library/Application Support/Google/Chrome/*/Cookies - Firefox:
~/Library/Application Support/Firefox/Profiles/*/cookies.sqlite
- Primary: plan usage percent (included plan).
- Secondary: on-demand usage percent (individual usage).
- Provider cost: on-demand usage USD (limit when known).
- Reset: billing cycle end date.
Sources/CodexBarCore/Providers/Cursor/CursorStatusProbe.swiftSources/CodexBar/CursorLoginRunner.swift(login flow)