-
Notifications
You must be signed in to change notification settings - Fork 2k
Feature Request: Support Qwen Cloud / DashScope pay-as-you-go API balance and usage #3553
Copy link
Copy link
Open
Labels
P2Normal priority bug or improvement with limited blast radius.Normal priority bug or improvement with limited blast radius.clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.ClawSweeper marked this issue as needing maintainer review before automation.clawsweeper:needs-product-decisionClawSweeper marked this issue as needing a product or behavior decision.ClawSweeper marked this issue as needing a product or behavior decision.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.ClawSweeper does not recommend queueing a new automated fix PR for this issue.impact:otherThis issue has meaningful maintainer-visible impact outside the owned taxonomy.This issue has meaningful maintainer-visible impact outside the owned taxonomy.issue-rating: 🌊 off-meta tidepoolIssue quality rating does not apply to this item.Issue quality rating does not apply to this item.
Description
Activity
Metadata
Metadata
Assignees
Labels
P2Normal priority bug or improvement with limited blast radius.Normal priority bug or improvement with limited blast radius.clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.ClawSweeper marked this issue as needing maintainer review before automation.clawsweeper:needs-product-decisionClawSweeper marked this issue as needing a product or behavior decision.ClawSweeper marked this issue as needing a product or behavior decision.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.ClawSweeper does not recommend queueing a new automated fix PR for this issue.impact:otherThis issue has meaningful maintainer-visible impact outside the owned taxonomy.This issue has meaningful maintainer-visible impact outside the owned taxonomy.issue-rating: 🌊 off-meta tidepoolIssue quality rating does not apply to this item.Issue quality rating does not apply to this item.
Summary
Currently, CodexBar's Qwen Cloud provider (
.qwencloud) exclusively tracks the individual Token Plan (Personal/Solo) via web console session cookies fromhome.qwencloud.com(reporting rolling 5-hour and 7-day rate windows).However, many users access Qwen models (such as Qwen 2.5 / Qwen 3 Coder, Qwen-Max, and Qwen-Plus) via standard pay-as-you-go API keys (DashScope / Qwen Cloud API keys) billed against an account cash balance or credit card, rather than a fixed Token Plan subscription.
I would like CodexBar to support tracking pay-as-you-go account balance and spend for Qwen Cloud / DashScope accounts, similar to existing API balance providers like DeepSeek (
deepseek) and Doubao (doubao).Current Behavior
qwen-cloudrequires web cookies fromhome.qwencloud.comand attempts to fetchzeldaHttp.apikeyMgr./tokenplan/personal/api/v2/*endpoints.QwenCloudProviderDescriptor.swift,supportsCreditsandsupportsTokenCostare hardcoded tofalse.Expected Behavior
Relevant Context
coding-intl.dashscope.aliyuncs.comreturn 404 for/v1/usageand/v1/quota. A billing/balance integration may need to target Alibaba Cloud BSS OpenAPI (QueryAccountBalance) or Qwen Cloud console balance endpoints.