Repository navigation
[Plugin] Weekly Quota Router: earliest weekly reset with five-hour fallback and return #7604
moebis
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I published Weekly Quota Router, a community Go scheduler plugin for CLIProxyAPI:
https://github.com/moebis/cliproxyapi-weekly-quota-router
It selects the usable Claude account with the earliest weekly reset. Remaining percentage and five-hour reset order do not rank accounts.
For example, A resets weekly tomorrow and B resets in four days. The plugin uses A, falls back to B when A exhausts its five-hour quota, then returns to A after fresh quota evidence confirms replenishment. A passed reset timestamp alone does not restore an account.
It uses the documented C ABI and keeps the official core unchanged. Selection uses cached quota evidence. Background polling has bounded intervals, post-reset refresh, and backoff. It preserves host candidate filters, priorities, model eligibility, cooldowns, and explicit pins.
Shadow mode is the default. Status excludes tokens and raw credential identifiers. Active picks bypass core affinity, so account changes can add cache writes. The plugin does not move running streams or replay partially delivered output.
Verified platform: official CLIProxyAPI 8.0.72, darwin/arm64, ABI 1/schema 10. Vet, race tests, and native loading tests use synthetic accounts and local mock endpoints.
Install: the repository has source instructions and a prebuilt Apple Silicon release with the store ZIP format and
checksums.txt:https://github.com/moebis/cliproxyapi-weekly-quota-router/releases/tag/v0.1.2
Custom store source:
https://raw.githubusercontent.com/moebis/cliproxyapi-weekly-quota-router/main/registry.json
The published v0.1.2 package also passed installation through the real store API of a disposable official 8.0.72 host. The check verified the checksum, installed library bytes, native loading, and shadow default.
The registry entry is available for maintainers to review for the official catalog. The plugin is not yet in that catalog.
This MIT implementation derives from quota-reset-router v0.2.1 by Shreyash (webdevcaptain). Required attribution is preserved. Thanks to that project and the CLIProxyAPI maintainers.
All reactions