cd /news/developer-tools/antigravity-cli-custom-status-bar · home topics developer-tools article
[ARTICLE · art-28801] src=gist.github.com ↗ pub= topic=developer-tools verified=true sentiment=· neutral

Antigravity CLI custom status bar

A developer created a custom status bar for the Antigravity CLI that displays real-time model information, token usage, and quota limits for Gemini, Claude, and GPT models. The bash script reads a JSON payload and outputs a formatted string showing context window usage and remaining quota percentages.

read1 min views18 publishedJun 3, 2026

| #!/bin/bash | | | # Read JSON payload from stdin | | | payload=$(cat) | | | # Extract basic model information | | | model=$(echo "$payload" | jq -r '.model.display_name // "N/A"') | | | # Extract token usage data | | | input=$(echo "$payload" | jq -r '.context_window.total_input_tokens // 0') | | | output=$(echo "$payload" | jq -r '.context_window.total_output_tokens // 0') | | | used_pct=$(echo "$payload" | jq -r '.context_window.used_percentage // 0 | round') | | | # Extract remaining quotas for Gemini, convert to percentages, and round | |

| gem_5h=$(echo "$payload" | jq -r '.quota["gemini-5h"].remaining_fraction // 0 | (. * 100) | round') | |
| gem_wk=$(echo "$payload" | jq -r '.quota["gemini-weekly"].remaining_fraction // 0 | (. * 100) | round') | |

| # Extract remaining quotas for Claude/GPT (3p), convert to percentages, and round | |

| p3_5h=$(echo "$payload" | jq -r '.quota["3p-5h"].remaining_fraction // 0 | (. * 100) | round') | |
| p3_wk=$(echo "$payload" | jq -r '.quota["3p-weekly"].remaining_fraction // 0 | (. * 100) | round') | |

| # Build the final status bar string showing all limits | | | echo "🤖 ${model} | Context ↓ ${input} (${used_pct}%) | Output ↑ ${output} | Quota(5h/wk) Gemini: ${gem_5h}%/${gem_wk}% | Claude & GPT: ${p3_5h}%/${p3_wk}%" |

── more in #developer-tools 4 stories · sorted by recency
── more on @antigravity cli 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/antigravity-cli-cust…] indexed:0 read:1min 2026-06-03 ·