Loading...
Loading...
[QianWen] Manage account auth and query usage/billing. Use for: login, logout, check usage, view billing, free tier quota, Token Plan status, pay-as-you-go costs. Skip for: model browsing, non-account tasks.
npx skill4agent add qianwen-ai/qianwen-ai qianwen-usageqianwen versionnpm install -g @qianwenai/qianwen-cli| Variable | Description |
|---|---|
| Set to |
| Override file-based credential directory (default: |
qianwen auth status --format jsonauthenticated: trueqianwen auth login --init-only --format jsonverification_urlqianwen auth login --complete --format jsonsuccessqianwen auth status --format jsonauthenticated: trueqianwen auth login --init-only --format jsoneventsalready_authenticateddevice_codeverification_urlopen "$VERIFICATION_URL" # macOS
xdg-open "$VERIFICATION_URL" # Linux
start "" "$VERIFICATION_URL" # Windowsqianwen auth login --complete --format jsoneventssuccessexpirederrorqianwen auth login--init-only--complete{
"events": [
{"event": "device_code", "verification_url": "...", "expires_in": 300},
{"event": "success", "authenticated": true, "user": {"aliyunId": "..."}}
]
}already_authenticateddevice_codesuccessexpirederrorpending--complete--complete--init-only--format json--format text--format json--format texttableqianwen auth statusqianwen auth status --format jsonqianwen auth logoutqianwen auth logoutqianwen usage summaryqianwen usage summary # Current month
qianwen usage summary --period last-month # Last month
qianwen usage summary --from 2026-03-01 --to 2026-03-31
qianwen usage summary --format json # JSON outputtodayyesterdayweekmonthlast-monthquarteryearYYYY-MMqianwen usage breakdownqianwen usage breakdown --model qwen3.6-plus --days 7
qianwen usage breakdown --model qwen3.5-plus --period 2026-03
qianwen usage breakdown --model qwen-plus --period 2026-03 --granularity month
qianwen usage breakdown --model qwen3.6-plus --format jsonqianwen usage free-tierqianwen usage free-tier
qianwen usage free-tier --format jsonqianwen usage paygqianwen usage payg
qianwen usage payg --format json--model--model <id>qwen3.5-plus| Pattern | When to use | How it works |
|---|---|---|
| User names a specific month ("March", "last April") | Exact calendar month, start to end |
| User describes a relative period | |
| User says "last N days" | Rolling window backwards from today, crosses month boundaries naturally |
| User gives explicit dates or a named quarter/range | Full control, use when other patterns don't fit |
daymonthquarter# Single model, single month, daily detail
qianwen usage breakdown --model qwen3.5-plus --period 2026-03
# Single model, last 3 months, monthly summary
qianwen usage breakdown --model qwen3.5-plus --days 90 --granularity month
# Single model, specific quarter, quarterly rollup
qianwen usage breakdown --model qwen3.5-plus --from 2026-01-01 --to 2026-03-31 --granularity quarter
# Single model, this month, daily breakdown
qianwen usage breakdown --model qwen3.6-plus --period monthauto--format json--format jsonqianwen usage summary --period month --format json{
"period": { "from": "2026-04-01", "to": "2026-04-24" },
"free_tier": [
{ "model_id": "qwen3.6-plus", "quota": { "remaining": 850000, "total": 1000000, "unit": "tokens", "used_pct": 15 } }
],
"coding_plan": {
"subscribed": true,
"plan": "PRO",
"windows": {
"per_5h": { "remaining": 4800, "total": 6000, "used_pct": 20 },
"weekly": { "remaining": 38200, "total": 45000, "used_pct": 15 },
"monthly": { "remaining": 82500, "total": 90000, "used_pct": 8 }
}
},
"pay_as_you_go": {
"models": [
{ "model_id": "qwen3.6-plus", "usage": { "tokens_total": 480000 }, "cost": 0.38, "currency": "USD" },
{ "model_id": "qwen-plus", "usage": { "tokens_total": 460000 }, "cost": 0.13, "currency": "USD" }
],
"total": { "cost": 0.51, "currency": "USD" }
}
}--format textqianwen usage summary --period month --format textUsage Summary · 2026-04-10
-- Free Tier Quota -------------------------------------------------------
Model Remaining Total Progress
qwen3.6-plus 850K tokens 1M tokens 85% left
wan2.6-t2i 38 images 50 images 76% left
--------------------------------------------------------------------------
-- Token Plan · Token Plan Team Edition - Standard Seat · 生效中-------
Usage: 25K / 25K Credits
Quota Left: 100%
Status: 生效中
Resets: 2026-06-01
--------------------------------------------------------------------------
-- Pay-as-you-go · 2026-04-01 → 2026-04-10 -------------------------------
Model Usage Cost
qwen3.6-plus 480K tok $0.38
qwen-plus 460K tok $0.13
--------------------------------------------------------------------------
Total — $0.51--format json-----format text---Your QianWen usage for April:
**Free Tier**: qwen3.6-plus has 85% remaining (850K / 1M tokens), wan2.6-t2i has 76% remaining (38 / 50 images).
**Token Plan (PRO)**: 8% used this month (82.5K / 90K requests).
**Pay-as-you-go**: $0.51 total — qwen3.6-plus $0.38, qwen-plus $0.13.
---
**💡 Analysis**: Your qwen3.6-plus free tier is 85% remaining...[CLI text output - exactly as-is]
---
**💡 Analysis**: Your qwen3.6-plus free tier is 85% remaining...Here's your usage:
- qwen3.6-plus: 850K tokens remaining (85% left)| Code | Meaning |
|---|---|
| 0 | Success |
| 1 | General/usage error |
| 2 | Authentication error |
| 3 | Network error |
| 4 | Configuration error |
| 130 | Interrupted |
qianwen version --check--modelqianwen usage summary