Skip to content

[Feature]: grok account , add auto switch account when limit exceed for all providers #8121

Description

@mohdakil2426

Problem or use case

add grok account login same like all others ai Provider accounts.
add auto switch account when limit exceed.

Proposed solution

user have many accounts and its annoying to change account between sessions,
working in a sesstions account limit exceed sesstions stopped, so add auto switch when account limit below 5% siwtch to other so sesstion wont stop. also add grok oauth account provider since grok 4.5 a great model.

Alternatives or additional context

No response

Activity

  1. added theissue type on Jul 12, 2026
  2. Tauri-EPO commented on Aug 16, 2026

    @Tauri-EPO
    Contributor

    Same request as #12098 / #9565, with a Claude-shaped gap that the existing PRs don't cover.

    Orca already has the meters (ProviderRateLimits.session / .weekly as usedPercent in src/shared/rate-limit-types.ts; Claude statusline five_hour / seven_day in src/shared/claude-statusline-rate-limits.ts) and the switcher (claudeAccounts.select → doSelectAccount, which does not kill the live PTY). What is missing is an opt-in trigger: when 5h or weekly hits a watermark (e.g. 99%, whichever first), call that same selectAccount for the next account with headroom.

    That is before the vendor 429, and for Claude it can stay on the same terminal — unlike PR #5778 (restart + continue after limit text) and PR #14290 (Codex, new Dispatch after proven exhaustion).

    Posted the full recorte on #12098 so we don't fork the thread. Grok/Kimi still need a provider-specific exhaustion signal; Claude already has the percentage.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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