GitHub - wassim-azi/agy-powerline: Google Antigravity CLI (agy) statusline with Google Gemini (Hydrogen, Neon, Argon, Carbon, Flash) and Anthropic (Claude/Sonnet) quota pacing, context, Git widgets, 22 themes, zero dependencies, and live configurators.

GitHub

8 min read Original article ↗

English | 简体中文 | 日本語 | Français | Español | 한국어 | Deutsch

Version Downloads Stars CI CodeQL OpenSSF Scorecard Dependencies Platforms License: MIT Web Configurator Mentioned in Awesome Gemini CLI

A fast, configurable agy statusline for Google Antigravity CLI.

See your model, Google Gemini (Hydrogen, Neon, Argon, Carbon, Flash) and Anthropic (Claude, Sonnet) 5h/7d quotas with pace markers and run-out forecasts, context window, tokens and cost, agent state, git branch and more at a glance. Pick widgets, themes, layout and bar-wide settings in an interactive editor. One command to install, no dependencies.

agy-powerline interactive editor: add the session cost by typing cost, preview presets, browse and filter themes with /, compare Pills, Lines and Classic layouts with a live preview of the bar, and inspect meter styles in Settings

Why agy-powerline?

Feature What you get Learn more
Quota pace & forecasts Pace markers show whether your 5h or 7d quota lasts until its reset, and forecast adds when it runs out at your current rate Quota guide · Calculator
Multi-provider quotas Google Gemini (Hydrogen, Neon, Argon, Carbon, Flash) and Anthropic (Claude, Sonnet) 5h and 7d quotas side by side, as what's left or what's used Payload reference
Context, tokens & cost Context window used, or measured against its compaction limit, session tokens and cache hits, tokens used today, over 7 or 30 days, and estimated spend, with budget alerts Widgets
Agent awareness What the agent is doing (including a tool waiting for your approval), subagents and background tasks, queued messages, approval mode and sandbox Payload reference
Git, with links Branch, changes, ahead/behind, worktree and stash, with clickable links to the folder, branch and commit pages, and fish-style shortening of long paths Widget options
Themes & layouts 22 WCAG AA themes (dark, light and color-blind safe) across pills, lines and classic, with gradients and 9 meter styles Theme gallery
Editor & Settings npx agy-powerline opens a live-preview editor that switches between sample scenarios and terminal widths, with 16 bar-wide settings: quotas as left or used, reset format, alignment, overflow, max width and more. The same in your browser Settings · Web configurator
Security & privacy Zero runtime dependencies, no network calls, no telemetry, automatic settings.json backups Security
Cross-platform Works on Windows, macOS, Linux, and WSL with built-in diagnostics (doctor) Install · Troubleshooting

Install

You need Node.js 20+ and the Antigravity CLI. Works on Windows, macOS, Linux and WSL (WSL notes).

npx agy-powerline             # install the statusline and open the editor
agy                           # start Antigravity

In a terminal, npx agy-powerline installs the scripts (or updates outdated ones while keeping your config), wires Antigravity's settings.json (after backing it up and asking before replacing an existing statusLine), and opens the live-preview editor right away. Restart agy once afterwards. For non-interactive or scripted installs, use npx agy-powerline init --yes. Details: how installation works.

Screenshot: the bar in a real agy session (Windows Terminal)

agy-powerline under agy's input box in Windows Terminal: a short conversation above, the three-row Pills bar below

Install from inside agy

agy-powerline is also an agy plugin. Add it, then run its setup skill in an agy session; it runs init and doctor for you:

agy plugin install https://github.com/wassim-azi/agy-powerline
/agy-powerline-setup

Restart agy once afterwards. Details: the plugin route.

Or paste this into an agy session.

Install the agy-powerline statusline: run `npx agy-powerline init --yes`, then tell me to restart agy.

--yes skips the prompts, which agy can't answer, and replaces any existing statusLine after backing up settings.json.

For a Nerd Font–free terminal, turn on ASCII mode (Settings via i in npx agy-powerline).

Customize

npx agy-powerline opens an editor with a live preview of your bar. Use ← → to switch between Widgets, Presets, Themes, Layout, Powerline and Settings, ↑ ↓ to move, Enter to pick, q to save and quit. The keys for each screen are shown at the bottom; the full list is in Configuration.

Prefer a browser? Build your bar in the browser with live previews, then download or import it.

Changes apply to a running agy on its next refresh.

Presets

Start from a preset, then adjust:

Preset Shows
default Model, context, git; 5h and 7d quotas with resets on a second row
compact One line: short model, tightest quota, context %, git
minimal One line: short model and git; context % and quota appear only when thresholds are met
agent Agent state, subagents, title, mode, sandbox; model, context %, artifacts, tightest quota
git Project, branch, worktree, stash; file counts, line changes, commit
tokens Context tokens, session tokens in/out, cache hit; tokens today and over 7 days
quotas Plan and model; 5h and 7d quotas side by side; third-party below
full Everything: session, project and git; context, tokens and cache; both quotas

Themes

Terminal background Themes
Dark dark-aurora (default), dark-ocean, dark-ember, dark-forest, dark-neon, dark-mono, dark-dracula, dark-onyx, dark-tokyo-night, dark-catppuccin-macchiato, dark-catppuccin-frappe, dark-catppuccin-mocha, dark-nord, dark-rose-pine
Light light-paper, light-sky, light-sunset, light-cream, light-gruvbox, light-tokyo-night
Color-blind safe colorblind-dark, colorblind-light
Your own colors custom (how)

Preview them all in the theme gallery or with npx agy-powerline theme --gallery. For one color sweep across each row, add a gradient: npx agy-powerline gradient <name> with aurora, sunset, ocean, forest, neon, candy, rainbow, mono or your own colors (how).

Layouts

Pills (default): powerline-style capsules. Choose round, angled, slanted or flat shapes, and optionally a blank line between rows.

agy-powerline Pills layout with the dark-aurora theme: model, context, cache hit, 30-day tokens, clock, RAM and OS; Gemini 5h quota with pace marker and reset, Anthropic (Claude/Sonnet) 5h quota, project and git; Gemini 7d quota and reset, Anthropic and Argon weekly quotas

On a light terminal

agy-powerline Pills layout with the light-paper theme on a light terminal

Lines: the same information as plain colored text.

agy-powerline Lines layout with the dark-aurora theme on a dark terminal

On a light terminal

agy-powerline Lines layout with the light-paper theme on a light terminal

Classic: plain colored text with | dividers and block meters, like ███░│░░░░░.

agy-powerline Classic layout with the dark-aurora theme on a dark terminal, with block meters

On a light terminal

agy-powerline Classic layout with the light-paper theme on a light terminal

Widgets

Widget Shows
model The model in use
clock The current local time (12/24-hour format set under clock)
fiveHourBar, weeklyBar 5h / 7d quota left as a meter, with a pace marker
fiveHourPct, weeklyPct 5h / 7d quota left as a percentage
fiveHourReset, weeklyReset Time until the quota resets, or the reset time
quota The quota closest to running out, with its reset
thirdPartyFiveHour, thirdPartyWeekly Third-party model quotas
context, contextPct, contextTokens Context window used: meter, percentage or token counts
git Branch, uncommitted changes and ahead/behind
gitChanges, gitFiles, gitSha, gitStash, gitWorktree Lines added and removed, staged/modified/untracked/conflicted files, commit ID, stashes, linked worktree
project, cwd Project folder, current folder
agent, agentState, plan, sandbox, artifacts, version Active agent, agent state (with confirmation flag), plan, sandbox, artifacts, CLI version
tasks, queue Running subagents, background tasks, queued user messages
mode Approval mode (e.g. accept-edits) and Vim mode
title The conversation's title
sessionTime Time since the active conversation started
totalTokens, cost, cacheHit, cacheRead, cacheCreate Session tokens, estimated cost (USD), and prompt cache usage
tokensToday, tokensWeek, tokensMonth Tokens used today, over the last 7 days, and over the last 30 days, all conversations (Node 22.13+)
ram Memory used on your machine
os System agy runs on: Windows, macOS, Linux or WSL
host Current user and short hostname from the OS (alex@devbox)
customText, env, exec Your own text, an environment variable, or a shell command

A widget with nothing to show hides itself. Widgets can be recolored, renamed, given another icon, made label-free or given their own alert thresholds: see Configuration.

Commands

Command What it does
npx agy-powerline Install (if needed), update outdated scripts, and open the editor
npx agy-powerline init [--yes] Install or update the statusline (supports --preset, --yes, …)
npx agy-powerline configure Open the editor (deprecated; alias config — use npx agy-powerline)
npx agy-powerline preset <name> Apply a preset (--list to see them)
npx agy-powerline theme <name> Switch theme (--list, --gallery)
npx agy-powerline gradient <name> Color each row with a gradient (--list, off)
npx agy-powerline layout <pills|lines|classic> Switch layout
npx agy-powerline caps <style> Switch the pill shape: round, angled, slanted, flat
npx agy-powerline export [file] Save your config to a file, to back it up or share it
npx agy-powerline import <file> Load a config, after showing what changes (--merge)
npx agy-powerline usage [--days N] Show local token usage totals (today, 7d, 30d) and daily breakdown
npx agy-powerline doctor Check the install and explain what's wrong
npx agy-powerline report Write a privacy-safe bug report
npx agy-powerline uninstall [--delete] Remove it from agy (--delete also removes its files)
npx agy-powerline render --demo Print the bar with sample data

Run any command with --help for its options.

Updating

npx agy-powerline init --yes   # install the new version's scripts
npx agy-powerline doctor       # check everything is up to date

Your settings are kept. Restart agy afterwards.

Troubleshooting

Run npx agy-powerline doctor first: it checks the install and tells you how to fix what it finds. Common problems and how to report a bug: Troubleshooting.

Privacy and security

  • No network calls, no telemetry. Everything comes from the data agy passes to the bar, from .git and from your OS. The only link out is g in the interactive editor, which opens the GitHub page in your browser.
  • Your settings are safe. init and uninstall back up settings.json and refuse to edit a file they can't parse.
  • Nothing runs unless you add it. Apart from quick git calls for ahead/behind counts and for the file and line counts of the git widgets you add, the only commands the bar runs are exec widgets you configure yourself.
  • Zero runtime dependencies, published from CI with npm provenance.

Full details: SECURITY.md.

Contributing

Contributions are welcome. Start with CONTRIBUTING.md (setup, architecture, adding a widget or theme) and the Code of Conduct. Open pull requests against main. Report bugs in GitHub issues or share ideas and feedback in Discussions.

Thanks to everyone who has contributed:

Yatharth Soni
Yatharth Soni
Danny Ward
Danny Ward
Yusuf Orçan
Yusuf Orçan
Yusuf Efe
Yusuf Efe
hiyouwhatsapp
hiyouwhatsapp
dharamdan01
dharamdan01
Ashvini Sundge
Ashvini Sundge
Adetayo Akinsanya
Adetayo Akinsanya
Rahul
Rahul
Logic769
Logic769

If agy-powerline is useful to you, a ⭐ helps other agy users find it.

Star History

Star History Chart

License

MIT © Wassim AZI