Repository navigation
Description
What happened
In Settings → Providers → Usage providers, clicking Add hub opens the Add a CLIProxyAPI hub dialog, which states:
"Show the quota of every account the hub pools, next to the providers on {server}. The key stays on that server."
However, the server-side CLIProxyAPI reader only recognizes three auth-files provider keys (codex, claude, and xai). Any account on the hub with another provider (for example kimi / kimi-ai, antigravity, copilot, meta, or devin) is silently filtered out before any usage is read. When a hub only holds accounts from unsupported providers, Usage → Limits reports {source}: No accounts reported. with nothing explaining that the hub returned accounts whose providers T3 Code does not read.
Note: this was identified by reading the source while planning a CLIProxyAPI deployment; no live reproduction against a running hub has been performed yet.
Diagnosis
Verified on v0.1.13-nightly.20261125.5258 (bf961f81) and unchanged on main (9b4943f9):
apps/web/src/components/settings/UsageProviderSettings.tsx(lines 47–54) offers Add hub (kind: "cliproxy") and Add HTTP source (kind: "http").apps/web/src/components/settings/AddUsageLimitSourceDialog.tsx(lines 94, 103–105) promises quotas for "every account the hub pools", even thoughdocs/user/usage.md(line 46) narrows this to "Pools Codex, Claude, and Grok accounts under Usage → Limits".apps/server/src/usage/cliproxyApi.ts(lines 285–350) definesHUB_PROVIDERSwith only three entries:codex,claude, andxai.apps/server/src/usage/cliproxyApi.ts(lines 453–466,readAccounts) fetchesv0/management/auth-filesand maps each entry throughHUB_PROVIDERS.get(account.provider), returning[]for any other provider.packages/shared/src/usageLimitsCopy.ts(lines 110–121) emits{source}: No accounts reported.wheneversource.accounts.length === 0, making a hub full of unsupported accounts indistinguishable from an empty hub.
Meanwhile, CLIProxyAPI (router-for-me/CLIProxyAPI, v8.1.x config.example.yaml) supports additional channels (vertex, aistudio, antigravity, kimi, meta, copilot, devin) plus API-key upstreams, and its Management Center (router-for-me/Cli-Proxy-API-Management-Center) reads quotas for antigravity, claude, codex, copilot, devin, kimi, meta, plugin, and xai through the same v0/management/api-call endpoint (Authorization: Bearer $TOKEN$) that cliproxyApi.ts already uses. For example, Kimi uses GET https://api.kimi.com/coding/v1/usages (kimi) or GET https://api.kimi.ai/coding/v1/usages (kimi-ai) with Authorization: Bearer $TOKEN$. (Understood that Antigravity's internal Google quota probe was intentionally removed in #43026.)
Requested changes:
- Make the gap visible instead of silently dropping accounts: align the Add a CLIProxyAPI hub dialog copy with the supported providers, and surface skipped hub accounts (e.g.
"unsupported by T3 (provider: kimi-ai)") rather than collapsing them into"No accounts reported.". - Where safe, non-spoofed quota endpoints exist, extend
HUB_PROVIDERSto support additional CLIProxyAPI channels (starting withkimi/kimi-ai, and other supported channels such ascopilot,meta, ordevin).
Steps to reproduce
Expected steps (derived from source; not yet run against a live hub):
- Run a CLIProxyAPI v8.1.x hub configured only with accounts whose
auth-filesprovideris notcodex,claude, orxai(e.g.,kimi-aiandantigravity). - In T3 Code, open Settings → Providers → Usage providers → Add hub and register the hub URL and management key.
- Open Usage → Limits.
- Expected: either the hub's account quotas are displayed, or the UI explicitly indicates that the hub's accounts use providers unsupported by T3 Code (and the Add hub dialog states which providers are supported).
- Actual (per source):
readAccountsdrops all non-codex/claude/xaientries,source.accountsis empty, and Usage → Limits shows{source}: No accounts reported.with no reason given.
Version
v0.1.13-nightly.20261125.5258 (unchanged on main at 9b4943f9 / v0.1.13; triage CLI version: N/A)
Environment
Linux x86_64 server running T3 Code as a systemd user service (t3 serve), accessed via the web UI over LAN from a Windows + WSL client. Planned hub: CLIProxyAPI v8.1.x with Management Center (accounts: Kimi kimi-ai and a Z.ai API key).
Evidence
// apps/server/src/usage/cliproxyApi.ts:285-290
// Keyed by the auth-files `provider`; accounts of any other provider are skipped.
const HUB_PROVIDERS = new Map<string, HubProvider>([
["codex", CODEX_HUB],
["claude", { /* api.anthropic.com/api/oauth/usage */ }],
["xai", { /* grok usage endpoint */ }],
]);
// apps/server/src/usage/cliproxyApi.ts:463-466
const readable = accounts.flatMap((account) => {
const provider = HUB_PROVIDERS.get(account.provider);
return provider && !account.disabled ? [{ account, provider }] : [];
});
// apps/web/src/components/settings/AddUsageLimitSourceDialog.tsx:102-105
// "Show the quota of every account the hub pools, next to the providers on {environmentLabel}. The key stays on that server."
// packages/shared/src/usageLimitsCopy.ts:110-121
// When source.accounts.length === 0 -> "{source}: No accounts reported."Related issues
- CLIProxy usage hub reports "No accounts reported" for plugin-based providers (opencode-go) #24680 (closed as not planned): reported
"No accounts reported"for plugin-based CLIProxy providers (opencode-go) and proposed addingquota/providers+quota/fetch. - Show Devin usage for ACP sessions and CLIProxyAPI accounts #40937 (closed as not planned) / PR feat(usage): show Devin quota from CLIProxy hubs in the Limits view #39588 (open): Devin quota support for CLIProxyAPI hubs.
- [Bug]: Usage → Limits silently omits connected Antigravity accounts after #43026 #43172 (closed as not planned) and PR fix(server): stop reading Antigravity usage limits from Google's internal APIs #43026 (merged): Antigravity quota probe was deliberately removed from
cliproxyApi.tsto avoid calling Google's internal quota API. - This report is distinct because it documents the mismatch between the Add a CLIProxyAPI hub dialog copy ("every account the hub pools") and the silent drop /
"No accounts reported."UI behavior for all unsupported channels, alongside Kimi (kimi/kimi-ai) hub support.
Fix applied or workaround
T3 Code supports an HTTP quota source (usageLimitSources kind "http", packages/contracts/src/settings.ts:1637), which can be used as a workaround, but it requires running and maintaining a separate custom quota-reporter service alongside CLIProxyAPI.
Filed by
antigravity (gemini-4-neon) via t3 triage
Activity