Skip to content

feat: add provider usage center#11611

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

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

Conversation

@lambertjosh

@lambertjosh lambertjosh commented Jun 24, 2026

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 provider-plan sources cover Kilo-managed MiniMax subscriptions through Cloud tRPC and direct MiniMax coding-plan credentials. Personal auto-top-up status is included in the existing account/profile presentation. Current main remains the sole owner of Kilo Pass usage and session/model accounting, avoiding duplicate transports and cards.

MiniMax usage statuses that indicate resources outside the current plan render as not in plan instead of unavailable.

Why

Users need one current-state view of provider 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.

@lambertjosh

lambertjosh commented Jun 28, 2026

Copy link
Copy Markdown
Contributor Author

Minimax direct plan:

image

Note was not able to test subscription plan through Cloud, since my accounts don't have one.

lambertjosh and others added 21 commits July 9, 2026 10:28
…enter

# Conflicts:
#	packages/kilo-vscode/src/KiloProvider.ts
#	packages/kilo-vscode/webview-ui/src/components/profile/ProfileView.tsx
#	packages/kilo-vscode/webview-ui/src/types/messages/webview-messages.ts
#	packages/opencode/src/kilocode/server/httpapi/groups/kilocode.ts
#	packages/opencode/src/kilocode/server/httpapi/handlers/kilocode.ts
#	packages/opencode/src/kilocode/server/httpapi/server.ts
#	packages/opencode/test/kilocode/server/httpapi-public.test.ts
#	packages/sdk/js/src/v2/gen/sdk.gen.ts
#	packages/sdk/js/src/v2/gen/types.gen.ts
#	packages/sdk/openapi.json
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