Repository navigation
Qoder CN (qoderclicn): surface remaining plan quota via the official Agent SDK / HTTP quota source #42038
albertmaxwell91
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
What
T3 Code surfaces usage limits for Antigravity and, through CLIProxy hubs, for Codex / Claude / Grok. A Qoder CN provider (ACP local command
qoderclicn --acp) never shows remaining plan quota, even though Qoder models expose credit multipliers and text generation now also consumes Qoder credits.Current behavior
acpRegistry, sourcelocal, executableqoderclicn, argument--acp; agentInfoqoder-cli-cn1.1.96.usageLimits, so Usage → Limits has no Qoder entry.usageLimitSourcesonly accepts kindcliproxy, and its provider map is codex / claude / xai / antigravity; Qoder is not included.qoderclicn status --output json,--list-models, and ACPsession/newdo not return quota. The CLI's raw HTTP quota endpoints (/api/v2/quota/usage,/api/v2/user/plan) require internal signing and response decryption.Feasibility
Qoder's official Agent SDK exposes the quota through the local CLI login:
@qodercn-ai/qodercn-agent-sdk(CN) and@qoder-ai/qoder-agent-sdk(global)query({ auth: qodercliAuth(), ... }).getUsageInfo()returns the account quota (plan / add-on / org credits, usage percentage, reset info).A community plugin already uses this to show Qoder and Qoder CN credits, so no credential scraping is required.
Proposal
getUsageInfo(); alternatively add a first-class Qoder usage driver in T3.total_creditsfromqoderclicn -p --output-format jsonto show consumed credits.Related
provider_errorinstead ofusage_limitEnvironment
All reactions