Skip to content

feat(coding-plans): expose managed plan usage#4220

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

feat(coding-plans): expose managed plan usage#4220
lambertjosh wants to merge 3 commits into
mainfrom
feat/provider-usage-center

Conversation

@lambertjosh

Copy link
Copy Markdown
Contributor

What changed

Expose current Kilo-managed MiniMax quota through the existing authenticated Cloud tRPC transport. The new owner-scoped codingPlans.getUsage procedure validates the live subscription and retained inventory assignment, decrypts the managed credential server-side, and returns a bounded allowlisted provider projection.

Also extend the existing auto-top-up state with threshold and configuration metadata so Kilo clients can present personal billing status without introducing a separate endpoint.

Why

CLI and extension clients need current plan quota while keeping managed credentials, inventory metadata, provider errors, and billing history inside Cloud. This preserves the existing /api/trpc architecture and keeps quota authorization independent from the installed BYOK routing entry.

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