← 返回 Skills 市场
wsjwoods

Qianfan Usage

作者 woods · GitHub ↗ · v1.0.2 · MIT-0
cross-platform ✓ 安全检测通过
417
总下载
0
收藏
0
当前安装
3
版本数
在 OpenClaw 中安装
/install qianfan-usage
功能描述
Query Baidu Qianfan Coding Plan usage and quota with automatic login or open the control console via commands.
安全使用建议
This skill appears to implement what it claims (query Qianfan usage and auto-login) and uses only the Baidu console API and a cookie file in your home directory. Before installing: (1) Confirm you are comfortable storing Baidu session cookies at ~/.baidu-qianfan-auth.json and that the cookie file has appropriate filesystem permissions. (2) Ensure agent-browser is installed from a trusted source (the scripts call it extensively); the package is listed as a dependency but the registry entry has no install step. (3) Note the minor metadata mismatches: registry "Requirements" shows none while _meta.json and SKILL.md require QIANFAN_PHONE — set the env var if you want non-interactive login. (4) Review the included scripts (they are plain Python) if you need higher assurance, or run them in a restricted environment/VM. If you do not want the skill to store session cookies or to automate a login flow, do not install or run it.
功能分析
Type: OpenClaw Skill Name: qianfan-usage Version: 1.0.2 The skill bundle is designed to query Baidu Qianfan Coding Plan usage. It uses a browser automation tool (agent-browser) to handle authentication and stores session cookies locally in `~/.baidu-qianfan-auth.json`. The scripts (qianfan_usage.py, check_quota_v2.py) communicate exclusively with official Baidu endpoints (console.bce.baidu.com) and do not exhibit signs of data exfiltration, malicious execution, or prompt injection. While it handles sensitive session data, its behavior is transparent and strictly aligned with its stated purpose.
能力评估
Purpose & Capability
The name/description (query Qianfan usage and open console) align with the included Python scripts: they use saved cookies, call the Baidu Qianfan API endpoint, and implement an automated login flow via agent-browser. Required functionality (phone for SMS login, cookie storage) is consistent with the stated purpose.
Instruction Scope
SKILL.md and the scripts instruct the agent to read QIANFAN_PHONE (from env or prompt), open pages with agent-browser, capture snapshots, fill inputs, and save cookie state to ~/.baidu-qianfan-auth.json. Those actions are within scope for an auto-login/usage checker. Note: SKILL.md suggests putting QIANFAN_PHONE in ~/.openclaw/workspace/.env while code reads os.environ; the meta.json also marks QIANFAN_PHONE required — minor mismatch between documentation and code/registry metadata. The scripts only reference the user's home cookie file and the Baidu console API; they do not access other system paths or unrelated credentials.
Install Mechanism
There is no install spec in the registry entry (instruction-only), which is low-risk. However the documentation and _meta.json list agent-browser as a dependency and SKILL.md says 'agent-browser (auto install)'. Because no install mechanism is provided, agent-browser must already exist on the environment or be installed manually; this is an inconsistency in packaging/documentation but not an active risk in itself.
Credentials
The only sensitive input required is a phone number for SMS-based login (QIANFAN_PHONE) and the scripts save/read a cookie file in the user's home. There are no requests for unrelated secrets (AWS keys, tokens, etc.). Storing and using cookies for authenticated requests is expected for this purpose. The registry-level 'Requirements' reported as 'none' (top summary) conflicts with _meta.json and SKILL.md which require QIANFAN_PHONE; this is a documentation/metadata mismatch to be aware of.
Persistence & Privilege
The skill does save login state to ~/.baidu-qianfan-auth.json, which is normal for a login helper. It does not request always:true and does not modify other skills or system-wide agent settings. Autonomous invocation (disable-model-invocation=false) is the platform default; it is not flagged by itself.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install qianfan-usage
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /qianfan-usage 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.2
- Migrated main functionality from shell scripts to Python modules. - Added new Python files: check_quota_v2.py, qianfan.py, qianfan_usage.py. - Removed deprecated files: qianfan-usage.sh and qianfan_api.py. - README and documentation updated to reflect codebase changes.
v1.0.1
- Added README.md file with usage instructions and details.
v1.0.0
Initial release of qianfan-usage. - Provides usage and quota details for Baidu Qianfan Coding Plan via simple commands. - Supports querying 5-hour, weekly, and monthly usage, with automatic login using agent-browser. - Requires phone number configuration via environment variable. - Includes API endpoint information and expected response format. - Supports direct console web access via command.
元数据
Slug qianfan-usage
版本 1.0.2
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 3
常见问题

Qianfan Usage 是什么?

Query Baidu Qianfan Coding Plan usage and quota with automatic login or open the control console via commands. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 417 次。

如何安装 Qianfan Usage?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install qianfan-usage」即可一键安装,无需额外配置。

Qianfan Usage 是免费的吗?

是的,Qianfan Usage 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Qianfan Usage 支持哪些平台?

Qianfan Usage 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Qianfan Usage?

由 woods(@wsjwoods)开发并维护,当前版本 v1.0.2。

💬 留言讨论