Skip to content

[feature] Sequential Account Usage Mode (Drain One Account Before Switching) #509

@snake302

Description

@snake302

Problem Statement

I have two Codex accounts with independent rolling quota windows.

Currently, requests may be distributed across both accounts. While this helps balance usage, it also causes both accounts to consume quota at roughly the same time. As a result, both accounts may enter cooldown or become unavailable around the same period.

For my workflow, a sequential strategy would be more efficient.

Example:

  • Start using Account A.
  • Continue using Account A until it reaches its quota limit or becomes unavailable.
  • Automatically switch to Account B.
  • Continue working on Account B while Account A's quota window recovers.

By the time Account B is heavily utilized, Account A may already have recovered enough quota to become available again.

This creates a staggered recovery pattern and can provide longer uninterrupted working sessions compared to consuming quota from both accounts simultaneously.

Proposed Solution

Add an optional scheduling mode such as:

  • Sequential
  • Drain First

Behavior:

  1. Select a primary account.
  2. Route all requests to that account while it remains healthy and available.
  3. When the account becomes unavailable, delayed, rate limited, or reaches a configurable threshold, automatically switch to the next account.
  4. Continue through the account pool sequentially.
  5. Once an earlier account recovers, it becomes eligible again.

This mode should be optional and coexist with the current balancing and affinity strategies.

Alternatives Considered

Current workaround:

  • Manually pin Account A.
  • Use it until quota is exhausted.
  • Manually switch to Account B.
  • Repeat throughout the day.

This works well but requires manual intervention.

Scope

In Scope

  • Sequential account usage.
  • Automatic failover between accounts.
  • Optional configurable switch thresholds.
  • Compatibility with existing forecasting and health checks.

Validation Plan

Using two accounts:

  1. Enable Sequential / Drain First mode.
  2. Generate continuous workload.
  3. Verify that all requests initially use Account A.
  4. Verify that Account B remains mostly untouched.
  5. Verify automatic failover to Account B when Account A becomes unavailable.
  6. Verify that Account A can become available again after its quota window recovers.

Expected result:

Instead of both accounts reaching cooldown at roughly the same time, quota recovery becomes staggered, allowing for longer uninterrupted usage.

Compliance Confirmation

  • This proposal is for legitimate personal development workflows.
  • This proposal does not request bypassing OpenAI controls or policies.
  • This proposal does not introduce multi-tenant resale behavior.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions