AI Accounts & Routing

Quota Tracking & Auto-Switch

Monitor 5-hour and weekly usage windows across accounts, hand off mid-thread without losing context, and auto-resume when limits reset.

AI coding subscriptions impose burst and weekly limits that normally interrupt you right in the middle of a task. LightCode tracks every account's remaining capacity and handles limit hits automatically.

Live 5-hour & weekly quota tracking#

In the left sidebar under Accounts & Quota, each connected account displays live usage bars:

  • 5h window: Tracks short-term burst usage and shows when the 5-hour window resets.
  • Week window: Tracks weekly capacity across providers (including model-specific buckets such as Claude/GPT vs. Gemini pools on Antigravity, or current/weekly bars on Gemini web).
  • Pause or re-open anytime: Disable an account temporarily without deleting it, or click to open its dedicated browser profile if a session expires and needs a quick re-login.

Smart account selection & prompt-cache stability#

When a session uses Auto or runs on a provider with multiple accounts:

  1. LightCode picks the highest-priority account that still has comfortable quota headroom.
  2. Stickiness preserves prompt cache: Once a thread starts on a healthy account, LightCode keeps subsequent turns on that same account as long as it has room. Avoiding unnecessary bouncing preserves provider prompt caching, cuts duplicate token reads, and keeps responses fast.
  3. Model-family fallback: If one model tier on an account hits its cap while other models on the same account remain available, LightCode adapts cleanly.

Context-preserving failover mid-thread#

If the active account reaches its usage limit or enters cooldown during a run:

  • LightCode detects the rate-limit event or rejection immediately and switches to your next available account in priority order.
  • Instead of starting from a blank slate, LightCode automatically transfers a structured context handoff—summarizing the conversation goals, decisions made, and files modified so far—so the backup account picks up right where the first left off.

Auto-resume after quota resets or restarts#

  • When every account is exhausted: If all eligible accounts for a task run out of quota during a long job (such as a multi-hour Master Agent run), LightCode pauses the session cleanly, displays Paused · waiting for quota, and automatically resumes as soon as the earliest account's quota window resets.
  • Crash & reboot recovery: If your computer restarts, sleeps unexpectedly, or LightCode closes mid-turn, LightCode detects interrupted runs on the next launch and resumes them cleanly from their last saved state.