A tiny Cinnamon companion keeping Z.ai GLM Coding Plan usage beautifully in view. Forked from cinnamon-chatgpt-usage.
  • JavaScript 59.3%
  • Python 31.8%
  • Shell 8.7%
  • Makefile 0.2%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
claude 7de1039285
All checks were successful
Checks / Functional checks (push) Successful in 45s
Tests never reach the network (netguard) (#30)
Port of cinnamon-claude-usage's test network guard, hardened in three review rounds: loopback-only lookups, connects and sends, proxies bypassed, every lookup proven guarded before its call, a loud half setup. No test reached the network before the change; test-only, payload unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-28 19:41:08 +00:00
.forgejo/workflows CI: log tool versions before the check suite (#2) 2026-09-26 14:13:25 +00:00
.github Readable accents, the "Cred…" fix and the 1.1.0 release material (#25) 2026-10-28 01:33:13 +00:00
.zcode/skills Tests never reach the network (netguard) (#30) 2026-10-28 19:41:08 +00:00
docs Tests never reach the network (netguard) (#30) 2026-10-28 19:41:08 +00:00
icons Sweep the ChatGPT-era leftovers out of docs, templates and tooling (#18) 2026-09-21 01:18:59 +00:00
packaging Point every self-reference at the laboratory; release 1.0.7 (#8) 2026-09-26 16:50:43 +00:00
po Z Usage Monitor 1.1.0 — family hardening: key in the environment, replay (#24) 2026-10-28 01:00:52 +00:00
scripts Point every self-reference at the laboratory; release 1.0.7 (#8) 2026-09-26 16:50:43 +00:00
tests Tests never reach the network (netguard) (#30) 2026-10-28 19:41:08 +00:00
.gitignore Z Usage Monitor 1.0.0 — Z.ai Coding Plan quotas + ZCode plan buckets (#1) 2026-09-19 03:13:00 +02:00
api_key_settings.py Release 1.0.5: inline API keys launcher, UUID fork credit (#22) 2026-09-21 04:20:13 +02:00
applet.js Readable accents, the "Cred…" fix and the 1.1.0 release material (#25) 2026-10-28 01:33:13 +00:00
ATTRIBUTION.md Readable accents, the "Cred…" fix and the 1.1.0 release material (#25) 2026-10-28 01:33:13 +00:00
CHANGELOG.md Readable accents, the "Cred…" fix and the 1.1.0 release material (#25) 2026-10-28 01:33:13 +00:00
icon.png Z Usage Monitor 1.0.0 — Z.ai Coding Plan quotas + ZCode plan buckets (#1) 2026-09-19 03:13:00 +02:00
install.sh Prepare ChatGPT Usage Monitor 1.0.0 for Cinnamon Spices (#46) 2026-09-08 13:17:42 +02:00
LICENSE Create ChatGPT usage applet 2026-08-28 00:48:48 +02:00
Makefile Tests never reach the network (netguard) (#30) 2026-10-28 19:41:08 +00:00
metadata.json Z Usage Monitor 1.1.0 — family hardening: key in the environment, replay (#24) 2026-10-28 01:00:52 +00:00
notification_settings.py Prepare ChatGPT Usage Monitor 1.0.3 (#49) 2026-09-09 11:37:23 +02:00
README.md README: absolute license badge link (#11) 2026-10-02 10:59:30 +00:00
SECURITY.md Readable accents, the "Cred…" fix and the 1.1.0 release material (#25) 2026-10-28 01:33:13 +00:00
settings-schema.json Z Usage Monitor 1.1.0 — family hardening: key in the environment, replay (#24) 2026-10-28 01:00:52 +00:00
uninstall.sh Z Usage Monitor 1.0.0 — Z.ai Coding Plan quotas + ZCode plan buckets (#1) 2026-09-19 03:13:00 +02:00
usage-format.js Readable accents, the "Cred…" fix and the 1.1.0 release material (#25) 2026-10-28 01:33:13 +00:00
z_usage.py Z Usage Monitor 1.1.0 — family hardening: key in the environment, replay (#24) 2026-10-28 01:00:52 +00:00

Z Usage Monitor icon

Z Usage Monitor for Cinnamon

Keep your Z.ai GLM Coding Plan beautifully in view — right in your Cinnamon panel.

Checks License GPL-3.0-or-later Cinnamon 5.8 or newer supported Z.ai monitor API

Z Usage Monitor — quota rings, plan buckets and activity chart

Full usage overview with the gradient plan pill Every window with its recent consumption
Usage menu with plan buckets, credits and 24-hour histories Scrolled usage menu with the recent-consumption charts of every plan window

Only the Coding Plan active? The popup trims to the essentials

Compact usage menu with only the coding plan windows, credits and 24-hour activity charts

Same values as above — without ZCode Start Plan or Global Build quotas the popup stays sleek.

Every active quota at a glance

Panel hover summary listing every plan window with its remaining percentage

Hovering the panel icon summarizes every plan window with its remaining quota.

General settings Colors and thresholds
General settings with quota sources and refresh options Color settings with warning and critical thresholds

Why you will love it

  • Everything at a glance — 5-hour and weekly quota windows as rings in the panel and the popup, with live reset countdowns. Either panel window can be hidden when you prefer it calm.
  • All your plans, stacked — the personal Coding Plan plus the ZCode Start Plan and Global Build token buckets, each with its own collapsible section.
  • API-key-less by default — no setup: the applet reuses the credentials of your signed-in ZCode app. It only performs read-only GET requests against https://api.z.ai.
  • Built for real panels — horizontal and vertical panels, threshold colors, pinned header and action footer, and a scrollable popup that never lets content escape.
  • Sticky chrome — title, quota rings and the action buttons stay visible while the details scroll beneath them.

Installation

./install.sh

Then enable Z Usage Monitor via System Settings → Applets and add it to a panel. Requires Python 3.10+ and Cinnamon 5.8 or newer.

Credentials: nothing to configure if the ZCode app is signed in — the applet picks up its Coding Plan API key automatically. Optional overrides: the Z.ai API key setting, the ZAI_API_KEY environment variable, or the file ~/.config/cinnamon-z-usage/api-key.

The popup

Zone What you get
Header (pinned) Title, the gradient plan pill, the last-update stamp and the 5h / 7d quota rings
Usage limits Coding Plan 5h/7d plus ZCode Start Plan and Global Build sections, each with reset countdowns
Credits Remaining credits plus the "Used:" line with 24h/12h/4h/1h consumption tokens
Recent consumption Per-plan 1h/4h/12h/Today summaries and the 24-hour activity charts
Footer (pinned) Z.ai Chat, ZCode, Refresh now, Usage dashboard

Credits

Built with love by Claudiu & ZCode as part of OSS Singularity. Forked from cinnamon-chatgpt-usage by Claudiu & Codex. All bundled icons are original OSS Singularity artwork (GPL-3.0-or-later) except the bundled symbolic action icons from Ubuntu Yaru; see icons/ATTRIBUTION.md.

Licensed under GPL-3.0-or-later.