Install
openclaw skills install coding-plan-usageQueries the remaining hours of Alibaba Cloud Coding Plan using a command-line tool. Invoke when user asks for Coding Plan usage.
openclaw skills install coding-plan-usage用于查询阿里云 Coding Plan 余量的命令行工具。
在以下场景主动调用:
scripts/aliyun.pyagent-browser 不存在:先判断是否沙盒环境;仅真实环境缺失时安装依赖,否则提示用户:沙盒中找不到依赖是正常现象注意运行时的路径,切换到包含脚本的目录或使用完整路径执行。
直接运行 Python 脚本 scripts/aliyun.py:
macOS / Linux:
python scripts/aliyun.py
Windows(PowerShell):
python .\scripts\aliyun.py
如果命令存在,直接进入“输出解释规则”。
aliyu-login.png,终端提示你扫码;扫码后再次运行即可。如果频道允许发送图片 你可以直接发给用户,否则可以帮用户打开图片。截图完成后脚本会停止运行,当用户回复已经完成扫码登陆后,再次运行即可。
示例输出:
Already logged in: false
Entered login page: true
请使用阿里云 App 扫码完成登录后,再次执行此程序以查询用量。
Login screenshot: /opt/coding-plan-usage/aliyu-login.png
Scan completed: false
示例输出:
{
"hours5": {
"usage": "0%",
"resetTime": "2026-03-14 18:27:45"
},
"week": {
"usage": "27%",
"resetTime": "2026-03-16 00:00:00"
},
"month": {
"usage": "15%",
"resetTime": "2026-04-09 00:00:00"
}
}
成功读取到用量后,程序会自动关闭浏览器会话。