Skip to content

feat(opencode): add quota command and UI display#19192

Open
cainiao1992 wants to merge 2 commits intoanomalyco:devfrom
cainiao1992:dev
Open

feat(opencode): add quota command and UI display#19192
cainiao1992 wants to merge 2 commits intoanomalyco:devfrom
cainiao1992:dev

Conversation

@cainiao1992
Copy link

@cainiao1992 cainiao1992 commented Mar 26, 2026

Issue for this PR

Closes #19190
Closes #9545

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Add a new opencode quota command to query provider quota information.

CLI Features:

  • opencode quota - lists all configured providers with quota
  • opencode quota google - shows Google quota

CLI Output:

3

UI Features:

  • Adds new "Quota" tab in Settings dialog
  • Displays usage with horizontal progress bars

How did you verify your code works?

  • Ran bun typecheck in all packages - passed
  • Tested CLI and UI locally

Screenshots / recordings

1 2

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

- Add opencode quota CLI command to query provider quota
- Add /global/quota API endpoint
- Add Quota tab in Settings dialog (Desktop + Web)
- Display usage with progress bars
- Update SDK with quota endpoint
- Add i18n translations for quota
@github-actions github-actions bot added the needs:compliance This means the issue will auto-close after 2 hours. label Mar 26, 2026
@github-actions
Copy link
Contributor

The following comment was made by an LLM, it may be inaccurate:

Based on my search, I found one potentially related PR:

Related PR:

The current PR explicitly closes issues #19141 and #9545. PR #9545 (feat(usage): unified usage tracking with auth refresh) also appeared in the search results but is already referenced as closed by this PR.

No other duplicate PRs detected.

@github-actions github-actions bot removed the needs:compliance This means the issue will auto-close after 2 hours. label Mar 26, 2026
@github-actions
Copy link
Contributor

Thanks for updating your PR! It now meets our contributing guidelines. 👍

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.

[FEATURE]: Add quota command to query provider quota and display usage

1 participant