Kiro and OpenRouter usage in my herdr-app status bar

herdr-app is a desktop application which provides a workspace manager for AI coding agents. Similar to the herdr tui which runs in your terminal, herdr-app is a GUI with the same basic layout: sidebars for spaces and agents, and a tabbed terminal area in the middle. It uses a different backend, herdr-core, and draws its UI within the app instead of a terminal layout.

Both versions can be modded, but in different ways. The TUI uses plugins that write metadata into a layout. herdr-app uses mods: small JavaScript modules that the app loads and renders directly. A mod can add a status bar chip, a popup, or a whole pane, and can read shared state, call APIs, or run local commands.

I use two agentic providers, Kiro and OpenRouter. I wanted an at-a-glance way to see how much credit and usage I was burning while developing. I also wanted to try out the new herdr desktop app. So I built two mods.

kiro-usage

herdr-app-kiro-usage puts Kiro's ghost icon and the percentage of my plan used in the status bar.

The Kiro usage chip in the herdr-app status bar, showing a red ghost icon and 100 percent

The chip refreshes every five minutes and stays "quiet" until the number needs my attention:

  • muted below 70%
  • amber from 70% to 89%
  • red at 90% and above

Clicking it opens a popup with credits used and the plan limit, a progress bar, the subscription name, the next reset date, and a link to my Kiro account.

The Kiro usage popup showing credits used, subscription, and reset date

The mod doesn't store credentials of its own. A small Node helper reads the Kiro CLI's local SQLite database, uses the existing login to call Kiro's usage API, and prints the result as JSON. If the token is close to expiring, the helper asks the Kiro CLI to refresh it first.

openrouter-usage

herdr-app-openrouter-usage does the same for one OpenRouter API key.

The OpenRouter usage chip in the herdr-app status bar, showing key and account usage

The chip can show the key's usage and spend, plus account credit usage and spend. Each segment colours itself independently, so a key at 30% can stay muted while an account at 90% turns red. The icon follows the worse of the two, whether or not the text is shown.

The OpenRouter usage popup showing key and account credit usage

Clicking it opens a popup with key usage, account credit usage, spend over time, and links to OpenRouter activity and credits. Setup only needs a read-only management key and the monitored key's name or dashboard URL. The monitored key's secret is never requested or stored.

The OpenRouter configure dialog with the management key, API key name, and status bar toggles

Installing them

Each repository has the mod and a short installation guide. Copy mods/kiro-usage and mods/openrouter-usage into your herdr-app home, then point status bar blocks at them. I run them side by side: Kiro on the left and OpenRouter next to the command hint.

For local development I keep both repositories in my projects folder and symlink their mod directories into herdr-app's mods directory. That way the files I edit and the files herdr-app loads are the same files.

It's a small thing, but it means I can see the limit coming instead of finding out after I've already hit it.