# AI Quota Monitor

把自己的 AI 服务额度、网页面板和 ESP32 桌面屏连在一起。

Self-hosted monitor for your AI service quotas (Claude, Codex, Cursor, OpenRouter). Go API + web panel + ESP32 desk display with a 3D-printed enclosure.

把自己的 AI 服务额度、网页面板和 ESP32 桌面屏连在一起。

- id: a-bianchi-ai-quota-monitor
- author: a-bianchi
- repository: https://github.com/a-bianchi/ai-quota-monitor
- license: MIT
- shape: wide
- scenes: ai, art
- boards: ESP32
- browser_playable: no
- preview: Project screenshots
- html: https://esp32gallery.com/projects/a-bianchi-ai-quota-monitor/
- html_zh: https://esp32gallery.com/zh/projects/a-bianchi-ai-quota-monitor/
- json: https://esp32gallery.com/data/catalog/projects/a-bianchi-ai-quota-monitor.json

## Hardware

ESP32-class board. Verify the exact board revision, display, power source and wiring in the upstream build guide.

ESP32 类开发板；请在上游构建文档中核对具体板型、屏幕、供电与接线。

## English

```
One screen for the usage limits that each AI service hides on its own page. A Go server polls OpenRouter, Codex, Cursor and Claude accounts, normalises everything into unit, used, limit, reset time and a usage level, then serves both a web panel and a physical desk display — a Waveshare ESP32-C6-LCD-1.47 with a 172 × 320 px screen. The display and panel read only the stored snapshot, so opening them never hits a provider. Personal and work accounts are kept apart behind a scope filter, and example mode ships six fictitious accounts. The firmware is an Arduino IDE sketch; the BOOT button pages through the screens and the RGB LED goes green, orange or red. The server needs Go 1.22 or Docker Compose. Kiro is only evaluated, and the Claude subscription route is flagged as against Anthropic's terms.
```

## 中文

```
把各家 AI 服务的额度收进一张屏：一个 Go 程序按定时器轮询 OpenRouter、Codex、Cursor、Claude 的用量，统一成单位、已用、上限、重置时间和 usageLevel，再同时供网页面板和一块 Waveshare ESP32-C6-LCD-1.47（172 × 320）桌面屏读取。屏和面板只读缓存，打开它们不会去打供应商接口。个人与工作账号分开，用 scope 过滤。屏的固件用 Arduino IDE 编译，BOOT 键翻页，RGB 灯按用量变绿、橙、红，外壳 3D 打印。服务器要 Go 1.22 或 Docker Compose，默认进六个虚构账号的示例模式。项目文档写明 Claude 订阅那条接法违反 Anthropic 条款，Kiro 只做了评估。
```
