ESP32 Gallery

PROJECT / 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

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.

Token Usage IndicatorOpen project preview ↗

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

Same use case

StickS3 Weather Clock Tiny jarvis AI Monitor P4 S3 AI Passport Nabo Xiaozhi AI Passport Nabo Xiaozhi Dive

Source repository ↗

Browse all projects

Explore projects

Sort

FILTERS

Browse by form factor. Check the exact board, chip and peripherals before installing.

MADE SOMETHING?

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.

Try it

Project source ↗
Build & safety

Open project page ↗
FROM YOUR WORKBENCH

Small board.
Big idea.

Share what you've made.

Automatic checks start now. Most reviews finish in 1–3 days.

Prefer GitHub? Open an issue ↗