This is a helper tool for people who run Sub2API (a service that manages AI API accounts). It automatically watches OAuth accounts for OpenAI and Anthropic, and when an account is about to hit its usage limit, it safely marks that account as 'sleeping' until the limit resets. This prevents accounts from getting suspended for overuse. The plugin runs alongside Sub2API, reads from the same database, and can be configured through a simple web dashboard. It does not call any AI services directly — it only reads usage data that's already stored and updates rate-limit status fields.
How It Works
You're running Sub2API to manage multiple AI service accounts, and you're worried about some accounts hitting their usage limits unexpectedly.
The plugin automatically watches your OAuth accounts and puts them to sleep before they get suspended, then wakes them up when the limit resets.
You run the plugin as a sidecar next to your Sub2API. It reads from your database and knows which accounts need attention.
You set a threshold like 90% — when any account reaches that usage, the plugin automatically marks it as sleeping until the reset window passes.
The plugin scans every minute (or whatever you set) and handles everything for you
You open the admin page to see which accounts are sleeping, view events, and adjust settings anytime
Accounts that are about to hit their limit get safely paused before they cause problems, and they automatically wake up when the reset time arrives.
No more surprises — your AI accounts are managed automatically, and you can always check the dashboard to see what's happening.
Star Growth
Repurpose is a Pro feature
Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.
Unlock RepurposeSimilar repos coming soon.