Skip to content

Link provider detail to the plan usage page - #16

Merged
TiantianFlow merged 2 commits into
mainfrom
cursor/provider-usage-links-c6fb
Oct 2, 2026
Merged

TiantianFlow merged 2 commits into
mainfrom
cursor/provider-usage-links-c6fb

Conversation

@TiantianFlow

Copy link
Copy Markdown
Owner

Summary

The side panel already opens API-key setup pages during connect, and the footer links to this repository. It did not link to a provider's own usage page.

Provider detail now shows a Usage page link beside local history when that plan has a stable public URL. The link opens in a new tab. Plans without a known usage URL keep the detail screen unchanged.

  • ChatGPT: https://chatgpt.com/codex/settings/usage
  • Claude: https://claude.ai/settings/usage
  • Kimi: https://www.kimi.com/membership/subscription
  • Cursor: https://cursor.com/dashboard/spending
  • Mistral: https://admin.mistral.ai/organization/usage
  • Perplexity: https://www.perplexity.ai/account/usage
  • OpenAI platform: https://platform.openai.com/usage

Grok, the self-hosted relays, and the other API-key providers stay without a link. Their setup pages are key-creation pages, not usage history.

Test plan

  • pnpm exec vitest run providers/catalog.test.ts entrypoints/sidepanel/Cockpit.test.tsx i18n/catalog-contract.test.ts
  • pnpm exec tsc --noEmit
  • Open a connected ChatGPT, Claude, or Kimi detail view and confirm Usage page opens the provider site
  • Open Grok detail and confirm there is no usage-page link
Open in Web Open in Cursor 

cursoragent and others added 2 commits September 27, 2026 02:08
Open the provider's own usage page from the detail screen when that page has a stable URL, so the panel can point at history it does not reconstruct.

Co-authored-by: wjcjttl9 <wjcjttl9@gmail.com>
@TiantianFlow
TiantianFlow marked this pull request as ready for review October 2, 2026 01:25
@TiantianFlow
TiantianFlow merged commit 2559820 into main Oct 2, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants