I spend my working days inside an agent CLI. The session runs for hours, the context window fills, the quota clock ticks, and the stock status line at the bottom of the screen reports almost none of it. So I built the one I wanted: glm-statusbar-themes, a status line for Claude Code running on the GLM / z.ai proxy, published on npm and GitHub.
It answers the four questions I actually ask mid-session. How much have I used? How close is the five-hour wall? How full is the context? What would this have cost at Claude prices? One glance, no commands, no dashboard.
- 🎯 The problem: a bar that says almost nothing
- 📊 What it shows
- ⚙️ How it works
- 🎨 Themes, styles, modules
- 🚀 Install
- 🪞 The homage on this page
- 🔗 Resources
| 📦 Package | glm-statusbar-themes on npm · MIT · zero dependencies |
| 🖥️ Runs as | Claude Code’s statusLine command: session JSON in on stdin, one rendered line out |
| 🎨 Themes | 25 palettes, 22 dark and 3 light |
| 🧩 Layouts | 4 styles (Classic, Capsule, Hairline, Gradient) · 7 swappable bar modules |
| 📊 Always on | Model, Session, Daily, Monthly, and 5H token counts as text |
| ⏱️ Quota | 5-hour rolling window with percentage and reset time |
| 💰 Cost | Session, 5-hour, and monthly, priced at Claude equivalents |
| ⚙️ Config | ~/.claude/glm-statusbar.json, managed from the CLI |
| 🔢 Version | 1.1.3 |
🎯 The problem: a bar that says almost nothing
Claude Code lets you replace its status line with a command of your own, but the default shows little more than the model name. On a proxy plan, the number that governs your day is the five-hour rolling quota, and it is invisible. Context pressure is worse: you learn the window was full when the session compacts, not before. I wanted the governing numbers on screen, all the time, rendered well enough that I would actually look at them.
📊 What it shows
Part of the bar is text in every layout: model, session tokens, daily tokens, monthly tokens, and tokens burned in the last five hours. The rest is swappable bar modules: the five-hour quota with its reset time, MCP tool-call quota, the context window as a percentage and as tokens used over window size, cache hit rate, daily burn against its own average, five-hour tokens, and cost. Cost comes in three scopes: the session priced exactly from its token mix, and the five-hour and monthly figures estimated at a blended rate, all at Claude pricing equivalents, so a GLM session reads in the dollars it would have cost on the meter.
⚙️ How it works
Claude Code pipes a JSON snapshot of the session to the statusLine command on stdin and prints whatever comes back on stdout. The tool parses the context locally, fetches usage and quota from the GLM API, and caches the response on disk, so rendering stays instant and the API is not polled by a bar that refreshes constantly. A bridge file mirrors the current session state for other tools that want to watch context pressure themselves. The whole package is zero-dependency Node: the install is the code, and nothing else rides along.
🎨 Themes, styles, modules
The design space is 25 themes times 4 styles times whichever of the 7 modules you slot in. Classic is the two-line battery-bar layout. Capsule renders colored pills. Hairline is the minimal one-liner. Gradient shifts each bar’s color from cool to hot as usage climbs. Severity is a system, not a garnish: below the warning threshold a metric sits in the theme’s ok color, then warning, then critical, and both thresholds and all three colors are overridable. Dracula, Tokyo Night, Solarized, Gruvbox, and Catppuccin are all in there, next to a run of louder palettes for the synthwave hours. Configuration lives in ~/.claude/glm-statusbar.json and is managed from the CLI (glm-statusbar-themes config set theme dracula), with environment variables ranking above the file and one-off flags above those.
🚀 Install
Two ways in: npx glm-statusbar-themes with no install at all, pointed to from the statusLine setting in ~/.claude/settings.json, or npm install -g glm-statusbar-themes for a permanent copy. It needs Node 16 or better, and a GLM token in the environment for the API-fed figures; context and cost render from the session payload alone. The package is MIT licensed, and it stands on two projects worth naming: glm-coding-plan-statusline, whose GLM data layer it inherits, and claude-code-usage-bar, whose truecolor rendering it inherits.
🪞 The homage on this page
If the bar at the foot of this site’s homepage terminal looks familiar, that is why. The session up top ships a small homage: the same Classic arrangement of model, session, context bar, five-hour bar, and cost, rendered in the site’s own theme tokens so it follows the site’s eight terminal themes instead of the package’s twenty-five. Its numbers are session dressing rather than telemetry, ticking up gently as visitors run commands. The real one earns its keep in my terminal every day. The copy here is a signature.
🔗 Resources
- Claude Code, the agent CLI the status line renders for
- Z.AI, the GLM provider whose API feeds the quota figures
- glm-statusbar-themes on npm, the package page, the zero-install way in
- glm-statusbar-themes on GitHub, the source repository

