Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

deepseek_balance_monitor_mac-0.1.6.tar.gz (2.3 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

deepseek_balance_monitor_mac-0.1.6-py3-none-any.whl (2.3 MB view details)

Uploaded Python 3

File details

Details for the file deepseek_balance_monitor_mac-0.1.6.tar.gz.

File metadata

File hashes

Hashes for deepseek_balance_monitor_mac-0.1.6.tar.gz
Algorithm Hash digest
SHA256 37b92d3a71861bef498ac04755522b6627c85ad71ac16d110184aa54a24aefe3
MD5 8d01bd4392f5512d9208d432e5a349e1
BLAKE2b-256 30d6fe6daca016f0363f73c9bb944a4c64420a7876f1741c2b21cee9bb773c38

See more details on using hashes here.

Provenance

The following attestation bundles were made for deepseek_balance_monitor_mac-0.1.6.tar.gz:

Publisher: release.yml on github653224/DeepSeekBalanceMonitorForMac

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file deepseek_balance_monitor_mac-0.1.6-py3-none-any.whl.

File metadata

File hashes

Hashes for deepseek_balance_monitor_mac-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 7c0235bfe6393e5474869f0272c0d0bae4194611cb1d1bdfdcf48fc0b88c2f59
MD5 99dece73243f309776ebb3fdcec42e2c
BLAKE2b-256 b2d1edc645fbc145b4cb200ef19ae7c468e887a535e95d6cc2621afd1b65a190

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page