Skip to content

About

Real-time Claude Code rate-limit monitor on ESP32 boards!

Resources

Stars

126 stars

Watchers

2 watching

Forks

Latest commit

 

History

97 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Claude Usage Stick

Your Claude Code rate limits, glanceable on a tiny ESP32 stick.

Web Flasher Wiki Boards License

Claude Usage Stick — a LilyGo T-Display S3 turning slowly, its screen showing the 5-hour and 7-day usage bars, reset countdowns and the four model mascots

No toolchain, no drivers, no clone — just Chrome, Edge or Firefox and a USB-C cable.

5-hour & 7-day usage windows · reset countdowns · model health mascots · PIN-encrypted token · web control panel · screen carousel with 7-day chart, Anthropic news & clock (✨ Dust, v3)


A standalone desk gadget that polls the Anthropic API and shows your Claude Code rate-limit usage in real time — no computer, no app, no cloud. Flash it, connect it to WiFi from your phone, and it just sits there telling you how much runway you have left.

What it does

On every board

  • Live usage bars — the 5-hour and 7-day rate-limit windows, read straight from the anthropic-ratelimit-unified-* headers, refreshed every 30 s – 5 min
  • Reset countdowns — exactly how long until each window frees up
  • Model health mascots — Haiku / Sonnet / Opus / Fable from status.claude.com as blinking Clawds (Mango v2+)
  • PIN-encrypted token — AES-256-GCM on the device's own flash; the PIN is never stored, and 10 wrong tries wipes it
  • Captive-portal setup — no hardcoded credentials, no serial console; configure it from your phone

✨ New in Dust (v3 — T-Display S3 and M5StickC Plus)

  • Web control panel — the stick serves its own settings page at http://claude-usage-stick.local: every setting, WiFi changes and factory reset from any browser on your LAN. Logging in with the PIN also unlocks the screen
  • Token rotation without a reset — paste a fresh claude setup-token, confirmed with your PIN and verified live against the API; the stored token is write-only
  • Screen modes — static, carousel (dwell 5–30 s) or desk clock; Button A steps through every screen
  • 7-day usage chart — one sample every 30 minutes, persisted on-device; time spent off shows as honest gaps
  • Anthropic news — the latest headlines, streamed from the official feed every 6 h
  • Clock & timezone — local time on the clock screen and on the chart's day markers
  • WiFi recovery — an unreachable network opens a reconfigure portal (token, PIN and settings survive) instead of a reboot loop
  • Quality of life — brightness and screen flip persist across reboots, the header alternates device name ↔ address, mDNS, and the board's full 16 MB flash + 8 MB PSRAM are finally in use

Get one running

⚡ Flash it from your browser

oauramos.github.io/claude-usage-stick — pick your board, plug it in over USB-C, hit Flash. Nothing to install; any desktop browser with Web Serial — Chrome, Edge, Opera, or Firefox 151+.

Or build from source

git clone https://github.com/oauramos/claude-usage-stick.git
cd claude-usage-stick

pio run -e <env> -t upload      # firmware

Needs the PlatformIO CLI. Board envs are listed in Supported boards.

Either way, the device then opens its own WiFi network so you can configure it from your phone — see Setup and daily use.

Documentation

Everything lives in the wiki:

Features What the device shows
The UI Firmware versions and display tiers
Web panel The in-browser control panel (✨ Dust boards)
Supported boards The lineup, with a guide for each board
Flashing Web flasher and building from source
Setup and daily use Captive-portal setup, PIN, controls
How it works The API request and the headers it reads
Security How your OAuth token is encrypted on-device
Troubleshooting When something doesn't work

Wiki pages are written in wiki/ and published automatically, so docs get reviewed in PRs like any other change.

Contributing

PRs welcome — especially new board support and photos of real builds. See Project structure for the repo layout and what adding a board involves.

License

MIT

About

Real-time Claude Code rate-limit monitor on ESP32 boards!

Resources

Stars

126 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages