Skip to content

quota protection #256

@mingshi2333

Description

@mingshi2333

Pre-submission checklist

  • I have searched existing issues and feature requests for duplicates
  • I have read the README

Feature description

Currently, Google seems to have implemented a stricter anti-abuse mechanism. If an account repeatedly hits its usage quota limit (exhausts the quota completely), Google detects this behavior and penalizes the account by extending the refresh time for the next quota cycle.
This makes the current strategy of "using until empty" risky, as it jeopardizes the sustainability of the accounts.

Use case

The logic should be:

  1. Monitor Usage: Track the usage percentage of the current account.
  2. Threshold Trigger: Allow users to set a safety threshold (e.g., stop at 95% or leave a buffer of X requests).

Action: When the threshold is reached:

Auto-Switch: Automatically switch to the next available account/model.

Stop: If no other accounts are available, stop sending requests immediately to prevent hitting the hard limit.

Describe alternatives you've considered Manually monitoring usage, but this is inefficient and prone to human error.

Additional context Implementing this "soft limit" will protect accounts from being flagged for abuse and ensure the quota refresh times remain normal.

Proposed implementation

No response

Alternatives considered

No response

Compliance

  • This feature is for personal development use
  • This feature does not violate or circumvent Google's Terms of Service

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/modelsModel access, Claude/Gemini specificenhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions