Community编程与开发github.com

qianwen-ai/qianwen-usage

管理通义千问账户认证并查询使用量和账单。适用于:登录、注销、查看使用量、查看账单、免费额度、Token 计划状态、按量付费成本。跳过:浏览模型、非账户相关任务。

qianwen-usage 是什么?

这是一个专为通义千问设计的AI Agent工具技能,用于管理账户认证和查询使用量/账单信息。开发者可以通过此技能实现登录(set-qw-ak)、注销(clear-qw-ak)、查看总使用量(view-usage)、查看账单(view-billing)、查看免费额度(view-free-tier)等操作,并支持查询Token计划状态(view-token-plan)和按量付费成本(view-paygo-costs)。该技能适用于Claude Code、Cursor、Codex等主流AI Agent平台,通过封装通义千问API实现对账户资源和消费情况的全面管理,帮助开发者快速获取账户状态信息而无需手动操作控制台。对于模型浏览或非账户相关的任务,应使用其他技能。

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/qianwen-ai/qianwen-ai/tree/main/skills/qianwen-usage

Installed? Explore more 编程与开发 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

qianwen-usage 是做什么的?

【通义千问】管理账户认证并查询使用量/账单。适用于:登录、注销、查看使用量、查看账单、免费额度、Token 计划状态、按量付费成本。跳过:浏览模型、非账户相关任务。

功能

  • 登录 (set-qw-ak):设置通义千问的访问密钥,用于后续所有需要认证的操作。
  • 注销 (clear-qw-ak):清除已存储的访问密钥,退出当前账户认证状态。
  • 查看使用量 (view-usage):查询当前账户的使用量汇总,包括已用配额和剩余配额。
  • 查看账单 (view-billing):查看账户的账单记录,包括历史消费和待支付金额。
  • 查看免费额度 (view-free-tier):查询账户的免费额度使用情况。
  • 查看 Token 计划状态 (view-token-plan):查询 Token 计划的购买状态、剩余 Token 数及过期时间。
  • 查看按量付费成本 (view-paygo-costs):查询按量付费模式下的累计消费金额。

使用方法

  1. 首先使用 set-qw-ak 登录,需要提供通义千问的 API Key。
  2. 登录成功后,可以调用其他查询命令获取账户相关信息。
  3. 使用完毕后,建议调用 clear-qw-ak 注销,确保密钥安全。

注意事项

  • 该技能只处理与账户认证和使用量/账单相关的任务。
  • 对于模型浏览、对话交互等非账户任务,请使用其他技能。
  • 密钥信息会在会话期间缓存,但推荐在不再需要时及时清除。

Individual skills in this repo

This repo contains 8 individual skills — each has its own dedicated page.

qianwen-ai/qianwen-audio-tts

[QianWen] Synthesize speech from text with Qwen TTS models. TRIGGER when: user wants to convert text to speech, create voiceovers, generate audio narration, read text aloud, build TTS applications, mentions speech synthesis/voice generation/audio output from text, or explicitly invokes this skill by name (e.g. use qianwen-audio-tts). DO NOT TRIGGER when: user wants speech recognition/ASR, text generation without audio, non-Qwen audio tasks.

qianwen-ai/qianwen-image-generation

[QianWen] Generate and edit images using Wan and Qwen Image models. Supports text-to-image, image editing (style transfer, subject consistency, text rendering), and interleaved text-image output. TRIGGER when: user wants to create illustrations, product images, artistic designs, posters, text-to-image generation, edit/transform existing images, apply style transfer, generate images based on reference photos, interleaved text-image content, mentions Wan/Qwen Image models/AI art creation, or explicitly invokes this skill by name (e.g. use qianwen-image-generation). DO NOT TRIGGER when: user wants to understand/analyze existing images or OCR (use qianwen-vision), video generation (use qianwen-video-generation), text-only tasks.

qianwen-ai/qianwen-model-selector

[QianWen] Recommend the best Qwen model and parameters. TRIGGER when: choosing between Qwen models, comparing Qwen model pricing, understanding Qwen model capabilities, checking usage or billing, viewing cost history, when an execution skill needs model selection advice, or user explicitly invokes this skill by name (e.g. use qianwen-model-selector). DO NOT TRIGGER when: non-Qwen model discussions (OpenAI, Gemini, etc.), general AI questions unrelated to Qwen.

qianwen-ai/qianwen-ops-auth

[QianWen] Configure authentication (API keys, endpoints). TRIGGER when: setting up QIANWEN_API_KEY, troubleshooting 401/auth errors, when another skill reports missing credentials, or user explicitly invokes this skill by name (e.g. use qianwen-ops-auth). DO NOT TRIGGER when: non-auth Qwen tasks, general API usage questions.

qianwen-ai/qianwen-text

[QianWen] Generate text, have conversations, write code, reason, and call functions with Qwen models. TRIGGER when: user asks to chat with Qwen, generate text, write code with Qwen, use Qwen function calling, or explicitly invokes this skill by name (e.g. use qianwen-text). DO NOT TRIGGER when: general coding questions without Qwen, non-Qwen AI model usage (OpenAI, Gemini, etc.), image/video understanding (use qianwen-vision), image/video/audio generation.

qianwen-ai/qianwen-update-check

[QianWen] Check for qianwen-ai updates and notify the user when a new version is available. TRIGGER when: user asks to check for updates, check version, asks 'is there a new version', 'latest version', 'update skills', 'check update', or any other qwen skill delegates to this skill, or user explicitly invokes this skill by name (e.g. use qianwen-update-check). DO NOT TRIGGER when: non-update-related tasks, general version questions about other software.

qianwen-ai/qianwen-video-generation

[QianWen] Generate videos using Wan models. Supports text-to-video, image-to-video, first+last frame, reference-based role-play, and video editing (VACE). TRIGGER when: user wants to create, generate, or edit video content, mentions video generation/animation/video clips/Wan models, or explicitly invokes this skill by name (e.g. use qianwen-video-generation). DO NOT TRIGGER when: user wants to generate images (use qianwen-image-generation), understand/analyze existing videos (use qianwen-vision), text-only tasks.

qianwen-ai/qianwen-vision

[QianWen] Understand images and videos with Qwen vision models. TRIGGER when: user wants to analyze, describe, or extract information from images or videos, OCR text extraction, chart/table reading, visual reasoning, multi-image comparison, screenshot understanding, video comprehension, or explicitly invokes this skill by name (e.g. use qianwen-vision). DO NOT TRIGGER when: user wants to generate/create images (use qianwen-image-generation), generate videos (use qianwen-video-generation), text-only tasks without visual input, or non-Qwen vision tasks.

相关技能