CodexBar ποΈ β May your tokens never run out.
Every AI coding limit, in your menu bar.
Tiny macOS 14+ menu bar app that keeps AI coding-provider limits visible and shows when each window resets. Codex, OpenAI, Claude, Cursor, Gemini, Copilot, Grok, GroqCloud, ElevenLabs, Deepgram, z.ai, MiniMax, Kiro, Zed, Vertex AI, Augment, OpenRouter, LiteLLM, LLM Proxy, Codebuff, Command Code, ClinePass, AWS Bedrock, and many newer coding providers. One status item per provider, or Merge Icons mode with a provider switcher. No Dock icon, minimal UI, dynamic bar icons.
Why
- Plan around resets. Per-provider session, weekly, and monthly windows with countdowns to the next reset β stop guessing whether to start that long task.
- Credits, spend, and cost scans. Credit balances, Admin API spend dashboards, provider billing summaries, and local cost scans where the source exposes enough detail.
- Live status. Provider status polling surfaces incident badges in the menu and an indicator overlay on the bar icon.
- Privacy-first. Reuses existing provider sessions β OAuth, device flow, API keys, browser cookies, local files β so no passwords are stored.
Install
Requirements
GitHub Releases
Download: https://github.com/steipete/CodexBar/releases
Homebrew
brew install --cask codexbar
CLI Tarballs (macOS/Linux)
Homebrew formula (Linux today):
brew install steipete/tap/codexbar
Arch Linux AUR package:
yay -S codexbar-cli
Or download release tarballs from GitHub Releases:
- macOS:
CodexBarCLI-v<tag>-macos-arm64.tar.gz, CodexBarCLI-v<tag>-macos-x86_64.tar.gz
- Linux (glibc):
CodexBarCLI-v<tag>-linux-aarch64.tar.gz, CodexBarCLI-v<tag>-linux-x86_64.tar.gz
- Linux (static musl):
CodexBarCLI-v<tag>-linux-musl-aarch64.tar.gz, CodexBarCLI-v<tag>-linux-musl-x86_64.tar.gz
First run
- Open Settings β Providers and enable what you use.
- Install/sign in to the provider sources you rely on: CLIs, browser sessions, OAuth/device flow, API keys, local app files, or provider apps depending on the provider.
- Optional: Settings β Providers β Codex β OpenAI cookies (Automatic or Manual) to add dashboard extras.
Set API keys from the CLI
Provider toggles and API keys live in the resolved CodexBar config file. New installs use
~/.config/codexbar/config.json; existing ~/.codexbar/config.json installs still load from the legacy path. You can
script the same provider list that Settings β Providers uses:
codexbar config providers
codexbar config enable --provider grok
codexbar config disable --provider cursor
For API-key providers, store a key without opening Settings:
printf '%s' "$ELEVENLABS_API_KEY" | codexbar config set-api-key --provider elevenlabs --stdin
set-api-key trims the piped value, stores it with restrictive config-file permissions, and enables the provider by default. Use --no-enable to only save the key, or --api-key <key> for one-off local scripts where shell history is not a concern.
See CLI configuration for the full flow.
Providers
- Codex β OAuth API or local Codex CLI, plus optional OpenAI web dashboard extras.
- OpenAI β Admin API key usage/cost graphs with legacy credit-balance fallback.
- Azure OpenAI β API key, endpoint, and deployment validation probe.
- Claude β OAuth API, browser cookies, or CLI PTY fallback; session and weekly usage where available.
- Cursor β Browser session cookies for plan + usage + billing resets.
- OpenCode β Browser cookies for workspace subscription usage.
- OpenCode Go β Browser or local SQLite data for Go usage windows.
- Alibaba Coding Plan β Web cookies or API key for coding-plan quotas.
- Alibaba Token Plan β Bailian browser/manual cookies for token-plan credits.
- Qwen Cloud β 5-hour and weekly individual Token Plan usage via browser/manual cookies.
- 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.
- Copilot β GitHub device flow + Copilot internal usage API.
- Devin β Chrome localStorage session or manual Bearer token for daily and weekly quotas.
- z.ai β API token for personal/team quota, MCP, 5-hour, and hourly usage windows.
- Manus β Browser
session_id auth for credit balance, monthly credits, and daily refresh tracking.
- MiniMax β API token, cookie header, or browser cookies for coding-plan usage.
- T3 Chat β Browser cookies capture for Base and Overage usage buckets.
- ZoomMate β Chrome cookie auto-import or manual cURL capture for credits usage.
- Kimi β Auth token (JWT from
kimi-auth cookie) for weekly quota + 5βhour rate limit.
- Kilo β API token with CLI-auth fallback for Kilo Pass usage.
- Kiro β CLI-based usage; monthly credits + bonus credits.
- Vertex AI β Google Cloud gcloud OAuth with token cost tracking from local Claude logs.
- Augment β Augment CLI or browser cookies for credits tracking and usage monitoring.
- Amp β Browser cookie-based authentication with Amp Free usage tracking.
- Ollama β API key access plus browser cookies for Ollama Cloud usage windows.
- Synthetic β API key quota endpoint for rolling five-hour, weekly token, and search-hourly usage.
- JetBrains AI β Local XML-based quota from JetBrains IDE configuration; monthly credits tracking.
- Warp β API token for GraphQL request limits and monthly credits.
- ElevenLabs β API key for character credits and voice slot usage.
- OpenRouter β API token for credit-based usage tracking across multiple AI providers.
- Windsurf β Browser localStorage session import or local SQLite cache for plan usage.
- Zed β Zed editor Keychain session for plan, edit-prediction quota, billing cycle, and overdue invoices.
- Perplexity β Account usage credits from Perplexity usage data.
- Xiaomi MiMo β Browser cookies for balance and token-plan usage.
- Doubao β API key for Volcengine Ark request-limit probes.
- Sakana AI β Manual Cookie header for 5-hour and weekly quota windows.
- Abacus AI β Browser cookie auth for ChatLLM/RouteLLM compute credit tracking.
- Mistral β Browser cookies for API spend, credit balance, and monthly-plan usage.
- DeepSeek β API key for credit balance tracking (paid vs. granted breakdown).
- DeepInfra β API key for prepaid balance, current-month spend, and spending-limit tracking.
- Moonshot / Kimi API β API key for Moonshot/Kimi API account balance tracking.
- Venice β API key for DIEM or USD balance tracking.
- Codebuff β API token (or
~/.config/manicode/credentials.json) for credit balance + weekly rate limit.
- Crof β API key for dollar credit balance and optional request quota tracking.
- Command Code β Browser or manual cookies for monthly USD credits from Command Code billing.
- Qoder β Browser or manual cookies for Qoder big model credit usage.
- StepFun β Username + password login for Step Plan rate limits (5βhour + weekly windows) and subscription plan name.
- AWS Bedrock β AWS access keys or a named AWS profile (SSO/assume-role via the AWS CLI) for Cost Explorer spend, monthly budgets, and optional CloudWatch Claude activity.
- Grok β Grok CLI billing RPC plus grok.com browser-session fallback.
- GroqCloud β API key for Enterprise Prometheus request/token/cache-hit metrics.
- LLM Proxy β API key + base URL for aggregate proxy quota stats and provider breakdowns.
- ClawRouter β API key for monthly budget, spend, requests, tokens, and routed-provider usage.
- sub2api β Self-hosted gateway key quota, subscription limits, wallet balance, and per-key usage.
- Wayfinder β Local router gateway polling for health, per-route breakdown, savings, and decision latency.
- LiteLLM β Virtual key + proxy URL for personal and team budget/spend tracking.
- Deepgram β API key usage summaries across speech, agent, token, and TTS metrics.
- Poe β API key for current point balance and recent points history.
- Chutes β API key for subscription usage, rolling and monthly quota windows, and pay-as-you-go quotas.
- Neuralwatt β API key for subscription kWh usage and prepaid credit balance.
- ZenMux β Management API key for rolling five-hour and seven-day quota windows plus PAYG balance.
- xAI β Management API key + team ID for prepaid credit balance and daily platform spend.
- Open to new providers: provider authoring guide.
Icon & Screenshot
The menu bar icon is a tiny usage meter. Bar meaning is provider-specific, and errors/stale data can dim the icon or
show an incident indicator.
Features
- Multi-provider menu bar with per-provider toggles (Settings β Providers).
- Provider-specific usage meters with reset countdowns.
- Optional Codex web dashboard enrichments (code review remaining, usage breakdown, credits history).
- Inline spend and usage charts for API-backed providers such as OpenAI, Claude Admin API, OpenRouter, LiteLLM, z.ai, MiniMax, Mistral, and AWS Bedrock.
- Configurable cost-usage scans for Codex + Claude, plus reused chart UI for supported provider histories.
- A persistent Settings β Usage & Spend view for local 7/30-day estimates, grouped by native currency and limited to providers that expose cost history.
- Provider status polling with incident badges in the menu and icon overlay.
- Merge Icons mode to combine providers into one status item + switcher.
- Display controls for provider icons, labels, bars, reset-time style, and highest-usage auto-selection.
- Fresh installs default to Adaptive refresh. Existing users keep every valid stored choice, while legacy unset or
invalid preferences resolve to 5 minutes. Manual and fixed 1m, 2m, 5m, 15m, and 30m alternatives remain available.
- Bundled CLI (
codexbar) for scripts and CI (including codexbar cost --provider codex, claude, or both for local cost usage); macOS and Linux CLI builds available.
- WidgetKit widgets for supported providers.
- Localized app and website with a shared 21-language catalog, automatic website detection, persistent pickers, and RTL support.
- Optional session quota notifications and weekly-reset confetti.
- 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, provider config files, local JSONL logs) when the related features are enabled. Plain Adaptive refresh never inspects local agent activity. The separate Adaptive (agent-aware) option asks before inspecting the running-process list (including command lines) to identify Codex/Claude and reading bounded known-session metadata. Declining returns to plain Adaptive. When allowed with Agent Sessions hidden, CodexBar retains only the latest activity time and discards session paths and identities. Provider tokens and token-account settings live in the CodexBar config file with restrictive file permissions. See the discussion and audit notes in issue #12.