TokenWidget is a Windows desktop notch that sits on the right edge of the screen. It shows remaining quota for AI subscriptions (Cursor, DeepSeek, Trae, Qoder, Kiro, and others) as rings, and it builds a local token ledger with a five-month heatmap from logs already on the machine (cc-switch, Codex transcripts, OpenCode, Zed, Qoder, Cursor).
The widget does not ask you to sign in again. It reuses credentials and login state already stored by the official clients and CLIs. All outbound requests and helper processes go through a network guard with concurrency limits, hard timeouts, backoff, and per-provider pauses, so a slow or failing provider cannot stall the rest of the UI.
It is a small Electron 38 app written in plain JavaScript (CommonJS), with no bundler. Run it with npm install and npm start.
TokenWidget 是贴在 Windows 屏幕右边缘的桌面小组件。它用圆环显示各家 AI 订阅的剩余额度,并读取本机已有日志,汇总 Token 账本和近 5 个月热力图。组件不会在内部再登录一次,而是复用官方客户端或 CLI 已经留下的登录态。所有外联和外部进程都走网络护栏,避免某一个服务商拖垮整个界面。