Skip to content

CLIProxyAPI hub dialog promises every pooled account, but unsupported providers are silently dropped as "No accounts reported." #43763

Done

Description

@TheAsda

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 though docs/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) defines HUB_PROVIDERS with only three entries: codex, claude, and xai.
  • apps/server/src/usage/cliproxyApi.ts (lines 453–466, readAccounts) fetches v0/management/auth-files and maps each entry through HUB_PROVIDERS.get(account.provider), returning [] for any other provider.
  • packages/shared/src/usageLimitsCopy.ts (lines 110–121) emits {source}: No accounts reported. whenever source.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:

  1. 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.".
  2. Where safe, non-spoofed quota endpoints exist, extend HUB_PROVIDERS to support additional CLIProxyAPI channels (starting with kimi / kimi-ai, and other supported channels such as copilot, meta, or devin).

Steps to reproduce

Expected steps (derived from source; not yet run against a live hub):

  1. Run a CLIProxyAPI v8.1.x hub configured only with accounts whose auth-files provider is not codex, claude, or xai (e.g., kimi-ai and antigravity).
  2. In T3 Code, open Settings → Providers → Usage providers → Add hub and register the hub URL and management key.
  3. Open Usage → Limits.
  4. 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).
  5. Actual (per source): readAccounts drops all non-codex/claude/xai entries, source.accounts is 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

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

  1. added
    via-triage
    on Nov 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    via-triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions