Skip to content

New Share your ideas with the AWTRIX community. Keep your creations together in your account.

Sign in

Which AWTRIX do you have? Choose it once and the Hub shows what runs on it.

ScriptAWTRIX NG

Quotagent

On an AWTRIX display
Quotagent shown on an AWTRIX display
Quotagent · by toinux

On your display

OpenAI Codex, Claude Code, and other AI quotas on AWTRIX NG. See what’s left, when it resets, and whether you’re on pace. Requires an MQTT publisher.

Which AWTRIX do you have? See below where it runs, or choose your device.
Topic
Miscellaneous
Includes
Script

Runs on

  • Runs on 32×8 (TC001 & DIY)
  • Runs on 52×16 (TC002)
  • Does not run on 32×8 with AWTRIX 3 (TC001 & DIY) Made for AWTRIX NG.

Choose your display in the next step.

Send to AWTRIX

Choose your AWTRIX

QuotagentAWTRIX NG script

Install this script on your AWTRIX NG. Its icons and sounds are installed with it.

Your AWTRIX’s local address, for example 192.168.178.39 or awtrix.local.

The name shown in your AWTRIX script list. Use letters, digits, hyphens or underscores.

Connection & device login

Connect your phone or computer to the same network as your AWTRIX. Allow local network access if your browser asks.

Use the device’s IP address, without a page path such as /#/apps.

If your AWTRIX requires a login, the username and password fields will appear when you connect.

Sign in to the Hub to install scripts. Attached files are installed separately.

Script description

See how much AI quota you have left, when it resets, and whether you’re using it faster than planned. Quotagent shows one quota full-width or two side by side on a 32 × 8 AWTRIX NG display. The white tick marks how much quota would remain at an even pace. Bar colors and the low-quota threshold are adjustable.

Use it with OpenAI Codex, Anthropic Claude / Claude Code, Google Antigravity, Kimi Code, MiniMax, Z.ai, Alibaba Coding Plan, or any source that exposes compatible quota data. A separate MQTT publisher is required. Quotagent does not sign in to providers or fetch quotas itself.

Setup

  1. Install Quotagent and enable MQTT on your AWTRIX NG.
  2. Publish a single retained JSON message to quotagent/status on the same MQTT broker. If you use a different topic, set MQTT topic in Quotagent to match.
  3. Keep Quotagent in your regular rotation, or enable Show on change for a five-second notification that leaves the current app in place.

Codex on Omarchy? Use the ready-made Omarchy relay. For other setups, see the MQTT contract and test command.

Copy this prompt into your coding agent

Set up an MQTT quota publisher for Quotagent on my AWTRIX NG for [provider and plan]. Read the Quotagent MQTT contract. Find a quota source I already have access to; for Codex on Omarchy, use the existing cache and relay. Ask me for any missing details, including the broker host and port and which quota windows to show.

Publish a single retained JSON object with a windows array of one or two entries to quotagent/status on the broker used by AWTRIX. Each entry needs durationSeconds (the full window length), remainingPercent (0–100, not used percent), and resetAt (Unix seconds, not milliseconds). Keep the order stable. Set up automatic updates using the source’s existing refresh mechanism if possible.

Verify that a new MQTT subscriber receives the retained message and that Quotagent shows the expected bars and reset countdowns. Keep credentials out of MQTT payloads and logs. Ask before replacing an existing publisher or changing device settings.

More scripts in Miscellaneous

Something wrong with this script? Report it.