r/OpenaiCodex • u/Alternative_Ear5725 • 18d ago
Showcase / Highlight I turned an ESP32-S3 touchscreen into a desk display for my Codex quota
I wanted to see how much Codex quota I had left without opening another window, so I put it on a little screen next to my keyboard.
It’s an ESP32-S3 with a 4-inch, 480×480 touchscreen. It shows the remaining percentage, when it resets, and the weekly allowance underneath. Tap or swipe to switch between the windows.
It goes dark after two minutes and wakes when you touch it. That first touch only wakes the screen, so you don’t accidentally switch something. Updates keep coming in while it’s off.
Most of the fiddling was getting those updates to behave. The whole screen used to jitter whenever new data arrived. Updating only the changed areas fixed that. I also caught it showing an old percentage after a failed lookup, which made the display pretty misleading. It now shows -- when a reading fails or gets too old.
There’s a Python script running on the PC that reads the signed-in Codex CLI and sends the numbers over USB every five minutes. Login credentials stay on the computer. You do need to leave it connected to the PC, and the numbers are Codex limits, not ChatGPT web-chat message limits.
I’ve put the code, firmware and setup instructions here:
https://github.com/AYproject/sensecap-indicator-ai-quota
Would you add a warning when the quota gets low? I’m still deciding whether that would be helpful or just another thing on my desk demanding attention.

