[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-1085":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":9,"totalLinesOfCode":9,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":9,"subscribersCount":16,"size":16,"stars1d":17,"stars7d":18,"stars30d":19,"stars90d":16,"forks30d":16,"starsTrendScore":20,"compositeScore":21,"rankGlobal":9,"rankLanguage":9,"license":9,"archived":22,"fork":22,"defaultBranch":23,"hasWiki":22,"hasPages":22,"topics":24,"createdAt":9,"pushedAt":9,"updatedAt":29,"readmeContent":30,"aiSummary":31,"trendingCount":16,"starSnapshotCount":16,"syncStatus":32,"lastSyncTime":33,"discoverSource":34},1085,"CodexBar","steipete\u002FCodexBar","steipete","Show usage stats for OpenAI Codex and Claude Code, without having to login.",null,"https:\u002F\u002Fgithub.com\u002Fsteipete\u002FCodexBar","Swift",14609,1184,43,48,0,92,379,2583,385,116.22,false,"main",[25,26,27,28],"ai","codex","swift","claude-code","2026-06-12 04:00:07","# CodexBar 🎚️ - May your tokens never run out.\n\nTiny macOS 14+ menu bar app that keeps AI coding-provider limits visible and shows when each window resets. CodexBar supports Codex, Claude, Cursor, Gemini, Copilot, z.ai, Kiro, Vertex AI, Augment, OpenRouter, Codebuff, and many newer coding providers. One status item per provider (or Merge Icons mode with a provider switcher); enable what you use from Settings. No Dock icon, minimal UI, dynamic bar icons in the menu bar.\n\n\u003Cimg src=\"codexbar.png\" alt=\"CodexBar menu screenshot\" width=\"520\" \u002F>\n\n## Install\n\n### Requirements\n- macOS 14+ (Sonoma)\n\n### GitHub Releases\nDownload: \u003Chttps:\u002F\u002Fgithub.com\u002Fsteipete\u002FCodexBar\u002Freleases>\n\n### Homebrew\n```bash\nbrew install --cask steipete\u002Ftap\u002Fcodexbar\n```\n\n### CLI Tarballs (macOS\u002FLinux)\nHomebrew formula (Linux today):\n```bash\nbrew install steipete\u002Ftap\u002Fcodexbar\n```\nOr download release tarballs from GitHub Releases:\n- macOS: `CodexBarCLI-v\u003Ctag>-macos-arm64.tar.gz`, `CodexBarCLI-v\u003Ctag>-macos-x86_64.tar.gz`\n- Linux: `CodexBarCLI-v\u003Ctag>-linux-aarch64.tar.gz`, `CodexBarCLI-v\u003Ctag>-linux-x86_64.tar.gz`\n\n### First run\n- Open Settings → Providers and enable what you use.\n- Install\u002Fsign in to the provider sources you rely on: CLIs, browser sessions, OAuth\u002Fdevice flow, API keys, local app files, or provider apps depending on the provider.\n- Optional: Settings → Providers → Codex → OpenAI cookies (Automatic or Manual) to add dashboard extras.\n\n## Providers\n\n- [Codex](docs\u002Fcodex.md) — OAuth API or local Codex CLI, plus optional OpenAI web dashboard extras.\n- [Claude](docs\u002Fclaude.md) — OAuth API, browser cookies, or CLI PTY fallback; session and weekly usage where available.\n- [Cursor](docs\u002Fcursor.md) — Browser session cookies for plan + usage + billing resets.\n- [OpenCode](docs\u002Fopencode.md) — Browser cookies for workspace subscription usage.\n- [OpenCode Go](docs\u002Fopencode.md) — Browser cookies for Go usage windows.\n- [Alibaba Coding Plan](docs\u002Falibaba-coding-plan.md) — Web cookies or API key for coding-plan quotas.\n- [Gemini](docs\u002Fgemini.md) — OAuth-backed quota API using Gemini CLI credentials (no browser cookies).\n- [Antigravity](docs\u002Fantigravity.md) — Local language server probe (experimental); no external auth.\n- [Droid](docs\u002Ffactory.md) — Browser cookies + WorkOS token flows for Factory usage + billing.\n- [Copilot](docs\u002Fcopilot.md) — GitHub device flow + Copilot internal usage API.\n- [z.ai](docs\u002Fzai.md) — API token for quota + MCP windows.\n- [MiniMax](docs\u002Fminimax.md) — API token, cookie header, or browser cookies for coding-plan usage.\n- [Kimi](docs\u002Fkimi.md) — Auth token (JWT from `kimi-auth` cookie) for weekly quota + 5‑hour rate limit.\n- [Kimi K2](docs\u002Fkimi-k2.md) — API key for credit-based usage totals.\n- [Kilo](docs\u002Fkilo.md) — API token with CLI-auth fallback for Kilo Pass usage.\n- [Kiro](docs\u002Fkiro.md) — CLI-based usage; monthly credits + bonus credits.\n- [Vertex AI](docs\u002Fvertexai.md) — Google Cloud gcloud OAuth with token cost tracking from local Claude logs.\n- [Augment](docs\u002Faugment.md) — Augment CLI or browser cookies for credits tracking and usage monitoring.\n- [Amp](docs\u002Famp.md) — Browser cookie-based authentication with Amp Free usage tracking.\n- [Ollama](docs\u002Follama.md) — Browser cookies for Ollama Cloud usage windows.\n- [JetBrains AI](docs\u002Fjetbrains.md) — Local XML-based quota from JetBrains IDE configuration; monthly credits tracking.\n- [Warp](docs\u002Fwarp.md) — API token for GraphQL request limits and monthly credits.\n- [OpenRouter](docs\u002Fopenrouter.md) — API token for credit-based usage tracking across multiple AI providers.\n- Perplexity — Account usage credits from Perplexity usage data.\n- [Abacus AI](docs\u002Fabacus.md) — Browser cookie auth for ChatLLM\u002FRouteLLM compute credit tracking.\n- Mistral — Browser cookies for monthly spend tracking.\n- [DeepSeek](docs\u002Fdeepseek.md) — API key for credit balance tracking (paid vs. granted breakdown).\n- [Codebuff](docs\u002Fcodebuff.md) — API token (or `~\u002F.config\u002Fmanicode\u002Fcredentials.json`) for credit balance + weekly rate limit.\n- Open to new providers: [provider authoring guide](docs\u002Fprovider.md).\n\n## Icon & Screenshot\nThe menu bar icon is a tiny usage meter. Bar meaning is provider-specific, and errors\u002Fstale data can dim the icon or\nshow an incident indicator.\n\n## Features\n- Multi-provider menu bar with per-provider toggles (Settings → Providers).\n- Provider-specific usage meters with reset countdowns.\n- Optional Codex web dashboard enrichments (code review remaining, usage breakdown, credits history).\n- Local cost-usage scan for Codex + Claude (last 30 days).\n- Provider status polling with incident badges in the menu and icon overlay.\n- Merge Icons mode to combine providers into one status item + switcher.\n- Display controls for provider icons, labels, bars, reset-time style, and highest-usage auto-selection.\n- Refresh cadence presets (manual, 1m, 2m, 5m, 15m).\n- 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.\n- WidgetKit widgets for supported providers.\n- Optional session quota notifications and weekly-reset confetti.\n- Privacy-first: on-device parsing by default; browser cookies are opt-in and reused (no passwords stored).\n\n## Privacy note\nWondering if CodexBar scans your disk? It doesn’t crawl your filesystem; it reads a small set of known locations (browser cookies\u002Flocal storage, provider config files, local JSONL logs) when the related features are enabled. Provider tokens and token-account settings live in `~\u002F.codexbar\u002Fconfig.json` with restrictive file permissions. See the discussion and audit notes in [issue #12](https:\u002F\u002Fgithub.com\u002Fsteipete\u002FCodexBar\u002Fissues\u002F12).\n\n## macOS permissions (why they’re needed)\n- **Full Disk Access (optional)**: only required to read Safari cookies\u002Flocal storage for web-based providers. If you don’t grant it, use another supported browser, manual cookies\u002FAPI keys, OAuth, or CLI\u002Flocal sources where that provider supports them.\n- **Keychain access (prompted by macOS)**:\n  - Chromium cookie import needs the browser “Safe Storage” key to decrypt cookies.\n  - Claude OAuth bootstrap may read the Claude CLI Keychain item when CodexBar has no usable cached credentials.\n  - CodexBar may use Keychain for browser cookie decryption, cached cookie headers, and OAuth\u002Fdevice-flow credentials where those sources require it.\n  - **How do I prevent those keychain alerts?**\n    - Open **Keychain Access.app** → login keychain → search the prompted item (for Claude OAuth, usually “Claude Code-credentials”).\n    - Open the item → **Access Control** → add `CodexBar.app` under “Always allow access by these applications”.\n    - Prefer adding just CodexBar (avoid “Allow all applications” unless you want it wide open).\n    - Relaunch CodexBar after saving.\n    - Reference screenshot: ![Keychain access control](docs\u002Fkeychain-allow.png)\n  - **How to do the same for the browser?**\n    - Find the browser’s “Safe Storage” key (e.g., “Chrome Safe Storage”, “Brave Safe Storage”, “Microsoft Edge Safe Storage”).\n    - Open the item → **Access Control** → add `CodexBar.app` under “Always allow access by these applications”.\n    - This removes the prompt when CodexBar decrypts cookies for that browser.\n- **Files & Folders prompts (folder\u002Fvolume access)**: CodexBar launches provider CLIs and local probes for some providers. If those helpers read a project directory or external drive, macOS may ask CodexBar for that folder\u002Fvolume (e.g., Desktop or an external volume). This is driven by the helper’s working directory, not background disk scanning.\n- **What we do not request in the background**: no Screen Recording or Accessibility permissions; user-triggered helper actions may ask macOS for Automation permission to open Terminal. No passwords are stored (browser cookies are reused when you opt in).\n\n## Docs\n- Providers overview: [docs\u002Fproviders.md](docs\u002Fproviders.md)\n- Provider authoring: [docs\u002Fprovider.md](docs\u002Fprovider.md)\n- Issue labeling guide: [docs\u002FISSUE_LABELING.md](docs\u002FISSUE_LABELING.md)\n- UI & icon notes: [docs\u002Fui.md](docs\u002Fui.md)\n- CLI reference: [docs\u002Fcli.md](docs\u002Fcli.md)\n- Configuration: [docs\u002Fconfiguration.md](docs\u002Fconfiguration.md)\n- Widgets: [docs\u002Fwidgets.md](docs\u002Fwidgets.md)\n- Architecture: [docs\u002Farchitecture.md](docs\u002Farchitecture.md)\n- Refresh loop: [docs\u002Frefresh-loop.md](docs\u002Frefresh-loop.md)\n- Status polling: [docs\u002Fstatus.md](docs\u002Fstatus.md)\n- Sparkle updates: [docs\u002Fsparkle.md](docs\u002Fsparkle.md)\n- Packaging: [docs\u002Fpackaging.md](docs\u002Fpackaging.md)\n- Development: [docs\u002FDEVELOPMENT.md](docs\u002FDEVELOPMENT.md)\n- Release checklist: [docs\u002FRELEASING.md](docs\u002FRELEASING.md)\n- Changelog: [CHANGELOG.md](CHANGELOG.md)\n\n## Getting started (dev)\n- Clone the repo and open it in Xcode or run the scripts directly.\n- Launch once, then toggle providers in Settings → Providers.\n- Install\u002Fsign in to provider sources you rely on (CLIs, browser cookies, OAuth\u002Fdevice flow, API keys, or local app\u002Fconfig files).\n- Optional: set OpenAI cookies (Automatic or Manual) for Codex dashboard extras.\n\n## Build from source\nRequires macOS 14+ and Swift 6.2+.\n\n```bash\n.\u002FScripts\u002Fpackage_app.sh        # builds CodexBar.app in-place\nCODEXBAR_SIGNING=adhoc .\u002FScripts\u002Fpackage_app.sh  # ad-hoc signing (no Apple Developer account)\nopen CodexBar.app\n```\n\nDev loop:\n```bash\n.\u002FScripts\u002Fcompile_and_run.sh\n.\u002FScripts\u002Fcompile_and_run.sh --test  # also run swift test before packaging\u002Frelaunching\npnpm check                           # SwiftFormat + SwiftLint\npnpm docs:list                       # list docs with frontmatter summaries\n```\n\nCLI install:\n```bash\n# after installing CodexBar.app in \u002FApplications\n.\u002Fbin\u002Finstall-codexbar-cli.sh\n```\n\n## Related\n- ✂️ [Trimmy](https:\u002F\u002Fgithub.com\u002Fsteipete\u002FTrimmy) — “Paste once, run once.” Flatten multi-line shell snippets so they paste and run.\n- 🧳 [MCPorter](https:\u002F\u002Fmcporter.dev) — TypeScript toolkit + CLI for Model Context Protocol servers.\n- 🧿 [oracle](https:\u002F\u002Faskoracle.dev) — Ask the oracle when you're stuck. Invoke GPT-5 Pro with a custom context and files.\n\n## Looking for a Windows version?\n- [Win-CodexBar](https:\u002F\u002Fgithub.com\u002FFinesssee\u002FWin-CodexBar)\n\n## Credits\nInspired by [ccusage](https:\u002F\u002Fgithub.com\u002Fryoppippi\u002Fccusage) (MIT), specifically the cost usage tracking.\n\n## License\nMIT • Peter Steinberger ([steipete](https:\u002F\u002Ftwitter.com\u002Fsteipete))\n","CodexBar 是一个轻量级的 macOS 菜单栏应用程序，用于显示 OpenAI Codex 和 Claude Code 等 AI 编码服务的使用统计信息，无需登录。它支持包括 Codex、Claude、Cursor、Gemini、Copilot、z.ai、Kiro、Vertex AI、Augment 等在内的多种编码提供商，并为每个提供商提供单独的状态图标（或合并图标模式）。该应用具有简洁的用户界面和动态菜单栏图标，不占用 Dock 位置，适用于 macOS 14 及以上版本。开发者可以通过设置启用所需的服务，方便地监控不同 AI 编码工具的使用情况和限制，从而更好地管理资源。",2,"2026-06-11 02:41:32","trending"]