TOKEN USAGE DISPLAY / ESP32 APPLICATION
Token Usage Indicator
Personal-desk firmware showing Claude+Codex token usage on ESP8266 SSD1306 OLED and TTGO T-Display ESP32 color TFT

About this project
About this project
Four bars report how close you are to the Claude and Codex limits: the five-hour session and the seven-day window, one pair per provider. Two builds share one codebase, an ESP8266 with a 128x64 SSD1306 and a TTGO T-Display with a 240x135 colour panel, with parsing, caching, timers and battery maths kept hardware-agnostic and unit-tested on a computer. Anthropic is queried directly with an OAuth bearer token pasted at the setup portal; Codex needs a LAN proxy, because chatgpt.com rejects anything that is not the Codex CLI at the TLS layer. Polls run every 300 seconds, a 401 triggers one refresh attempt, and eight failed fetches in a row reboot the board to clear heap fragmentation. Only one client can hold the rotating refresh token.
From the README
From the README
- Poll
- Within one poll cycle (default 300 s) the dashboard populates.
- Limit
- chatgpt.com rejects any non-Codex-CLI TLS fingerprint at the Cloudflare edge
- Limit
- Refresh tokens rotate on every use
- Recovery
- after 8 consecutive status==0 fetches
Hardware
Boards: TTGO T-Display
Supported hardware: TTGO T-Display. Confirm the exact board revision and pin map in the upstream repository.
What the source supports
Upstream evidence: Reviewed from public README media at commit 862f0fe44306 under MIT. Firmware was not executed.
Media credit & rights
Upstream project media · rights remain with its owner · Credit: pa0l0s
Screenshots decoded from the upstream README at a pinned commit. Repository code and firmware were not executed; the license texts are included in the preview package.
View original source ↗ Copyright & removal · Reviewed
More projects on these boards
PeekESP Affichage Flipr Home Assistant
Same use case
Clawd Mochi Plus DFR1154 AI Camera Desktop Buddy StickS3 Weather Clock
See what an ESP32 project looks like, and whether it runs on your board.
FILTERS
Browse by form factor. Check the exact board, chip and peripherals before installing.
Try a project
Newest listings
Give your project a little spotlight.
Repository links do not imply author endorsement or verified hardware compatibility. Check the upstream safety guidance before powering or flashing a build.