一位Hacker News社区开发者近日展示了一个创意项目,利用价格仅为38美元的Thermalright Trofeo Vision LCD屏幕打造了Claude API实时使用情况显示器[1]。该显示屏采用6.86英寸规格,分辨率为1280×480,通过USB-C连接[1]。
这个项目使用macOS和Python 3.12+开发,完全在本地运行,仅向Anthropic API查询使用数据[1]。显示器能实时呈现Pro/Max会话限额、周限重置倒计时、每日token消耗、API成本估算以及小时级token使用趋势[1]。开发者采用逆向工程的USB HID协议(VID:PID 0416:5302)与屏幕通信,通过JPEG帧流传输数据,默认刷新率为2fps[1]。在安全方面,该项目仅通过只读方式访问Keychain中的Claude Code凭证,确保只有查询数据被发送至api.anthropic.com[1]。
A developer has shared a project on Hacker News that repurposes an affordable hardware display into a real-time monitoring tool for Claude API usage [1]. The setup uses a Thermalright Trofeo Vision LCD screen, priced at $38, paired with macOS and Python to create a dedicated heads-up display for tracking API consumption [1].
The 6.86-inch display with 1280×480 resolution connects via USB-C and shows multiple data points including Pro and Max session rate limits, weekly reset countdowns, daily token consumption, API cost estimates, and hourly token usage trends [1]. The system operates entirely locally, querying only Anthropic's API for usage data and communicating with the screen through reverse-engineered USB HID protocol (VID:PID 0416:5302) that delivers JPEG frame streams at a default refresh rate of 2 fps [1]. The implementation uses Python 3.12+, the uv package manager, and Node.js, while accessing Claude credentials securely through macOS Keychain with read-only permissions [1].