@noctuacore/agent-bar
v5.3.0
Published
LLM quota monitor for Waybar - Claude, Codex, Amp
Maintainers
Readme
Waybar modules for watching agent CLI usage limits: remaining quota, used quota, reset windows, and login/error state.
Supported providers:
- Claude Code
- OpenAI Codex
- Amp
Install
Recommended (zero pollution, runs setup automatically):
curl -fsSL https://raw.githubusercontent.com/othavioquiliao/agent-bar/master/install.sh | bashRequires bun and git. Installs to ~/.agent-bar and runs agent-bar setup.
setup installs the Waybar modules, CSS, provider icons, terminal helper, and
~/.local/bin/agent-bar symlink.
To update later, run:
agent-bar updateAlternative: Bun global
If you already use Bun globally and prefer that workflow:
bun add -g @noctuacore/agent-bar && agent-bar setup⚠ Don't drop the
-g. Without it,bun addwritespackage.json+bun.lockto your current directory. If that happens, runagent-bar doctorto clean up.
Alternative: AUR (Arch)
On Arch, install the prebuilt standalone binary from the AUR — no Bun runtime required:
paru -S agent-bar-bin # or: yay -S agent-bar-bin
agent-bar setupUpdate it with your package manager (paru -Syu), not agent-bar update.
For development (live edits reflected in Waybar on the next poll), see CONTRIBUTING.md → Dev install.
Commands
agent-bar # Waybar JSON
agent-bar status # Terminal quota view
agent-bar menu # Login and layout TUI
agent-bar update # Update the install (npm package or managed checkout)
agent-bar setup # Re-apply Waybar integration
agent-bar uninstall # Interactive removal
agent-bar remove # Forced removal
agent-bar doctor # Detect & clean leftovers in $HOME
agent-bar --version # Print versionUse with other bars (Quickshell, Eww, Ironbar)
Waybar is the default, but any bar can consume the raw, versioned JSON contract:
agent-bar --format json # one-shot structured JSON (all providers, no Pango)
agent-bar --watch # stream NDJSON: one JSON object per line (default 60s)See JSON output for the schema and a Quickshell example.
agent-bar update detects the install type. For the managed ~/.agent-bar
checkout (the install.sh path) it fetches and resets to upstream. For an
npm/Bun global install it updates the package. In a dev checkout it refuses
and tells you to use git pull.
