by dancik
AI coding limits in the macOS menu bar — Claude Code, Codex, Gemini (Antigravity), Grok. Never touches your credentials.
# Add to your Claude Code skills
git clone https://github.com/dancik/limitbarGuides for using ai agents skills like limitbar.
Last scanned: 10/24/2026
{
"issues": [],
"status": "PASSED",
"scannedAt": "2026-10-24T08:43:26.486Z",
"npmAuditRan": true,
"pipAuditRan": true,
"promptInjectionRan": true
}See how limitbar compares with popular alternatives.
limitbar is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by dancik. AI coding limits in the macOS menu bar — Claude Code, Codex, Gemini (Antigravity), Grok. Never touches your credentials. It has 61 GitHub stars.
Yes. limitbar passed SkillsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.
Clone the repository with "git clone https://github.com/dancik/limitbar" and add it to your Claude Code skills directory (see the Installation section above).
limitbar is primarily written in Swift. It is open-source under dancik on GitHub, so you can review or fork the full source.
Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh limitbar against similar tools.
No comments yet. Be the first to share your thoughts!
From $49 · 30 days · terms & refunds
⚠️ Third-Party Software Notice
This skill is third-party open-source software developed and hosted independently on GitHub. SkillsLLM is an informational directory and does not control or maintain the underlying repository.
Any security checks, ratings, or warnings displayed by SkillsLLM are automated and limited in scope. They do not constitute a security certification or guarantee that the software is safe, error-free, or free from malicious code, vulnerabilities, compromised dependencies, or prompt-injection risks.
Review the source code, permissions, dependencies, and configuration before installing or running any third-party skill. Use is at your own risk. To the maximum extent permitted by applicable law, SkillsLLM is not liable for losses arising from third-party software.
Automated security scan — not a certification.
How much of your AI coding limits you've used — in the macOS menu bar. One glance for Claude Code, Codex, Gemini (Google Antigravity) and Grok Build; hover for the 5-hour and weekly windows and when they reset.

Paste this into your AI agent (Claude Code, Codex, Gemini, Grok…):
Install LimitBar by following https://github.com/dancik/limitbar/blob/main/INSTALL.md
Or run it yourself in Terminal:
d="$(mktemp -d)" && curl -fsSLo "$d/install.sh" https://raw.githubusercontent.com/dancik/limitbar/7105981982e652368b15e01b777164c999e213dd/install.sh && bash "$d/install.sh"
The link is pinned to one commit, so the script you run is exactly the one you can read
here. It downloads the release
build, checks its SHA-256 against the digest written into that script, checks GitHub's build provenance
when the GitHub CLI is installed and signed in, and copies LimitBar.app to
/Applications, where Spotlight and Launchpad find it. Any admin account can write there without a
password, the same as a drag-and-drop install; on a standard account it goes to ~/Applications
instead. No sudo, nothing outside LimitBar.app, ~/Applications and ~/Library/Caches/limitbar.
/Applications is shared by every account on the Mac, and any admin account can replace an app there
without a password — that is true of every app installed there, not only this one. If you'd rather keep
LimitBar private to your account, run the last command as LIMITBAR_PER_USER=1 bash "$d/install.sh"
and it goes to ~/Applications (Spotlight may not find it there).
Prefer to compile it yourself? bash "$d/install.sh" --from-source builds the same pinned
commit on your Mac (needs Command Line Tools: xcode-select --install).
Requirements: macOS 14 or later, Apple silicon or Intel, and at least one of the CLIs below signed in.
LimitBar shows whatever is installed in the standard places (~/.local/bin, /opt/homebrew/bin,
/usr/local/bin, ~/.grok/bin, ~/.npm-global/bin, ~/.bun/bin, ~/.volta/bin). Sign in with
the CLI itself — once:
| Service | CLI | Sign in | What the menu bar shows |
|---|---|---|---|
| Claude (Pro / Max) | Claude Code claude |
run claude, then /login |
5-hour window |
| Codex (ChatGPT plans) | Codex CLI codex |
codex login |
5-hour window |
| Gemini | Google Antigravity CLI agy |
run agy once |
the most-used Gemini quota (often weekly) |
| Grok | Grok Build grok |
grok login |
weekly credits |
Installed somewhere else? Point LimitBar at it:
defaults write io.github.dancik.limitbar codexPath /full/path/to/codex (same for claudePath,
agyPath, grokPath), then quit and reopen LimitBar.
| You see | Meaning |
|---|---|
23 |
23 % of the window used (5-hour for Claude and Codex) |
81ʷ |
a weekly window — that service has no 5-hour limit, or the weekly one is what binds |
| red | 90 % or more used |
23! |
the number shown is fine, but another window of the same service (e.g. the weekly) is at 90 %+ |
— |
no reading yet, or the window has reset since the last reading |
| dimmed | the reading is more than 45 minutes old |
Hover (or click to pin) for every window, reset times, plan, and anything that needs attention —
"Signed out — run codex login", for example.
The Limits | Usage switch at the top of the panel turns it into a token count: per service the total tokens and model calls, a bar per day (with 7 days), and one line per model. Tokens are everything the model processed — input, cached input and output — so a long Claude session with a big cached context shows billions; that is normal.
| Service | Counted from | Notes |
|---|---|---|
| Claude | ~/.claude/projects/**/*.jsonl |
every reply Claude Code saved, interactive or claude -p; a reply is counted once, at its final size |
| Codex | ~/.codex/sessions/**/*.jsonl |
the running token total Codex writes after every model call |
| Grok | ~/.grok/sessions/*/*/usage.json |
per-turn totals per model, written by Grok Build itself |
| Gemini | ~/.gemini/antigravity-cli/conversations/*.db |
one database per conversation, opened read-only; each model step records its time and token counts. A conversation agy is still writing is counted once it is done |
The logs are read only while the panel shows Usage — when it opens, then every 30 seconds while it stays
open, never more than once a minute unless you press Refresh. Claude and Codex logs are read only from
where the last read stopped; Grok's usage.json and Antigravity's databases are small and read whole
when they change. Closing the panel stops a read in progress. The first read of a busy week can take a
few seconds.
By default LimitBar runs claude -p /usage at most once every 20 minutes (no model call, ~3 s of CPU).
If you want live Claude numbers at no cost, let Claude Code hand them over on every reply: add this to
~/.claude/settings.json (it replaces any status line you already have):
"statusLine": { "type": "command", "command": "~/Applications/LimitBar.app/Contents/MacOS/LimitBar --statusline" }
~/Applications/LimitBar.app works wherever LimitBar was installed: with the app in /Applications it is
a link to it. It prints Claude Opus · 5h 23% · 7d 41% in Claude Code and saves only those percentages and reset
times to ~/Library/Caches/limitbar/claude-status.json. LimitBar never edits your settings itself.
For the limits, LimitBar runs these commands, and nothing else:
| Service | Command | Notes |
|---|---|---|
| Claude | claude auth status --json |
only loggedIn and the plan name are kept; the email in its answer is dropped |
| Claude | claude -p /usage --output-format json --max-turns 1 --restricted --strict-mcp-config --no-session-persistence --settings '{"disableAllHooks":true}' |
no model call; your hooks, MCP servers and settings files are not loaded; no transcript saved |
| Codex | reads rate_limits lines from ~/.codex/sessions/<today>/*.jsonl; codex app-server → account/rateLimits/read; codex login status |
in the sandbox below |
| Gemini | agy -p /quota --output-format json |
no model call; in the sandbox below |
| Grok | grok agent stdio → _x.ai/billing |
in the sandbox below |
For the Usage view, LimitBar itself reads (never writes) the log files listed in
Usage — nothing else in those folders. These logs hold your conversations. Only
records that carry token counts are looked at: a Claude reply's structure is walked without decoding its
text, Codex's turn_context/token_count lines and Grok's usage.json are parsed in memory, and of
Antigravity's databases only each step's metadata is read, never its content. Nothing of a conversation
is stored, shown or sent: what is shown is model names, days and numbers, and what is stored is listed
under "What it stores" below. No CLI is run for it.
Every file is treated as untrusted: links inside those folders are not followed, counts and model names
are bounded, and Antigravity's databases are opened read-only and immutable, with a time limit.
The sandbox. codex, agy and grok run inside the macOS kernel sandbox profile
Resources/cli.sb: each CLI can start no program outside its own install folder — so
no MCP server, hook or plugin you configured runs — and can read or write nothing in your home folder but
its own state folder (~/.codex, ~/.gemini, ~/.grok), nor other users' folders, mounted volumes or
shared temp. agy additionally needs /usr/bin/security and your keychain (that is where its sign-in
lives), /tmp (its local helper). Every CLI may still stat a path (Node and Go resolve paths that way) — that
reveals whether a path exists, never its contents or a folder listing. If the sandbox is unavailable,
the CLI is not run at all.
How it protects you:
HOME, USER, LOGNAME, TMPDIR, LANG and a fixed
PATH — none of your API keys, GitHub tokens or SSH agent socket.~/Library/Caches/limitbar/state.json (percentages, reset times, plan names) and
usage.json: per log file a hashed key (not its name), its size, modification time and file identity,
the read offset and token counts per model and day; for Claude, the week's replies under hashed ids so
each counts once