An Oh My Pi extension that keeps your Claude plan usage (5h / 7d windows) visible in narrow terminals.
omp's status line is a single row (the input editor's top border). On overflow it drops segments — and the built-in usage segment is among the first to go. In a narrow split (tmux pane, herdr pane, half-screen terminal) your Claude quota display silently disappears.
Whenever the active model's provider is Anthropic, the extension renders the usage windows on a dedicated line below the editor:
5h 74% (↻ Fri 14:10) · 7d 7% (↻ Mon 01:00)
- Same data source as the built-in
usagestatus-line segment (auth-broker usage reports), cached 5 minutes. - Same color thresholds: green < 50% ≤ yellow < 80% ≤ red.
- Auto-hides when a non-Anthropic model is active or no usage report is available.
- Reset times are absolute local times — "↻ Fri 14:10" means the window resets Friday at 14:10.
- Re-renders on terminal resize, turn end, and every 30 seconds.
git clone https://github.com/AnsCodeLab/omp-usage-widget
ln -s "$(pwd)/omp-usage-widget/usage-widget.ts" ~/.omp/agent/extensions/usage-widget.tsOr just copy usage-widget.ts into ~/.omp/agent/extensions/.
| Env var | Default | Meaning |
|---|---|---|
OMP_USAGE_WIDGET_COLS |
unset (always show) | If set, narrow-only mode: the widget shows only below this many columns, deferring to the built-in usage status-line segment when wide. |
If you prefer the status line to carry the usage info in wide terminals, set OMP_USAGE_WIDGET_COLS=140 and enable the built-in usage segment (~/.omp/agent/config.yml):
statusLine:
preset: custom
leftSegments: [pi, model, mode, collab, path, git, pr, context_pct, cost, usage]
rightSegments: [session_name]Keeping usage at the end of leftSegments (rather than in rightSegments) makes it survive longer as width shrinks — right-side segments are dropped first. The widget then covers the remaining gap when even the left side overflows. Note the built-in segment uses omp's own relative countdown format, not this widget's absolute times.
MIT