Repository navigation
Pool every provider's limits, weigh accounts by plan, add a reset calendar - #1
Merged
Merged
Conversation
…endar One home hub should treat every subscription it holds the same way, and an account on a bigger plan should count for more. This brings Grok, Gemini (Antigravity), Kimi, Muse, Devin and Mistral up to what Claude and Codex already had, and makes pooled figures and routing plan-aware. - Quota history records every provider, and each one gets the same pool card on the Overview page. Pool figures read in percent of the heaviest plan (Max 5x 100% + Pro 20% = "of 120%"). - A Resets view shows every account window on a calendar with the next resets and the allowance still unspent on each. Account details open in the table row instead of separate cards. - soonest-reset-first spreads ties by plan weight, guards 5-hour headroom, and no longer sends work to a spent account while one with allowance is only on hold. - Burn rate copes with whole-percent readings and bursty use; projections are capped by what the 5-hour window allows. - Mistral API-key upstreams report their monthly API and Vibe Code budgets. - A Windows migration script moves a CLIProxyAPI hub over in place, and `doctor -check-config` validates a config before the switch. - Guides for every provider, T3 Code environments over Tailscale, and box setup. New logo. T3 Code is unchanged; `/v0/management` stays pinned by its contract test. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…r month History is always fetched seven days back, the range the burn estimate reads, and a month-long window renews on the calendar month instead of every 720 hours. Both found in review. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
One of their tests fails intermittently on CI: the terminal error frame is sometimes lost to an abnormal close. The code is hours old upstream. The hub's own fix (no fallback to a spent account while another is on hold) stays. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The hub treated Claude and Codex as first-class and everything else as an afterthought: Grok and Gemini had no pooled limits, every account counted the same whatever its plan, and the panel had no single place to see when each allowance resets. This makes every provider the hub holds work the same way.
What changes for someone running a hub
soonest-reset-firstspreads ties by plan weight and keeps new conversations off an account with little 5-hour headroom left. It also no longer sends work to an account it knows is spent while the account with allowance is only on a short hold (seen on a live hub: one "overloaded" answer led to a two-day "usage limit" refusal).api.mistral.aiAPI-key upstream reports its monthly API and Vibe Code budgets as money spent of the monthly amount.scripts/migrate-windows.ps1replaces a CLIProxyAPI hub in place (backup, detached switch, health checks, rollback), andt3code-proxy doctor -check-configvalidates a config first.T3 Code needs no change. The
/v0/managementendpoints it reads are pinned bytest/t3code_contract_test.go, and Mistral accounts stay out ofauth-files.Behavior changes to know about
routing.plan-headroom-reserve: 10;0turns it off).prolite5,pro20,promax50; xAIsupergrok_heavy10. The Codexproandpromaxfigures are estimates; override underrouting.plan-weights.quota-history.providerslist, every supported provider is polled.Checks
make verifypasses locally: lint, all Go tests, build, and 2233 web tests. The Windows migration ran on a real hub (8 seconds, no rollback, all accounts present). Quota reads for Claude, Codex, Grok and Antigravity ran against live accounts; Mistral's two billing endpoints were probed live. Kimi, Muse and Devin quota reads are fixture-tested only.Council review
Rounds: 7
Rounds 1 to 4 reviewed the first candidate; rounds 5 to 7 reviewed the later additions. Fable's seat was not run in rounds 6 and 7 (the candidate changed mid-round, then the Fable allowance ran low). No reviewer found a blocker in round 7; its findings are fixed in this branch.
Created with Claude Fable 5.2 in Claude Code, with Claude Opus 5.5, GPT-6.1 Sol, Gemini 3.8 Flash and Grok 4.7 subagents.
🤖 Generated with Claude Code