🎁 Get the FREE AI Skills Starter Guide β€” Subscribe β†’
BytesAgainBytesAgain
πŸ¦€ ClawHub

qwencloud-usage

by @cuixiaoyang123

[QwenCloud] Manage account auth and query usage/billing. Use for: login, logout, check usage, view billing, free tier quota, coding plan status, pay-as-you-g...

πŸ’‘ Examples

All commands support --format json for structured, machine-parseable output (recommended default), and --format text for clean plaintext output.

For agent use, always prefer --format json and parse the JSON response. Only fall back to --format text when the user explicitly requests human-readable plaintext.

Never parse table format programmatically β€” it contains ANSI codes and Unicode borders.

Auth Commands

qwencloud auth status β€” Check current authentication state

qwencloud auth status --format json

qwencloud auth logout β€” Revoke session server-side and clear local credentials

qwencloud auth logout

Usage Commands

qwencloud usage summary β€” View usage summary (free tier, coding plan, pay-as-you-go)

qwencloud usage summary                      # Current month
qwencloud usage summary --period last-month  # Last month
qwencloud usage summary --from 2026-03-01 --to 2026-03-31
qwencloud usage summary --format json        # JSON output

Period presets: today, yesterday, week, month (default), last-month, quarter, year, YYYY-MM

qwencloud usage breakdown β€” View model usage breakdown

qwencloud usage breakdown --model qwen3.6-plus --days 7
qwencloud usage breakdown --model qwen3.5-plus --period 2026-03
qwencloud usage breakdown --model qwen-plus --period 2026-03 --granularity month
qwencloud usage breakdown --model qwen3.6-plus --format json

qwencloud usage free-tier β€” View free tier quota details

qwencloud usage free-tier
qwencloud usage free-tier --format json

qwencloud usage payg β€” View pay-as-you-go billing details

qwencloud usage payg
qwencloud usage payg --format json

Breakdown Parameters: How to Think About Them

Three independent dimensions β€” combine them freely:

--model (required) + date range + granularity

Model scope:

  • --model β€” single model (e.g. qwen3.5-plus); required for breakdown
  • Date range β€” three patterns, pick by how the user described the period:

    | Pattern | When to use | How it works | |---|---|---| | --period YYYY-MM | User names a specific month ("March", "last April") | Exact calendar month, start to end | | --period | User describes a relative period | last-month = previous full month; month = this month so far; quarter = this calendar quarter so far | | --days N | User says "last N days" | Rolling window backwards from today, crosses month boundaries naturally | | --from YYYY-MM-DD --to YYYY-MM-DD | User gives explicit dates or a named quarter/range | Full control, use when other patterns don't fit |

    Granularity β€” determines the grouping of results, not the range:

  • day (default) β€” one row per day; good for spotting usage spikes
  • month β€” one row per calendar month; good for multi-month trends
  • quarter β€” one row per quarter; good for Q-over-Q comparison
  • Classic examples:

    # Single model, single month, daily detail
    qwencloud usage breakdown --model qwen3.5-plus --period 2026-03

    Single model, last 3 months, monthly summary

    qwencloud usage breakdown --model qwen3.5-plus --days 90 --granularity month

    Single model, specific quarter, quarterly rollup

    qwencloud usage breakdown --model qwen3.5-plus --from 2026-01-01 --to 2026-03-31 --granularity quarter

    Single model, this month, daily breakdown

    qwencloud usage breakdown --model qwen3.6-plus --period month

    βš™οΈ Configuration

  • QwenCloud CLI must be installed. Verify with:
  • qwencloud version
    

    If not installed, run:

    npm install -g @qwencloud/qwencloud-cli
    

    Node.js >= 18 required.

  • Authentication: No configuration needed on first use. The CLI handles non-TTY detection and safe login automatically (see Authentication Flow below).
  • Environment Variables

    | Variable | Description | |-----------------------------|----------------------------------------------------------------------------------------------| | QWENCLOUD_KEYRING | Set to plaintext, no, 0, false, or off to opt out of OS keychain credential storage. | | QWENCLOUD_CREDENTIALS_DIR | Override file-based credential directory (default: ~/.qwencloud/credentials). |

    View on ClawHub
    TERMINAL
    clawhub install qwencloud-usage

    πŸ§ͺ Use this skill with your agent

    Most visitors already have an agent. Pick your environment, install or copy the workflow, then run the smoke-test prompt above.

    πŸ” Can't find the right skill?

    Search 60,000+ AI agent skills β€” free, no login needed.

    Search Skills β†’