ESP32 Projects
Start a build
Markdown

AI Monitor P4 S3 for ESP32-P4

An ESP32 display project for ESP32-P4 involving Touchscreen.

ESP32-P4See upstream buildUnrated
Parts and cost

Before you start

Check the exact Touchscreen configuration against the upstream wiring or parts list.

Upstream README

LimitBuddy

Your AI coding quota on a 4.3-inch ESP32 touchscreen beside the keyboard. Session and weekly limits, reset countdowns and low-limit alerts for Claude Code, Codex, ZCode and more, plus an animated companion that reacts to your token activity. USB only: no Wi-Fi, no cloud relay, and your keys never leave the PC.

LimitBuddy on an ESP32-P4 touchscreen next to the LimitBuddy terminal

Latest release Build and test status MIT license GitHub stars

Download · Quick Start · Providers · Terminal guide · Ask a question

How it works

flowchart LR
  A["AI tools on your PC<br>local token counters"] --> H["LimitBuddy host<br>(Windows PC)"]
  Q["Provider quota<br>over HTTPS"] --> H
  H -- "USB cable" --> D["ESP32 touchscreen<br>quota + companion"]

The PC does the reading. The display only receives numbers over USB. LimitBuddy never sends prompts to a model and has no incoming network listener.

Meet the companions

NOVA ORBIT CLAUDE WRAITH ¹ GLITCH ¹
NOVA on the Forest theme ORBIT on the Ocean theme CLAUDE on the Amethyst theme WRAITH GLITCH

¹ ESP32-P4 only. Four colour themes: Forest, Ocean, Amethyst, Ember. The companion's ring shows your tightest quota window, and its tag shows RUN / WAIT / FAULT / DONE. Previews are UI renders with sample data.

Read the display at a glance

Provider cards Needs you Even-burn marker 7-day history
Provider dashboard WAIT tag while a session needs you White marker on a quota bar Seven-day history chart

[!TIP] The white marker shows where an even burn would be by now. If the "left" bar is shorter than the marker, you are using quota faster than the window allows. Amber and red edges mean the quota is low or critical. See what each mark means.

Choose what you see
One AI on home Three AIs on home CARDS settings
One home card with every window, reset and session Three slim home cards Show or hide each AI; 1-3 home cards, 1, 2 or 4 usage cards

Tap CARDS on the home screen to hide AIs and pick 1, 2 or 3 home cards. One card shows every window with its reset and the session. The USAGE page takes 1, 2 or 4 cards (four compact cards). Hidden AIs still raise alerts.

Supported AI tools

Tool Activity Quota (5 h / 7 d) What you need
Claude Code ✅ ✅ Be signed in to Claude Code on this PC ²
Codex ✅ ✅ The official Codex CLI, signed in with ChatGPT
ZCode / Z.AI ✅ ✅ Optional Z.AI coding-plan key (also shows monthly MCP calls)
Gemini CLI, OpenCode ✅ — Nothing
Copilot, Cursor, Antigravity ✅ — An external numeric bridge

² Claude Code desktop does not run the statusline, so LimitBuddy reads quota from Anthropic's undocumented api/oauth/usage endpoint using your existing login. It checks at most every 5 minutes, lets the Claude Code CLI renew the login when it expires, and never logs or stores the token. Details.

Install (Windows 10/11 x64)

flowchart LR
  A["1 · Download ZIP"] --> B["2 · Install-LimitBuddy.cmd"]
  B --> C["3 · limitbuddy"]
  C --> D["4 · Settings:<br>board, port, AIs"]
  D --> E["5 · Flash<br>(new board only)"]
  E --> F["6 · Start host"]
  1. Download the terminal ZIP from Releases and extract it to a permanent folder (not Program Files).
  2. Double-click Install-LimitBuddy.cmd. It needs no admin rights and no separate Python.
  3. Open a new terminal and run limitbuddy.
  4. Go to Settings > Edit settings, choose your board, USB port and AI tools, then save. No AI is preselected.
  5. For a new board, go to Device > Firmware > First installation and type FLASH. Nothing is flashed automatically.
  6. Go to Settings > Start host. It keeps running after you close the terminal.

[!WARNING] The ZIP is not publisher-signed, so SmartScreen may warn you. Only continue for a download from this repository's Releases, and compare it with SHA256SUMS.txt. See Windows trust.

The LimitBuddy terminal

Hardware

Board Status Plug into
GUITION JC4880P433 ESP32-P4 ✅ Supported Espressif USB data port
Waveshare ESP32-S3-Touch-LCD-4.3 (original, not B/C) 🧪 Experimental USB TO UART

You also need a USB data cable. The ZIP includes both firmwares, so you don't need PlatformIO for normal use. See board details.

Troubleshooting

Symptom Fix
limitbuddy not recognized Open a new terminal after installing.
Display says NO HOST Go to Settings > Start host and check the port.
No USB connection Use a data cable, pick the right port, and close other serial tools.
Claude card says "check login" The host renews the login with the Claude Code CLI automatically. If it persists, run claude auth login once.
Codex quota unavailable Finish the official CLI sign-in in Provider setup.
Robot does not react It follows token increases, and some tools save usage late. Check Device > Check USB.
Anything else Use History > Diagnostic export (it contains no keys or conversations) and open an issue.

Privacy

  • 🔒 Keys and logins stay on the PC. The display never sees them.
  • 🚫 There are no model prompts, no incoming network listener and no automatic code updater.
  • 📁 The optional Z.AI key is stored in git-ignored tools/aim_host.json, so keep that file private.

Security policy · Security review · GitHub safeguards

Build from source

You need Python 3.10 or newer. On Windows, double-click AI-Monitor.bat. On Linux or macOS:

sh setup.sh
.venv/bin/python tools/aim_terminal.py

Developer guide · Contributing · Releasing · Watch the video · Show and tell


MIT for project-owned code and original NOVA/ORBIT artwork. Drivers, dependencies, fonts and provider marks keep their own terms: third-party notices, NOVA/logo sources, ORBIT, CLAUDE. Independent project, not endorsed by any AI provider. Formerly AI Monitor P4.