SuperAPIAI Directory

gas

github.com · AI developer platforms

gas is a macOS menu bar app that displays usage for Claude, OpenAI (Codex / ChatGPT), and Grok plans, including 5-hour session limits, weekly limits, and per-model weekly limits. It obtains data by reading undocumented endpoints; it is an unofficial tool and is not affiliated with Anthropic, OpenAI, or xAI. The menu bar label directly shows each provider's percentage; the menu lists the percentage, reset time, and next refresh time for each limit; by default it shows a pinned glass-style floating panel that can be dragged and toggled between horizontal and vertical layouts. It supports setting warning and critical alert thresholds (default 65% and 85%), and you can choose to display remaining or used percentages. On first use, if Claude Code, Codex CLI, or Grok CLI is missing, you can invoke the official installer with one click and open the login page. When the Claude token expires, gas runs claude -p once to let Claude Code renew it itself, at most once per hour, and this can be disabled in settings. Grok login is valid for about 6 hours; after it expires, the last values are retained and you are prompted to open Grok CLI to renew. gas refreshes every 5 minutes, and manual refresh is allowed once per minute; it only reads login state and does not modify it. Tokens are never logged, displayed, or sent anywhere other than the provider usage endpoints; there is no analytics and no telemetry, and state is stored locally. Requires macOS 14 or later; the glass appearance requires macOS 26. It can be installed via Homebrew or by downloading the pkg; because it is unsigned, you must allow it to open in System Settings the first time.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsmacOS · Linux

About this tool

gas is a menu bar tool for macOS that lets you check the usage of Claude, OpenAI (Codex / ChatGPT), and Grok plans in real time, so you don't hit limits without realizing it. It is an unofficial app and is not affiliated with Anthropic, OpenAI, or xAI; it reads undocumented endpoints, so if a provider changes its endpoints, gas may temporarily stop working until an update adapts to the change.

Purpose and main capabilities

  • The menu bar label shows each provider's usage percentage at a glance.
  • The menu lists the percentage, reset time, and next refresh time for each limit.
  • By default it shows a pinned glass-style floating panel; a drag handle appears when you point at it, and the curved arrow next to it switches between vertical and horizontal layouts. After enabling "Separate bars" in "Settings → Display," each provider's progress bar is split into two bars, session and weekly; plans with only a weekly limit show just one bar.
  • Supports two levels of alerts, warning and critical, with default thresholds of 65% and 85%, which you can change.
  • You can choose to display the remaining percentage (default) or the used percentage.
  • First-time setup: if Claude Code, Codex CLI, or Grok CLI is missing, or you are not yet logged in, the setup window can invoke the official installer with one click and open the login page.
  • Claude token renewal: when the Claude Code token expires, gas runs claude -p once (a brief Haiku reply) to let Claude Code renew it itself; it attempts this at most once per hour, and it can be disabled in "Settings → Providers."
  • Diagnostics: in "Settings → Troubleshooting" you can copy a report that contains no tokens.

How to use and how it works

  • System requirements: macOS 14 or later; the glass appearance requires macOS 26.
  • Claude requires Claude Code logged in to a Claude subscription; OpenAI requires Codex CLI logged in to ChatGPT; Grok requires a logged-in Grok CLI, is off by default, and must be enabled in "Settings → Providers."
  • Installation: use Homebrew, or download the latest gas-<version>.pkg from Releases and open it. Because it is not signed with an Apple Developer ID, macOS will block it the first time, and you need to click "Done", go to "System Settings → Privacy & Security" and click "Open Anyway". During updates, macOS will ask whether to allow the installer to modify the app; click "Allow". After installation by either method, gas updates itself automatically.
  • gas refreshes every 5 minutes; manual refresh is allowed once per minute.
  • gas only reads the sign-in state and does not modify sign-in information.
  • Grok sign-in is valid for about 6 hours and is only renewed by using Grok CLI; after it expires, gas keeps the last values and displays "Open Grok CLI to renew its sign-in". gas never runs Grok to read usage. gas displays the Grok CLI weekly limit, which matches the number shown by /usage in Grok CLI; the Usage & Billing page on grok.com has a separate weekly metering and reset time, and the two may differ.
  • After encountering a rate limit (HTTP 429), gas waits for the time given by the server. If Claude Code is signed out, gas displays "Not logged in. Run /login in Claude Code.".
  • Tokens are never logged, displayed, or sent anywhere other than the provider's own usage endpoint. No analytics, no telemetry; all state is stored locally in ~/Library/Application Support/Gas.

Use cases Suitable for users who subscribe to Claude, Codex / ChatGPT, and Grok at the same time and want to keep track of session and weekly limit consumption continuously in the macOS menu bar, especially in scenarios where they need advance warnings as they approach limits to avoid work interruptions.

Limitations

  • Unofficial tool that relies on undocumented interfaces; provider changes may cause it to stop working.
  • Only supports macOS 14 and later; the glass appearance requires macOS 26.
  • Unsigned and not notarized; the first launch requires manual approval.
  • Grok usage depends on the Grok CLI sign-in state and cannot be renewed automatically after it expires.
  • Building from source requires Xcode and XcodeGen; for packaging .pkg and .dmg, see docs/packaging.md.
  • Feature suggestions, bug reports, and pull requests can be submitted through the project repository; for larger changes, it is recommended to open an issue for discussion first, and run swift test before pushing. For project rules, see AGENTS.md。
Up/Down to navigate · Enter to open · ESC to closeBrowse all tools