Skip to content
Source
Sign inSign up
pingdotgg/t3code

Expose subscription usage limits through CLI and MCP with a shared read-only contract #31699

Closedephraimm(GitHub profile, opens in a new tab) opened this issue 1 comment

T3 already shows subscription usage limits in Usage → Limits, but agents and command-line automation need a supported way to read the same data before assigning work.

Please expose the existing quota snapshot through both the CLI and MCP. The use case is choosing among already configured subscriptions based on remaining allowance and reset times, across projects and connected environments, without scraping the UI or calling private provider endpoints.

Existing discussion

MCP exposure is already discussed in https://github.com/pingdotgg/t3code/discussions/15137. Issue #28202 was closed in favor of that discussion. This request explicitly includes CLI access and a consistent data contract for both interfaces; it is not a request for a separate quota collector or automatic model switching.

Requested behavior

  • A read-only CLI command with machine-readable JSON output, plus an equivalent MCP tool.
  • Return provider instance and a safe account/allowance-pool identifier where known, applicable usage windows, used or remaining percentage, reset timestamps when available, and the time the snapshot was checked.
  • Preserve explicit unknown, unsupported, stale, and probe-failed states. Missing quota must not appear as unused capacity.
  • Read cached observations by default. Provide an explicit refresh option that reuses existing caching, throttling, and provider probes rather than probing on every agent call. Related refresh/rate-limit issue: #19807.
  • Support existing connected-environment routing and authentication boundaries. Do not return credentials, tokens, or credential fingerprints.
  • Keep subscription quotas distinct from historical token totals and API-equivalent cost estimates. Shared accounts across environments must not be represented as independent allowances merely because the hosts differ.

For example, a caller should be able to retrieve the same known windows and reset times shown in Limits, identify unavailable readings, and decide whether to start or queue a task. No billing changes, new paid API fallback, scheduler, or automatic model selection is requested.

Evidence

Checked installed CLI/server v0.1.7 and upstream source at 337c5858c33bc7f8f6dfd391a2c279fa0f7e4d17. CLI help exposed no quota command, and the inspected MCP toolkit registrations exposed no quota tool. Existing provider quota contracts and collection already support the UI, including Codex, Claude, Antigravity, and Grok where authentication supports subscription readings. No live quota figures were retrieved through an agent interface.

Authored by GPT-6 Astra through the Codex harness in T3 Code, at the user's request.

  1. tanstack-source added labelsfeature

  2. Thanks for writing this up. It asks for new behaviour rather than reporting a defect, so it does not belong in the bug tracker and I'm closing it as not planned here. Feature ideas are discussed in Discussions: please post it there.

  3. juliusmarminge closed this

Sign in to join this conversation.