| summary | Cursor provider data sources: browser cookies or stored session; usage + billing via cursor.com APIs. | |||
|---|---|---|---|---|
| read_when |
|
Cursor is web-only. Usage is fetched via browser cookies or a stored WebKit session.
-
Browser cookie import (preferred)
- 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.
- Stored at:
~/Library/Application Support/CodexBar/cursor-session.json.
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.
- 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 (team on-demand preferred when present).
- 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)