mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-07-31 04:12:10 +03:00
feat(quota): seed claude plan preset (percent 5h+weekly) in planRegistry
Claude Code (Pro/Max) is a percentage-of-plan quota (5h rolling + weekly cap, shared Claude+Code); exact token caps are unpublished/task-variable so percent is the practical unit. Unblocks the PoolWizard 'Limite' pre-fill for claude pools. Researched plan structures (codex/claude/glm/kimi/minimax/xiaomi) captured in the quota-share redesign plan.
This commit is contained in:
@@ -13,6 +13,17 @@ const KNOWN_PLANS: Record<string, KnownPlanShape> = {
|
||||
{ unit: "percent", window: "weekly", limit: 100 },
|
||||
],
|
||||
},
|
||||
// Claude Code (Pro / Max 5x / Max 20x) is a percentage-of-plan quota over a 5h
|
||||
// rolling window + a weekly cap, shared across Claude and Claude Code. The exact
|
||||
// token caps are not published and vary by task, so % is the practical unit; the
|
||||
// provider reports % used and fair-share attributes it across keys by local count.
|
||||
claude: {
|
||||
provider: "claude",
|
||||
dimensions: [
|
||||
{ unit: "percent", window: "5h", limit: 100 },
|
||||
{ unit: "percent", window: "weekly", limit: 100 },
|
||||
],
|
||||
},
|
||||
glm: {
|
||||
provider: "glm",
|
||||
dimensions: [
|
||||
|
||||
Reference in New Issue
Block a user