A native, portable Windows widget for monitoring relay account balance, spending, token usage, model activity, cache usage, and channel health.
Important
Open-Source and Privacy Statement
Token-Monitor is a fully open-source project: its complete buildable source code is publicly available under the MIT License. The application contains no developer-operated back door and does not collect or upload API keys, credentials, telemetry, usage records, or personal information to the project author. Configuration and local state created by Token-Monitor remain on the user's computer in Token-Monitor.dat; API keys are additionally protected with Windows DPAPI for the current Windows account. The project operates no data-collection or private update server. Network access is limited to services explicitly configured or enabled by the user, including the selected relay API, optional Discord local RPC, and the official GitHub repository. Application updates are published to GitHub Releases and are checked, downloaded, and cryptographically verified directly from GitHub.
开源与隐私声明
Token-Monitor 是完全开源的项目,全部可构建源码均已在 MIT License 下公开。软件不包含由开发者控制的后门,也不会向项目作者收集或上传 API Key、账户凭据、遥测数据、用量记录或个人资料。Token-Monitor 创建的配置与本地状态仅保存在用户电脑上的 Token-Monitor.dat 中,API Key 还会使用当前 Windows 账户的 DPAPI 进行保护。本项目不运营任何数据收集服务器或私有更新服务器;网络访问仅限用户明确配置或启用的服务,包括所选中转站 API、可选的 Discord 本地 RPC 以及官方 GitHub 仓库。软件更新统一发布至 GitHub Releases,并直接从 GitHub 检查、下载和执行加密校验。
60-frame landscape and portrait showcase: Sakura, Coast, Aurora, and Sunrise palettes · Light and Dark themes · Transparent, Accent Blur, and Acrylic materials
60 帧横屏与竖屏动态展示:樱花、海岸、极光、晨曦四套配色 · 白天与黑夜主题 · 完全透明、Accent Blur 与 Acrylic 材质
Token-Monitor is a single-file WPF desktop widget for users of New API, One API, Sub2API, and compatible relay services. It is designed for quiet, always-available monitoring without occupying the taskbar or Alt+Tab.
The application automatically uses Simplified Chinese, Traditional Chinese, or English based on the Windows display language. A language selector in Settings can override automatic detection at any time.
- Current balance and actual relay-reported spending for today, 7 days, 30 days, and all time.
- Local lifetime amount and token totals accumulated across every relay account used on this Windows profile.
- Input, output, cache-hit, and total token counters with smooth value transitions.
- Per-model token usage, request count, and latest activity.
- Channel health checks through
/v1/modelsthat distinguish healthy, degraded, limited, unknown, and error states. - Automatic relay detection for compatible public settings and usage endpoints.
- Portable hidden configuration protected with Windows DPAPI for the current user.
- Light and dark appearance, multiple animated color palettes, font scaling, opacity, Accent Blur, Acrylic, and transparent modes.
- Responsive portrait, landscape, and compact widget layouts down to a single summary row.
- Tray-only operation with one running instance and click-to-restore behavior.
- Optional Discord Rich Presence with customizable English templates.
- Mandatory unattended updates with HTTPS, version, product identity, and SHA-256 validation.
- In-app update announcements with version highlights and a link to the detailed GitHub Release notes.
- In-app GitHub repository link available as an icon in the Settings header.
| Windows display language | Automatic UI language |
|---|---|
| Simplified Chinese | Simplified Chinese |
Traditional Chinese (zh-TW, zh-HK, zh-MO, zh-Hant) |
Traditional Chinese |
| Any non-Chinese language | English |
Settings also provides Auto, 简中, 繁中, and EN overrides. Language changes are applied immediately and saved automatically.
Download the latest Token-Monitor.exe from GitHub Releases. No installer or additional runtime download is required on supported Windows systems.
Do not download or share Token-Monitor.dat. It contains user-specific relay and Discord settings, with the API key encrypted for the current Windows account.
Requirements:
- Windows 10 or Windows 11 x64
- Windows PowerShell 5.1 or later
- .NET Framework 4.x compiler included with Windows
powershell -ExecutionPolicy Bypass -File .\build.ps1The output is written to release\Token-Monitor.exe. The build does not download third-party packages.
Run the built-in test suite:
.\release\Token-Monitor.exe --self-testPublish-Next.ps1 increments the patch version by default, builds and tests the application, commits and pushes the complete source, creates a release tag for that exact commit, publishes Token-Monitor.exe and latest.json, verifies the downloaded assets, and updates the local installed copy.
.\Publish-Next.ps1Use -Bump Minor or -Bump Major only for an intentional version change.
- Relay credentials stay on the local computer.
- API keys are encrypted with Windows DPAPI for the current user.
- The application does not read browser cookies or store relay account passwords.
- Update binaries are installed only after HTTPS, SHA-256, file version, and product identity checks succeed.
- See PRIVACY.md and SECURITY.md for details.
Contributions are welcome. Read CONTRIBUTING.md, follow the Code of Conduct, and open a focused pull request. Bug reports and feature requests can be submitted through the repository issue forms.
Token-Monitor is released under the MIT License.
Third-party attribution is listed in THIRD_PARTY_NOTICES.md.
Historical pre-open-source binaries are covered by the same license; see HISTORICAL_RELEASES.md for exact source-availability details.
原生、便携的 Windows 中转站监控小组件,用于查看账户余额、消费金额、Token 用量、模型活动、缓存用量和渠道健康状态。
Token-Monitor 是面向 New API、One API、Sub2API 及兼容中转站的单文件 WPF 桌面小组件。程序隐藏于任务栏、Alt+Tab 和 Win+Tab 之外,适合长期置顶或托盘运行。
程序会根据 Windows 显示语言自动选择简体中文、繁体中文或英文。设置页也可以随时手动覆盖自动检测结果。
- 显示当前余额,以及今日、7 日、30 日和全部周期的中转站实际消费金额。
- 在本机累计当前 Windows 用户使用过的所有中转站账户消费金额与 Token 总量。
- 显示输入、输出、缓存命中和总 Token,并提供平滑数字动画。
- 按模型显示 Token、请求次数和最近使用情况。
- 使用当前中转站的
/v1/models检测渠道,并区分正常、降级、受限、未知和异常状态。 - 自动识别兼容站点的公开设置、用量接口和充值入口。
- 配置保存在便携式隐藏文件中,API Key 使用当前 Windows 用户的 DPAPI 加密。
- 支持白天/黑夜、动态配色、字体缩放、透明度、Accent Blur、Acrylic 和完全透明模式。
- 支持纵向、横向和极简小组件布局,可缩小到只显示第一栏汇总。
- 托盘运行、单实例限制和点击图标恢复窗口。
- 可选 Discord Rich Presence,并可自由配置英文状态模板。
- 强制静默自动更新,安装前校验 HTTPS、版本、产品标识和 SHA-256。
- 更新完成后在应用内显示版本要点,并可跳转到 GitHub Release 查看完整更新日志。
- 设置标题右侧提供项目 GitHub 图标入口。
| Windows 显示语言 | 自动使用的界面语言 |
|---|---|
| 简体中文 | 简体中文 |
繁体中文(zh-TW、zh-HK、zh-MO、zh-Hant) |
繁体中文 |
| 所有非中文语言 | 英文 |
设置页提供 自动、简中、繁中 和 EN 四个选项。切换后立即生效并自动保存。
从 GitHub Releases 下载最新版 Token-Monitor.exe。支持的 Windows 系统无需安装器或额外下载运行库。
不要下载或分享 Token-Monitor.dat。该文件包含用户自己的中转站与 Discord 设置,其中 API Key 只能由当前 Windows 用户解密。
要求:Windows 10/11 x64、Windows PowerShell 5.1 或更高版本,以及 Windows 自带的 .NET Framework 编译器。
powershell -ExecutionPolicy Bypass -File .\build.ps1构建结果位于 release\Token-Monitor.exe,构建过程不会下载第三方依赖。
运行内置自检:
.\release\Token-Monitor.exe --self-testPublish-Next.ps1 会自动递增版本、构建、自检、提交并推送完整源码、让 Release 标签指向对应源码提交、发布和验证 Token-Monitor.exe 与 latest.json,最后更新本机正式版。
.\Publish-Next.ps1- 中转站凭据只保存在本机。
- API Key 使用当前 Windows 用户的 DPAPI 加密。
- 程序不会读取浏览器 Cookie,也不会保存中转站账户密码。
- 只有 HTTPS、SHA-256、文件版本和产品标识全部通过后才会安装更新。
- 详细内容见 PRIVACY.md 与 SECURITY.md。
欢迎贡献源码。请先阅读 CONTRIBUTING.md 和 行为准则,再提交范围明确的 Pull Request。Bug 与功能建议可通过仓库 Issue 表单提交。
Token-Monitor 使用 MIT License 开源。
第三方组件与图标授权信息见 THIRD_PARTY_NOTICES.md。
开源前的历史二进制也使用同一许可证;准确的历史源码可用性说明见 HISTORICAL_RELEASES.md。