- Category
- Utilities
- Publisher
- tobymarks
- Repository
- Open repository
- Release
- Open release
- Current version
- win-v1.5.0
- Release date
- 2026-11-14
- Package size
- Windows 3.4 MB
esp32-ai-monitor
A macOS or Windows companion app plus an ESP32 desk display for keeping AI usage limits visible while you work. It reads Claude, ChatGPT, Antigravity, Gemini, Copilot, or Cursor usage through the local CodexBar CLI, then streams the current limits to a small USB connected ESP32 display: the 2.8" Cheap Yellow Display (CYD) or the square 4" Guition ESP32 S3 4848S040.
README
AI Monitor
A macOS or Windows companion app plus an ESP32 desk display for keeping AI usage limits visible while you work. It reads Claude, ChatGPT, Antigravity, Gemini, Copilot, or Cursor usage through the local CodexBar CLI, then streams the current limits to a small USB-connected ESP32 display: the 2.8" Cheap Yellow Display (CYD) or the square 4" Guition ESP32-S3-4848S040.
Usage data travels only over USB: the ESP32 needs no Wi-Fi, never sees cloud credentials, and there is no browser tab to keep open.
How It Works
The AI Monitor app on your Mac or Windows PC periodically asks the locally installed CodexBar CLI for the selected provider, applies your display settings, and sends a compact JSON frame over USB serial to the ESP32. The ESP32 renders the dashboard on its display.
AI providers -> CodexBar CLI -> AI Monitor app (macOS / Windows) -> USB serial -> ESP32 display
The Mac app can also flash firmware, check GitHub Releases for app and firmware updates, and remember per-device display settings.
Intelligent window switching
The Mac and Windows companions offer a third window mode, Intelligent. A
provider window becomes eligible when usage rises by at least five percentage
points, crosses 80/90/100%, or resets. Format version 2 display plugins may
declare optional attentionRules for their own source data. The built-in
Claude Code window requests a switch when a session first needs
permission or input, or completes and awaits the user. The first successful
sample or waiting state establishes a baseline; repeated values do not trigger
a switch. Windows stay visible for at least two minutes, each window has a
ten-minute cooldown, and touch selection pauses automatic choices for ten
minutes. Other pending windows remain eligible after a switch until their
original five-minute event expiry; ties prefer the lowest window index. The companion sends the existing manual set_views command, so no
firmware change is needed.
Display plugins (in development)
The companion apps can install declarative .aimplugin files from disk or an
HTTPS release URL. Each installed plugin appears as a placeable window in the
display manager. Plugins can define separate portrait, landscape, and square
layouts; the built-in AI dashboards remain the main purpose of the device.
The desktop fetches plugin data and sends bounded drawing scenes to firmware.
Firmware with sceneProtocol: 2 displays German umlauts, ß, and the degree
sign; the companions adapt text for older sceneProtocol: 1 firmware. Firmware
without scene support needs an update before plugin windows can be used.
Installing another compatible plugin does not require flashing again.
Formats 1–4 are supported. Format 3 adds a location stored separately for each display, filtered and sorted source lists, numeric conversion, and refresh intervals down to 20 seconds. Plugins that require a location show a hint until one is set under Display; their data requests then include its coordinates. Format 4 lets a plugin expose an HTTPS data URL in its settings. The endpoint must return the structure the plugin expects. Unchanged URLs follow the plugin author's new default after an update; custom URLs are preserved when valid. These features are handled by the companion, so they work with either scene protocol.
Plugins contain no executable code, and the app shows their data origin and unsigned status before installation, including whether they request the display location. On macOS, the visual window editor lets you assign providers, clocks, and plugins by clicking or dragging them onto a window. See the plugin architecture, authoring guide, and acceptance test.
Claude Code window (in development)
A built-in window shows which Claude Code sessions are waiting for approval or
input, or have finished. Claude Code reports this through HTTP hooks to the
companion on 127.0.0.1; the Plugins page sets the hooks up after a
confirmation. See Claude Code window.
Features
- Provider views for Claude, ChatGPT, Antigravity, Gemini CLI, GitHub Copilot, and Cursor
- Up to eight display windows, each showing a provider or a clock; they rotate after a set interval or stay put until you switch (firmware 2.19.0+)
- Touch navigation: tap the left or right half of the display to switch windows, long-press to open the on-device settings
- Standby clock on the display while the app is not running
- Session, weekly, and provider-specific usage rows where available (including Claude Fable)
- Centered circular ChatGPT display when only one limit is available, in portrait and landscape
- Antigravity model rows for Claude, Gemini Pro, and Gemini Flash; Gemini CLI rows for Pro, Flash, and Flash Lite; Cursor rows for plan, auto, and API usage
- Copilot premium-request quota as a single centered ring
- Used or remaining percentage display mode
- Live reset countdowns and local display clock
- Optional cost/extra-usage support when supplied by the provider data
- ChatGPT/Codex header badges for workspace extra credits and reset credits (see below)
- Automatic USB serial detection and instant resend on connect
- Per-device settings for orientation, theme, language, brightness, timezone, and board variant
- Portrait plus left/right landscape layouts on the CYD; on the square S3 board the view follows the side the USB cable points to
- Firmware flashing for the ILI9341 and ST7789 CYD variants and the ESP32-S3-4848S040
- Optional menu bar quick menu for provider switching
- Optional Wi-Fi for the standby clock and one explicitly selected public display plugin without a computer (experimental opt-in standalone mode and validation)
ChatGPT Header Badges
Since firmware 2.18.0 (Mac app 1.28.3, Windows app 1.0.1) the ChatGPT view can show small badges next to the provider name:
+Cr(green): the ChatGPT workspace has purchased extra credits, so you can keep working once your limit is used up. Owners and admins see the balance instead, for example+238or+2.5k. OpenAI does not share the workspace balance with other members, so they only see+Cr.- Arrow icon with a number (grey): available Codex reset credits. Each one resets your Codex limit early, once. They belong to your own account and you redeem them yourself in the Codex app or the Codex IDE extension; no admin is needed. CodexBar shows when they expire.
Without these badges the account reports neither. In portrait the header is narrow, so the reset-credit badge may be left out.
Quick Start
- Buy an ESP32-2432S028 / ESP32-2432S028R board, also known as a Cheap Yellow Display, or a Guition ESP32-S3-4848S040.
- Install CodexBar so its local CLI is available.
- Download the AI Monitor app from GitHub Releases: the Mac app (
app-v*), or the Windows app (win-v*). - Plug the ESP32 into your computer via a USB data cable.
- Flash the right firmware variant and choose the provider in the AI Monitor settings window.
A step-by-step build guide with photos is on Hackster.io.
Requirements
- macOS 14+ on Apple Silicon or Intel (the app ships as a universal binary), or Windows 10/11 x64 for the Windows app
- CodexBar installed with its local CLI; on Windows Win-CodexBar (
winget install Finesssee.Win-CodexBar), whosecodexbar-cli.exeprovides the same data - Windows only: a driver for the CYD's CH340 USB-serial chip if Windows does not install it automatically
- Windows only: the installer is not code-signed yet, so Windows SmartScreen warns on first launch. Choose "More info", then "Run anyway"
- At least one of Claude, ChatGPT, Antigravity, Gemini, Copilot, or Cursor set up in CodexBar
- ESP32-2432S028 / ESP32-2432S028R CYD board, or a Guition ESP32-S3-4848S040
- USB data cable, not a charge-only cable
- Optional: PlatformIO if you want to build or flash the firmware manually
CodexBar Dependency
AI Monitor does not talk to any AI service directly. CodexBar is the required local data source: its CLI obtains the provider limits that AI Monitor sends to the desk display.
Install CodexBar first:
- Website: codexbar.app
- Repository: steipete/CodexBar
- Latest download: CodexBar GitHub Releases
- Homebrew:
brew install --cask steipete/tap/codexbar
After CodexBar is running, enable the providers you want there. AI Monitor will then offer Claude, ChatGPT, Antigravity, Gemini, Copilot, and Cursor as display sources.
Hardware
Cheap Yellow Display (CYD)
- ESP32-2432S028R / R board: ILI9341 display controller
- ESP32-2432S028 / Hybrid board: ST7789 display controller
Common hardware:
- Display: ESP32-2432S028 2.8" 320x240 TFT
- Touch: XPT2046
- MCU: ESP32-WROOM-32
- Backlight: GPIO 21
If a CYD stays white or shows noise after flashing, flash the other CYD panel variant from the AI Monitor app. Select the ST7701 image only for the Guition S3 board.
Guition ESP32-S3-4848S040
- Display: 4" 480x480, ST7701S over 16-bit RGB
- Touch: GT911
- MCU: ESP32-S3 with octal PSRAM and 16 MB flash
The square layout shows the weekly limit as a large ring with countdown and reset time, and the session as a bar. Since firmware 2.21.0, the S3 board saves its settings in flash, including the settings needed for its standby clock. The companion also keeps a per-device profile and reapplies it on connection. Plugin packages, source data, and the display location remain on the computer; plugin windows need the companion to fetch data and send scenes over USB. The apps pick the chip automatically when flashing.
Enclosures
3D-printable cases on MakerWorld:
- CYD landscape: Weather Station Pro for ESP32-2432S028 CYD
- CYD portrait: Aura Smart Weather Forecast Display
- ESP32-S3-4848S040: Case Stand V3
Build from Source
ESP32 Firmware
# Install PlatformIO, then:
pio run
pio run -e esp32dev -t upload
pio device monitor
Firmware targets:
esp32dev: ILI9341 / R-board buildesp32dev-st7789: ST7789 / Hybrid-board buildesp32s3-4848s040: Guition ESP32-S3-4848S040 build (Arduino core 3.x via pioarduino, the CYD builds stay on espressif32 6.13.0)
Installer Binaries
./scripts/build_firmware.sh
This merges the bootloader, partitions, app image, and boot app into browser-flashable binaries under installer/bin/, then updates the installer manifests. It requires PlatformIO CLI and esptool.py.
Mac Companion App
cd companion
./build.sh
The supported Mac app source lives in companion/ and is built with Swift, AppKit, POSIX serial I/O, and GitHub Releases update checks.
Windows Companion App
cd companion-windows
pnpm install
cargo tauri dev
The Windows app lives in companion-windows/ and is built with Tauri 2 (Rust backend, React frontend). The Rust workspace holds the shared logic (crates/core), the serial link (crates/serial) and the
More details from the publisher
Release notes
AI Monitor für Windows 1.5.0