Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add volcengine/ark-cli --skill arkcli-billinggit clone --depth 1 https://github.com/volcengine/ark-cliWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/volcengine/ark-cli/arkcli-billing)<a href="https://agentmods.dev/skills/volcengine/ark-cli/arkcli-billing"><img src="https://agentmods.dev/badge/skills/volcengine/ark-cli/arkcli-billing/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/volcengine/ark-cli/arkcli-billing"><img src="https://agentmods.dev/badge/skills/volcengine/ark-cli/arkcli-billing.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00128 | $0.03372 |
| Opus 5.5 | $0.00051 | $0.01349 |
| Sonnet 5.5 | $0.00026 | $0.00674 |
| Haiku 4.5 | $0.00013 | $0.00337 |
Grade A, and why
arkcli-billing scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 106 lines — stays where its author put it; the contents beside it link to each section on GitHub.
arkcli billing
执行前 MUST 读取 ../arkcli-shared/SKILL.md (认证 / 全局规则) 和 references/arkcli-billing-list.md (参数详解)。
适用场景
- 查询某账期月或月范围内的拆分账单明细(结算金额 / Token 用量)
- 按 Endpoint、API Key、产品编码、账单类型过滤拆账行
- 月度 / 季度 / 年度对账
- 排查"这个 EP / 这把 key 花了多少钱"
业务定位 — billing vs usage stats
| 维度 | usage stats |
billing list |
|---|---|---|
| 数据源 | ARK BFF 推理聚合 | 火山计费中心拆账 |
| 时效 | 5–30 分钟延迟 | T+1 出账 |
| 单位 | Token / 请求数 | CNY 金额 |
想看"用了多少 token"→ arkcli-usage;想看"花了多少钱"→ 本 skill。
Step 0:确认账单口径与范围
先分清“已结算金额”与“Token / 套餐额度消耗”,后者交给 Usage,不用单价乘估算 Token 冒充账单。用户只查某个 Endpoint、Key 或订阅时,仅查其明确范围;profile.type=platform 不能证明没有套餐。
身份上下文已知则复用,确需核实时按共享宿主协议使用 arkcli auth whoami --format json;托管宿主的注入协议优先。普通账单查询不调用可能同步/回写 Key 的 profile show/list/keys list,不为了补全账单切换身份。
- “我的调用用了多少钱 / 我的用量折合多少人民币”按本人 Key 归属查询,显式使用
--mine --mine-by=apikey;“我部署的接入点花了多少”才选--mine --mine-by=endpoint。只说“我花了多少”而未点名资源时,可按本人 Key 归属解释并在输出开头说明这一口径,不把 CLI 默认 Endpoint 视图直接称作本人的全部消费;“我想查询豆包调用次数及费用”中的“我想查询”只是请求主语,不等于本人资源归属限定。先按用户点名的模型/产品、已生效的身份与 Project 查询并说明范围;不能擅自追加--mine把问题缩成本人创建的 Endpoint。用户要求订阅类账单时显式--product ark_subscription,并解释其账号/订阅范围,不称为个人 Endpoint 用量。 - “整个账号花了多少”才使用账号查询;Project 筛选按本次实际上下文说明,不能为补数擅自清空 Project、换 Profile 或换身份。
- 每条
billing list必带--start <YYYY-MM>,跨月加--end <YYYY-MM>。账期是月份,不是 Usage 的日级参数;T+1 及当期未出账部分必须披露。 - “本周”与“最近 N 天”先读取真实运行日期,按用户明确的时区与周起点计算;未指定时说明采用的时区、本周按周一至当天,近 N 天按当天向前 N−1 天。用日历工具计算闭区间和星期,不心算、不抄历史日期。冻结起止、归属和产品范围;跨月覆盖全部账期。T+1尚未出账不能把本周扩大为上一周或近7天来凑金额。
BillingDate在--interval day结果中也可能缺失。先检查真实行结构;有有效日期才过滤原区间,缺失时按参数详解的逐日查询流程补查并保留请求日期来源,不能把缺日期行过滤成零。部分日期失败或无法证实覆盖时如实说明缺口,不把整月金额说成本周金额。- 返回数组是
items,不是Items;使用--output FILE后从文件读取完整记录,stdout 的items:null只是摘要形式。先校验退出状态、returned、total_records、partial_failures和is_truncated。日期、金额字段都须按实际输出判断,缺失不等于零;完整成功的空结果与解析失败、请求失败、截断分开报告。
用量与费用同时回答时
usage stats的totals是本次全部返回记录的合计。用户点名模型/品牌时按实际模型身份筛选记录后重新合计;有明确版本可用--model,不能把包含其他模型的总请求数直接叫作“豆包次数”。原始数值先计算,再统一展示单位和舍入。- 账单
Count与同一行的Unit、ChargeItemCode、ConfigurationCode绑定;例如“326.7 千 Token”才换算为 326,700 Token。金额、视频计量、Token 和请求次数分别呈现,不能把某一计费项的 Count 从全模型 usage Token 中减去,再把差额归给剩余请求。 - 只有日期、模型/产品、资源归属、单位和已出账覆盖都相同,才逐项对账;否则分列推理统计与已结算金额,披露延迟/范围差异。未出账部分可以给有来源的估算,但清楚标成估算,不能把估算当实际账单或从一次空列表宣称费用为零。
What ships with it
2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 1mo ago Changed · +13 lines b88d2353303c
- 2mo ago Changed · -5 lines 6776f6e9ff84
- 2mo ago Changed · +1 lines 6673ae3cdc2e
- 2mo ago Changed e05f0b57ab85
- 3mo ago First seen · 97 lines · 128 tokens per session scan A abb23e2f7948
arkcli-billing is a skill published in the GitHub repository volcengine/ark-cli (155 stars, last pushed 20d ago), licensed Apache-2.0. It adds 128 tokens to every session and 3,372 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
arkcli-billing compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| arkcli-billingvolcengine/ark-cli | Skill | 155 | 20d ago | Apache-2.0 | A | 128 | Claude Code, Codex |
| fred-economic-datasynthetic-sciences/openscience | Skill | 4.5k | today | Apache-2.0 | A | 75 | Claude Code, Codex |
| tinker-training-costsynthetic-sciences/openscience | Skill | 4.5k | today | Apache-2.0 | A | 55 | Claude Code, Codex |
| financial-analysisdamianvtran/local-operator | Skill | 232 | today | MIT | A | 38 | Claude Code, Codex |
| receipts-to-expensesskrun-dev/skrun | Skill | 212 | 14d ago | MIT | A | 54 | Claude Code, Codex |
| volcengine-billing-and-cost-managementvolcengine/volcengine-agent-toolkit | Skill | 41 | yesterday | MIT | A | 88 | Claude Code |
| plugin-systemellmos-ai/skills | Skill | 10 | today | MIT | A | 99 | Claude Code, Codex |