[FEATURE]: Expose endpoint to query whether the user is rate-limited for a given provider/model #3055

Open
opened 2026-02-16 17:38:24 -05:00 by yindo · 0 comments
Owner

Originally created by @johnsaigle on GitHub (Nov 22, 2025).

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

I'd like to make a tool where I can queue up prompts in the future when I'm rate-limited on e.g. Claude Pro. In order to do this, it would be helpful to be able to query opencode to know whether I'm rate-limited for a given provide/model.

I'm imagining a simple endpoint that takes a provider and/or model and simply returns a boolean about whether the current user is rate-limited or not. I believe that opencode already has a way to know this because it can provide error messages in the TUI letting the user know that the next request would exceed their account's usage.

Originally created by @johnsaigle on GitHub (Nov 22, 2025). ### Feature hasn't been suggested before. - [x] I have verified this feature I'm about to request hasn't been suggested before. ### Describe the enhancement you want to request I'd like to make a tool where I can queue up prompts in the future when I'm rate-limited on e.g. Claude Pro. In order to do this, it would be helpful to be able to query opencode to know whether I'm rate-limited for a given provide/model. I'm imagining a simple endpoint that takes a provider and/or model and simply returns a boolean about whether the current user is rate-limited or not. I believe that opencode already has a way to know this because it can provide error messages in the TUI letting the user know that the next request would exceed their account's usage.
yindo added the discussion label 2026-02-16 17:38:24 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#3055