You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Cursor usage for the selected authenticated account #1941
Show quota/usage only when a supported Cursor SDK/account source can be bound to the selected identity. Surface unsupported or stale data clearly.
Current scope
providerUsage explicitly marks Cursor unsupported. The later upstream fix uses the SDK account and removes CLI/Keychain fallback. This is a candidate only if Solenta adopts a supported authentication integration, not a reason to scrape unrelated credentials.
Acceptance criteria
Investigate a supported SDK/account usage source before implementation.
Bind usage to the selected identity; avoid unrelated CLI/Keychain-account fallback.
Represent unsupported/stale/error states explicitly and test attribution without exposing credentials.
Verification
Add focused behavior coverage for the changed path, run relevant checks and record any unverified platform/provider behavior. Do not alter real user credentials or settings during tests.
Tracked by #1926. Implementation status is separate from merge status.
Cursor CLI 2026.09.10: status --format json returns auth state only, and about --format json adds tier and email. Neither has any usage or quota fields.
@cursor/sdk 1.3.1 has agent.getUsage() / Agent.getUsage(id), which give token counts and cost for one agent's runs. It also has Cursor.me(), which returns the API key's name and owner. Both need CURSOR_API_KEY. There are no plan-quota or rate-limit windows.
Solenta authenticates Cursor through the CLI login, not an SDK API key.
Result: there is still no supported account-quota source, so Cursor stays explicitly unavailable and nothing falls back to CLI or Keychain credentials. Changed in this commit: the message and spec research are updated, and a new test covers the base cursor row and a named Cursor instance. It checks that both are unavailable with no windows and fetchedAt: null, that nothing is spawned, and that no API key appears in the row. The UI already marks stale and error rows. This is worth revisiting only if Solenta adopts SDK/API-key auth and Cursor adds an account quota API.
Closing: neither the CLI nor @cursor/sdk 1.3.1 offers a supported account-quota source, so Cursor stays explicitly unavailable with no cross-account fallback. Investigation and test are in 558adfb2 on coder/cursor-usage-for-the-selected-authentica-be66cb. Reopen if Solenta adopts SDK/API-key auth and Cursor adds an account quota API.
Activity
currentbits commentedon Nov 11, 2026
Investigation (2026-11-11), branch
coder/cursor-usage-for-the-selected-authentica-be66cb@ 558adfb2:status --format jsonreturns auth state only, andabout --format jsonadds tier and email. Neither has any usage or quota fields.@cursor/sdk1.3.1 hasagent.getUsage()/Agent.getUsage(id), which give token counts and cost for one agent's runs. It also hasCursor.me(), which returns the API key's name and owner. Both needCURSOR_API_KEY. There are no plan-quota or rate-limit windows.Result: there is still no supported account-quota source, so Cursor stays explicitly
unavailableand nothing falls back to CLI or Keychain credentials. Changed in this commit: the message and spec research are updated, and a new test covers the basecursorrow and a named Cursor instance. It checks that both are unavailable with no windows andfetchedAt: null, that nothing is spawned, and that no API key appears in the row. The UI already marks stale and error rows. This is worth revisiting only if Solenta adopts SDK/API-key auth and Cursor adds an account quota API.currentbits commentedon Nov 11, 2026
Closing: neither the CLI nor @cursor/sdk 1.3.1 offers a supported account-quota source, so Cursor stays explicitly unavailable with no cross-account fallback. Investigation and test are in 558adfb2 on coder/cursor-usage-for-the-selected-authentica-be66cb. Reopen if Solenta adopts SDK/API-key auth and Cursor adds an account quota API.