@muzi3/comate-quota
Pi extension: 在 pi 状态栏分钟级显示 Comate 月度额度
Package details
Install @muzi3/comate-quota from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:@muzi3/comate-quota- Package
@muzi3/comate-quota- Version
1.0.1- Published
- Aug 25, 2026
- Downloads
- 192/mo · 192/wk
- Author
- muzi3
- License
- MIT
- Types
- extension
- Size
- 8.7 KB
- Dependencies
- 0 dependencies · 1 peer
Pi manifest JSON
{
"extensions": [
"./extensions/index.ts"
]
}Security note
Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.
README
@muzi3/comate-quota
pi 扩展:在状态栏分钟级显示 Comate 的月度额度。
- 每 5 分钟刷新一次
- 剩余额度低于阈值时状态栏变色(<50% 黄,<20% 红)
- 首次使用弹出输入框设置服务地址(缓存后复用)
- Cookie 过期时自动弹出输入框重新粘贴
- 提供
comate-quota命令即时刷新
安装
pi install npm:@muzi3/comate-quota
首次使用
- 首次进入 pi 会话会弹出输入框,粘贴 Comate 服务地址回车
- 浏览器登录该地址,打开 DevTools → Network,复制任意请求头中的完整
Cookie值 - 接着弹出的 Cookie 输入框粘贴回车即可
配置保存目录 ~/.pi/agent/.comate-quota/(权限 600):
URL— 服务地址COOKIE— 登录 Cookie
命令
/comate-quota— 立即刷新并弹通知显示月度额度、已用、剩余
状态栏示例
● Comate ¥12.34/¥100.00 (12%)
License
MIT