Skip to content

feat: add provider usage center#11611

Draft
lambertjosh wants to merge 3 commits into
mainfrom
feat/provider-usage-center
Draft

feat: add provider usage center#11611
lambertjosh wants to merge 3 commits into
mainfrom
feat/provider-usage-center

Conversation

@lambertjosh

Copy link
Copy Markdown
Contributor

What changed

Add a secret-free Provider Usage Center shared by the CLI, TUI, SDK, and VS Code profile. Core owns provider detection, normalization, source-scoped caching, in-flight coalescing, stale fallback, and failure isolation.

The initial sources cover personal Kilo Pass state, personal auto-top-up status, Kilo-managed MiniMax plans through Cloud tRPC, and direct MiniMax coding-plan credentials. The client reuses the existing Cloud /api/trpc procedures and exposes cache-aware GET plus explicit refresh through the local CLI backend.

Why

Users need one current-state view of plan quota and balances without exposing credentials or coupling clients to provider-specific payloads. Billing history remains in Cloud, organization-scoped Kilo data is skipped, and routing state stays separate from plan/quota state.

Dependency

Requires the Cloud procedure from Kilo-Org/cloud#4220 for managed MiniMax quota.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant