← 返回 Skills 市场
Api Billing
作者
yifeiwang1981
· GitHub ↗
· v1.0.0
· MIT-0
50
总下载
0
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install api-billing
功能描述
API账户余额与历史账单查询工具。支持火山引擎、阿里云、DeepSeek、MiniMax、OpenRouter等平台的余额查询和历史账单功能。用于查询各平台账户余额、订阅用量、历史消费记录。
使用说明 (SKILL.md)
API 账户账单查询工具
概述
此技能提供多个平台的余额查询和历史账单功能,帮助追踪API使用费用。
功能
- 火山引擎: 余额查询 + 历史账单(近6个月)
- 阿里云: 余额查询 + 历史账单
- DeepSeek: 余额查询
- MiniMax: Coding Plan 用量查询
- OpenRouter: 余额查询
凭证配置
所有凭证文件存放在 ~/.openclaw/workspace/ 目录:
| 文件 | 用途 |
|---|---|
.volc_ak_sk.env |
火山引擎 AccessKey/SecretKey |
.aliyun_ak_sk.env |
阿里云 AccessKey/SecretKey |
.minimax_cp_key.env |
MiniMax Coding Plan API Key |
.deepseek_key.env |
DeepSeek API Key |
.openrouter_key.env |
OpenRouter API Key |
使用方法
# 火山引擎(余额 + 历史账单)
python3 skills/api-billing/scripts/query_volc_billing.py
python3 skills/api-billing/scripts/query_volc_billing.py --history
# 阿里云
python3 skills/api-billing/scripts/query_aliyun_balance.py
# DeepSeek
python3 skills/api-billing/scripts/query_deepseek_balance.py
# MiniMax
python3 skills/api-billing/scripts/query_minimax_plan.py
# OpenRouter
python3 skills/api-billing/scripts/query_openrouter_balance.py
敏感信息保护
- 凭证文件使用 Base64 编码存储
- 文件权限设为 600(仅自己可读写)
- 已加入 .gitignore,不会提交到 GitHub
安全使用建议
Do not install or run this skill without manual review and fixes. Specific things to check before use:
- Verify and correct credential locations: decide whether credentials live under ~/.openclaw/workspace/ (as SKILL.md says) or next to the repo root (as scripts currently expect), and update scripts or docs accordingly.
- Do not place secrets inside the repository tree. Store them in a secure, outside location (OS keyring, encrypted file outside repo, or platform secret store) and modify scripts to read from that location.
- Fix typos/inconsistencies: key_rotation_reminder.sh references a missing query_volc_balance.py (file is query_volc_billing.py). Ensure filenames referenced by scripts and docs match.
- Standardize credential encoding: some scripts expect Base64-encoded env files while volc expects plain-secret; harmonize and document exact formats.
- Inspect network endpoints in each script (they appear legitimate) and run scripts in a sandboxed environment first. Limit the credentials you provide to only the accounts you want the skill to access.
- Prefer using environment variables or a secrets manager rather than plaintext files; ensure any credential files are .gitignored and permissions set to 600.
If you cannot or will not audit and fix the mismatches, treat this skill as untrusted and avoid supplying real credentials.
功能分析
Type: OpenClaw Skill
Name: api-billing
Version: 1.0.0
The skill bundle is a legitimate set of tools for querying API account balances and billing history across multiple platforms (Aliyun, DeepSeek, Volcengine, etc.). The scripts (e.g., query_aliyun_balance.py, query_volc_billing.py) read user-provided credentials from local configuration files and communicate exclusively with official service endpoints. No evidence of data exfiltration, malicious code execution, or prompt injection was found; the use of Base64 for credential storage is explicitly documented as a local formatting choice rather than an attempt at obfuscation.
能力标签
能力评估
Purpose & Capability
The included Python scripts (volc/aliyun/deepseek/minimax/openrouter) implement balance and billing queries described in the README. The code-level capabilities match the stated purpose.
Instruction Scope
SKILL.md tells users to keep credential files in ~/.openclaw/workspace/, but the scripts look for credentials at a relative path (../../../.<name>.env) under the repo root. The reminder script references non-existent filenames (query_volc_balance.py) and paths. Scripts read local credential files and perform network calls to platform APIs (expected) but the mismatch in where credentials are read is a scope/instructioning inconsistency that could lead to accidental credential exposure if users follow the docs.
Install Mechanism
There is no install spec and no code is downloaded at install time (instruction-only plus bundled scripts), so nothing is pulled from external arbitrary URLs during install.
Credentials
Registry metadata declares no required env vars or credentials, but the skill expects multiple sensitive credential files (.volc_ak_sk.env, .aliyun_ak_sk.env, .minimax_cp_key.env, .deepseek_key.env, .openrouter_key.env). Encoding expectations are inconsistent across files (some scripts expect Base64, volc expects plain SecretKey). The skill requests access to many unrelated provider credentials (multiple clouds/APIs) which is reasonable for a multi-provider billing tool, but the lack of explicit declared requirements and inconsistent formats is a red flag.
Persistence & Privilege
always:false and no install-time persistent agent modifications. The skill does not request elevated agent privileges or modify other skills/configs.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install api-billing - 安装完成后,直接呼叫该 Skill 的名称或使用
/api-billing触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
api-billing v1.0.0
- Initial release of the API账户余额与历史账单查询工具.
- Supports querying balance and historical billing for 火山引擎, 阿里云, DeepSeek, MiniMax, and OpenRouter.
- Credentials are securely stored with Base64 encoding and restricted file permissions.
- Usage instructions and credential setup included in the documentation.
元数据
常见问题
Api Billing 是什么?
API账户余额与历史账单查询工具。支持火山引擎、阿里云、DeepSeek、MiniMax、OpenRouter等平台的余额查询和历史账单功能。用于查询各平台账户余额、订阅用量、历史消费记录。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 50 次。
如何安装 Api Billing?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install api-billing」即可一键安装,无需额外配置。
Api Billing 是免费的吗?
是的,Api Billing 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Api Billing 支持哪些平台?
Api Billing 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Api Billing?
由 yifeiwang1981(@yifeiwang1981)开发并维护,当前版本 v1.0.0。
推荐 Skills