| summary | Cursor support in CodexBar: cookie-based API fetching and UX. | |||
|---|---|---|---|---|
| read_when |
|
Cursor support is implemented: CodexBar can show Cursor usage alongside other providers. Unlike CLI-based providers, Cursor uses web-based cookie authentication.
- Settings → Providers: toggle for "Show Cursor usage".
- No CLI detection required; works if browser cookies are available.
- Menu: shows plan usage, on-demand usage, and billing cycle reset time.
- Uses the same two-bar metaphor as other providers.
- Brand color: teal (#00BFA5).
-
Primary: Browser cookie import
- Safari: reads
~/Library/Cookies/Cookies.binarycookies - Chrome: reads encrypted SQLite cookie DB from
~/Library/Application Support/Google/Chrome/*/Cookies - Requires cookies for
cursor.comdomain
- Safari: reads
-
Fallback: Stored session
- If browser cookies unavailable, uses session stored via "Add Account" login flow
- WebKit-based browser window captures cookies after successful login
- Session persisted to
~/Library/Application Support/CodexBar/cursor-session.json
GET /api/usage-summary— plan usage, on-demand usage, billing cycleGET /api/auth/me— user email and name
- Plan: included usage percentage with reset countdown
- On-Demand: usage beyond included plan limits (when applicable)
- Account: email and membership type (Pro, Enterprise, Team, Hobby)
- Parses
binarycookiesformat (big-endian header, little-endian pages) - May require Full Disk Access permission
- Decrypts cookies using "Chrome Safe Storage" key from macOS Keychain
- Prompts for Keychain access on first use
- Supports multiple Chrome profiles
- No CLI required: Cursor is entirely web-based.
- Session cookies typically valid for extended periods; re-login rarely needed.
- Provider identity stays siloed: Cursor email/plan never leak into other providers.
- Check browser login: visit
https://cursor.com/dashboardin Safari/Chrome to verify signed-in state. - Safari cookie permission: System Settings → Privacy & Security → Full Disk Access → enable CodexBar.
- Chrome Keychain prompt: allow CodexBar to access "Chrome Safe Storage" when prompted.
- Settings → Providers shows the last fetch error inline under the Cursor toggle.
- "Add Account" opens a WebKit browser window for manual login if cookie import fails.
| API value | Display |
|---|---|
pro |
Cursor Pro |
hobby |
Cursor Hobby |
team |
Cursor Team |
enterprise |
Cursor Enterprise |