Show usage stats for OpenAI Codex and Claude Code, without having to login.
CodexBar 🎚️ - May your tokens never run out.
Tiny macOS 14+ menu bar app that keeps your Codex, Claude, Cursor, Gemini, Antigravity, Droid (Factory), Copilot, z.ai, Kiro, Vertex AI, Augment, Amp, and JetBrains AI limits visible (session + weekly where available) and shows when each window resets. One status item per provider (or Merge Icons mode); enable what you use from Settings. No Dock icon, minimal UI, dynamic bar icons in the menu bar.
Or download CodexBarCLI-v<tag>-linux-<arch>.tar.gz from GitHub Releases.
Linux support via Omarchy: community Waybar module and TUI, driven by the codexbar executable.
First run
Open Settings → Providers and enable what you use.
Install/sign in to the provider sources you rely on (e.g. codex, claude, gemini, browser cookies, or OAuth; Antigravity requires the Antigravity app running).
Optional: Settings → Providers → Codex → OpenAI cookies (Automatic or Manual) to add dashboard extras.
Providers
Codex — Local Codex CLI RPC (+ PTY fallback) and optional OpenAI web dashboard extras.
Claude — OAuth API or browser cookies (+ CLI PTY fallback); session + weekly usage.
Cursor — Browser session cookies for plan + usage + billing resets.
Gemini — OAuth-backed quota API using Gemini CLI credentials (no browser cookies).
Antigravity — Local language server probe (experimental); no external auth.
Droid — Browser cookies + WorkOS token flows for Factory usage + billing.
Bundled CLI (codexbar) for scripts and CI (including codexbar cost --provider codex|claude for local cost usage); Linux CLI builds available.
WidgetKit widget mirrors the menu card snapshot.
Privacy-first: on-device parsing by default; browser cookies are opt-in and reused (no passwords stored).
Privacy note
Wondering if CodexBar scans your disk? It doesn’t crawl your filesystem; it reads a small set of known locations (browser cookies/local storage, local JSONL logs) when the related features are enabled. See the discussion and audit notes in issue #12.
macOS permissions (why they’re needed)
Full Disk Access (optional): only required to read Safari cookies/local storage for web-based providers (Codex web, Claude web, Cursor, Droid/Factory). If you don’t grant it, use Chrome/Firefox cookies or CLI-only sources instead.
Keychain access (prompted by macOS):
Chrome cookie import needs the “Chrome Safe Storage” key to decrypt cookies.
Claude OAuth credentials (written by the Claude CLI) are read from Keychain when present.
z.ai API token is stored in Keychain from Preferences → Providers; Copilot stores its API token in Keychain during device flow.
How do I prevent those keychain alerts?
Open Keychain Access.app → login keychain → search the item (e.g., “Claude Code-credentials”).
Open the item → Access Control → add CodexBar.app under “Always allow access by these applications”.
Prefer adding just CodexBar (avoid “Allow all applications” unless you want it wide open).
Open the item → Access Control → add CodexBar.app under “Always allow access by these applications”.
This removes the prompt when CodexBar decrypts cookies for that browser.
Files & Folders prompts (folder/volume access): CodexBar launches provider CLIs (codex/claude/gemini/antigravity). If those CLIs read a project directory or external drive, macOS may ask CodexBar for that folder/volume (e.g., Desktop or an external volume). This is driven by the CLI’s working directory, not background disk scanning.
What we do not request: no Screen Recording, Accessibility, or Automation permissions; no passwords are stored (browser cookies are reused when you opt in).
Clone the repo and open it in Xcode or run the scripts directly.
Launch once, then toggle providers in Settings → Providers.
Install/sign in to provider sources you rely on (CLIs, browser cookies, or OAuth).
Optional: set OpenAI cookies (Automatic or Manual) for Codex dashboard extras.
Build from source
swift build -c release # or debug for development
./Scripts/package_app.sh # builds CodexBar.app in-place
CODEXBAR_SIGNING=adhoc ./Scripts/package_app.sh # ad-hoc signing (no Apple Developer account)
open CodexBar.app
Dev loop:
./Scripts/compile_and_run.sh
Related
✂️ Trimmy — “Paste once, run once.” Flatten multi-line shell snippets so they paste and run.
🧳 MCPorter — TypeScript toolkit + CLI for Model Context Protocol servers.
🧿 oracle — Ask the oracle when you're stuck. Invoke GPT-5 Pro with a custom context and files.