macOS menu bar monitor for DeepSeek API balance and usage
Project description
DeepSeek Balance Monitor for Mac
一个面向 macOS 的 DeepSeek 余额监控菜单栏应用。
它会常驻菜单栏,帮助你快速查看余额、今日消耗、日均消耗和服务状态,并在余额不足或消耗异常时提醒你。
项目定位
- mac 原生菜单栏应用
- 原生设置窗口
- 原生历史记录窗口
- 支持源码运行
- 支持打包
.app - 支持打包
.dmg
当前仓库聚焦 mac 产品线,后续优先围绕 mac 版本持续演进。
主要功能
- 查询 DeepSeek API 余额
- 显示人民币 / 美元余额
- 显示今日消耗
- 显示日均消耗
- 显示服务状态
- 低余额提醒
- 今日消耗阈值提醒
- 本地 SQLite 历史记录
- CSV 导出
- 本地安全存储 API Key
界面预览
菜单栏主界面:
设置窗口:
低余额提醒:
为什么值得用
- 菜单栏常驻,打开电脑就能看到余额状态
- 不用反复打开网页,查询路径更短
- 支持低余额阈值提醒和日消耗提醒
- 支持历史记录沉淀,方便回看消耗变化
- 支持本地运行、
.app分发和.dmg安装 - 已开源,可自行审查代码和二次开发
快速开始
建议先准备好 Python 3.11+ 环境,再安装项目依赖。
cd /path/to/DeepSeekBalanceMonitorForMac
uv pip install -e '.[build]'
python main.py
也可以这样启动:
python -m deepseek_balance_monitor_mac
常用开发命令
运行应用:
python main.py
运行测试:
python -m unittest tests.test_core
检查关键入口是否可编译:
python -m py_compile \
main.py \
src/deepseek_balance_monitor_mac/mac/main.py \
src/deepseek_balance_monitor_mac/mac/settings.py
打包命令
打包 .app:
bash scripts/build_mac.sh
打包 .dmg:
bash scripts/build_dmg.sh
下载与安装
普通用户建议直接前往 GitHub Releases 下载:
.dmg:适合 mac 用户安装使用.zip:适合手动解压体验
下载地址:
项目结构
DeepSeekBalanceMonitorForMac/
main.py
pyproject.toml
README.md
docs/
scripts/
src/
deepseek_balance_monitor_mac/
core/
infra/
mac/
assets/
tests/
更多说明见:
开源前建议
- 确认代码和文档里没有真实 API Key
- 不提交
build/、dist/、*.egg-info/、__pycache__/ - 检查截图和示例数据中是否包含隐私信息
- 推送前先完成一次基础测试和打包验证
许可证
本项目使用 MIT License。
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file deepseek_balance_monitor_mac-0.1.6.tar.gz.
File metadata
- Download URL: deepseek_balance_monitor_mac-0.1.6.tar.gz
- Upload date:
- Size: 2.3 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
37b92d3a71861bef498ac04755522b6627c85ad71ac16d110184aa54a24aefe3
|
|
| MD5 |
8d01bd4392f5512d9208d432e5a349e1
|
|
| BLAKE2b-256 |
30d6fe6daca016f0363f73c9bb944a4c64420a7876f1741c2b21cee9bb773c38
|
Provenance
The following attestation bundles were made for deepseek_balance_monitor_mac-0.1.6.tar.gz:
Publisher:
release.yml on github653224/DeepSeekBalanceMonitorForMac
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
deepseek_balance_monitor_mac-0.1.6.tar.gz -
Subject digest:
37b92d3a71861bef498ac04755522b6627c85ad71ac16d110184aa54a24aefe3 - Sigstore transparency entry: 1578813859
- Sigstore integration time:
-
Permalink:
github653224/DeepSeekBalanceMonitorForMac@738d4726584403e052db33e2da87f5148e0a0f5b -
Branch / Tag:
refs/tags/v0.1.6 - Owner: https://github.com/github653224
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@738d4726584403e052db33e2da87f5148e0a0f5b -
Trigger Event:
push
-
Statement type:
File details
Details for the file deepseek_balance_monitor_mac-0.1.6-py3-none-any.whl.
File metadata
- Download URL: deepseek_balance_monitor_mac-0.1.6-py3-none-any.whl
- Upload date:
- Size: 2.3 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7c0235bfe6393e5474869f0272c0d0bae4194611cb1d1bdfdcf48fc0b88c2f59
|
|
| MD5 |
99dece73243f309776ebb3fdcec42e2c
|
|
| BLAKE2b-256 |
b2d1edc645fbc145b4cb200ef19ae7c468e887a535e95d6cc2621afd1b65a190
|
Provenance
The following attestation bundles were made for deepseek_balance_monitor_mac-0.1.6-py3-none-any.whl:
Publisher:
release.yml on github653224/DeepSeekBalanceMonitorForMac
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
deepseek_balance_monitor_mac-0.1.6-py3-none-any.whl -
Subject digest:
7c0235bfe6393e5474869f0272c0d0bae4194611cb1d1bdfdcf48fc0b88c2f59 - Sigstore transparency entry: 1578814203
- Sigstore integration time:
-
Permalink:
github653224/DeepSeekBalanceMonitorForMac@738d4726584403e052db33e2da87f5148e0a0f5b -
Branch / Tag:
refs/tags/v0.1.6 - Owner: https://github.com/github653224
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@738d4726584403e052db33e2da87f5148e0a0f5b -
Trigger Event:
push
-
Statement type: