volcengine-ark-quota
Skill6 starsChanged 3 months agoApache-2.0View on GitHub
Query VolcEngine Ark Coding Plan quota usage from the console endpoint using a logged-in cookie or Playwright storage state.
- Reads credentials
In this repository27 other files it gives its agents.
- baidu-netdiskSkill
- barkSkill
- cloudsaverSkill
- code-debriefSkill
- codex-usageSkill
- desktopSkill
- douban-marksSkill
- douyin-hotSkill
- find-skills-skillSkill
- grill-meSkill
- grok-quotaSkill
- linkwardenSkill
- meituan-coupon-assistantSkill
- multi-agent-orchestrationSkill
- ntfySkill
- openlistSkill
- personal-dev-guardSkill
- poke-apiSkill
- qinglongSkill
- rsshubSkill
- spotify-web-apiSkill
- telegram-officialSkill
- triliumSkill
- vaultwarden-cliSkill
- vitapulseSkill
- wallosSkill
- weread-skillsSkill
The file
Files
VolcEngine Ark Quota Skill
用于查询火山引擎 Ark 控制台 Coding Plan 页面里的额度/用量。
目标页面:https://console.volcengine.com/ark/region:cn-beijing/subscription/coding-plan
能力
status:检查 Coding Plan 页面、GetCodingPlanUsage接口是否可达,并检查是否配置了登录态来源。query:调用控制台接口查询 Coding Plan 的QuotaUsage,默认同时查询订阅状态ListSubscribeTrade。
前端反查到的核心接口:
POST https://console.volcengine.com/api/top/ark/<region>/2024-01-01/GetCodingPlanUsage- CSRF 头:
X-Csrf-Token - 未登录时提供商错误通常是
NotLogin。
登录态来源
query 至少需要一种登录态:
storage_state_path:Playwright storage state JSON,推荐。VOLCENGINE_ARK_STORAGE_STATE:可在~/.agentdock/env/skill/volcengine-ark-quota.env或当前命令显式环境中配置,指向 storage state 文件。VOLCENGINE_ARK_COOKIE:可在同一私有环境文件或当前命令环境中配置原始 Cookie header;不得写入 Skill 包或日志。cookie输入参数:临时 Cookie header,不推荐长期使用。
可选:VOLCENGINE_ARK_CSRF_TOKEN 或 csrf_token。通常不需要手动传,Skill 会从 Cookie 里找 CSRF,并在缺失时先探测一次再重试。
推荐使用流程
- 用浏览器工具打开目标页面并登录火山引擎控制台。
- 导出/保存 Playwright storage state。
- 调用:
{
"storage_state_path": "/path/to/storage_state.json",
"region": "cn-beijing"
}输出说明
quota_periods 会返回三类用量:
session/ 当前会话weekly/ 近 1 周monthly/ 近 1 月
每一项包含 used_percent、remaining_percent、reset_at、reset_seconds 等字段。不同账号/套餐返回字段可能有差异,include_raw=true 可返回已脱敏原始响应用于排障。
安全边界
- Skill 不会把 Cookie、CSRF、API Key 等敏感值输出到 stdout。
- Skill 包内不保存登录态;AgentDock managed 运行时的持久登录态放在宿主注入的
SKILL_DATA_DIR,其他宿主使用 XDG 状态目录;环境变量单独由宿主管理。 - 这是控制台内部接口封装,不是火山引擎公开 OpenAPI;如果前端接口改版,Skill 可能需要更新。
辅助脚本执行
Skill 本体是本说明文档。确需调用包内辅助脚本时,在 Skill 包根目录使用相对路径执行;运行宿主负责切换到包根目录并把所需变量注入当前子进程。
printf '%s' '{"skill_action":"<动作>"}' | python3 run.py输入必须是 JSON 对象。写操作仍按本文档中的确认规则执行。
| 动作 | 用途 |
status | Check whether the public Coding Plan page and quota endpoint are reachable, and report available local auth sources without exposing secrets. |
query | Query live Coding Plan quota usage and subscription status. Requires a logged-in console cookie or Playwright storage_state path. |
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

