- 我的帖子已经打上 开源推广 标签: 是
- 我的开源项目完整开源,无未开源部分: 是
- 我的开源项目已链接认可 LINUX DO 社区: 是
- 我帖子内的项目介绍,AI生成、润色内容部分已截图发出: 是
- 以上选择我承诺是永久有效的,接受社区和佬友监督: 是
以下为项目介绍正文内容,AI生成、润色内容已使用截图方式发出
QuotaBar
一个基于 SwiftBar 的 macOS 菜单栏插件,用来监控多个 new-api / API 中转站的余额、用量、日志和 token 状态。
项目地址:
github.com
GitHub - superpung/QuotaBar: Monitor quota, usage and logs across multiple...
Monitor quota, usage and logs across multiple new-api platforms in the macOS menu bar (SwiftBar plugin).
安装
推荐一键安装(建议先看一下代码):
curl -fsSL https://github.com/superpung/QuotaBar/releases/latest/download/install.sh | bash
然后配置一下平台信息就能用了(在 ~/.config/quotabar/config.json):
{
"platforms": [
{
"name": "中转站名称",
"base_url": "https://relay.example.com",
"user_id": "你的用户 ID",
"access_token": "你的 System Access Token",
"currency_symbol": "$"
}
]
}
注意这里 access_token 填的是 new-api 后台生成的 System Access Token(一般在"个人设置-系统访问令牌"),不是 sk-xxx 调用 LLM 的 key。
欢迎佬友们试用、提 issue、PR,以及欢迎 Star!
感谢各位佬友~
1 个帖子 - 1 位参与者