TokenTV: Turn a $5 AliExpress Clock into a Desktop AI Usage Monitor
Overview
TokenTV transforms inexpensive, ~$5 AliExpress Wi-Fi clocks (such as the GeekMagic SmallTV) into real-time status monitors for AI coding agents. By leveraging the clock's existing photo-upload capabilities, the software provides a visual dashboard for usage limits and agent activity without requiring any firmware modifications.
Core Functionality
TokenTV operates by polling official CLI logins for AI services and rendering pixel-art animations that reflect the current state of your subscriptions and agent interactions. The system is designed to be non-intrusive, communicating with the hardware by sending rendered images to the device's photo-display endpoint.
Agent Integration
When integrated with Claude Code, the project introduces "Clawd," an animated character that provides visual feedback based on your terminal activity:
- Risk Awareness: Executes visual cues like "ORDER!" or "OBJECTION!" during risky commands such as
rm -rfor database drops. - Interaction Feedback: Raises a hand when the agent requires user input or permission, and displays a ghost animation during file deletion tasks.
- Sentiment Tracking: The character reacts to user tone; shouting or using profanity in prompts causes the character to turn its back in a "sulking" state.
Usage Monitoring
Beyond character animations, the software provides a "Survival HUD" mode. This interface acts as a status bar, using visual metaphors—such as hearts for remaining window capacity or fuel gauges for subscription limits—to keep usage constraints visible at a glance. The system supports multiple accounts per provider, allowing users to track various subscriptions simultaneously.
Technical Implementation
TokenTV is built with a focus on ease of deployment and hardware compatibility. It does not require flashing the clock's firmware, making it a low-risk hardware hack.
- Setup: Users can initiate the software via
npx token-tv startoruvx token-tv start. The application automatically detects the clock on the local network and identifies signed-in AI tools. - Compatibility: The project maintains a compatibility list for various hardware models, including the SmallTV-Ultra and SD_PRO series. It includes automated tests and a "doctor" command to troubleshoot connectivity or configuration issues.
- Extensibility: The project is modular, allowing for custom themes and new provider support. It includes a local web dashboard that mirrors the clock's output, enabling users to preview animations and manage settings without needing to look at the physical device.
Development and Maintenance
The project is actively maintained with regular releases that improve animation smoothness, add seasonal themes (such as holiday-specific decorations), and refine agent interaction logic. The software is licensed under the MIT license, and the community is encouraged to contribute new faces, providers, and hardware support via GitHub.